| /drivers/gpu/drm/amd/display/dc/basics/ |
| A D | vector.c | 33 uint32_t struct_size) in dal_vector_construct() argument 47 vector->struct_size = struct_size; in dal_vector_construct() 57 uint32_t struct_size) in dal_vector_presized_costruct() argument 82 struct_size); in dal_vector_presized_costruct() 86 vector->struct_size = struct_size; in dal_vector_presized_costruct() 95 uint32_t struct_size) in dal_vector_presized_create() argument 114 uint32_t struct_size) in dal_vector_create() argument 193 vector->struct_size); in dal_vector_set_at_index() 227 vector->struct_size); in dal_vector_insert_at() 256 vector->struct_size); in dal_vector_clone() [all …]
|
| /drivers/gpu/drm/amd/display/include/ |
| A D | vector.h | 31 uint32_t struct_size; member 41 uint32_t struct_size); 46 uint32_t struct_size); 54 uint32_t struct_size);
|
| /drivers/char/tpm/eventlog/ |
| A D | tpm2.c | 54 size = struct_size(event_header, event, event_header->event_size); in tpm2_bios_measurements_start() 100 event_size = struct_size(event_header, event, in tpm2_bios_measurements_next() 138 size = struct_size(event_header, event, in tpm2_binary_bios_measurements_show()
|
| /drivers/i2c/busses/ |
| A D | i2c-ljca.c | 74 struct_size(w_packet, data, 1), NULL, 0); in ljca_i2c_init() 94 struct_size(w_packet, data, 1), (u8 *)r_packet, in ljca_i2c_start() 124 struct_size(w_packet, data, 1), (u8 *)r_packet, in ljca_i2c_stop() 154 struct_size(w_packet, data, 1), (u8 *)r_packet, in ljca_i2c_pure_read() 200 struct_size(w_packet, data, len), (u8 *)r_packet, in ljca_i2c_pure_write()
|
| /drivers/net/wireless/intel/iwlwifi/mvm/ |
| A D | nvm.c | 444 struct_size(mcc_resp_v8, channels, n_channels)) { in iwl_mvm_update_mcc() 448 resp_len = struct_size(resp_cp, channels, n_channels); in iwl_mvm_update_mcc() 469 struct_size(mcc_resp_v4, channels, n_channels)) { in iwl_mvm_update_mcc() 473 resp_len = struct_size(resp_cp, channels, n_channels); in iwl_mvm_update_mcc() 494 struct_size(mcc_resp_v3, channels, n_channels)) { in iwl_mvm_update_mcc() 498 resp_len = struct_size(resp_cp, channels, n_channels); in iwl_mvm_update_mcc()
|
| /drivers/cxl/core/ |
| A D | features.c | 97 kvmalloc(struct_size(entries, ent, count), GFP_KERNEL); in get_supported_features() 106 hdr_size = struct_size(mbox_out, ents, 0); in get_supported_features() 119 alloc_size = struct_size(mbox_out, ents, max_feats); in get_supported_features() 123 alloc_size = struct_size(mbox_out, ents, remain_feats); in get_supported_features() 414 struct_size(feat_out, ents, requested); in cxlctl_get_supported_features() 421 rpc_out->size = struct_size(feat_out, ents, requested); in cxlctl_get_supported_features()
|
| /drivers/clk/imx/ |
| A D | clk-imx7ulp.c | 52 clk_data = kzalloc(struct_size(clk_data, hws, IMX7ULP_CLK_SCG1_END), in imx7ulp_clk_scg1_init() 141 clk_data = kzalloc(struct_size(clk_data, hws, IMX7ULP_CLK_PCC2_END), in imx7ulp_clk_pcc2_init() 189 clk_data = kzalloc(struct_size(clk_data, hws, IMX7ULP_CLK_PCC3_END), in imx7ulp_clk_pcc3_init() 236 clk_data = kzalloc(struct_size(clk_data, hws, IMX7ULP_CLK_SMC1_END), in imx7ulp_clk_smc1_init()
|
| A D | clk-imx8ulp.c | 152 clk_data = devm_kzalloc(dev, struct_size(clk_data, hws, IMX8ULP_CLK_CGC1_END), in imx8ulp_clk_cgc1_init() 236 clk_data = devm_kzalloc(dev, struct_size(clk_data, hws, IMX8ULP_CLK_CGC2_END), in imx8ulp_clk_cgc2_init() 319 clk_data = devm_kzalloc(dev, struct_size(clk_data, hws, IMX8ULP_CLK_PCC3_END), in imx8ulp_clk_pcc3_init() 402 clk_data = devm_kzalloc(dev, struct_size(clk_data, hws, IMX8ULP_CLK_PCC4_END), in imx8ulp_clk_pcc4_init() 457 clk_data = devm_kzalloc(dev, struct_size(clk_data, hws, IMX8ULP_CLK_PCC5_END), in imx8ulp_clk_pcc5_init()
|
| /drivers/firmware/efi/libstub/ |
| A D | random.c | 106 struct_size(seed, bits, seed_size), in efi_random_get_seed() 172 memzero_explicit(seed, struct_size(seed, bits, seed_size)); in efi_random_get_seed()
|
| /drivers/misc/vmw_vmci/ |
| A D | vmci_handle_array.c | 22 array = kmalloc(struct_size(array, entries, capacity), GFP_ATOMIC); in vmci_handle_arr_create() 48 size_t new_size = struct_size(array, entries, in vmci_handle_arr_append_entry()
|
| /drivers/gpio/ |
| A D | gpio-ljca.c | 90 struct_size(packet, item, packet->num), NULL, 0); in ljca_gpio_config() 108 struct_size(packet, item, packet->num), in ljca_gpio_read() 134 struct_size(packet, item, packet->num), NULL, 0); in ljca_gpio_write() 263 (u8 *)packet, struct_size(packet, item, packet->num), in ljca_enable_irq()
|
| /drivers/cxl/ |
| A D | pmem.c | 199 if (struct_size(cmd, out_buf, cmd->in_length) > buf_len) in cxl_pmem_get_config_data() 233 if (size_add(struct_size(cmd, in_buf, cmd->in_length), 4) > buf_len) in cxl_pmem_set_config_data() 237 kvzalloc(struct_size(set_lsa, data, cmd->in_length), GFP_KERNEL); in cxl_pmem_set_config_data() 248 .size_in = struct_size(set_lsa, data, cmd->in_length), in cxl_pmem_set_config_data()
|
| /drivers/platform/x86/intel/int3472/ |
| A D | tps68470.c | 120 *clk_pdata = devm_kzalloc(dev, struct_size(*clk_pdata, consumers, n_consumers), in skl_int3472_fill_clk_pdata() 195 cells[0].pdata_size = struct_size(clk_pdata, consumers, n_consumers); in skl_int3472_tps68470_probe()
|
| /drivers/net/ethernet/intel/ice/ |
| A D | ice_switch.h | 28 #define ICE_SW_RULE_VSI_LIST_SIZE(s, n) struct_size((s), vsi, (n)) 29 #define ICE_SW_RULE_RX_TX_HDR_SIZE(s, l) struct_size((s), hdr_data, (l)) 34 #define ICE_SW_RULE_LG_ACT_SIZE(s, n) struct_size((s), act, (n))
|
| /drivers/net/ethernet/netronome/nfp/flower/ |
| A D | cmsg.c | 49 skb = nfp_flower_cmsg_alloc(app, struct_size(msg, ports, num_ports), in nfp_flower_cmsg_mac_repr_start() 220 if (msg_len < struct_size(msg, flow, flow_cnt)) { in nfp_flower_cmsg_merge_hint_rx() 222 msg_len, struct_size(msg, flow, flow_cnt)); in nfp_flower_cmsg_merge_hint_rx()
|
| /drivers/interconnect/ |
| A D | icc-clk.c | 87 onecell = devm_kzalloc(dev, struct_size(onecell, nodes, 2 * num_clocks), GFP_KERNEL); in icc_clk_register() 92 qp = devm_kzalloc(dev, struct_size(qp, clocks, num_clocks), GFP_KERNEL); in icc_clk_register()
|
| /drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
| A D | vega10_processpptables.c | 353 mm_table = kzalloc(struct_size(mm_table, entries, mm_dependency_table->ucNumEntries), in get_mm_clock_voltage_table() 576 clk_table = kzalloc(struct_size(clk_table, entries, clk_dep_table->ucNumEntries), in get_socclk_voltage_dependency_table() 606 mclk_table = kzalloc(struct_size(mclk_table, entries, mclk_dep_table->ucNumEntries), in get_mclk_voltage_dependency_table() 643 clk_table = kzalloc(struct_size(clk_table, entries, clk_dep_table->ucNumEntries), in get_gfxclk_voltage_dependency_table() 705 clk_table = kzalloc(struct_size(clk_table, entries, clk_dep_table->ucNumEntries), in get_pix_clk_voltage_dependency_table() 758 clk_table = kzalloc(struct_size(clk_table, entries, num_entries), in get_dcefclk_voltage_dependency_table() 797 pcie_table = kzalloc(struct_size(pcie_table, entries, atom_pcie_table->ucNumEntries), in get_pcie_table() 856 table = kzalloc(struct_size(table, values, clk_volt_pp_table->count), in get_valid_clk() 1044 table = kzalloc(struct_size(table, entries, max_levels), GFP_KERNEL); in get_vddc_lookup_table()
|
| A D | process_pptables_v1_0.c | 168 table = kzalloc(struct_size(table, entries, max_levels), GFP_KERNEL); in get_vddc_lookup_table() 324 table = kzalloc(struct_size(table, values, clk_volt_pp_table->count), in get_valid_clk() 374 mclk_table = kzalloc(struct_size(mclk_table, entries, mclk_dep_table->ucNumEntries), in get_mclk_voltage_dependency_table() 418 sclk_table = kzalloc(struct_size(sclk_table, entries, tonga_table->ucNumEntries), in get_sclk_voltage_dependency_table() 447 sclk_table = kzalloc(struct_size(sclk_table, entries, polaris_table->ucNumEntries), in get_sclk_voltage_dependency_table() 494 pcie_table = kzalloc(struct_size(pcie_table, entries, in get_pcie_table() 531 pcie_table = kzalloc(struct_size(pcie_table, entries, in get_pcie_table() 727 mm_table = kzalloc(struct_size(mm_table, entries, mm_dependency_table->ucNumEntries), in get_mm_clock_voltage_table()
|
| /drivers/net/ethernet/intel/idpf/ |
| A D | idpf_virtchnl_ptp.c | 371 size = struct_size(rcv_tx_tstamp_caps, tstamp_latches, num_latches); in idpf_ptp_get_vport_tstamps_caps() 377 size = struct_size(tstamp_caps, tx_tstamp_status, num_latches); in idpf_ptp_get_vport_tstamps_caps() 635 size = struct_size(send_tx_tstamp_msg, tstamp_latches, in idpf_ptp_get_tx_tstamp() 658 msg_size = struct_size(send_tx_tstamp_msg, tstamp_latches, id); in idpf_ptp_get_tx_tstamp()
|
| A D | idpf_virtchnl.c | 925 size = struct_size(rcvd_regions, mem_reg, num_regions); in idpf_send_get_lan_memory_regions() 1652 buf_sz = struct_size(ctq, qinfo, num_chunks); in idpf_send_config_tx_queues_msg() 1676 buf_sz = struct_size(ctq, qinfo, num_chunks); in idpf_send_config_tx_queues_msg() 1804 buf_sz = struct_size(crq, qinfo, num_chunks); in idpf_send_config_rx_queues_msg() 1828 buf_sz = struct_size(crq, qinfo, num_chunks); in idpf_send_config_rx_queues_msg() 1944 buf_sz = struct_size(eq, chunks.chunks, num_chunks); in idpf_send_ena_dis_queues_msg() 1974 buf_sz = struct_size(eq, chunks.chunks, num_chunks); in idpf_send_ena_dis_queues_msg() 2072 buf_sz = struct_size(vqvm, qv_maps, num_chunks); in idpf_send_map_unmap_queue_vector_msg() 2101 buf_sz = struct_size(vqvm, qv_maps, num_chunks); in idpf_send_map_unmap_queue_vector_msg() 2197 buf_size = struct_size(eq, chunks.chunks, num_chunks); in idpf_send_delete_queues_msg() [all …]
|
| /drivers/net/can/usb/ |
| A D | gs_usb.c | 894 dev->hf_size_tx = struct_size(hf, canfd_quirk, 1); in gs_can_open() 896 dev->hf_size_tx = struct_size(hf, canfd, 1); in gs_can_open() 899 dev->hf_size_tx = struct_size(hf, classic_can_quirk, 1); in gs_can_open() 901 dev->hf_size_tx = struct_size(hf, classic_can, 1); in gs_can_open() 1507 hf_size_rx = struct_size(hf, canfd_ts, 1); in gs_usb_probe() 1509 hf_size_rx = struct_size(hf, canfd, 1); in gs_usb_probe() 1512 hf_size_rx = struct_size(hf, classic_can_ts, 1); in gs_usb_probe() 1514 hf_size_rx = struct_size(hf, classic_can, 1); in gs_usb_probe()
|
| /drivers/iommu/iommufd/ |
| A D | vfio_compat.c | 396 if (avail >= struct_size(&cap_iovas, iova_ranges, in iommufd_fill_cap_iova() 403 if (avail >= struct_size(&cap_iovas, iova_ranges, cap_iovas.nr_iovas) && in iommufd_fill_cap_iova() 406 return struct_size(&cap_iovas, iova_ranges, cap_iovas.nr_iovas); in iommufd_fill_cap_iova()
|
| /drivers/net/wireless/broadcom/brcm80211/brcmfmac/bca/ |
| A D | core.c | 26 fweh = kzalloc(struct_size(fweh, evt_handler, BRCMF_BCA_E_LAST), in brcmf_bca_alloc_fweh_info()
|
| /drivers/net/wireless/broadcom/brcm80211/brcmfmac/wcc/ |
| A D | core.c | 27 fweh = kzalloc(struct_size(fweh, evt_handler, BRCMF_WCC_E_LAST), in brcmf_wcc_alloc_fweh_info()
|
| /drivers/gpu/drm/i915/ |
| A D | i915_syncmap.c | 200 p = kmalloc(struct_size(p, seqno, KSYNCMAP), GFP_KERNEL); in __sync_alloc_leaf() 282 next = kzalloc(struct_size(next, child, KSYNCMAP), in __sync_set()
|