/Linux-v6.6/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-v6.6/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-v6.6/Documentation/translations/zh_CN/core-api/ |
D | memory-allocation.rst | 111 辅助程序。辅助程序struct_size()、array_size()和array3_size()可以用来安全地计算对
|
/Linux-v6.6/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-v6.6/fs/ocfs2/ |
D | sysfile.c | 57 kzalloc(array3_size(sizeof(struct inode *), in get_local_system_inode()
|
/Linux-v6.6/drivers/scsi/fnic/ |
D | fnic_debugfs.c | 204 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/ |
D | overflow.h | 261 #define array3_size(a, b, c) size_mul(size_mul(a, b), c) macro
|
/Linux-v6.6/drivers/isdn/mISDN/ |
D | fsm.c | 27 kzalloc(array3_size(sizeof(FSMFNPTR), fsm->state_count, in mISDN_FsmNew()
|
/Linux-v6.6/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-v6.6/drivers/mfd/ |
D | motorola-cpcap.c | 174 array3_size(sizeof(*cpcap->irqs), in cpcap_init_irq()
|
/Linux-v6.6/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-v6.6/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-v6.6/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-v6.6/fs/afs/ |
D | cmservice.c | 258 call->buffer = kmalloc(array3_size(call->count, 3, 4), in afs_deliver_cb_callback()
|
/Linux-v6.6/sound/usb/line6/ |
D | pcm.c | 158 kmalloc(array3_size(line6pcm->line6->iso_buffers, in line6_buffer_acquire()
|
/Linux-v6.6/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-v6.6/drivers/hwmon/ |
D | i5k_amb.c | 264 data->attrs = kzalloc(array3_size(num_ambs, KNOBS_PER_AMB, in i5k_amb_hwmon_init()
|
/Linux-v6.6/drivers/input/rmi4/ |
D | rmi_f54.c | 684 array3_size(tx, rx, sizeof(u16)), in rmi_f54_probe()
|
/Linux-v6.6/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-v6.6/Documentation/core-api/ |
D | memory-allocation.rst | 138 helpers. The helpers struct_size(), array_size() and array3_size() can
|
/Linux-v6.6/sound/core/oss/ |
D | pcm_plugin.c | 65 size = array3_size(frames, format->channels, width); in snd_pcm_plugin_alloc()
|
/Linux-v6.6/drivers/md/ |
D | raid0.c | 145 conf->devlist = kzalloc(array3_size(sizeof(struct md_rdev *), in create_strip_zones()
|
/Linux-v6.6/drivers/devfreq/ |
D | devfreq.c | 876 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()
|