Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 18 files:

Smatch caller information:

drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c mem_region_show() -> string_get_size()

Type Parameter Key Value
PARAM_VALUE 1 blk_size 1
PARAM_VALUE 2 units 1
PARAM_VALUE 3 buf 3710599293233221632
PARAM_VALUE 4 len 40
BUF_SIZE 3 buf 40
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 0 size 1-4294967296
UNITS 0 size unit_byte
UNITS 4 len unit_byte
LOCK2 &seq->lock
TYPE_LOCK (struct seq_file)->lock

drivers/mmc/core/block.c mmc_blk_alloc_req() -> string_get_size()

Type Parameter Key Value
PARAM_VALUE 1 blk_size 512
PARAM_VALUE 2 units 1
PARAM_VALUE 3 buf 4952777754951868416
PARAM_VALUE 4 len 10
BUF_SIZE 3 buf 10
DATA_SOURCE 0 size $2
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 4 len unit_byte

drivers/mmc/core/block.c mmc_blk_alloc_rpmb_part() -> string_get_size()

Type Parameter Key Value
PARAM_VALUE 0 size 0-36028797018963967
PARAM_VALUE 1 blk_size 512
PARAM_VALUE 2 units 1
PARAM_VALUE 3 buf 7642475243756109824
PARAM_VALUE 4 len 10
BUF_SIZE 3 buf 10
DATA_SOURCE 0 size $3
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 4 len unit_byte

drivers/scsi/sd.c sd_print_capacity() -> string_get_size()

Type Parameter Key Value
PARAM_VALUE 1 blk_size 0-s32max,18446744071562067968-u64max
PARAM_VALUE 2 units 1
PARAM_VALUE 3 buf 529398159811436544
PARAM_VALUE 4 len 10
BUF_SIZE 3 buf 10
NOCHECK_CALL
UNITS 1 blk_size unit_byte
UNITS 4 len unit_byte

drivers/scsi/sd.c sd_print_capacity() -> string_get_size()

Type Parameter Key Value
PARAM_VALUE 1 blk_size 0-s32max,18446744071562067968-u64max
PARAM_VALUE 2 units 0
PARAM_VALUE 3 buf 4365680599057395712
PARAM_VALUE 4 len 10
BUF_SIZE 3 buf 10
NOCHECK_CALL
UNITS 1 blk_size unit_byte
UNITS 4 len unit_byte

drivers/gpu/drm/xe/xe_ggtt.c xe_ggtt_print_holes() -> string_get_size()

Type Parameter Key Value
PARAM_VALUE 0 size 1-u64max
PARAM_VALUE 1 blk_size 1
PARAM_VALUE 2 units 1
PARAM_VALUE 3 buf 7207800897157992448
PARAM_VALUE 4 len 10
BUF_SIZE 3 buf 10
CAPPED_DATA 0 size 1
CAPPED_DATA 0 size 1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 0 size unit_byte
UNITS 4 len unit_byte
LOCK2 &ggtt->lock
LOCK2 &m->lock
TYPE_LOCK (struct seq_file)->lock
TYPE_LOCK (struct xe_ggtt)->lock

mm/hugetlb.c hugetlb_free_cross_zone_pages() -> string_get_size()

Type Parameter Key Value
PARAM_VALUE 0 size 2097152,1073741824
PARAM_VALUE 1 blk_size 1
PARAM_VALUE 2 units 1
PARAM_VALUE 3 buf 1673553672431693824
PARAM_VALUE 4 len 32
BUF_SIZE 3 buf 32
NOCHECK_CALL
UNITS 4 len unit_byte
HALF_LOCKED2 irq

mm/hugetlb.c hugetlb_hstate_alloc_pages_errcheck() -> string_get_size()

Type Parameter Key Value
PARAM_VALUE 0 size 2097152,1073741824
PARAM_VALUE 1 blk_size 1
PARAM_VALUE 2 units 1
PARAM_VALUE 3 buf 5235303922216034304
PARAM_VALUE 4 len 32
BUF_SIZE 3 buf 32
NOCHECK_CALL
HALF_LOCKED2 irq

mm/hugetlb.c hugetlb_hstate_alloc_pages_onenode() -> string_get_size()

