/linux-6.6.21/scripts/coccinelle/misc/ |
D | array_size_dup.cocci | 3 /// 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/ |
D | rockchip-efuse.c | 117 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/ |
D | memory-allocation.rst | 111 辅助程序。辅助程序struct_size()、array_size()和array3_size()可以用来安全地计算对
|
/linux-6.6.21/tools/include/linux/ |
D | overflow.h | 104 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/ |
D | sysfile.c | 57 kzalloc(array3_size(sizeof(struct inode *), in get_local_system_inode()
|
/linux-6.6.21/drivers/scsi/fnic/ |
D | fnic_debugfs.c | 205 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/ |
D | overflow.h | 261 #define array3_size(a, b, c) size_mul(size_mul(a, b), c) macro
|
/linux-6.6.21/drivers/isdn/mISDN/ |
D | fsm.c | 27 kzalloc(array3_size(sizeof(FSMFNPTR), fsm->state_count, in mISDN_FsmNew()
|
/linux-6.6.21/drivers/gpu/drm/nouveau/nvkm/core/ |
D | event.c | 204 event->refs = kzalloc(array3_size(index_nr, types_nr, sizeof(*event->refs)), GFP_KERNEL); in __nvkm_event_init()
|
/linux-6.6.21/drivers/mfd/ |
D | motorola-cpcap.c | 174 array3_size(sizeof(*cpcap->irqs), in cpcap_init_irq()
|
/linux-6.6.21/drivers/crypto/intel/qat/qat_common/ |
D | adf_heartbeat.c | 61 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/ |
D | pinctrl-lantiq.c | 159 *map = kzalloc(array3_size(max_maps, sizeof(struct pinctrl_map), 2), in ltq_pinctrl_dt_node_to_map()
|
D | pinctrl-single.c | 1137 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/ |
D | ctrl.c | 352 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/ |
D | pcm.c | 158 kmalloc(array3_size(line6pcm->line6->iso_buffers, in line6_buffer_acquire()
|
/linux-6.6.21/fs/afs/ |
D | cmservice.c | 258 call->buffer = kmalloc(array3_size(call->count, 3, 4), in afs_deliver_cb_callback()
|
/linux-6.6.21/lib/ |
D | test_firmware.c | 937 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()
|
D | test_rhashtable.c | 749 objs = vzalloc(array3_size(sizeof(struct test_obj), tcount, entries)); in test_rht_init()
|
/linux-6.6.21/drivers/hwmon/ |
D | i5k_amb.c | 264 data->attrs = kzalloc(array3_size(num_ambs, KNOBS_PER_AMB, in i5k_amb_hwmon_init()
|
/linux-6.6.21/drivers/input/rmi4/ |
D | rmi_f54.c | 684 array3_size(tx, rx, sizeof(u16)), in rmi_f54_probe()
|
/linux-6.6.21/drivers/staging/media/atomisp/pci/ |
D | sh_css_params.c | 103 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/ |
D | raid0.c | 145 conf->devlist = kzalloc(array3_size(sizeof(struct md_rdev *), in create_strip_zones()
|
/linux-6.6.21/sound/core/oss/ |
D | pcm_plugin.c | 65 size = array3_size(frames, format->channels, width); in snd_pcm_plugin_alloc()
|
/linux-6.6.21/Documentation/core-api/ |
D | memory-allocation.rst | 138 helpers. The helpers struct_size(), array_size() and array3_size() can
|
/linux-6.6.21/drivers/media/common/v4l2-tpg/ |
D | v4l2-tpg-core.c | 123 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()
|