| /linux/drivers/firmware/cirrus/test/ |
| H A D | cs_dsp_mock_wmfw.c | 104 unsigned int bytes_needed = struct_size_t(struct wmfw_region, data, payload_len_bytes); in cs_dsp_mock_wmfw_add_raw_block() 248 offset = round_up(4 + struct_size_t(struct wmfw_short_string, data, name_len), in cs_dsp_mock_wmfw_start_alg_info_block() 328 ple32 += round_up(struct_size_t(struct wmfw_short_string, data, shortname_len), in cs_dsp_mock_wmfw_add_coeff_desc() 336 ple32 += round_up(struct_size_t(struct wmfw_short_string, data, fullname_len), in cs_dsp_mock_wmfw_add_coeff_desc() 344 ple32 += round_up(struct_size_t(struct wmfw_long_string, data, description_len), in cs_dsp_mock_wmfw_add_coeff_desc() 384 offset += round_up(struct_size_t(struct wmfw_short_string, data, shortstring->len), in cs_dsp_mock_wmfw_end_alg_info_block() 389 offset += round_up(struct_size_t(struct wmfw_long_string, data, in cs_dsp_mock_wmfw_end_alg_info_block()
|
| /linux/drivers/net/ethernet/intel/ice/ |
| H A D | ice_ddp.h | 214 struct_size_t(struct ice_buf_hdr, section_entry, 1) - (hd_sz)) / \ 334 ICE_MAX_ENTRIES_IN_BUF(struct_size_t(struct ice_label_section, \ 389 ICE_MAX_ENTRIES_IN_BUF(struct_size_t(struct ice_boost_tcam_section, \ 409 ICE_MAX_ENTRIES_IN_BUF(struct_size_t(struct ice_marker_ptype_tcam_section, tcam, \
|
| /linux/fs/xfs/scrub/ |
| H A D | btree.h | 63 return struct_size_t(struct xchk_btree, lastkey, nlevels - 1); in xchk_btree_sizeof()
|
| /linux/security/landlock/ |
| H A D | domain.h | 69 static_assert(struct_size_t(struct landlock_details, exe_path,
|
| /linux/include/linux/ |
| H A D | overflow.h | 452 #define struct_size_t(type, member, count) \ macro 481 u8 bytes[struct_size_t(type, member, count)]; \
|
| H A D | slab.h | 993 const size_t __obj_size = struct_size_t(TYPE, FAM, __count); \
|
| /linux/drivers/md/dm-pcache/ |
| H A D | cache.h | 19 #define PCACHE_KSET_ONMEDIA_SIZE_MAX struct_size_t(struct pcache_cache_kset_onmedia, data, PCACHE_K… 508 return struct_size_t(struct pcache_cache_kset_onmedia, data, kset_onmedia->key_num); in get_kset_onmedia_size()
|
| /linux/scripts/coccinelle/api/ |
| H A D | kmalloc_objs.cocci | 122 - ALLOC(struct_size_t(TYPE, FLEX, COUNT), GFP)
|
| /linux/fs/xfs/libxfs/ |
| H A D | xfs_btree.h | 318 return struct_size_t(struct xfs_btree_cur, bc_levels, nlevels); in xfs_btree_cur_sizeof()
|
| /linux/net/rxrpc/ |
| H A D | key.c | 214 token->rxgk = kzalloc(struct_size_t(struct rxgk_key, _key, raw_keylen), GFP_KERNEL); in rxrpc_preparse_xdr_yfs_rxgk()
|
| /linux/drivers/net/usb/ |
| H A D | cdc_ncm.c | 1679 ndp_len = struct_size_t(struct usb_cdc_ncm_ndp16, dpe16, ret); in cdc_ncm_rx_verify_ndp16() 1716 ndp_len = struct_size_t(struct usb_cdc_ncm_ndp32, dpe32, ret); in cdc_ncm_rx_verify_ndp32()
|
| /linux/include/net/libeth/ |
| H A D | xdp.h | 97 struct_size_t(struct libeth_xdp_buff, priv, \
|
| /linux/drivers/scsi/megaraid/ |
| H A D | megaraid_sas_fp.c | 329 expected_size = struct_size_t(struct MR_FW_RAID_MAP, in MR_ValidateMapInfo()
|
| /linux/drivers/media/platform/qcom/venus/ |
| H A D | hfi_cmds.c | 254 struct_size_t(struct hfi_session_set_buffers_pkt, in pkt_session_unset_buffers()
|
| /linux/io_uring/ |
| H A D | rsrc.c | 156 const int imu_cache_size = struct_size_t(struct io_mapped_ubuf, bvec, in io_rsrc_cache_init()
|
| /linux/drivers/nvme/host/ |
| H A D | fc.c | 2883 struct_size_t(struct nvme_fcp_op_w_sgl, priv, in nvme_fc_create_io_queues() 3552 struct_size_t(struct nvme_fcp_op_w_sgl, priv, in nvme_fc_init_ctrl()
|
| /linux/drivers/net/hyperv/ |
| H A D | netvsc.c | 869 struct_size_t(struct nvsp_1_message_send_receive_buffer_complete, in netvsc_send_completion()
|
| /linux/mm/ |
| H A D | slub.c | 7732 size = struct_size_t(struct slab_sheaf, objects, capacity); in calculate_sheaf_capacity() 7734 capacity = (size - struct_size_t(struct slab_sheaf, objects, 0)) / sizeof(void *); in calculate_sheaf_capacity()
|
| H A D | memcontrol.c | 5454 memcg_size = struct_size_t(struct mem_cgroup, nodeinfo, nr_node_ids); in mem_cgroup_init()
|
| /linux/sound/soc/codecs/ |
| H A D | cs-amp-lib-test.c | 262 struct_size_t(struct cirrus_amp_efi_data, data, 8)
|
| /linux/drivers/md/ |
| H A D | raid5.c | 2421 struct_size_t(struct stripe_head, dev, devs), in grow_stripes() 2545 struct_size_t(struct stripe_head, dev, newsize), in resize_stripes()
|
| /linux/kernel/sched/ |
| H A D | ext.c | 6537 sch->pcpu = __alloc_percpu(struct_size_t(struct scx_sched_pcpu, in scx_alloc_and_add_sched()
|
| /linux/net/netfilter/ |
| H A D | nf_tables_api.c | 7917 struct_size_t(struct nft_trans_elem, elems, 1)); in nft_setelem_flush()
|