Type Parameter Key Value
PARAM_VALUE 0 size 2097152,1073741824
PARAM_VALUE 1 blk_size 1
PARAM_VALUE 2 units 1
PARAM_VALUE 3 buf 6800797453161132032
PARAM_VALUE 4 len 32
BUF_SIZE 3 buf 32
NOCHECK_CALL
HALF_LOCKED2 irq

mm/hugetlb.c hugetlb_init() -> string_get_size()

Type Parameter Key Value
PARAM_VALUE 1 blk_size 1
PARAM_VALUE 2 units 1
PARAM_VALUE 3 buf 4116115866031874048
PARAM_VALUE 4 len 32
BUF_SIZE 3 buf 32
NOCHECK_CALL

mm/hugetlb.c report_hugepages() -> string_get_size()

Type Parameter Key Value
PARAM_VALUE 1 blk_size 1
PARAM_VALUE 2 units 1
PARAM_VALUE 3 buf 9165419097788661760
PARAM_VALUE 4 len 32
BUF_SIZE 3 buf 32
NOCHECK_CALL

drivers/dax/kmem.c dev_dax_kmem_probe() -> string_get_size()

Type Parameter Key Value
PARAM_VALUE 1 blk_size 1
PARAM_VALUE 2 units 1
PARAM_VALUE 3 buf 6949842095507218432
PARAM_VALUE 4 len 16
BUF_SIZE 3 buf 16
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 4 len unit_byte

drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c fair_vram() -> string_get_size()

Type Parameter Key Value
PARAM_VALUE 1 blk_size 1
PARAM_VALUE 2 units 1
PARAM_VALUE 3 buf 6137829609092218880
PARAM_VALUE 4 len 10
BUF_SIZE 3 buf 10
CAPPED_DATA 0 size 1
NOCHECK_CALL
UNITS 4 len unit_byte

drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c pf_config_bulk_set_u64_done() -> string_get_size()

Type Parameter Key Value
PARAM_VALUE 1 blk_size 1
PARAM_VALUE 2 units 1
PARAM_VALUE 3 buf 2471140157140004864
PARAM_VALUE 4 len 10
BUF_SIZE 3 buf 10
DATA_SOURCE 0 size r get
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 4 len unit_byte
HALF_LOCKED2 _T->lock

drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c pf_config_set_u64_done() -> string_get_size()

Type Parameter Key Value
PARAM_VALUE 1 blk_size 1
PARAM_VALUE 2 units 1
PARAM_VALUE 3 buf 5375952165813239808
PARAM_VALUE 4 len 10
BUF_SIZE 3 buf 10
DATA_SOURCE 0 size $2
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 0 size 0-u64max
UNITS 4 len unit_byte
HALF_LOCKED2 &attr->mutex
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 _T->lock

drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c pf_config_set_u64_done() -> string_get_size()

Type Parameter Key Value
PARAM_VALUE 1 blk_size 1
PARAM_VALUE 2 units 1
PARAM_VALUE 3 buf 5375952165813239808
PARAM_VALUE 4 len 10
BUF_SIZE 3 buf 10
DATA_SOURCE 0 size $3
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 0 size 134217729-u64max
UNITS 4 len unit_byte
HALF_LOCKED2 &attr->mutex
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 _T->lock

drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c pf_config_set_u64_done() -> string_get_size()

Type Parameter Key Value
PARAM_VALUE 1 blk_size 1
PARAM_VALUE 2 units 1
PARAM_VALUE 3 buf 5375952165813239808
PARAM_VALUE 4 len 10
BUF_SIZE 3 buf 10
DATA_SOURCE 0 size $3
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 0 size 134217729-u64max
UNITS 4 len unit_byte
HALF_LOCKED2 &attr->mutex
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 _T->lock

drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c u64_param_get_desc() -> string_get_size()

Type Parameter Key Value
PARAM_VALUE 1 blk_size 1
PARAM_VALUE 2 units 1
PARAM_VALUE 3 buf 4096-ptr_max
PARAM_VALUE 4 len 128
BUF_SIZE 3 buf 128
BUF_SIZE 3 buf 128
DATA_SOURCE 3 buf $1
TERMINATED 3 buf 1
NOCHECK_CALL
LOCK2 global &kunit_run_lock

drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c xe_gt_sriov_pf_config_print_available_ggtt() -> string_get_size()

