Home
last modified time | relevance | path

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

123

/freebsd/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/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/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/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/sys/sys/
H A Ddirent.h120 ((__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 Dstddef.h41 #define offsetof(type, field) __offsetof(type, field)
H A Dcdefs.h325 #define __offsetof(type, field) __builtin_offsetof(type, field) macro
327 (__offsetof(type, end) - __offsetof(type, start))
337 __DEQUALIFY(s *, (const volatile char *)__x - __offsetof(s, m));\
H A Dpctrie.h69 CTASSERT((__offsetof(struct type, field) & (sizeof(uint32_t) - 1)) == 0); \
78 ((uintptr_t)val - __offsetof(struct type, field)); \
222 callback, __offsetof(struct type, field), arg); \
225 callback, __offsetof(struct type, field), arg)) \
H A Dtypes.h294 #define offsetof(type, field) __offsetof(type, field)
/freebsd/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.c44 __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/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/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.c587 range_len = __offsetof(struct vmbus_gpa_range, gpa_page[page_count]); in vmbus_chan_gpadl_connect()
616 reqsz = __offsetof(struct vmbus_chanmsg_gpadl_conn, in vmbus_chan_gpadl_connect()
655 reqsz = __offsetof(struct vmbus_chanmsg_gpadl_subconn, in vmbus_chan_gpadl_connect()
1129 hlen = __offsetof(struct vmbus_chanpkt_sglist, cp_gpa[sglen]); in vmbus_chan_send_sglist()
1169 hlen = __offsetof(struct vmbus_chanpkt_prplist, in vmbus_chan_send_prplist()
1187 iov[1].iov_len = __offsetof(struct vmbus_gpa_range, gpa_page[prp_cnt]); in vmbus_chan_send_prplist()
2251 elem_size = __offsetof(struct vmbus_chanpkt_prplist, in vmbus_chan_prplist_nelem()
/freebsd/sys/contrib/dev/acpica/include/platform/
H A Dacfreebsd.h170 #define ACPI_OFFSET(d, f) __offsetof(d, f)
/freebsd/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/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/sys/ufs/ufs/
H A Ddir.h112 (roundup2(__offsetof(struct direct, d_name) + (namlen) + 1, DIR_ROUNDUP))
/freebsd/sys/net80211/
H A Dieee80211_ht.c1682 __offsetof(struct ieee80211_ie_htcap, hc_cap)); in ieee80211_parse_htcap()
1683 ni->ni_htparam = ie[__offsetof(struct ieee80211_ie_htcap, hc_param)]; in ieee80211_parse_htcap()
3325 __offsetof(struct ieee80211_ie_htcap, hc_mcsset)); in ieee80211_add_htcap_body()
3336 frm += __offsetof(struct ieee80211_ie_htcap, hc_extcap) - in ieee80211_add_htcap_body()
3337 __offsetof(struct ieee80211_ie_htcap, hc_mcsset); in ieee80211_add_htcap_body()
3345 __offsetof(struct ieee80211_ie_htcap, hc_txbf); in ieee80211_add_htcap_body()
3414 __offsetof(struct ieee80211_ie_htcap, hc_mcsset)); in ieee80211_add_htcap_body_ch()
3425 frm += __offsetof(struct ieee80211_ie_htcap, hc_extcap) - in ieee80211_add_htcap_body_ch()
3426 __offsetof(struct ieee80211_ie_htcap, hc_mcsset); in ieee80211_add_htcap_body_ch()
3434 __offsetof(struct ieee80211_ie_htcap, hc_txbf); in ieee80211_add_htcap_body_ch()
[all …]
/freebsd/sys/i386/include/
H A Dpcpu.h100 __offsetof(struct pcpu, name)
/freebsd/sys/dev/mlx5/mlx5_en/
H A Den_rl.h100 (__offsetof(struct mlx5e_rl_params, n) / sizeof(uint64_t))
/freebsd/tests/sys/kern/
H A Dsysctl_kern_proc.c155 ATF_REQUIRE(sz >= __offsetof(struct kinfo_file, kf_structsize) + in ATF_TC_BODY()

123