/freebsd/sys/contrib/libfdt/ |
H A D | fdt_rw.c | 59 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 D | nvm.c | 460 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 D | mac-ctxt.c | 1715 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 D | d3.c | 653 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 D | ttm_bo_api.h | 452 unsigned struct_size); 455 unsigned struct_size);
|
H A D | ttm_bo.c | 1311 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 D | overflow.h | 293 #define struct_size(p, member, count) \ macro 312 struct_size((type *)NULL, member, count)
|
/freebsd/sys/ddb/ |
H A D | db_pprint.c | 87 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 D | iwl-nvm-parse.c | 1464 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 D | iwl-eeprom-parse.c |
|
/freebsd/usr.bin/kdump/ |
H A D | kdump.c | 2344 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 D | kern_ktrace.c | 893 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 D | init.c | 126 size = struct_size(cmd, data, num_queues); in iwl_configure_rxq()
|
/freebsd/sys/sys/ |
H A D | ktrace.h | 259 size_t struct_size; member
|
/freebsd/sys/contrib/dev/mediatek/mt76/ |
H A D | agg-rx.c | 249 tid = kzalloc(struct_size(tid, reorder_buf, size), GFP_KERNEL); in mt76_rx_aggr_start()
|
/freebsd/sys/ofed/drivers/infiniband/core/ |
H A D | ib_uverbs_ioctl.c | 122 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 D | SymbolFileCTF.h | 229 uint32_t fields, uint32_t struct_size);
|
/freebsd/sys/contrib/dev/athk/ath10k/ |
H A D | ce.c | 1461 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 D | coredump.c | 1568 dump_tlv->tlv_len = cpu_to_le32(struct_size(ce_hdr, entries, in ath10k_coredump_build()
|
H A D | wmi.c | 6706 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 D | reg.c | 121 arg = kzalloc(struct_size(arg, channel, num_channels), GFP_KERNEL); in ath12k_reg_update_chan_list()
|
H A D | ce.c | 549 ce_ring = kzalloc(struct_size(ce_ring, skb, nentries), GFP_KERNEL); in ath12k_ce_alloc_ring()
|
/freebsd/sys/dev/mlx5/mlx5_core/ |
H A D | mlx5_fs_counters.c | 555 bulk = kvzalloc(struct_size(bulk, fcs, bulk_len), GFP_KERNEL); in mlx5_fc_bulk_create()
|
/freebsd/sys/contrib/dev/athk/ath11k/ |
H A D | reg.c | 162 params = kzalloc(struct_size(params, ch_param, num_channels), in ath11k_reg_update_chan_list()
|
H A D | ce.c | 619 ce_ring = kzalloc(struct_size(ce_ring, skb, nentries), GFP_KERNEL); in ath11k_ce_alloc_ring()
|