Home
last modified time | relevance | path

Searched refs:arr_sz (Results 1 – 12 of 12) sorted by relevance

/linux-6.1.9/drivers/memory/
Dof_memory.c110 u32 arr_sz = 0, i = 0; in of_get_ddr_timings() local
125 arr_sz++; in of_get_ddr_timings()
127 if (arr_sz) in of_get_ddr_timings()
128 timings = devm_kcalloc(dev, arr_sz, sizeof(*timings), in of_get_ddr_timings()
145 *nr_frequencies = arr_sz; in of_get_ddr_timings()
261 u32 arr_sz = 0, i = 0; in of_lpddr3_get_ddr_timings() local
275 arr_sz++; in of_lpddr3_get_ddr_timings()
277 if (arr_sz) in of_lpddr3_get_ddr_timings()
278 timings = devm_kcalloc(dev, arr_sz, sizeof(*timings), in of_lpddr3_get_ddr_timings()
295 *nr_frequencies = arr_sz; in of_lpddr3_get_ddr_timings()
/linux-6.1.9/drivers/scsi/
Dconstants.c29 int arr_sz; member
265 int arr_sz, k; in scsi_opcode_sa_name() local
277 arr_sz = sa_name_ptr->arr_sz; in scsi_opcode_sa_name()
284 for (k = 0; k < arr_sz; ++k, ++arr) { in scsi_opcode_sa_name()
288 if (k < arr_sz) in scsi_opcode_sa_name()
/linux-6.1.9/tools/perf/util/
Dutil.c510 int do_realloc_array_as_needed(void **arr, size_t *arr_sz, size_t x, size_t msz, const void *init_v… in do_realloc_array_as_needed() argument
512 size_t new_sz = *arr_sz; in do_realloc_array_as_needed()
522 if (new_sz == *arr_sz) in do_realloc_array_as_needed()
527 memcpy(new_arr, *arr, *arr_sz * msz); in do_realloc_array_as_needed()
529 for (i = *arr_sz; i < new_sz; i++) in do_realloc_array_as_needed()
533 *arr_sz = new_sz; in do_realloc_array_as_needed()
Dthread-stack.c100 unsigned int arr_sz; member
179 unsigned int old_sz = ts ? ts->arr_sz : 0; in thread_stack__new()
191 new_ts->arr_sz = new_sz; in thread_stack__new()
198 (unsigned int)cpu < ts->arr_sz) in thread_stack__new()
215 if (!ts || (unsigned int)cpu >= ts->arr_sz) in thread__cpu_stack()
371 for (pos = 0; pos < ts->arr_sz; pos++) { in thread_stack__flush()
496 unsigned int arr_sz = ts->arr_sz; in thread_stack__reset() local
500 ts->arr_sz = arr_sz; in thread_stack__reset()
509 for (pos = 0; pos < ts->arr_sz; pos++) in thread_stack__free()
Dutil.h83 int do_realloc_array_as_needed(void **arr, size_t *arr_sz, size_t x,
/linux-6.1.9/arch/riscv/kernel/
Dcpu.c153 int i = 0, arr_sz; in print_isa_ext() local
155 arr_sz = ARRAY_SIZE(isa_ext_arr) - 1; in print_isa_ext()
158 if (arr_sz <= 0) in print_isa_ext()
161 for (i = 0; i <= arr_sz; i++) { in print_isa_ext()
/linux-6.1.9/tools/testing/selftests/bpf/progs/
Dtest_core_reloc_size.c23 int arr_sz; member
60 out->arr_sz = bpf_core_field_size(in->arr_field); in test_core_size()
Dcore_reloc_types.h794 int arr_sz; member
/linux-6.1.9/drivers/media/platform/qcom/venus/
Dhelpers.c343 size_t arr_sz, i; in venus_helper_intbufs_alloc() local
347 arr_sz = ARRAY_SIZE(intbuf_types_6xx); in venus_helper_intbufs_alloc()
350 arr_sz = ARRAY_SIZE(intbuf_types_4xx); in venus_helper_intbufs_alloc()
353 arr_sz = ARRAY_SIZE(intbuf_types_1xx); in venus_helper_intbufs_alloc()
357 for (i = 0; i < arr_sz; i++) { in venus_helper_intbufs_alloc()
/linux-6.1.9/drivers/scsi/bnx2fc/
Dbnx2fc_io.c222 int arr_sz = num_possible_cpus() + 1; in bnx2fc_cmd_mgr_alloc() local
244 cmgr->free_list = kcalloc(arr_sz, sizeof(*cmgr->free_list), in bnx2fc_cmd_mgr_alloc()
251 cmgr->free_list_lock = kcalloc(arr_sz, sizeof(*cmgr->free_list_lock), in bnx2fc_cmd_mgr_alloc()
262 for (i = 0; i < arr_sz; i++) { in bnx2fc_cmd_mgr_alloc()
/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/
Dcore_reloc.c288 .arr_sz = sizeof(((type *)0)->arr_field), \
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/
Dfs_core.c72 #define FS_REQUIRED_CAPS(...) {.arr_sz = INIT_CAPS_ARRAY_SIZE(__VA_ARGS__), \
144 size_t arr_sz; member
2496 for (i = 0; i < caps->arr_sz; i++) { in has_required_caps()