Home
last modified time | relevance | path

Searched refs:struct_size (Results 1 – 25 of 41) 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.c446 struct_size(mcc_resp_v8, channels, n_channels)) { in iwl_mvm_update_mcc()
450 resp_len = struct_size(resp_cp, channels, n_channels); in iwl_mvm_update_mcc()
471 struct_size(mcc_resp_v4, channels, n_channels)) { in iwl_mvm_update_mcc()
475 resp_len = struct_size(resp_cp, channels, n_channels); in iwl_mvm_update_mcc()
496 struct_size(mcc_resp_v3, channels, n_channels)) { in iwl_mvm_update_mcc()
500 resp_len = struct_size(resp_cp, channels, n_channels); in iwl_mvm_update_mcc()
H A Dmac-ctxt.c1698 if (pkt_len < struct_size(sb_v2, data, size)) in iwl_mvm_rx_stored_beacon_notif()
1705 if (pkt_len < struct_size(sb_v3, data, size)) in iwl_mvm_rx_stored_beacon_notif()
/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/ddb/
H A Ddb_pprint.c86 size_t struct_size; in db_pprint_struct() local
95 struct_size = ((type->ctt_size == CTF_V3_LSIZE_SENT) ? in db_pprint_struct()
109 if (struct_size < CTF_V3_LSTRUCT_THRESH) { in db_pprint_struct()
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Doverflow.h434 #define struct_size(p, member, count) \ macro
453 struct_size((type *)NULL, member, count)
/freebsd/sys/contrib/dev/broadcom/brcm80211/brcmfmac/
H A Dof.c40 cc = devm_kzalloc(dev, struct_size(cc, table, count), GFP_KERNEL); in brcmf_of_get_country_codes()
H A Dcommon.c125 struct_size(dload_buf, data, len)); in brcmf_c_download()
H A Dpno.c421 gsz = struct_size(gscan_cfg, bucket, n_buckets); in brcmf_pno_config_sched_scans()
/freebsd/usr.bin/kdump/
H A Dkdump.c2371 for (; datalen >= ksa->struct_size; in ktrstructarray()
2372 data += ksa->struct_size, datalen -= ksa->struct_size) { in ktrstructarray()
2378 if (ksa->struct_size != sizeof(kev)) in ktrstructarray()
2385 if (ksa->struct_size != sizeof(kev11)) in ktrstructarray()
2400 if (ksa->struct_size != sizeof(kev32)) in ktrstructarray()
2414 if (ksa->struct_size != sizeof(kev32)) in ktrstructarray()
2427 if (ksa->struct_size != sizeof(pfd)) in ktrstructarray()
/freebsd/sys/kern/
H A Dkern_ktrace.c915 int num_items, size_t struct_size) in ktrstructarray() argument
929 max_items = ktr_geniosize / struct_size; in ktrstructarray()
936 datalen = num_items * struct_size; in ktrstructarray()
958 ksa->struct_size = struct_size; in ktrstructarray()
/freebsd/sys/contrib/dev/iwlwifi/fw/
H A Dinit.c128 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/iwlwifi/mld/
H A Dmcc.c23 int notif_len = struct_size(resp_cp, channels, n_channels); in iwl_mld_copy_mcc_resp()
H A Dtx.c1366 if (IWL_FW_CHECK(mld, struct_size(ba_res, tfd, tfd_cnt) > pkt_len, in iwl_mld_handle_compressed_ba_notif()
/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/fs/fuse/
H A Dfuse_vnops.c2871 size_t struct_size = FUSE_COMPAT_SETXATTR_IN_SIZE; in fuse_vnop_setextattr() local
2918 struct_size = sizeof(*set_xattr_in); in fuse_vnop_setextattr()
2920 fdisp_init(&fdi, len + struct_size + uio->uio_resid); in fuse_vnop_setextattr()
2931 attr_str = (char *)fdi.indata + struct_size; in fuse_vnop_setextattr()
2935 err = uiomove((char *)fdi.indata + struct_size + len, in fuse_vnop_setextattr()
/freebsd/sys/contrib/dev/athk/ath10k/
H A Dcoredump.c1571 dump_tlv->tlv_len = cpu_to_le32(struct_size(ce_hdr, entries, in ath10k_coredump_build()
/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/iwlwifi/
H A Diwl-eeprom-parse.c
/freebsd/sys/contrib/dev/rtw89/
H A Dacpi.c183 expect_len = struct_size(ptr, country_list, ptr->country_count); in rtw89_acpi_dsm_get_policy_6ghz()
H A Dfw.c164 base_hdr_len = struct_size(fw_hdr, sections, info->section_num); in rtw89_fw_hdr_parser_v0()
477 base_hdr_len = struct_size(fw_hdr, sections, info->section_num); in rtw89_fw_hdr_parser_v1()
1385 p = devm_kzalloc(rtwdev->dev, struct_size(p, map, num_ents), GFP_KERNEL);
6404 skb_len = struct_size(h2c, elem, ch_num);
6482 skb_len = struct_size(h2c, elem, ch_num);
10378 return struct_size(slot_h2c, roles, slot_arg->role_num);
10526 len = struct_size(h2c, infos, arg->num);
10655 len = struct_size(h2c, slots, arg->slot_num);
/freebsd/sys/contrib/dev/athk/ath12k/
H A Ddp_mon.c419 eht_len = struct_size(eht, in ath12k_dp_mon_update_radiotap()

12