Home
last modified time | relevance | path

Searched refs:__containerof (Results 1 – 25 of 80) sorted by relevance

1234

/freebsd-14.2/sys/dev/ice/
H A Dice_osdep.c82 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 Dice_rdma_internal.h72 #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-14.2/sys/dev/cxgbe/cxgbei/
H A Dcxgbei.h74 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-14.2/tools/build/cross-build/include/common/sys/
H A Dcdefs.h219 #ifndef __containerof
220 #define __containerof(x, s, m) \ macro
/freebsd-14.2/sys/x86/iommu/
H A Dintel_dmar.h89 __containerof((dmar), struct dmar_unit, iommu)
93 __containerof((domain), struct dmar_domain, iodom)
97 __containerof((ctx), struct dmar_ctx, context)
H A Dintel_qi.c193 domain = __containerof(idomain, struct dmar_domain, iodom); in dmar_qi_invalidate_emit()
/freebsd-14.2/sys/fs/devfs/
H A Ddevfs_int.h74 #define cdev2priv(c) __containerof(c, struct cdev_priv, cdp_c)
/freebsd-14.2/sys/dev/cxgbe/
H A Dt4_l2t.h104 struct l2t_data *d = __containerof(e, struct l2t_data, l2tab[e->idx]); in t4_l2t_release()
H A Doffload.h111 return (__containerof(t, struct cxgbe_rate_tag, com)); in mst_to_crt()
/freebsd-14.2/sys/dev/usb/
H A Dusb_transfer.h52 __containerof(dpt, struct usb_xfer_root, dma_parent_tag)
/freebsd-14.2/contrib/libarchive/unzip/
H A Dla_queue.h365 __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-14.2/contrib/bsnmp/snmpd/
H A Dtrans_inet.c353 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()
387 struct inet_port *p = __containerof(tp, struct inet_port, tport); in inet_send2()
389 __containerof(pi, struct port_sock, input); in inet_send2()
/freebsd-14.2/sys/netinet/
H A Dudp_var.h124 #define intoudpcb(ip) __containerof((inp), struct udpcb, u_inpcb)
H A Dip_gre.c116 s = __containerof(gs, struct in_gre_socket, base); in in_gre_lookup_socket()
267 s = __containerof(gs, struct in_gre_socket, base); in in_gre_setup_socket()
/freebsd-14.2/sys/sys/
H A Dqueue.h401 __containerof((head)->stqh_last, \
596 __containerof((elm)->field.le_prev, \
852 (TAILQ_EMPTY(head) ? NULL : __containerof((head)->tqh_last, QUEUE_TYPEOF(type), field.tqe_next))
861 __containerof((elm)->field.tqe_prev, QUEUE_TYPEOF(type), field.tqe_next))
H A Dcdefs.h481 #define __containerof(x, s, m) ({ \ macro
486 #define __containerof(x, s, m) \ macro
/freebsd-14.2/sys/net/route/
H A Droute_subscription.c183 rs = __containerof(ctx, struct rib_subscription, epoch_ctx); in destroy_subscription_epoch()
H A Droute_rtentry.c142 rt = __containerof(ctx, struct rtentry, rt_epoch_ctx); in destroy_rtentry_epoch()
H A Dnhop.c132 ctl = __containerof(ctx, struct nh_control, ctl_epoch_ctx); in destroy_ctl_epoch()
H A Dfib_algo.c1135 fd = __containerof(ctx, struct fib_data, fd_epoch_ctx); in destroy_fd_instance_epoch()
1553 fdh = __containerof(ctx, struct fib_dp_header, fdh_epoch_ctx); in destroy_fdh_epoch()
1582 return (__containerof((void *)dp, struct fib_dp_header, fdh_idx)); in get_fib_dp_header()
1819 nrd = __containerof(ctx, struct nhop_release_data, ctx); in release_nhop_epoch()
/freebsd-14.2/sys/netinet6/
H A Dip6_gre.c107 s = __containerof(gs, struct in6_gre_socket, base); in in6_gre_lookup_socket()
262 s = __containerof(gs, struct in6_gre_socket, base); in in6_gre_setup_socket()
/freebsd-14.2/sys/net/
H A Dbpf.c308 bp = __containerof(ctx, struct bpf_if, epoch_ctx); in bpfif_free()
358 ptr = __containerof(ctx, struct bpf_program_buffer, epoch_ctx); in bpf_program_buffer_free()
2024 fcode = __containerof((void *)d->bd_wfilter, in bpf_setf()
2033 fcode = __containerof((void *)d->bd_rfilter, in bpf_setf()
2739 d = __containerof(ctx, struct bpf_d, epoch_ctx); in bpfd_free()
2742 p = __containerof((void *)d->bd_rfilter, in bpfd_free()
2750 p = __containerof((void *)d->bd_wfilter, in bpfd_free()
/freebsd-14.2/sys/kern/
H A Dsubr_rangeset.c62 rs = __containerof(ptree, struct rangeset, rs_trie); in rs_node_alloc()
H A Dsubr_epoch.c576 record = __containerof(cr, struct epoch_record, er_record); in epoch_block_handler_preempt()
948 __containerof(ctx, struct epoch_record, er_drain_ctx)->er_parent; in epoch_drain_cb()
/freebsd-14.2/sys/dev/gpio/
H A Dacpi_gpiobus.c255 controller = __containerof(info, struct acpi_gpiobus_softc, in acpi_gpiobus_space_handler()

1234