Home
last modified time | relevance | path

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

123

/freebsd-13.1/sys/kern/
H A Dsubr_rangeset.c64 rs = __containerof(ptree, struct rangeset, rs_trie); in rs_node_alloc()
104 r = __containerof(r1, struct rs_el, re_start); in rangeset_check_empty()
144 r = __containerof(r1, struct rs_el, re_start); in rangeset_remove_pred()
256 r = __containerof(r1, struct rs_el, re_start); in rangeset_remove_all()
272 r = __containerof(r1, struct rs_el, re_start); in rangeset_lookup()
294 src_r = __containerof(r1, struct rs_el, re_start); in rangeset_copy()
321 r = __containerof(r1, struct rs_el, re_start); in rangeset_check()
359 r = __containerof(r1, struct rs_el, re_start); in DB_SHOW_COMMAND()
H A Dsubr_epoch.c553 record = __containerof(cr, struct epoch_record, er_record); in epoch_block_handler_preempt()
925 __containerof(ctx, struct epoch_record, er_drain_ctx)->er_parent; in epoch_drain_cb()
H A Dkern_mbuf.c984 mref = __containerof(refcnt, struct mbuf, m_ext.ext_count); in _mb_unmapped_to_ext()
1191 mref = __containerof(refcnt, struct mbuf, m_ext.ext_count); in mb_free_ext()
1283 mref = __containerof(refcnt, struct mbuf, m_ext.ext_count); in mb_free_extpg()
H A Dkern_rmlock.c1124 rmsipi = __containerof(arg, struct rmslock_ipi, srcra); in rms_action_func()
1144 rmsipi = __containerof(arg, struct rmslock_ipi, srcra); in rms_wait_func()
/freebsd-13.1/sys/dev/ice/
H A Dice_osdep.c83 struct ice_softc *sc = __containerof(hw, struct ice_softc, hw); in ice_hw_to_dev()
194 struct ice_softc *sc = __containerof(hw, struct ice_softc, hw); in rd32()
212 struct ice_softc *sc = __containerof(hw, struct ice_softc, hw); in rd64()
240 struct ice_softc *sc = __containerof(hw, struct ice_softc, hw); in wr32()
259 struct ice_softc *sc = __containerof(hw, struct ice_softc, hw); in wr64()
H A Dice_osdep.h232 __containerof(ptr, type, member)
/freebsd-13.1/sys/dev/cxgbe/cxgbei/
H A Dcxgbei.h90 return (__containerof(ic, struct icl_cxgbei_conn, ic)); in ic_to_icc()
120 return (__containerof(ip, struct icl_cxgbei_pdu, ip)); in ip_to_icp()
/freebsd-13.1/tools/build/cross-build/include/common/sys/
H A Dcdefs.h215 #ifndef __containerof
216 #define __containerof(x, s, m) \ macro
/freebsd-13.1/sys/x86/iommu/
H A Dintel_dmar.h94 __containerof((dmar), struct dmar_unit, iommu)
98 __containerof((domain), struct dmar_domain, iodom)
102 __containerof((ctx), struct dmar_ctx, context)
/freebsd-13.1/sys/fs/devfs/
H A Ddevfs_int.h77 #define cdev2priv(c) __containerof(c, struct cdev_priv, cdp_c)
/freebsd-13.1/sys/dev/cxgbe/
H A Dt4_l2t.h107 struct l2t_data *d = __containerof(e, struct l2t_data, l2tab[e->idx]); in t4_l2t_release()
H A Doffload.h113 return (__containerof(t, struct cxgbe_rate_tag, com)); in mst_to_crt()
/freebsd-13.1/sys/mips/ingenic/
H A Djz4780_gpio.c672 pin = __containerof(isrc, struct jz4780_gpio_pin, pin_irqsrc); in jz4780_gpio_pic_setup_intr()
724 pin = __containerof(isrc, struct jz4780_gpio_pin, pin_irqsrc); in jz4780_gpio_pic_enable_intr()
736 pin = __containerof(isrc, struct jz4780_gpio_pin, pin_irqsrc); in jz4780_gpio_pic_disable_intr()
762 pin = __containerof(isrc, struct jz4780_gpio_pin, pin_irqsrc); in jz4780_gpio_pic_post_filter()
/freebsd-13.1/sys/dev/usb/
H A Dusb_transfer.h53 __containerof(dpt, struct usb_xfer_root, dma_parent_tag)
/freebsd-13.1/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-13.1/sys/sys/
H A Dqueue.h401 __containerof((head)->stqh_last, \
596 __containerof((elm)->field.le_prev, \
834 (TAILQ_EMPTY(head) ? NULL : __containerof((head)->tqh_last, QUEUE_TYPEOF(type), field.tqe_next))
843 __containerof((elm)->field.tqe_prev, QUEUE_TYPEOF(type), field.tqe_next))
H A Dcdefs.h490 #define __containerof(x, s, m) ({ \ macro
495 #define __containerof(x, s, m) \ macro
/freebsd-13.1/sys/netinet/
H A Dip_gre.c117 s = __containerof(gs, struct in_gre_socket, base); in in_gre_lookup_socket()
282 s = __containerof(gs, struct in_gre_socket, base); in in_gre_setup_socket()
/freebsd-13.1/sys/netinet6/
H A Dip6_gre.c108 s = __containerof(gs, struct in6_gre_socket, base); in in6_gre_lookup_socket()
278 s = __containerof(gs, struct in6_gre_socket, base); in in6_gre_setup_socket()
/freebsd-13.1/sys/net/
H A Dbpf.c302 bp = __containerof(ctx, struct bpf_if, epoch_ctx); in bpfif_free()
352 ptr = __containerof(ctx, struct bpf_program_buffer, epoch_ctx); in bpf_program_buffer_free()
2013 fcode = __containerof((void *)d->bd_wfilter, in bpf_setf()
2022 fcode = __containerof((void *)d->bd_rfilter, in bpf_setf()
2657 d = __containerof(ctx, struct bpf_d, epoch_ctx); in bpfd_free()
2660 p = __containerof((void *)d->bd_rfilter, in bpfd_free()
2668 p = __containerof((void *)d->bd_wfilter, in bpfd_free()
/freebsd-13.1/sys/net/route/
H A Dnhop.c129 ctl = __containerof(ctx, struct nh_control, ctl_epoch_ctx); in destroy_ctl_epoch()
H A Dfib_algo.c1136 fd = __containerof(ctx, struct fib_data, fd_epoch_ctx); in destroy_fd_instance_epoch()
1552 fdh = __containerof(ctx, struct fib_dp_header, fdh_epoch_ctx); in destroy_fdh_epoch()
1581 return (__containerof((void *)dp, struct fib_dp_header, fdh_idx)); in get_fib_dp_header()
1818 nrd = __containerof(ctx, struct nhop_release_data, ctx); in release_nhop_epoch()
/freebsd-13.1/sys/dev/drm2/
H A Ddrm_gem.c453 obj = __containerof(map_list, struct drm_gem_object, map_list); in drm_gem_object_from_offset()
/freebsd-13.1/sys/vm/
H A Duma_int.h409 return (__containerof(slab, struct uma_hash_slab, uhs_slab)); in slab_tohashslab()
/freebsd-13.1/sys/dev/cxgbe/tom/
H A Dt4_tom.h325 return (__containerof(tod, struct tom_data, tod)); in tod_td()

123