| /freebsd-12.1/sys/kern/ |
| H A D | subr_rangeset.c | 65 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 D | subr_epoch.c | 353 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 D | vfs_cache.c | 309 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 D | kern_exit.c | 115 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 D | kern_mbuf.c | 833 mref = __containerof(refcnt, struct mbuf, m_ext.ext_count); in mb_free_ext()
|
| H A D | kern_mutex.c | 90 #define mtxlock2mtx(c) (__containerof(c, struct mtx, mtx_lock))
|
| H A D | kern_rwlock.c | 69 #define rwlock2rw(c) (__containerof(c, struct rwlock, rw_lock))
|
| /freebsd-12.1/sys/dev/cxgbe/cxgbei/ |
| H A D | cxgbei.h | 76 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 D | devfs_int.h | 75 #define cdev2priv(c) __containerof(c, struct cdev_priv, cdp_c)
|
| /freebsd-12.1/sys/dev/cxgbe/ |
| H A D | t4_l2t.h | 104 struct l2t_data *d = __containerof(e, struct l2t_data, l2tab[e->idx]); in t4_l2t_release()
|
| H A D | offload.h | 114 return (__containerof(t, struct cxgbe_snd_tag, com)); in mst_to_cst()
|
| H A D | adapter.h | 612 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 D | jz4780_gpio.c | 672 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 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() 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 D | queue.h | 400 __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 D | cdefs.h | 498 #define __containerof(x, s, m) ({ \ macro 503 #define __containerof(x, s, m) \ macro
|
| H A D | vnode.h | 180 #define bo2vnode(bo) __containerof((bo), struct vnode, v_bufobj)
|
| /freebsd-12.1/sys/netinet/ |
| H A D | ip_gre.c | 117 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 D | in_pcb.c | 247 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 D | ip6_gre.c | 108 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 D | t4_tom.h | 330 return (__containerof(tod, struct tom_data, tod)); in tod_td()
|
| /freebsd-12.1/sys/dev/drm2/ |
| H A D | drm_gem.c | 454 obj = __containerof(map_list, struct drm_gem_object, map_list); in drm_gem_object_from_offset()
|
| /freebsd-12.1/lib/libthr/thread/ |
| H A D | thr_mutex.c | 542 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 D | if_gre.c | 428 gs = __containerof(ctx, struct gre_socket, epoch_ctx); in gre_sofree()
|
| H A D | if.c | 690 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()
|