| /linux-6.15/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() 245 offset = round_up(4 + struct_size_t(struct wmfw_short_string, data, name_len), in cs_dsp_mock_wmfw_start_alg_info_block() 325 ple32 += round_up(struct_size_t(struct wmfw_short_string, data, shortname_len), in cs_dsp_mock_wmfw_add_coeff_desc() 333 ple32 += round_up(struct_size_t(struct wmfw_short_string, data, fullname_len), in cs_dsp_mock_wmfw_add_coeff_desc() 341 ple32 += round_up(struct_size_t(struct wmfw_long_string, data, description_len), in cs_dsp_mock_wmfw_add_coeff_desc() 381 offset += round_up(struct_size_t(struct wmfw_short_string, data, shortstring->len), in cs_dsp_mock_wmfw_end_alg_info_block() 386 offset += round_up(struct_size_t(struct wmfw_long_string, data, in cs_dsp_mock_wmfw_end_alg_info_block()
|
| H A D | cs_dsp_mock_bin.c | 69 size_t bytes_needed = struct_size_t(struct wmfw_coeff_item, data, payload_len_bytes); in cs_dsp_mock_bin_add_raw_block()
|
| /linux-6.15/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-6.15/include/linux/ |
| H A D | overflow.h | 388 #define struct_size_t(type, member, count) \ macro 405 u8 bytes[struct_size_t(type, member, count)]; \
|
| /linux-6.15/fs/xfs/scrub/ |
| H A D | btree.h | 63 return struct_size_t(struct xchk_btree, lastkey, nlevels - 1); in xchk_btree_sizeof()
|
| /linux-6.15/security/landlock/ |
| H A D | domain.h | 69 static_assert(struct_size_t(struct landlock_details, exe_path,
|
| /linux-6.15/kernel/ |
| H A D | pid_namespace.c | 52 len = struct_size_t(struct pid, numbers, level + 1); in create_pid_cachep()
|
| H A D | pid.c | 785 struct_size_t(struct pid, numbers, 1), in pid_idr_init()
|
| /linux-6.15/fs/xfs/libxfs/ |
| H A D | xfs_btree.h | 315 return struct_size_t(struct xfs_btree_cur, bc_levels, nlevels); in xfs_btree_cur_sizeof()
|
| /linux-6.15/io_uring/ |
| H A D | rsrc.c | 121 return kvmalloc(struct_size_t(struct io_mapped_ubuf, bvec, nr_bvecs), in io_alloc_imu() 160 const int imu_cache_size = struct_size_t(struct io_mapped_ubuf, bvec, in io_rsrc_cache_init()
|
| /linux-6.15/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-6.15/drivers/scsi/megaraid/ |
| H A D | megaraid_sas_fp.c | 329 expected_size = struct_size_t(struct MR_FW_RAID_MAP, in MR_ValidateMapInfo()
|
| H A D | megaraid_sas_base.c | 5160 struct_size_t(struct MR_FW_RAID_MAP, ldSpanMap, in megasas_update_ext_vd_details() 5796 pd_seq_map_sz = struct_size_t(struct MR_PD_CFG_SEQ_NUM_SYNC, seq, in megasas_setup_jbod_map() 8040 struct_size_t(struct MR_PD_CFG_SEQ_NUM_SYNC, in megasas_detach_one()
|
| /linux-6.15/drivers/nvme/host/ |
| H A D | fc.c | 2878 struct_size_t(struct nvme_fcp_op_w_sgl, priv, in nvme_fc_create_io_queues() 3533 struct_size_t(struct nvme_fcp_op_w_sgl, priv, in nvme_fc_init_ctrl()
|
| /linux-6.15/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-6.15/lib/tests/ |
| H A D | overflow_kunit.c | 709 u8 ce_array[struct_size_t(struct __test_flex_array, data, 55)]; in overflow_size_helpers_test()
|
| /linux-6.15/drivers/scsi/ |
| H A D | hptiop.c | 1397 req_size = struct_size_t(struct hpt_iop_request_scsi_command, in hptiop_probe()
|
| /linux-6.15/drivers/net/wireless/realtek/rtw89/ |
| H A D | core.c | 5243 hw->vif_data_size = struct_size_t(struct rtw89_vif, links_inst, n); in rtw89_core_register_hw() 5244 hw->sta_data_size = struct_size_t(struct rtw89_sta, links_inst, n); in rtw89_core_register_hw()
|
| /linux-6.15/net/ethtool/ |
| H A D | ioctl.c | 1338 size = struct_size_t(struct ethtool_rxfh_context, data, flex_len); in ethtool_rxfh_ctx_alloc()
|
| /linux-6.15/drivers/md/ |
| H A D | raid5.c | 2425 struct_size_t(struct stripe_head, dev, devs), in grow_stripes() 2549 struct_size_t(struct stripe_head, dev, newsize), in resize_stripes()
|
| /linux-6.15/kernel/sched/ |
| H A D | ext.c | 5391 scx_dsp_ctx = __alloc_percpu(struct_size_t(struct scx_dsp_ctx, buf, in scx_ops_enable()
|
| /linux-6.15/drivers/scsi/smartpqi/ |
| H A D | smartpqi_init.c | 5054 struct_size_t(struct pqi_event_config, descriptors, PQI_MAX_EVENT_DESCRIPTORS)
|
| /linux-6.15/net/core/ |
| H A D | dev.c | 6244 return kmalloc(struct_size_t(struct flush_backlogs, w, nr_cpu_ids), in flush_backlogs_alloc()
|
| /linux-6.15/net/netfilter/ |
| H A D | nf_tables_api.c | 7774 struct_size_t(struct nft_trans_elem, elems, 1), in nft_setelem_flush()
|