Type Parameter Key Value
PARAM_VALUE 1 blk_size 1
PARAM_VALUE 2 units 1
PARAM_VALUE 3 buf 566673222479605760
PARAM_VALUE 4 len 10
BUF_SIZE 3 buf 10
DATA_SOURCE 0 size r xe_ggtt_print_holes
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 4 len unit_byte
LOCK2 &m->lock
TYPE_LOCK (struct seq_file)->lock

drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c xe_gt_sriov_pf_config_print_available_ggtt() -> string_get_size()

Type Parameter Key Value
PARAM_VALUE 0 size 4096-u64max
PARAM_VALUE 1 blk_size 1
PARAM_VALUE 2 units 1
PARAM_VALUE 3 buf 566673222479605760
PARAM_VALUE 4 len 10
BUF_SIZE 3 buf 10
DATA_SOURCE 0 size r pf_get_spare_ggtt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 4 len unit_byte
LOCK2 &m->lock
TYPE_LOCK (struct seq_file)->lock

drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c xe_gt_sriov_pf_config_print_available_ggtt() -> string_get_size()

Type Parameter Key Value
PARAM_VALUE 1 blk_size 1
PARAM_VALUE 2 units 1
PARAM_VALUE 3 buf 566673222479605760
PARAM_VALUE 4 len 10
BUF_SIZE 3 buf 10
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 4 len unit_byte
LOCK2 &m->lock
TYPE_LOCK (struct seq_file)->lock

drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c xe_gt_sriov_pf_config_print_ggtt() -> string_get_size()

Type Parameter Key Value
PARAM_VALUE 1 blk_size 1
PARAM_VALUE 2 units 1
PARAM_VALUE 3 buf 8627463377875374080
PARAM_VALUE 4 len 10
BUF_SIZE 3 buf 10
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 4 len unit_byte
LOCK2 &m->lock
TYPE_LOCK (struct seq_file)->lock

drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c xe_gt_sriov_pf_config_print_lmem() -> string_get_size()

Type Parameter Key Value
PARAM_VALUE 1 blk_size 1
PARAM_VALUE 2 units 1
PARAM_VALUE 3 buf 8688649728720371712
PARAM_VALUE 4 len 10
BUF_SIZE 3 buf 10
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 4 len unit_byte
LOCK2 &m->lock
TYPE_LOCK (struct seq_file)->lock

drivers/mtd/spi-nor/debugfs.c spi_nor_params_show() -> string_get_size()

Type Parameter Key Value
PARAM_VALUE 1 blk_size 1
PARAM_VALUE 2 units 1
PARAM_VALUE 3 buf 3788618444962009088
PARAM_VALUE 4 len 16
BUF_SIZE 3 buf 16
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 4 len unit_byte
LOCK2 &s->lock
TYPE_LOCK (struct seq_file)->lock

drivers/mtd/spi-nor/debugfs.c spi_nor_params_show() -> string_get_size()

Type Parameter Key Value
PARAM_VALUE 0 size 1-u32max
PARAM_VALUE 1 blk_size 1
PARAM_VALUE 2 units 1
PARAM_VALUE 3 buf 3788618444962009088
PARAM_VALUE 4 len 16
BUF_SIZE 3 buf 16
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 0 size unit_byte
UNITS 4 len unit_byte
LOCK2 &s->lock
TYPE_LOCK (struct seq_file)->lock

drivers/mtd/spi-nor/debugfs.c spi_nor_params_show() -> string_get_size()

Type Parameter Key Value
PARAM_VALUE 1 blk_size 1
PARAM_VALUE 2 units 1
PARAM_VALUE 3 buf 3788618444962009088
PARAM_VALUE 4 len 16
BUF_SIZE 3 buf 16
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 4 len unit_byte
LOCK2 &s->lock
TYPE_LOCK (struct seq_file)->lock

mm/memblock.c memblock_reserve_mem_show() -> string_get_size()

Type Parameter Key Value
PARAM_VALUE 0 size 1-u64max
PARAM_VALUE 1 blk_size 1
PARAM_VALUE 2 units 1
PARAM_VALUE 3 buf 0,7920010134099230720
PARAM_VALUE 4 len 16
BUF_SIZE 3 buf 16
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 0 size unit_byte
UNITS 4 len unit_byte
LOCK2 &m->lock
LOCK2 _T->lock
TYPE_LOCK (struct seq_file)->lock

drivers/block/virtio_blk.c virtblk_update_capacity() -> string_get_size()

