Home
last modified time | relevance | path

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

12

/Linux-v6.6/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-v6.6/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-v6.6/Documentation/translations/zh_CN/core-api/
Dmemory-allocation.rst111 辅助程序。辅助程序struct_size()、array_size()和array3_size()可以用来安全地计算对
/Linux-v6.6/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-v6.6/fs/ocfs2/
Dsysfile.c57 kzalloc(array3_size(sizeof(struct inode *), in get_local_system_inode()
/Linux-v6.6/drivers/scsi/fnic/
Dfnic_debugfs.c204 fnic_dbg_prt->buffer = vzalloc(array3_size(3, trace_max_pages, in fnic_trace_debugfs_open()
213 vzalloc(array3_size(3, fnic_fc_trace_max_pages, in fnic_trace_debugfs_open()
/Linux-v6.6/include/linux/
Doverflow.h261 #define array3_size(a, b, c) size_mul(size_mul(a, b), c) macro
/Linux-v6.6/drivers/isdn/mISDN/
Dfsm.c27 kzalloc(array3_size(sizeof(FSMFNPTR), fsm->state_count, in mISDN_FsmNew()
/Linux-v6.6/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-v6.6/drivers/mfd/
Dmotorola-cpcap.c174 array3_size(sizeof(*cpcap->irqs), in cpcap_init_irq()
/Linux-v6.6/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-v6.6/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-v6.6/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-v6.6/fs/afs/
Dcmservice.c258 call->buffer = kmalloc(array3_size(call->count, 3, 4), in afs_deliver_cb_callback()
/Linux-v6.6/sound/usb/line6/
Dpcm.c158 kmalloc(array3_size(line6pcm->line6->iso_buffers, in line6_buffer_acquire()
/Linux-v6.6/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-v6.6/drivers/hwmon/
Di5k_amb.c264 data->attrs = kzalloc(array3_size(num_ambs, KNOBS_PER_AMB, in i5k_amb_hwmon_init()
/Linux-v6.6/drivers/input/rmi4/
Drmi_f54.c684 array3_size(tx, rx, sizeof(u16)), in rmi_f54_probe()
/Linux-v6.6/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-v6.6/Documentation/core-api/
Dmemory-allocation.rst138 helpers. The helpers struct_size(), array_size() and array3_size() can
/Linux-v6.6/sound/core/oss/
Dpcm_plugin.c65 size = array3_size(frames, format->channels, width); in snd_pcm_plugin_alloc()
/Linux-v6.6/drivers/md/
Draid0.c145 conf->devlist = kzalloc(array3_size(sizeof(struct md_rdev *), in create_strip_zones()
/Linux-v6.6/drivers/devfreq/
Ddevfreq.c876 array3_size(sizeof(unsigned int), in devfreq_add_device()
1758 memset(df->stats.trans_table, 0, array3_size(sizeof(unsigned int), in trans_stat_store()

12