| /freebsd/sys/dev/ice/ |
| H A D | ice_osdep.c | 82 struct ice_softc *sc = __containerof(hw, struct ice_softc, hw); in ice_hw_to_dev() 193 struct ice_softc *sc = __containerof(hw, struct ice_softc, hw); in rd32() 211 struct ice_softc *sc = __containerof(hw, struct ice_softc, hw); in rd64() 239 struct ice_softc *sc = __containerof(hw, struct ice_softc, hw); in wr32() 258 struct ice_softc *sc = __containerof(hw, struct ice_softc, hw); in wr64()
|
| H A D | ice_rdma_internal.h | 72 #define ice_rdma_peer_to_entry(p) __containerof(p, struct ice_rdma_entry, peer) 73 #define ice_rdma_entry_to_sc(e) __containerof(e, struct ice_softc, rdma_entry)
|
| /freebsd/sys/dev/cxgbe/cxgbei/ |
| H A D | cxgbei.h | 74 return (__containerof(ic, struct icl_cxgbei_conn, ic)); in ic_to_icc() 104 return (__containerof(ip, struct icl_cxgbei_pdu, ip)); in ip_to_icp()
|
| /freebsd/sys/x86/iommu/ |
| H A D | amd_iommu.h | 106 __containerof((unit), struct amdiommu_unit, iommu) 120 __containerof((domain), struct amdiommu_domain, iodom) 124 __containerof((ctx), struct amdiommu_ctx, context)
|
| H A D | intel_dmar.h | 89 __containerof((dmar), struct dmar_unit, iommu) 93 __containerof((domain), struct dmar_domain, iodom) 97 __containerof((ctx), struct dmar_ctx, context)
|
| /freebsd/contrib/llvm-project/libc/include/llvm-libc-macros/ |
| H A D | containerof-macro.h | 14 #define __containerof(ptr, type, member) \ macro
|
| /freebsd/tools/build/cross-build/include/common/sys/ |
| H A D | cdefs.h | 227 #ifndef __containerof 228 #define __containerof(x, s, m) \ macro
|
| /freebsd/sys/fs/devfs/ |
| H A D | devfs_int.h | 75 #define cdev2priv(c) __containerof(c, struct cdev_priv, cdp_c)
|
| /freebsd/sys/dev/cxgbe/ |
| H A D | t4_l2t.h | 103 struct l2t_data *d = __containerof(e, struct l2t_data, l2tab[e->idx]); in t4_l2t_release()
|
| H A D | offload.h | 103 return (__containerof(t, struct cxgbe_rate_tag, com)); in mst_to_crt()
|
| /freebsd/sys/dev/firmware/arm/ |
| H A D | scmi.h | 81 #define hdr_to_msg(h) __containerof((h), struct scmi_msg, hdr)
|
| H A D | scmi.c | 137 #define tsk_to_req(t) __containerof((t), struct scmi_req, tsk) 138 #define buf_to_msg(b) __containerof((b), struct scmi_msg, payld) 139 #define msg_to_req(m) __containerof((m), struct scmi_req, msg)
|
| /freebsd/sys/dev/usb/ |
| H A D | usb_transfer.h | 52 __containerof(dpt, struct usb_xfer_root, dma_parent_tag)
|
| /freebsd/contrib/bsnmp/snmpd/ |
| H A D | trans_inet.c | 353 struct inet_port *port = __containerof(tp, struct inet_port, tport); in inet_recv() 354 struct port_sock *sock = __containerof(pi, struct port_sock, input); in inet_recv() 386 struct inet_port *p = __containerof(tp, struct inet_port, tport); in inet_send() 388 __containerof(pi, struct port_sock, input); in inet_send()
|
| /freebsd/contrib/libarchive/unzip/ |
| H A D | la_queue.h | 365 __containerof((head)->stqh_last, \ 558 __containerof((elm)->field.le_prev, \ 794 (TAILQ_EMPTY(head) ? NULL : __containerof((head)->tqh_last, QUEUE_TYPEOF(type), field.tqe_next)) 803 __containerof((elm)->field.tqe_prev, QUEUE_TYPEOF(type), field.tqe_next))
|
| /freebsd/sys/netinet/ |
| H A D | udp_var.h | 123 #define intoudpcb(ip) __containerof((ip), struct udpcb, u_inpcb)
|
| H A D | ip_gre.c | 115 s = __containerof(gs, struct in_gre_socket, base); in in_gre_lookup_socket() 266 s = __containerof(gs, struct in_gre_socket, base); in in_gre_setup_socket()
|
| /freebsd/sys/net/route/ |
| H A D | route_subscription.c | 182 rs = __containerof(ctx, struct rib_subscription, epoch_ctx); in destroy_subscription_epoch()
|
| H A D | route_rtentry.c | 139 rt = __containerof(ctx, struct rtentry, rt_epoch_ctx); in destroy_rtentry_epoch()
|
| H A D | nhop.c | 129 ctl = __containerof(ctx, struct nh_control, ctl_epoch_ctx); in destroy_ctl_epoch()
|
| /freebsd/usr.sbin/pkg/ |
| H A D | ecc.c | 63 #define ECC_CCTX(c) (__containerof(c, const struct ecc_sign_ctx, sctx)) 64 #define ECC_CTX(c) (__containerof(c, struct ecc_sign_ctx, sctx))
|
| /freebsd/sys/netinet6/ |
| H A D | ip6_gre.c | 106 s = __containerof(gs, struct in6_gre_socket, base); in in6_gre_lookup_socket() 261 s = __containerof(gs, struct in6_gre_socket, base); in in6_gre_setup_socket()
|
| /freebsd/sys/sys/ |
| H A D | queue.h | 510 __containerof((head)->stqh_last, \ 738 __containerof((elm)->field.le_prev, \ 1011 (TAILQ_EMPTY(head) ? NULL : __containerof((head)->tqh_last, QUEUE_TYPEOF(type), field.tqe_next)) 1020 __containerof((elm)->field.tqe_prev, QUEUE_TYPEOF(type), field.tqe_next))
|
| /freebsd/sys/net/ |
| H A D | bpf.c | 345 bp = __containerof(ctx, struct bpf_if, epoch_ctx); in bpfif_free() 394 ptr = __containerof(ctx, struct bpf_program_buffer, epoch_ctx); in bpf_program_buffer_free() 1859 fcode = __containerof((void *)d->bd_wfilter, in bpf_setf() 1868 fcode = __containerof((void *)d->bd_rfilter, in bpf_setf() 2610 d = __containerof(ctx, struct bpf_d, epoch_ctx); in bpfd_free() 2613 p = __containerof((void *)d->bd_rfilter, in bpfd_free() 2621 p = __containerof((void *)d->bd_wfilter, in bpfd_free()
|
| /freebsd/sys/netpfil/ipfw/nat64/ |
| H A D | nat64lsn_control.c | 69 return (__containerof(no, struct nat64lsn_instance, no)); in nat64lsn_find() 353 __containerof(no, struct nat64lsn_instance, no), uc); in export_config_cb() 869 i0 = __containerof(no, struct nat64lsn_instance, no); in nat64lsn_swap_sets_cb()
|