Home
last modified time | relevance | path

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

123

/freebsd-13.1/sys/net/
H A Drndis.h132 __offsetof(struct rndis_packet_msg, rm_dataoffset))
136 ((ofs) + __offsetof(struct rndis_packet_msg, rm_dataoffset))
152 __offsetof(struct rndis_pktinfo, rm_data[0])
219 __offsetof(struct rndis_init_comp, rm_aflistsz)
246 __offsetof(struct rndis_query_req, rm_rid))
259 ((ofs) + __offsetof(struct rndis_query_req, rm_rid))
277 __offsetof(struct rndis_set_req, rm_rid))
331 ((ofs) + __offsetof(struct rndis_status_msg, rm_status))
/freebsd-13.1/sys/dev/hyperv/netvsc/
H A Dndis.h124 __offsetof(struct ndis_offload_params, ndis_rsc_ip4)
174 __offsetof(struct ndis_rss_caps, ndis_pad)
176 __offsetof(struct ndis_rss_caps, ndis_nind)
212 __offsetof(struct ndis_rss_params, ndis_cpumaskoffset)
234 __offsetof(struct ndis_rssprm_toeplitz, rss_ind[nind])
351 __offsetof(struct ndis_offload, ndis_ipsecv2)
353 __offsetof(struct ndis_offload, ndis_rsc)
H A Dif_hnreg.h268 __offsetof(struct rndis_pktinfo, rm_data[dlen])
/freebsd-13.1/tools/build/cross-build/include/common/sys/
H A Dcdefs.h208 #ifndef __offsetof
209 #define __offsetof(type, field) __builtin_offsetof(type, field) macro
213 (__offsetof(type, end) - __offsetof(type, start))
220 s *, (const volatile char *)__x - __offsetof(s, m)); \
/freebsd-13.1/sys/sys/
H A Dcdefs.h237 #define __alignof(x) __offsetof(struct { char __a; x __b; }, __b)
468 #define __offsetof(type, field) __builtin_offsetof(type, field) macro
471 #define __offsetof(type, field) \ macro
474 #define __offsetof(type, field) \ macro
481 (__offsetof(type, end) - __offsetof(type, start))
492 __DEQUALIFY(s *, (const volatile char *)__x - __offsetof(s, m));\
496 __DEQUALIFY(s *, (const volatile char *)(x) - __offsetof(s, m))
H A Ddirent.h123 ((__offsetof(struct dirent, d_name) + (namlen) + 1 + 7) & ~7)
140 dp->d_reclen - (__offsetof(struct dirent, d_name) + dp->d_namlen)); in dirent_terminate()
H A Dpctrie.h59 CTASSERT((__offsetof(struct type, field) & (sizeof(uint32_t) - 1)) == 0); \
68 ((uintptr_t)val - __offsetof(struct type, field)); \
H A Dstddef.h43 #define offsetof(type, field) __offsetof(type, field)
H A Ddisk.h193 _Static_assert(__offsetof(struct diocskerneldump_arg, kda_iface) ==
/freebsd-13.1/sys/dev/hyperv/utilities/
H A Dvmbus_icreg.h98 __offsetof(struct vmbus_icmsg_heartbeat, ic_rsvd[0])
110 __offsetof(struct vmbus_icmsg_shutdown, ic_msg[0])
H A Dvmbus_ic.c47 __offsetof(struct vmbus_icmsg_negotiate, ic_ver[VMBUS_IC_VERCNT])
84 if (dlen < __offsetof(struct vmbus_icmsg_negotiate, ic_ver[cnt])) { in vmbus_ic_negomsg()
/freebsd-13.1/sys/net/route/
H A Droute_var.h101 _Static_assert(__offsetof(_s1, _f1) == __offsetof(_s2, _f2), \
118 _Static_assert(__offsetof(struct route, ro_dst) == __offsetof(_ro_new, _dst_new),\
H A Dnhop_var.h94 #define NH_PRIV_END_CMP (__offsetof(struct nhop_priv, nh_idx))
H A Dnhop.h123 #define NHOP_END_CMP (__offsetof(struct nhop_object, nh_pksent))
/freebsd-13.1/include/
H A Dstddef.h75 #define offsetof(type, field) __offsetof(type, field)
/freebsd-13.1/sys/dev/hyperv/vmbus/
H A Dvmbus_reg.h326 CTASSERT(__offsetof(struct vmbus_chanmsg_gpadl_conn,
339 CTASSERT(__offsetof(struct vmbus_chanmsg_gpadl_subconn,
H A Dvmbus_chan.c588 range_len = __offsetof(struct vmbus_gpa_range, gpa_page[page_count]); in vmbus_chan_gpadl_connect()
617 reqsz = __offsetof(struct vmbus_chanmsg_gpadl_conn, in vmbus_chan_gpadl_connect()
656 reqsz = __offsetof(struct vmbus_chanmsg_gpadl_subconn, in vmbus_chan_gpadl_connect()
1130 hlen = __offsetof(struct vmbus_chanpkt_sglist, cp_gpa[sglen]); in vmbus_chan_send_sglist()
1170 hlen = __offsetof(struct vmbus_chanpkt_prplist, in vmbus_chan_send_prplist()
1188 iov[1].iov_len = __offsetof(struct vmbus_gpa_range, gpa_page[prp_cnt]); in vmbus_chan_send_prplist()
2245 elem_size = __offsetof(struct vmbus_chanpkt_prplist, in vmbus_chan_prplist_nelem()
/freebsd-13.1/lib/libthr/arch/i386/include/
H A Dpthread_md.h59 #define __tcb_offset(name) __offsetof(struct tcb, name)
/freebsd-13.1/lib/libthr/arch/amd64/include/
H A Dpthread_md.h60 #define __tcb_offset(name) __offsetof(struct tcb, name)
/freebsd-13.1/sys/amd64/include/
H A Dcounter.h36 #define EARLY_COUNTER (void *)__offsetof(struct pcpu, pc_early_dummy_counter)
H A Dvmm.h604 _Static_assert(__offsetof(struct vie, disp_bytes) == 22, "ABI");
605 _Static_assert(__offsetof(struct vie, scale) == 24, "ABI");
606 _Static_assert(__offsetof(struct vie, base_register) == 28, "ABI");
/freebsd-13.1/sys/ufs/ufs/
H A Ddir.h115 (roundup2(__offsetof(struct direct, d_name) + (namlen) + 1, DIR_ROUNDUP))
/freebsd-13.1/sys/net80211/
H A Dieee80211_ht.c1687 __offsetof(struct ieee80211_ie_htcap, hc_cap)); in ieee80211_parse_htcap()
1688 ni->ni_htparam = ie[__offsetof(struct ieee80211_ie_htcap, hc_param)]; in ieee80211_parse_htcap()
3330 __offsetof(struct ieee80211_ie_htcap, hc_mcsset)); in ieee80211_add_htcap_body()
3341 frm += __offsetof(struct ieee80211_ie_htcap, hc_extcap) - in ieee80211_add_htcap_body()
3342 __offsetof(struct ieee80211_ie_htcap, hc_mcsset); in ieee80211_add_htcap_body()
3350 __offsetof(struct ieee80211_ie_htcap, hc_txbf); in ieee80211_add_htcap_body()
3419 __offsetof(struct ieee80211_ie_htcap, hc_mcsset)); in ieee80211_add_htcap_body_ch()
3430 frm += __offsetof(struct ieee80211_ie_htcap, hc_extcap) - in ieee80211_add_htcap_body_ch()
3431 __offsetof(struct ieee80211_ie_htcap, hc_mcsset); in ieee80211_add_htcap_body_ch()
3439 __offsetof(struct ieee80211_ie_htcap, hc_txbf); in ieee80211_add_htcap_body_ch()
[all …]
/freebsd-13.1/sys/dev/mlx5/mlx5_en/
H A Den_rl.h102 (__offsetof(struct mlx5e_rl_params, n) / sizeof(uint64_t))
/freebsd-13.1/tests/sys/kern/
H A Dsysctl_kern_proc.c155 ATF_REQUIRE(sz >= __offsetof(struct kinfo_file, kf_structsize) + in ATF_TC_BODY()

123