Type Parameter Key Value
PARAM_VALUE 1 blk_size 0-u32max
PARAM_VALUE 2 units 1
PARAM_VALUE 3 buf 634905416483778560
PARAM_VALUE 4 len 10
BUF_SIZE 3 buf 10
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 4 len unit_byte

drivers/block/virtio_blk.c virtblk_update_capacity() -> string_get_size()

Type Parameter Key Value
PARAM_VALUE 1 blk_size 0-u32max
PARAM_VALUE 2 units 0
PARAM_VALUE 3 buf 7443359736630419456
PARAM_VALUE 4 len 10
BUF_SIZE 3 buf 10
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 4 len unit_byte

drivers/gpu/drm/gud/gud_drv.c gud_stats_debugfs() -> string_get_size()

Type Parameter Key Value
PARAM_VALUE 1 blk_size 1
PARAM_VALUE 2 units 1
PARAM_VALUE 3 buf 4531565400646819840
PARAM_VALUE 4 len 10
BUF_SIZE 3 buf 10
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 4 len unit_byte
LOCK2 &m->lock
TYPE_LOCK (struct seq_file)->lock

drivers/gpu/drm/xe/xe_gt_sriov_vf.c vf_get_lmem_info() -> string_get_size()

Type Parameter Key Value
PARAM_VALUE 1 blk_size 1
PARAM_VALUE 2 units 1
PARAM_VALUE 3 buf 8468004274594643968
PARAM_VALUE 4 len 10
BUF_SIZE 3 buf 10
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 4 len unit_byte
HALF_LOCKED2 &pool->lock

drivers/gpu/drm/xe/xe_gt_sriov_vf.c xe_gt_sriov_vf_print_config() -> string_get_size()

Type Parameter Key Value
PARAM_VALUE 1 blk_size 1
PARAM_VALUE 2 units 1
PARAM_VALUE 3 buf 2172299083367260160
PARAM_VALUE 4 len 10
BUF_SIZE 3 buf 10
DATA_SOURCE 0 size r xe_tile_sriov_vf_ggtt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 4 len unit_byte
LOCK2 &m->lock
TYPE_LOCK (struct seq_file)->lock

drivers/gpu/drm/xe/xe_gt_sriov_vf.c xe_gt_sriov_vf_print_config() -> string_get_size()

Type Parameter Key Value
PARAM_VALUE 1 blk_size 1
PARAM_VALUE 2 units 1
PARAM_VALUE 3 buf 2172299083367260160
PARAM_VALUE 4 len 10
BUF_SIZE 3 buf 10
DATA_SOURCE 0 size r xe_tile_sriov_vf_lmem
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 4 len unit_byte
LOCK2 &m->lock
TYPE_LOCK (struct seq_file)->lock

lib/tests/string_helpers_kunit.c __test_string_get_size_one() -> string_get_size()

Type Parameter Key Value
PARAM_VALUE 0 size 0-1,1100,3000,4096,8192,16384,500118192,u64max
PARAM_VALUE 1 blk_size 1,512,1900,4096,u64max
PARAM_VALUE 3 buf 430721587850031104
PARAM_VALUE 4 len 16
BUF_SIZE 3 buf 16
DATA_SOURCE 0 size $1
DATA_SOURCE 1 blk_size $2
STR_LEN 0 size 3,5,7-8
STR_LEN 0 size 3,5,7-8
HARD_MAX 0 size u64max
HARD_MAX 1 blk_size u64max
NOCHECK_CALL
UNITS 4 len unit_byte

lib/tests/string_helpers_kunit.c __test_string_get_size_one() -> string_get_size()

Type Parameter Key Value
PARAM_VALUE 0 size 0-1,1100,3000,4096,8192,16384,500118192,u64max
PARAM_VALUE 1 blk_size 1,512,1900,4096,u64max
PARAM_VALUE 3 buf 2187427522850258944
PARAM_VALUE 4 len 16
BUF_SIZE 3 buf 16
DATA_SOURCE 0 size $1
DATA_SOURCE 1 blk_size $2
STR_LEN 0 size 3,5,7-8
STR_LEN 0 size 3,5,7-8
BIT_INFO 2 units 0x1,0xffffffff
HARD_MAX 0 size u64max
HARD_MAX 1 blk_size u64max
NOCHECK_CALL
UNITS 4 len unit_byte