Home
last modified time | relevance | path

Searched refs:ch_na (Results 1 – 16 of 16) sorted by relevance

/xnu-12377.41.6/bsd/skywalk/channel/
H A Dchannel_kern.c508 if (ch->ch_na != NULL && in _kern_channel_flowadv_signal()
512 &ch->ch_na->na_tx_rings[ch->ch_first[NR_TX]]); in _kern_channel_flowadv_signal()
516 } else if (ch->ch_na == NULL) { in _kern_channel_flowadv_signal()
582 if (ch->ch_na != NULL && in kern_channel_flowadv_report_congestion_event()
588 } else if (ch->ch_na == NULL) { in kern_channel_flowadv_report_congestion_event()
615 if (ch->ch_na->na_flags & NAF_DRAINING) { in kern_channel_memstatus()
625 na_drain(ch->ch_na, TRUE); /* purge caches */ in kern_channel_memstatus()
637 if (ch->ch_na->na_type != NA_USER_PIPE) { in _kern_channel_defunct_eligible()
640 pna = (struct nexus_upipe_adapter *)ch->ch_na; in _kern_channel_defunct_eligible()
705 if (ch->ch_na->na_type == NA_FLOWSWITCH_VP) { in kern_channel_defunct()
[all …]
H A Dchannel.c513 "si_flags 0x%x", ch->ch_na->na_name, SK_KVA(ch->ch_na), in filt_chrwdetach()
556 "kn %p (%s%s) hint 0x%x", ch->ch_na->na_name, in filt_chrw()
557 SK_KVA(ch->ch_na), SK_KVA(ch), SK_KVA(kn), in filt_chrw()
621 if (ch_ev_thresh_validate(ch->ch_na->na_nx, dir, in filt_chtouch()
658 ((struct kern_channel *)knote_kn_hook_get_raw(kn))->ch_na)); in filt_chrtouch()
783 na = ch->ch_na; in filt_chrwattach()
792 if (ch_ev_thresh_validate(ch->ch_na->na_nx, dir, in filt_chrwattach()
933 os_atomic_or(&ch->ch_na->na_flags, NAF_CHANNEL_EVENT_ATTACHED, relaxed); in filt_che_attach()
941 ch->ch_na->na_name, SK_KVA(ch->ch_na), SK_KVA(ch), SK_KVA(kn), in filt_che_attach()
956 os_atomic_andnot(&ch->ch_na->na_flags, in filt_che_detach()
[all …]
H A Dchannel_syscalls.c264 sk_proc_pid(p), (int)init.ci_nx_port, fd, ch->ch_na->na_name); in __channel_open()
414 na = ch->ch_na; /* we have a reference */ in __channel_sync()
763 } else if (__improbable(ch->ch_na == NULL || in __channel_set_opt()
764 !NA_IS_ACTIVE(ch->ch_na) || na_reject_channel(ch, ch->ch_na))) { in __channel_set_opt()
H A Dchannel_var.h144 struct nexus_adapter *ch_na; member
/xnu-12377.41.6/bsd/skywalk/nexus/kpipe/
H A Dnx_kernel_pipe.c372 skmem_arena_nexus(ch->ch_na->na_arena), 1); in nx_kpipe_dom_connect()
387 SK_KVA(nx), nxdom_prov->nxdom_prov_name, ch->ch_na->na_name, in nx_kpipe_dom_disconnect()
395 skmem_arena_nexus(ch->ch_na->na_arena), -1); in nx_kpipe_dom_disconnect()
405 struct nexus_adapter *na = ch->ch_na; in nx_kpipe_dom_defunct()
413 ASSERT(ch->ch_na->na_type == NA_KERNEL_PIPE); in nx_kpipe_dom_defunct()
456 ASSERT(ch->ch_na->na_type == NA_KERNEL_PIPE); in nx_kpipe_dom_defunct_finalize()
458 na_defunct(nx, ch, ch->ch_na, locked); in nx_kpipe_dom_defunct_finalize()
462 nxdom_prov->nxdom_prov_name, ch->ch_na->na_name, in nx_kpipe_dom_defunct_finalize()
/xnu-12377.41.6/bsd/skywalk/nexus/
H A Dnexus_adapter.c259 struct nexus_adapter *na = ch->ch_na; in na_set_ringid()
308 struct nexus_adapter *na = ch->ch_na; in na_unset_ringid()
329 struct nexus_adapter *na = ch->ch_na; in na_krings_use()
381 struct nexus_adapter *na = ch->ch_na; in na_krings_unuse()
446 ASSERT(ch->ch_na == NULL); in na_bind_channel()
450 ch->ch_na = na; /* store the reference */ in na_bind_channel()
572 SK_DF(SK_VERB_NA, " ch_na: %p (chcnt %u)", SK_KVA(ch->ch_na), in na_bind_channel()
573 ch->ch_na->na_channels); in na_bind_channel()
614 ch->ch_na = NULL; in na_bind_channel()
627 struct nexus_adapter *na = ch->ch_na; in na_unbind_channel()
[all …]
H A Dnexus_adapter.h567 ASSERT(ch->ch_na == NULL || ch->ch_na == na); in na_reject_channel()
H A Dnexus.c2304 struct nexus_adapter *na = ch->ch_na; in nx_init_rings()
2384 struct nexus_adapter *na = ch->ch_na; in nx_fini_rings()
3275 populate_ring_entries(ch->ch_na->na_tx_rings, tx_first, tx_last, in nexus_channel_entry_populate()
3290 populate_ring_entries(ch->ch_na->na_rx_rings, rx_first, rx_last, in nexus_channel_entry_populate()
3645 struct nexus_adapter *na = ch->ch_na; in nx_interface_advisory_notify()
/xnu-12377.41.6/bsd/skywalk/nexus/flowswitch/
H A Dnx_flowswitch.c806 ch->ch_na->na_name, ch->ch_info->cinfo_nx_port, in nx_fsw_dom_disconnect()
825 ASSERT(ch->ch_na->na_type == NA_FLOWSWITCH_VP); in nx_fsw_dom_defunct()
856 ASSERT(ch->ch_na->na_type == NA_FLOWSWITCH_VP); in nx_fsw_dom_defunct_finalize()
857 ASSERT(VPNA(ch->ch_na)->vpna_nx_port == ch->ch_info->cinfo_nx_port); in nx_fsw_dom_defunct_finalize()
859 err = fsw_port_na_defunct(fsw, VPNA(ch->ch_na)); in nx_fsw_dom_defunct_finalize()
862 na_defunct(nx, ch, ch->ch_na, locked); in nx_fsw_dom_defunct_finalize()
867 nxdom_prov->nxdom_prov_name, ch->ch_na->na_name, in nx_fsw_dom_defunct_finalize()
H A Dfsw.c593 hwna = fsw->fsw_host_ch->ch_na; in fsw_host_setup()
636 struct nexus_adapter *hwna = fsw->fsw_host_ch->ch_na; in fsw_host_teardown()
677 struct nexus_adapter *hwna = fsw->fsw_dev_ch->ch_na; in fsw_netif_set_callbacks_common()
896 uuid_copy(nsr->nsr_if_uuid, fsw->fsw_dev_ch->ch_na->na_uuid); in fsw_ctl_attach()
972 fsw->fsw_dev_ch->ch_na->na_uuid) != 0) { in fsw_ctl_detach()
1845 (na = ch->ch_na) == NULL) { in fsw_mib_get_flow_adv()
2125 (na = ch->ch_na) == NULL) { in fsw_mib_get_userstack_stats()
H A Dfsw_dp.c3579 dev_na = fsw->fsw_dev_ch->ch_na; in dp_tx_pktq()
4005 dev_na = fsw->fsw_dev_ch->ch_na; in dp_gso_pktq()
/xnu-12377.41.6/tools/lldbmacros/
H A Dskywalk.py41 rings = kc.ch_na.na_rx_rings
43 rings = kc.ch_na.na_tx_rings
45 rings = kc.ch_na.na_alloc_rings
47 rings = kc.ch_na.na_free_rings
497 ….ch_mmap.ami_mapaddr, ch.ch_mmap.ami_mapsize, ch.ch_mmap.ami_redirect, ch.ch_na, ch.ch_fd, ch.ch_n…
502 ….ch_mmap.ami_mapaddr, ch.ch_mmap.ami_mapsize, ch.ch_mmap.ami_redirect, ch.ch_na, ch.ch_fd, ch.ch_n…
/xnu-12377.41.6/bsd/skywalk/nexus/netif/
H A Dnx_netif.c1209 skmem_arena_nexus(ch->ch_na->na_arena), 1); in nx_netif_dom_connect()
1224 SK_KVA(nx), nxdom_prov->nxdom_prov_name, ch->ch_na->na_name, in nx_netif_dom_disconnect()
1232 skmem_arena_nexus(ch->ch_na->na_arena), -1); in nx_netif_dom_disconnect()
1248 ASSERT(ch->ch_na->na_type == NA_NETIF_DEV || in nx_netif_dom_defunct()
1249 ch->ch_na->na_type == NA_NETIF_HOST || in nx_netif_dom_defunct()
1250 ch->ch_na->na_type == NA_NETIF_COMPAT_DEV || in nx_netif_dom_defunct()
1251 ch->ch_na->na_type == NA_NETIF_COMPAT_HOST || in nx_netif_dom_defunct()
1252 ch->ch_na->na_type == NA_NETIF_VP); in nx_netif_dom_defunct()
1273 ASSERT(ch->ch_na->na_type == NA_NETIF_DEV || in nx_netif_dom_defunct_finalize()
1274 ch->ch_na->na_type == NA_NETIF_HOST || in nx_netif_dom_defunct_finalize()
[all …]
H A Dnx_netif_vp.c353 netif_hwna_set_mode(ch->ch_na, NETIF_MODE_LLW, NULL); in netif_hwna_setup()
385 netif_hwna_clear_mode(ch->ch_na); in netif_hwna_teardown()
/xnu-12377.41.6/bsd/skywalk/nexus/upipe/
H A Dnx_user_pipe.c579 SK_KVA(nx), nxdom_prov->nxdom_prov_name, ch->ch_na->na_name, in nx_upipe_dom_disconnect()
597 struct nexus_adapter *na = ch->ch_na; in nx_upipe_dom_defunct()
648 (struct nexus_upipe_adapter *)ch->ch_na; in nx_upipe_dom_defunct_finalize()
660 ASSERT(ch->ch_na->na_type == NA_USER_PIPE); in nx_upipe_dom_defunct_finalize()
688 nxdom_prov->nxdom_prov_name, ch->ch_na->na_name, in nx_upipe_dom_defunct_finalize()
/xnu-12377.41.6/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_entry.c423 nif = NX_NETIF_PRIVATE(fsw->fsw_dev_ch->ch_na->na_nx); in flow_qset_select_dynamic()
535 dev_na = fsw->fsw_dev_ch->ch_na; in flow_entry_alloc()
733 nx = fsw->fsw_dev_ch->ch_na->na_nx; in flow_entry_add_rx_steering_rule()
798 nx = fsw->fsw_dev_ch->ch_na->na_nx; in flow_entry_rx_steering_rule_cleanup()