Home
last modified time | relevance | path

Searched refs:__offsetof (Results 1 – 25 of 72) sorted by relevance

123

/freebsd-14.2/sys/net/
H A Drndis.h131 __offsetof(struct rndis_packet_msg, rm_dataoffset))
135 ((ofs) + __offsetof(struct rndis_packet_msg, rm_dataoffset))
151 __offsetof(struct rndis_pktinfo, rm_data[0])
218 __offsetof(struct rndis_init_comp, rm_aflistsz)
245 __offsetof(struct rndis_query_req, rm_rid))
258 ((ofs) + __offsetof(struct rndis_query_req, rm_rid))
276 __offsetof(struct rndis_set_req, rm_rid))
330 ((ofs) + __offsetof(struct rndis_status_msg, rm_status))
/freebsd-14.2/sys/dev/mana/
H A Dmana_sysctl.c195 __offsetof(struct mana_rxq, lro.lro_queued), in mana_sysctl_add_port()
199 __offsetof(struct mana_rxq, lro.lro_flushed), in mana_sysctl_add_port()
203 __offsetof(struct mana_rxq, lro.lro_bad_csum), in mana_sysctl_add_port()
207 __offsetof(struct mana_rxq, lro_tried), in mana_sysctl_add_port()
211 __offsetof(struct mana_rxq, lro_failed), in mana_sysctl_add_port()
216 __offsetof(struct mana_rxq, lro.lro_ackcnt_lim), in mana_sysctl_add_port()
221 __offsetof(struct mana_rxq, lro.lro_length_lim), in mana_sysctl_add_port()
226 __offsetof(struct mana_rxq, lro.lro_cnt), in mana_sysctl_add_port()
232 __offsetof(struct mana_txq, tso_pkts), in mana_sysctl_add_port()
236 __offsetof(struct mana_txq, tso_bytes), in mana_sysctl_add_port()
/freebsd-14.2/sys/dev/hyperv/netvsc/
H A Dndis.h122 __offsetof(struct ndis_offload_params, ndis_rsc_ip4)
172 __offsetof(struct ndis_rss_caps, ndis_pad)
174 __offsetof(struct ndis_rss_caps, ndis_nind)
210 __offsetof(struct ndis_rss_params, ndis_cpumaskoffset)
232 __offsetof(struct ndis_rssprm_toeplitz, rss_ind[nind])
349 __offsetof(struct ndis_offload, ndis_ipsecv2)
351 __offsetof(struct ndis_offload, ndis_rsc)
H A Dif_hnreg.h266 __offsetof(struct rndis_pktinfo, rm_data[dlen])
/freebsd-14.2/tools/build/cross-build/include/common/sys/
H A Dcdefs.h212 #ifndef __offsetof
213 #define __offsetof(type, field) __builtin_offsetof(type, field) macro
217 (__offsetof(type, end) - __offsetof(type, start))
224 s *, (const volatile char *)__x - __offsetof(s, m)); \
/freebsd-14.2/sys/sys/
H A Dcdefs.h236 #define __alignof(x) __offsetof(struct { char __a; x __b; }, __b)
459 #define __offsetof(type, field) __builtin_offsetof(type, field) macro
462 #define __offsetof(type, field) \ macro
465 #define __offsetof(type, field) \ macro
472 (__offsetof(type, end) - __offsetof(type, start))
483 __DEQUALIFY(s *, (const volatile char *)__x - __offsetof(s, m));\
487 __DEQUALIFY(s *, (const volatile char *)(x) - __offsetof(s, m))
H A Ddirent.h122 ((__offsetof(struct dirent, d_name) + (namlen) + 1 + 7) & ~7)
142 dp->d_reclen - (__offsetof(struct dirent, d_name) + dp->d_namlen)); in dirent_terminate()
H A Dstddef.h41 #define offsetof(type, field) __offsetof(type, field)
H A Dpctrie.h57 CTASSERT((__offsetof(struct type, field) & (sizeof(uint32_t) - 1)) == 0); \
66 ((uintptr_t)val - __offsetof(struct type, field)); \
/freebsd-14.2/sys/dev/hyperv/utilities/
H A Dvmbus_icreg.h96 __offsetof(struct vmbus_icmsg_heartbeat, ic_rsvd[0])
108 __offsetof(struct vmbus_icmsg_shutdown, ic_msg[0])
H A Dvmbus_ic.c45 __offsetof(struct vmbus_icmsg_negotiate, ic_ver[VMBUS_IC_VERCNT])
85 if (dlen < __offsetof(struct vmbus_icmsg_negotiate, ic_ver[cnt])) { in vmbus_ic_negomsg()
/freebsd-14.2/sys/net/route/
H A Droute_var.h97 _Static_assert(__offsetof(_s1, _f1) == __offsetof(_s2, _f2), \
114 _Static_assert(__offsetof(struct route, ro_dst) == __offsetof(_ro_new, _dst_new),\
H A Dnhop_var.h96 #define NH_PRIV_END_CMP (__offsetof(struct nhop_priv, nh_idx))
/freebsd-14.2/include/
H A Dstddef.h73 #define offsetof(type, field) __offsetof(type, field)
/freebsd-14.2/sys/contrib/dev/acpica/include/platform/
H A Dacfreebsd.h170 #define ACPI_OFFSET(d, f) __offsetof(d, f)
/freebsd-14.2/sys/dev/hyperv/vmbus/
H A Dvmbus_reg.h329 CTASSERT(__offsetof(struct vmbus_chanmsg_gpadl_conn,
342 CTASSERT(__offsetof(struct vmbus_chanmsg_gpadl_subconn,
H A Dvmbus_chan.c590 range_len = __offsetof(struct vmbus_gpa_range, gpa_page[page_count]); in vmbus_chan_gpadl_connect()
619 reqsz = __offsetof(struct vmbus_chanmsg_gpadl_conn, in vmbus_chan_gpadl_connect()
658 reqsz = __offsetof(struct vmbus_chanmsg_gpadl_subconn, in vmbus_chan_gpadl_connect()
1132 hlen = __offsetof(struct vmbus_chanpkt_sglist, cp_gpa[sglen]); in vmbus_chan_send_sglist()
1172 hlen = __offsetof(struct vmbus_chanpkt_prplist, in vmbus_chan_send_prplist()
1190 iov[1].iov_len = __offsetof(struct vmbus_gpa_range, gpa_page[prp_cnt]); in vmbus_chan_send_prplist()
2254 elem_size = __offsetof(struct vmbus_chanpkt_prplist, in vmbus_chan_prplist_nelem()
/freebsd-14.2/sys/amd64/include/
H A Dcounter.h39 #define EARLY_COUNTER (void *)__offsetof(struct pcpu, pc_early_dummy_counter)
H A Dvmm.h623 _Static_assert(__offsetof(struct vie, disp_bytes) == 22, "ABI");
624 _Static_assert(__offsetof(struct vie, scale) == 24, "ABI");
625 _Static_assert(__offsetof(struct vie, base_register) == 28, "ABI");
/freebsd-14.2/usr.sbin/makefs/zfs/
H A Dvdev.c188 loff + __offsetof(vdev_label_t, vl_be), sizeof(label->vl_be)); in vdev_label_write()
194 loff + __offsetof(vdev_label_t, vl_vdev_phys), in vdev_label_write()
207 loff + __offsetof(vdev_label_t, vl_uberblock) + roff, in vdev_label_write()
/freebsd-14.2/sys/ufs/ufs/
H A Ddir.h114 (roundup2(__offsetof(struct direct, d_name) + (namlen) + 1, DIR_ROUNDUP))
/freebsd-14.2/sys/net80211/
H A Dieee80211_ht.c1686 __offsetof(struct ieee80211_ie_htcap, hc_cap)); in ieee80211_parse_htcap()
1687 ni->ni_htparam = ie[__offsetof(struct ieee80211_ie_htcap, hc_param)]; in ieee80211_parse_htcap()
3329 __offsetof(struct ieee80211_ie_htcap, hc_mcsset)); in ieee80211_add_htcap_body()
3340 frm += __offsetof(struct ieee80211_ie_htcap, hc_extcap) - in ieee80211_add_htcap_body()
3341 __offsetof(struct ieee80211_ie_htcap, hc_mcsset); in ieee80211_add_htcap_body()
3349 __offsetof(struct ieee80211_ie_htcap, hc_txbf); in ieee80211_add_htcap_body()
3418 __offsetof(struct ieee80211_ie_htcap, hc_mcsset)); in ieee80211_add_htcap_body_ch()
3429 frm += __offsetof(struct ieee80211_ie_htcap, hc_extcap) - in ieee80211_add_htcap_body_ch()
3430 __offsetof(struct ieee80211_ie_htcap, hc_mcsset); in ieee80211_add_htcap_body_ch()
3438 __offsetof(struct ieee80211_ie_htcap, hc_txbf); in ieee80211_add_htcap_body_ch()
[all …]
/freebsd-14.2/sys/i386/include/
H A Dpcpu.h100 __offsetof(struct pcpu, name)
/freebsd-14.2/sys/dev/mlx5/mlx5_en/
H A Den_rl.h100 (__offsetof(struct mlx5e_rl_params, n) / sizeof(uint64_t))
/freebsd-14.2/tests/sys/kern/
H A Dsysctl_kern_proc.c155 ATF_REQUIRE(sz >= __offsetof(struct kinfo_file, kf_structsize) + in ATF_TC_BODY()

123