Home
last modified time | relevance | path

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

12

/freebsd-12.1/sys/kern/
H A Dsubr_rangeset.c65 rs = __containerof(ptree, struct rangeset, rs_trie); in rs_node_alloc()
105 r = __containerof(r1, struct rs_el, re_start); in rangeset_check_empty()
145 r = __containerof(r1, struct rs_el, re_start); in rangeset_remove_pred()
257 r = __containerof(r1, struct rs_el, re_start); in rangeset_remove_all()
273 r = __containerof(r1, struct rs_el, re_start); in rangeset_lookup()
295 src_r = __containerof(r1, struct rs_el, re_start); in rangeset_copy()
322 r = __containerof(r1, struct rs_el, re_start); in rangeset_check()
360 r = __containerof(r1, struct rs_el, re_start); in DB_SHOW_COMMAND()
H A Dsubr_epoch.c353 record = __containerof(cr, struct epoch_record, er_record); in epoch_block_handler_preempt()
664 __containerof(ctx, struct epoch_record, er_drain_ctx)->er_parent; in epoch_drain_cb()
H A Dvfs_cache.c309 ncp_ts = __containerof(ncp, struct namecache_ts, nc_nc); in cache_free()
334 ncp_ts = __containerof(ncp, struct namecache_ts, nc_nc); in cache_out_ts()
1308 ncp_ts = __containerof(ncp, struct namecache_ts, nc_nc); in cache_lookup()
1724 ncp_ts = __containerof(ncp, struct namecache_ts, nc_nc); in cache_enter_time()
1751 n2_ts = __containerof(n2, struct namecache_ts, nc_nc); in cache_enter_time()
H A Dkern_exit.c115 p = __containerof(p->p_orphan.le_prev, struct proc, in proc_realparent()
120 parent = __containerof(p->p_orphan.le_prev, struct proc, in proc_realparent()
H A Dkern_mbuf.c833 mref = __containerof(refcnt, struct mbuf, m_ext.ext_count); in mb_free_ext()
H A Dkern_mutex.c90 #define mtxlock2mtx(c) (__containerof(c, struct mtx, mtx_lock))
H A Dkern_rwlock.c69 #define rwlock2rw(c) (__containerof(c, struct rwlock, rw_lock))
/freebsd-12.1/sys/dev/cxgbe/cxgbei/
H A Dcxgbei.h76 return (__containerof(ic, struct icl_cxgbei_conn, ic)); in ic_to_icc()
105 return (__containerof(ip, struct icl_cxgbei_pdu, ip)); in ip_to_icp()
/freebsd-12.1/sys/fs/devfs/
H A Ddevfs_int.h75 #define cdev2priv(c) __containerof(c, struct cdev_priv, cdp_c)
/freebsd-12.1/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.h114 return (__containerof(t, struct cxgbe_snd_tag, com)); in mst_to_cst()
H A Dadapter.h612 return (__containerof(iq, struct sge_rxq, iq)); in iq_to_rxq()
626 return (__containerof(iq, struct sge_ofld_rxq, iq)); in iq_to_ofld_rxq()
/freebsd-12.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-12.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-12.1/sys/sys/
H A Dqueue.h400 __containerof((head)->stqh_last, \
593 __containerof((elm)->field.le_prev, \
829 (TAILQ_EMPTY(head) ? NULL : __containerof((head)->tqh_last, QUEUE_TYPEOF(type), field.tqe_next))
838 __containerof((elm)->field.tqe_prev, QUEUE_TYPEOF(type), field.tqe_next))
H A Dcdefs.h498 #define __containerof(x, s, m) ({ \ macro
503 #define __containerof(x, s, m) \ macro
H A Dvnode.h180 #define bo2vnode(bo) __containerof((bo), struct vnode, v_bufobj)
/freebsd-12.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()
H A Din_pcb.c247 grp = __containerof(ctx, struct inpcblbgroup, il_epoch_ctx); in in_pcblbgroup_free_deferred()
1537 il = __containerof(ctx, struct in_pcblist, il_epoch_ctx); in in_pcblist_rele_rlocked()
1556 phd = __containerof(ctx, struct inpcbport, phd_epoch_ctx); in inpcbport_free()
1566 inp = __containerof(ctx, struct inpcb, inp_epoch_ctx); in in_pcbfree_deferred()
/freebsd-12.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-12.1/sys/dev/cxgbe/tom/
H A Dt4_tom.h330 return (__containerof(tod, struct tom_data, tod)); in tod_td()
/freebsd-12.1/sys/dev/drm2/
H A Ddrm_gem.c454 obj = __containerof(map_list, struct drm_gem_object, map_list); in drm_gem_object_from_offset()
/freebsd-12.1/lib/libthr/thread/
H A Dthr_mutex.c542 m1 = __containerof((void *)*rl, in enqueue_mutex()
575 mn = __containerof((void *)m->m_lock.m_rb_lnk, in dequeue_mutex()
/freebsd-12.1/sys/net/
H A Dif_gre.c428 gs = __containerof(ctx, struct gre_socket, epoch_ctx); in gre_sofree()
H A Dif.c690 ifp = __containerof(ctx, struct ifnet, if_epoch_ctx); in if_destroy()
1944 ifa = __containerof(ctx, struct ifaddr, ifa_epoch_ctx); in ifa_destroy()
3547 ifma = __containerof(ctx, struct ifmultiaddr, ifma_epoch_ctx); in if_destroymulti()

12