Home
last modified time | relevance | path

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

12

/freebsd/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_()
419 memmove(new + struct_off, old + fdt_off_dt_struct(old), 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()
[all …]
/freebsd/sys/contrib/dev/iwlwifi/mvm/
H A Dnvm.c460 struct_size(mcc_resp_v8, channels, n_channels)) { in iwl_mvm_update_mcc()
464 resp_len = struct_size(resp_cp, channels, n_channels); in iwl_mvm_update_mcc()
485 struct_size(mcc_resp_v4, channels, n_channels)) { in iwl_mvm_update_mcc()
489 resp_len = struct_size(resp_cp, channels, n_channels); in iwl_mvm_update_mcc()
510 struct_size(mcc_resp_v3, channels, n_channels)) { in iwl_mvm_update_mcc()
514 resp_len = struct_size(resp_cp, channels, n_channels); in iwl_mvm_update_mcc()
H A Dmac-ctxt.c1715 if (pkt_len < struct_size(sb_v2, data, size)) in iwl_mvm_probe_resp_data_notif()
1722 if (pkt_len < struct_size(sb_v3, data, size)) in iwl_mvm_probe_resp_data_notif()
H A Dd3.c653 cmd.len[0] = struct_size(pattern_cmd, patterns, wowlan->n_patterns); in iwl_mvm_send_patterns_v1()
2970 net_detect = kzalloc(struct_size(net_detect, matches, n_matches), in iwl_mvm_wait_d3_notif()
2983 match = kzalloc(struct_size(match, channels, n_channels), in iwl_mvm_resume_firmware()
/freebsd/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/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/sys/ddb/
H A Ddb_pprint.c87 size_t struct_size; in db_pprint_struct() local
96 struct_size = ((type->ctt_size == CTF_V3_LSIZE_SENT) ? in db_pprint_struct()
110 if (struct_size < CTF_V3_LSTRUCT_THRESH) { in db_pprint_struct()
/freebsd/sys/contrib/dev/iwlwifi/
H A Diwl-nvm-parse.c1464 data = kzalloc(struct_size(data, channels, in iwl_parse_nvm_data()
1468 data = kzalloc(struct_size(data, channels, in iwl_parse_nvm_data()
1533 data = kzalloc(struct_size(data, channels, in iwl_nvm_get_regdom_bw_flags()
1537 data = kzalloc(struct_size(data, channels, in iwl_nvm_get_regdom_bw_flags()
1541 data = kzalloc(struct_size(data, channels, in iwl_nvm_get_regdom_bw_flags()
1770 regd = kzalloc(struct_size(regd, reg_rules, num_of_ch), GFP_KERNEL); in iwl_nvm_fixups()
1864 copy_rd = kmemdup(regd, struct_size(regd, reg_rules, valid_rules), in iwl_read_external_nvm()
2119 nvm = kzalloc(struct_size(nvm, channels, IWL_NUM_CHANNELS), GFP_KERNEL);
H A Diwl-eeprom-parse.c
/freebsd/usr.bin/kdump/
H A Dkdump.c2344 for (; datalen >= ksa->struct_size; in ktrstructarray()
2345 data += ksa->struct_size, datalen -= ksa->struct_size) { in ktrstructarray()
2351 if (ksa->struct_size != sizeof(kev)) in ktrstructarray()
2358 if (ksa->struct_size != sizeof(kev11)) in ktrstructarray()
2373 if (ksa->struct_size != sizeof(kev32)) in ktrstructarray()
2391 if (ksa->struct_size != sizeof(kev32)) in ktrstructarray()
2404 if (ksa->struct_size != sizeof(pfd)) in ktrstructarray()
/freebsd/sys/kern/
H A Dkern_ktrace.c893 int num_items, size_t struct_size) in ktrstructarray() argument
907 max_items = ktr_geniosize / struct_size; in ktrstructarray()
914 datalen = num_items * struct_size; in ktrstructarray()
936 ksa->struct_size = struct_size; in ktrstructarray()
/freebsd/sys/contrib/dev/iwlwifi/fw/
H A Dinit.c126 size = struct_size(cmd, data, num_queues); in iwl_configure_rxq()
/freebsd/sys/sys/
H A Dktrace.h259 size_t struct_size; member
/freebsd/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/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/contrib/llvm-project/lldb/source/Plugins/SymbolFile/CTF/
H A DSymbolFileCTF.h229 uint32_t fields, uint32_t struct_size);
/freebsd/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/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/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/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