Home
last modified time | relevance | path

Searched refs:struct_size (Results 1 – 25 of 31) sorted by relevance

12

/freebsd-14.2/sys/contrib/libfdt/
H A Dfdt_rw.c59 int mem_rsv_size, int struct_size) in fdt_blocks_misordered_() argument
65 (fdt_off_dt_struct(fdt) + struct_size)) in fdt_blocks_misordered_()
408 int mem_rsv_size, int struct_size) in fdt_packblocks_() argument
414 strings_off = struct_off + struct_size; in fdt_packblocks_()
421 fdt_set_size_dt_struct(new, struct_size); in fdt_packblocks_()
432 int mem_rsv_size, struct_size; in fdt_open_into() local
444 struct_size = fdt_size_dt_struct(fdt); in fdt_open_into()
446 struct_size = 0; in fdt_open_into()
447 while (fdt_next_tag(fdt, struct_size, &struct_size) != FDT_END) in fdt_open_into()
449 if (struct_size < 0) in fdt_open_into()
[all …]
/freebsd-14.2/sys/contrib/dev/iwlwifi/mvm/
H A Dnvm.c453 struct_size(mcc_resp_v8, channels, n_channels)) { in iwl_mvm_update_mcc()
457 resp_len = struct_size(resp_cp, channels, n_channels); in iwl_mvm_update_mcc()
478 struct_size(mcc_resp_v4, channels, n_channels)) { in iwl_mvm_update_mcc()
482 resp_len = struct_size(resp_cp, channels, n_channels); in iwl_mvm_update_mcc()
503 struct_size(mcc_resp_v3, channels, n_channels)) { in iwl_mvm_update_mcc()
507 resp_len = struct_size(resp_cp, channels, n_channels); in iwl_mvm_update_mcc()
H A Dmac-ctxt.c1670 if (pkt_len < struct_size(sb_v2, data, size)) in iwl_mvm_rx_stored_beacon_notif()
1677 if (pkt_len < struct_size(sb_v3, data, size)) in iwl_mvm_rx_stored_beacon_notif()
H A Dd3.c646 cmd.len[0] = struct_size(pattern_cmd, patterns, wowlan->n_patterns); in iwl_mvm_send_patterns_v1()
2620 net_detect = kzalloc(struct_size(net_detect, matches, n_matches), in iwl_mvm_query_netdetect_reasons()
2633 match = kzalloc(struct_size(match, channels, n_channels), in iwl_mvm_query_netdetect_reasons()
H A Dtx.c2102 struct_size(ba_res, tfd, tfd_cnt) > pkt_len, in iwl_mvm_rx_ba_notif()
/freebsd-14.2/sys/dev/drm2/ttm/
H A Dttm_bo_api.h452 unsigned struct_size);
455 unsigned struct_size);
H A Dttm_bo.c1311 unsigned struct_size) in ttm_bo_acc_size() argument
1316 size += ttm_round_pot(struct_size); in ttm_bo_acc_size()
1324 unsigned struct_size) in ttm_bo_dma_acc_size() argument
1329 size += ttm_round_pot(struct_size); in ttm_bo_dma_acc_size()
/freebsd-14.2/sys/compat/linuxkpi/common/include/linux/
H A Doverflow.h293 #define struct_size(p, member, count) \ macro
312 struct_size((type *)NULL, member, count)
/freebsd-14.2/sys/contrib/dev/iwlwifi/
H A Diwl-nvm-parse.c1379 data = kzalloc(struct_size(data, channels, in iwl_parse_mei_nvm_data()
1383 data = kzalloc(struct_size(data, channels, in iwl_parse_mei_nvm_data()
1444 data = kzalloc(struct_size(data, channels, in iwl_parse_nvm_data()
1448 data = kzalloc(struct_size(data, channels, in iwl_parse_nvm_data()
1452 data = kzalloc(struct_size(data, channels, in iwl_parse_nvm_data()
1664 regd = kzalloc(struct_size(regd, reg_rules, num_of_ch), GFP_KERNEL); in iwl_parse_nvm_mcc_info()
1756 copy_rd = kmemdup(regd, struct_size(regd, reg_rules, valid_rules), in iwl_parse_nvm_mcc_info()
2007 nvm = kzalloc(struct_size(nvm, channels, IWL_NUM_CHANNELS), GFP_KERNEL); in iwl_get_nvm()
H A Diwl-eeprom-parse.c803 data = kzalloc(struct_size(data, channels, IWL_NUM_CHANNELS), in iwl_parse_eeprom_data()
/freebsd-14.2/usr.bin/kdump/
H A Dkdump.c2320 for (; datalen >= ksa->struct_size; in ktrstructarray()
2321 data += ksa->struct_size, datalen -= ksa->struct_size) { in ktrstructarray()
2327 if (ksa->struct_size != sizeof(kev)) in ktrstructarray()
2334 if (ksa->struct_size != sizeof(kev11)) in ktrstructarray()
2349 if (ksa->struct_size != sizeof(kev32)) in ktrstructarray()
2367 if (ksa->struct_size != sizeof(kev32)) in ktrstructarray()
2380 if (ksa->struct_size != sizeof(pfd)) in ktrstructarray()
/freebsd-14.2/sys/kern/
H A Dkern_ktrace.c878 int num_items, size_t struct_size) in ktrstructarray() argument
892 max_items = ktr_geniosize / struct_size; in ktrstructarray()
899 datalen = num_items * struct_size; in ktrstructarray()
921 ksa->struct_size = struct_size; in ktrstructarray()
/freebsd-14.2/sys/sys/
H A Dktrace.h261 size_t struct_size; member
/freebsd-14.2/sys/contrib/dev/iwlwifi/fw/
H A Dinit.c126 size = struct_size(cmd, data, num_queues); in iwl_configure_rxq()
/freebsd-14.2/contrib/llvm-project/lldb/source/Plugins/SymbolFile/CTF/
H A DSymbolFileCTF.h229 uint32_t fields, uint32_t struct_size);
/freebsd-14.2/sys/contrib/dev/mediatek/mt76/
H A Dagg-rx.c249 tid = kzalloc(struct_size(tid, reorder_buf, size), GFP_KERNEL); in mt76_rx_aggr_start()
/freebsd-14.2/sys/ofed/drivers/infiniband/core/
H A Dib_uverbs_ioctl.c122 buf = kvmalloc(struct_size(buf, data, size), flags); in _uverbs_alloc()
597 hdr.length != struct_size(&hdr, attrs, hdr.num_attrs)) in ib_uverbs_ioctl()
/freebsd-14.2/sys/contrib/dev/athk/ath10k/
H A Dce.c1461 src_ring = kzalloc(struct_size(src_ring, per_transfer_context, in ath10k_ce_alloc_src_ring()
1519 src_ring = kzalloc(struct_size(src_ring, per_transfer_context, in ath10k_ce_alloc_src_ring_64()
1575 dest_ring = kzalloc(struct_size(dest_ring, per_transfer_context, in ath10k_ce_alloc_dest_ring()
1619 dest_ring = kzalloc(struct_size(dest_ring, per_transfer_context, in ath10k_ce_alloc_dest_ring_64()
H A Dcoredump.c1568 dump_tlv->tlv_len = cpu_to_le32(struct_size(ce_hdr, entries, in ath10k_coredump_build()
H A Dwmi.c6706 buf = ath10k_wmi_alloc_skb(ar, struct_size(cmd, mem_chunks.items, in ath10k_wmi_op_gen_init()
6769 buf = ath10k_wmi_alloc_skb(ar, struct_size(cmd, mem_chunks.items, in ath10k_wmi_10_1_op_gen_init()
6840 buf = ath10k_wmi_alloc_skb(ar, struct_size(cmd, mem_chunks.items, in ath10k_wmi_10_2_op_gen_init()
6934 buf = ath10k_wmi_alloc_skb(ar, struct_size(cmd, mem_chunks.items, in ath10k_wmi_10_4_op_gen_init()
7665 skb = ath10k_wmi_alloc_skb(ar, struct_size(cmd, chan_info, arg->n_channels)); in ath10k_wmi_op_gen_scan_chan_list()
/freebsd-14.2/sys/dev/mlx5/mlx5_core/
H A Dmlx5_fs_counters.c555 bulk = kvzalloc(struct_size(bulk, fcs, bulk_len), GFP_KERNEL); in mlx5_fc_bulk_create()
/freebsd-14.2/sys/contrib/dev/athk/ath12k/
H A Dreg.c121 arg = kzalloc(struct_size(arg, channel, num_channels), GFP_KERNEL); in ath12k_reg_update_chan_list()
H A Dce.c549 ce_ring = kzalloc(struct_size(ce_ring, skb, nentries), GFP_KERNEL); in ath12k_ce_alloc_ring()
/freebsd-14.2/sys/contrib/dev/athk/ath11k/
H A Dreg.c162 params = kzalloc(struct_size(params, ch_param, num_channels), in ath11k_reg_update_chan_list()
H A Dce.c619 ce_ring = kzalloc(struct_size(ce_ring, skb, nentries), GFP_KERNEL); in ath11k_ce_alloc_ring()

12