Home
last modified time | relevance | path

Searched refs:array3_size (Results 1 – 25 of 42) sorted by relevance

12

/linux-6.6.21/scripts/coccinelle/misc/
Darray_size_dup.cocci3 /// Check for array_size(), array3_size(), struct_size() duplicates.
87 array3_size(E1, E2, E3)
101 * array3_size(E1, E2, E3)@p2
108 msg = "WARNING: array3_size is used later (line %s) to compute the same size" % (p2[0].line)
116 msg = "WARNING: array3_size is used later (line %s) to compute the same size" % (p2[0].line)
128 * array3_size(E1, E2, E3)@p1
138 msg = "WARNING: array3_size is already used (line %s) to compute the same size" % (p1[0].line)
146 msg = "WARNING: array3_size is already used (line %s) to compute the same size" % (p1[0].line)
/linux-6.6.21/drivers/nvmem/
Drockchip-efuse.c117 buf = kzalloc(array3_size(addr_len, RK3399_NBYTES, sizeof(*buf)), in rockchip_rk3328_efuse_read()
170 buf = kzalloc(array3_size(addr_len, RK3399_NBYTES, sizeof(*buf)), in rockchip_rk3399_efuse_read()
/linux-6.6.21/Documentation/translations/zh_CN/core-api/
Dmemory-allocation.rst111 辅助程序。辅助程序struct_size()、array_size()和array3_size()可以用来安全地计算对
/linux-6.6.21/tools/include/linux/
Doverflow.h104 static inline __must_check size_t array3_size(size_t a, size_t b, size_t c) in array3_size() function
/linux-6.6.21/fs/ocfs2/
Dsysfile.c57 kzalloc(array3_size(sizeof(struct inode *), in get_local_system_inode()
/linux-6.6.21/drivers/scsi/fnic/
Dfnic_debugfs.c205 fnic_dbg_prt->buffer = vzalloc(array3_size(3, trace_max_pages, in fnic_trace_debugfs_open()
214 vzalloc(array3_size(3, fnic_fc_trace_max_pages, in fnic_trace_debugfs_open()
/linux-6.6.21/include/linux/
Doverflow.h261 #define array3_size(a, b, c) size_mul(size_mul(a, b), c) macro
/linux-6.6.21/drivers/isdn/mISDN/
Dfsm.c27 kzalloc(array3_size(sizeof(FSMFNPTR), fsm->state_count, in mISDN_FsmNew()
/linux-6.6.21/drivers/gpu/drm/nouveau/nvkm/core/
Devent.c204 event->refs = kzalloc(array3_size(index_nr, types_nr, sizeof(*event->refs)), GFP_KERNEL); in __nvkm_event_init()
/linux-6.6.21/drivers/mfd/
Dmotorola-cpcap.c174 array3_size(sizeof(*cpcap->irqs), in cpcap_init_irq()
/linux-6.6.21/drivers/crypto/intel/qat/qat_common/
Dadf_heartbeat.c61 const size_t exp_diff_size = array3_size(ADF_NUM_PKE_STRAND, max_aes, in validate_hb_ctrs_cnt()
/linux-6.6.21/drivers/pinctrl/
Dpinctrl-lantiq.c159 *map = kzalloc(array3_size(max_maps, sizeof(struct pinctrl_map), 2), in ltq_pinctrl_dt_node_to_map()
Dpinctrl-single.c1137 array3_size(rows, npins_in_row, sizeof(*vals)), in pcs_parse_bits_in_pinctrl_entry()
1143 array3_size(rows, npins_in_row, sizeof(*pins)), in pcs_parse_bits_in_pinctrl_entry()
/linux-6.6.21/drivers/net/ethernet/netronome/nfp/abm/
Dctrl.c352 size = array3_size(size, abm->num_bands, NFP_NET_MAX_RX_RINGS); in nfp_abm_ctrl_find_q_rtsym()
/linux-6.6.21/sound/usb/line6/
Dpcm.c158 kmalloc(array3_size(line6pcm->line6->iso_buffers, in line6_buffer_acquire()
/linux-6.6.21/fs/afs/
Dcmservice.c258 call->buffer = kmalloc(array3_size(call->count, 3, 4), in afs_deliver_cb_callback()
/linux-6.6.21/lib/
Dtest_firmware.c937 vzalloc(array3_size(sizeof(struct test_batched_req), in trigger_batched_requests_store()
1041 vzalloc(array3_size(sizeof(struct test_batched_req), in trigger_batched_requests_async_store()
Dtest_rhashtable.c749 objs = vzalloc(array3_size(sizeof(struct test_obj), tcount, entries)); in test_rht_init()
/linux-6.6.21/drivers/hwmon/
Di5k_amb.c264 data->attrs = kzalloc(array3_size(num_ambs, KNOBS_PER_AMB, in i5k_amb_hwmon_init()
/linux-6.6.21/drivers/input/rmi4/
Drmi_f54.c684 array3_size(tx, rx, sizeof(u16)), in rmi_f54_probe()
/linux-6.6.21/drivers/staging/media/atomisp/pci/
Dsh_css_params.c103 return array3_size(sizeof(char), in fpntbl_bytes()
111 array3_size(binary->sctbl_height, in sctbl_bytes()
118 return array3_size(SH_CSS_MORPH_TABLE_ELEM_BYTES, in morph_plane_bytes()
963 params->fpn_config.data = kvmalloc(array3_size(height, width, sizeof(short)), in sh_css_set_black_frame()
/linux-6.6.21/drivers/md/
Draid0.c145 conf->devlist = kzalloc(array3_size(sizeof(struct md_rdev *), in create_strip_zones()
/linux-6.6.21/sound/core/oss/
Dpcm_plugin.c65 size = array3_size(frames, format->channels, width); in snd_pcm_plugin_alloc()
/linux-6.6.21/Documentation/core-api/
Dmemory-allocation.rst138 helpers. The helpers struct_size(), array_size() and array3_size() can
/linux-6.6.21/drivers/media/common/v4l2-tpg/
Dv4l2-tpg-core.c123 vzalloc(array3_size(max_w, 2, pixelsz)); in tpg_alloc()
129 vzalloc(array3_size(max_w, 2, pixelsz)); in tpg_alloc()
146 vzalloc(array3_size(max_w, 2, pixelsz)); in tpg_alloc()

12