/freebsd/sys/net/ |
H A D | rndis.h | 131 __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 D | mana_sysctl.c | 195 __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 D | ndis.h | 122 __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 D | if_hnreg.h | 266 __offsetof(struct rndis_pktinfo, rm_data[dlen])
|
/freebsd/tools/build/cross-build/include/common/sys/ |
H A D | cdefs.h | 212 #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 D | dirent.h | 120 ((__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 D | stddef.h | 41 #define offsetof(type, field) __offsetof(type, field)
|
H A D | cdefs.h | 325 #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 D | pctrie.h | 69 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 D | types.h | 294 #define offsetof(type, field) __offsetof(type, field)
|
/freebsd/sys/dev/hyperv/utilities/ |
H A D | vmbus_icreg.h | 96 __offsetof(struct vmbus_icmsg_heartbeat, ic_rsvd[0]) 108 __offsetof(struct vmbus_icmsg_shutdown, ic_msg[0])
|
H A D | vmbus_ic.c | 44 __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 D | route_var.h | 97 _Static_assert(__offsetof(_s1, _f1) == __offsetof(_s2, _f2), \ 114 _Static_assert(__offsetof(struct route, ro_dst) == __offsetof(_ro_new, _dst_new),\
|
H A D | nhop_var.h | 96 #define NH_PRIV_END_CMP (__offsetof(struct nhop_priv, nh_idx))
|
/freebsd/sys/dev/hyperv/vmbus/ |
H A D | vmbus_reg.h | 329 CTASSERT(__offsetof(struct vmbus_chanmsg_gpadl_conn, 342 CTASSERT(__offsetof(struct vmbus_chanmsg_gpadl_subconn,
|
H A D | vmbus_chan.c | 587 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 D | acfreebsd.h | 170 #define ACPI_OFFSET(d, f) __offsetof(d, f)
|
/freebsd/sys/amd64/include/ |
H A D | counter.h | 39 #define EARLY_COUNTER (void *)__offsetof(struct pcpu, pc_early_dummy_counter)
|
H A D | vmm.h | 623 _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 D | vdev.c | 188 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 D | dir.h | 112 (roundup2(__offsetof(struct direct, d_name) + (namlen) + 1, DIR_ROUNDUP))
|
/freebsd/sys/net80211/ |
H A D | ieee80211_ht.c | 1682 __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 D | pcpu.h | 100 __offsetof(struct pcpu, name)
|
/freebsd/sys/dev/mlx5/mlx5_en/ |
H A D | en_rl.h | 100 (__offsetof(struct mlx5e_rl_params, n) / sizeof(uint64_t))
|
/freebsd/tests/sys/kern/ |
H A D | sysctl_kern_proc.c | 155 ATF_REQUIRE(sz >= __offsetof(struct kinfo_file, kf_structsize) + in ATF_TC_BODY()
|