Home
last modified time | relevance | path

Searched refs:struct_size_t (Results 1 – 23 of 23) sorted by relevance

/linux/drivers/firmware/cirrus/test/
H A Dcs_dsp_mock_wmfw.c104 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 Dice_ddp.h214 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 Dbtree.h63 return struct_size_t(struct xchk_btree, lastkey, nlevels - 1); in xchk_btree_sizeof()
/linux/security/landlock/
H A Ddomain.h69 static_assert(struct_size_t(struct landlock_details, exe_path,
/linux/include/linux/
H A Doverflow.h452 #define struct_size_t(type, member, count) \ macro
481 u8 bytes[struct_size_t(type, member, count)]; \
H A Dslab.h993 const size_t __obj_size = struct_size_t(TYPE, FAM, __count); \
/linux/drivers/md/dm-pcache/
H A Dcache.h19 #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 Dkmalloc_objs.cocci122 - ALLOC(struct_size_t(TYPE, FLEX, COUNT), GFP)
/linux/fs/xfs/libxfs/
H A Dxfs_btree.h318 return struct_size_t(struct xfs_btree_cur, bc_levels, nlevels); in xfs_btree_cur_sizeof()
/linux/net/rxrpc/
H A Dkey.c214 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 Dcdc_ncm.c1679 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 Dxdp.h97 struct_size_t(struct libeth_xdp_buff, priv, \
/linux/drivers/scsi/megaraid/
H A Dmegaraid_sas_fp.c329 expected_size = struct_size_t(struct MR_FW_RAID_MAP, in MR_ValidateMapInfo()
/linux/drivers/media/platform/qcom/venus/
H A Dhfi_cmds.c254 struct_size_t(struct hfi_session_set_buffers_pkt, in pkt_session_unset_buffers()
/linux/io_uring/
H A Drsrc.c156 const int imu_cache_size = struct_size_t(struct io_mapped_ubuf, bvec, in io_rsrc_cache_init()
/linux/drivers/nvme/host/
H A Dfc.c2883 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 Dnetvsc.c869 struct_size_t(struct nvsp_1_message_send_receive_buffer_complete, in netvsc_send_completion()
/linux/mm/
H A Dslub.c7732 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 Dmemcontrol.c5454 memcg_size = struct_size_t(struct mem_cgroup, nodeinfo, nr_node_ids); in mem_cgroup_init()
/linux/sound/soc/codecs/
H A Dcs-amp-lib-test.c262 struct_size_t(struct cirrus_amp_efi_data, data, 8)
/linux/drivers/md/
H A Draid5.c2421 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 Dext.c6537 sch->pcpu = __alloc_percpu(struct_size_t(struct scx_sched_pcpu, in scx_alloc_and_add_sched()
/linux/net/netfilter/
H A Dnf_tables_api.c7917 struct_size_t(struct nft_trans_elem, elems, 1)); in nft_setelem_flush()