Home
last modified time | relevance | path

Searched refs:__container_of (Results 1 – 25 of 71) sorted by relevance

123

/xnu-12377.1.9/osfmk/ipc/
H A Dipc_pset.h86 #define ips_object_to_pset(io) __container_of(io, struct ipc_pset, ips_object)
92 return __container_of(wq.wqs_set, struct ipc_pset, ips_wqset); in ips_from_waitq()
H A Dipc_object.h308 (&__container_of(io, struct ipc_object_waitq, iowq_object)->iowq_waitq)
310 (&__container_of(waitq, struct ipc_object_waitq, iowq_waitq)->iowq_object)
H A Dipc_port.h285 #define ip_object_to_port(io) __container_of(io, struct ipc_port, ip_object)
304 #define ip_from_waitq(wq) __container_of(wq, struct ipc_port, ip_waitq)
305 #define ip_from_mq(mq) __container_of(mq, struct ipc_port, ip_messages)
H A Dipc_space.c124 ipc_entry_t entry = __container_of(node, struct ipc_entry, ie_smr_node); in ipc_space_free_table()
/xnu-12377.1.9/tests/sched/sched_test_harness/shadow_headers/
H A Dpriority_queue.cpp7 #define __container_of(ptr, type, field) __extension__({ \ macro
/xnu-12377.1.9/osfmk/i386/
H A Dlocks.h151 #define LCK_EVENT_TO_MUTEX(e) __container_of((uint32_t *)(event), lck_mtx_t, lck_mtx_owner)
/xnu-12377.1.9/bsd/netinet/
H A Din_var.h105 return __container_of(ifa, const struct in_ifaddr, ia_ifa); in __ifatoia_const()
111 return __container_of(ifa, struct in_ifaddr, ia_ifa); in __ifatoia()
/xnu-12377.1.9/bsd/skywalk/nexus/
H A Dnexus_traffic_rule_eth.c121 ntre = __container_of(ntr, struct nxctl_traffic_rule_eth, ntre_common); in nxctl_eth_traffic_rule_find_qset_id()
578 tdi = __container_of(td, struct ifnet_traffic_descriptor_eth, eth_common); in eth_traffic_rule_create()
579 ras = __container_of(ra, struct ifnet_traffic_rule_action_steer, ras_common); in eth_traffic_rule_create()
H A Dnexus_traffic_rule_inet.c148 ntri = __container_of(ntr, struct nxctl_traffic_rule_inet, ntri_common); in nxctl_inet_traffic_rule_find_qset_id()
841 tdi = __container_of(td, struct ifnet_traffic_descriptor_inet, inet_common); in inet_traffic_rule_create()
842 ras = __container_of(ra, struct ifnet_traffic_rule_action_steer, ras_common); in inet_traffic_rule_create()
/xnu-12377.1.9/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_manager.c87 struct flow_entry *__single fe = __container_of(node, struct flow_entry, in __fe_cuckoo_cmp()
130 struct flow_entry *__single fe = __container_of(node, struct flow_entry, in __fe_cuckoo_retain()
140 __container_of(node, struct flow_entry, fe_cnode); in __fe_cuckoo_release()
1166 fe = __container_of(node, struct flow_entry, fe_cnode); in flow_mgr_find_fe_by_key()
1198 fe = __container_of(node, struct flow_entry, fe_cnode); in flow_mgr_find_conflicting_fe()
1214 fe = __container_of(node, struct flow_entry, fe_cnode);
/xnu-12377.1.9/bsd/skywalk/packet/
H A Dpacket_queue.h152 __container_of((head)->kq_last, struct __kern_packet, pkt_nextpkt))
/xnu-12377.1.9/osfmk/vm/
H A Dvm_map_store.c115 vm_map_t, __container_of(mapHdr, struct _vm_map, hdr), in _vm_map_store_entry_link()
204 vm_map_t, __container_of(mapHdr, struct _vm_map, hdr), in _vm_map_store_entry_unlink()
/xnu-12377.1.9/osfmk/kern/
H A Dmpsc_queue.h184 #define mpsc_queue_element(ptr, type, field) __container_of(ptr, type, field)
H A Dsmr.h1159 struct smrq_link *elem = __container_of(link, struct smrq_link, next); in __smr_linkage_invalid()
1168 struct smrq_slink *elem = __container_of(link, struct smrq_slink, next); in __smr_stail_invalid()
1177 struct smrq_link *elem = __container_of(link, struct smrq_link, next); in __smr_tail_invalid()
H A Dturnstile.h371 #define waitq_to_turnstile(waitq) __container_of(waitq, struct turnstile, ts_waitq)
H A Dmk_timer.c163 msg = __container_of(ikm_header(kmsg), in mk_timer_expire()
H A Dcircle_queue.h230 #define cqe_element(qe, type, field) __container_of(qe, type, field)
H A Dpriority_queue.h320 #define pqe_element_fast(qe, type, field) __container_of(qe, type, field)
H A Ddebug.c771 adef = __container_of(hdr, struct mach_assert_default, hdr); in panic_assert_format()
777 a3x = __container_of(hdr, struct mach_assert_3x, hdr); in panic_assert_format()
785 a3x = __container_of(hdr, struct mach_assert_3x, hdr); in panic_assert_format()
793 a3x = __container_of(hdr, struct mach_assert_3x, hdr); in panic_assert_format()
/xnu-12377.1.9/libkern/c++/
H A DOSSymbol.cpp85 OSSymbol *sym = __container_of(link, OSSymbol, hashlink); in OSSymbol_obj_hash()
93 OSSymbol *sym = __container_of(link, OSSymbol, hashlink); in OSSymbol_obj_equ()
/xnu-12377.1.9/bsd/sys/
H A Dcdefs.h1255 #define __container_of(ptr, type_t, field) __extension__({ \ macro
1264 __ptr_or_null ? __container_of(__ptr_or_null, type_t, field) : NULL; \
/xnu-12377.1.9/tests/
H A Dpriority_queue.cpp15 #define __container_of(ptr, type, field) __extension__({ \ macro
/xnu-12377.1.9/bsd/net/
H A Droute_private.h204 return __container_of(rn, struct rtentry, rt_nodes[0]); in rn_rtentry()
/xnu-12377.1.9/bsd/netinet6/
H A Din6_var.h194 return __container_of(ifa, const struct in6_ifaddr, ia_ifa); in __ifatoia6_const()
200 return __container_of(ifa, struct in6_ifaddr, ia_ifa); in __ifatoia6()
/xnu-12377.1.9/bsd/netkey/
H A Dkeysock.c291 kp = __container_of(rp, struct keycb, kp_raw); in key_sendup_mbuf()

123