| /xnu-11417.140.69/bsd/skywalk/nexus/ |
| H A D | nexus_adapter.h | 119 struct nexus_adapter { struct 284 int (*na_activate)(struct nexus_adapter *, na_activate_mode_t); argument 290 int (*na_special)(struct nexus_adapter *, struct kern_channel *, argument 328 int (*na_channel_event_notify)(struct nexus_adapter *, argument 335 int (*na_config)(struct nexus_adapter *, argument 342 int (*na_krings_create)(struct nexus_adapter *, struct kern_channel *); argument 343 void (*na_krings_delete)(struct nexus_adapter *, struct kern_channel *, argument 349 void (*na_dtor)(struct nexus_adapter *); argument 354 void (*na_free)(struct nexus_adapter *); argument 361 void (*na_rx)(struct nexus_adapter *, argument [all …]
|
| H A D | nexus_adapter.c | 66 static void na_krings_verify(struct nexus_adapter *); 68 static void na_set_ring(struct nexus_adapter *, uint32_t, enum txrx, uint32_t); 69 static void na_set_all_rings(struct nexus_adapter *, uint32_t); 72 static void na_teardown(struct nexus_adapter *, struct kern_channel *, 75 static int na_kr_create(struct nexus_adapter *, boolean_t); 76 static void na_kr_delete(struct nexus_adapter *); 77 static int na_kr_setup(struct nexus_adapter *, struct kern_channel *); 78 static void na_kr_teardown_all(struct nexus_adapter *, struct kern_channel *, 80 static void na_kr_teardown_txrx(struct nexus_adapter *, struct kern_channel *, 88 static struct nexus_adapter *na_pseudo_alloc(zalloc_flags_t); [all …]
|
| H A D | nexus_var.h | 180 (__unsafe_forge_single(struct nexus_adapter *, NPI_NA_ADDR((_npi)->npi_nah))) 316 struct kern_nexus *, struct nexus_adapter *); 486 struct nxbind *, struct nexus_adapter **, struct proc *); 492 extern struct nexus_adapter *nx_port_get_na(struct kern_nexus *,
|
| /xnu-11417.140.69/bsd/skywalk/nexus/upipe/ |
| H A D | nx_user_pipe.h | 68 struct nexus_adapter pna_up; 73 struct nexus_adapter *pna_parent; /* adapter that owns the memory */ 84 struct nexus_adapter *nup_pna; 97 extern void nx_upipe_na_dealloc(struct nexus_adapter *); 99 struct chreq *, struct nxbind *, struct proc *, struct nexus_adapter **,
|
| H A D | nx_user_pipe.c | 66 static int nx_upipe_na_alloc(struct nexus_adapter *, uint32_t); 67 static struct nexus_upipe_adapter *nx_upipe_find(struct nexus_adapter *, 69 static int nx_upipe_na_add(struct nexus_adapter *, 71 static void nx_upipe_na_remove(struct nexus_adapter *, 79 static int nx_upipe_na_krings_create(struct nexus_adapter *, 81 static int nx_upipe_na_activate(struct nexus_adapter *, na_activate_mode_t); 82 static void nx_upipe_na_krings_delete(struct nexus_adapter *, 84 static void nx_upipe_na_dtor(struct nexus_adapter *); 110 struct kern_nexus *, struct nexus_adapter *); 116 static void na_upipe_free(struct nexus_adapter *); [all …]
|
| /xnu-11417.140.69/bsd/skywalk/nexus/netif/ |
| H A D | nx_netif_host.h | 35 extern int nx_netif_host_na_activate(struct nexus_adapter *, 37 extern int nx_netif_host_krings_create(struct nexus_adapter *, 39 extern void nx_netif_host_krings_delete(struct nexus_adapter *, 45 extern int nx_netif_host_na_special(struct nexus_adapter *,
|
| H A D | nx_netif.h | 469 struct nexus_adapter nifna_up; 502 extern int nx_netif_dev_krings_create(struct nexus_adapter *, 504 extern void nx_netif_dev_krings_delete(struct nexus_adapter *, 507 struct chreq *, struct nxbind *, struct proc *, struct nexus_adapter **, 509 extern int nx_netif_na_special(struct nexus_adapter *, 511 extern int nx_netif_na_special_common(struct nexus_adapter *, 521 struct kern_nexus *, struct nexus_adapter *); 540 extern void na_netif_free(struct nexus_adapter *); 607 struct nexus_adapter **); 661 struct nexus_adapter **); [all …]
|
| H A D | nx_netif_filter_vp.c | 75 netif_filter_deliver(struct nexus_adapter *na, struct __kern_channel_ring *ring, in netif_filter_deliver() 124 DTRACE_SKYWALK4(delivered, struct nexus_adapter *, na, in netif_filter_deliver() 132 DTRACE_SKYWALK2(deliver__drop, struct nexus_adapter *, na, in netif_filter_deliver() 149 struct nexus_adapter *__single na = arg; in netif_filter_rx_cb() 158 struct nexus_adapter *__single na = arg; in netif_filter_tx_cb() 178 netif_filter_na_activate(struct nexus_adapter *na, na_activate_mode_t mode) in netif_filter_na_activate() 208 netif_filter_na_krings_create(struct nexus_adapter *na, struct kern_channel *ch) in netif_filter_na_krings_create() 215 netif_filter_na_krings_delete(struct nexus_adapter *na, struct kern_channel *ch, in netif_filter_na_krings_delete() 223 netif_filter_region_params_setup(struct nexus_adapter *na, in netif_filter_region_params_setup() 308 netif_filter_na_mem_new(struct nexus_adapter *na) in netif_filter_na_mem_new() [all …]
|
| H A D | nx_netif_host.c | 40 static void nx_netif_host_catch_tx(struct nexus_adapter *, bool); 42 nx_netif_mbuf_to_kpkt(struct nexus_adapter *, struct mbuf *); 47 nx_netif_host_is_gso_needed(struct nexus_adapter *na) in nx_netif_host_is_gso_needed() 80 nx_netif_host_adjust_if_capabilities(struct nexus_adapter *na, bool activate) in nx_netif_host_adjust_if_capabilities() 177 nx_netif_host_na_activate(struct nexus_adapter *na, na_activate_mode_t mode) in nx_netif_host_na_activate() 232 nx_netif_host_krings_create(struct nexus_adapter *na, struct kern_channel *ch) in nx_netif_host_krings_create() 272 nx_netif_host_krings_delete(struct nexus_adapter *na, struct kern_channel *ch, in nx_netif_host_krings_delete() 327 nx_netif_host_na_special(struct nexus_adapter *na, struct kern_channel *ch, in nx_netif_host_na_special() 341 nx_netif_host_catch_tx(struct nexus_adapter *na, bool activate) in nx_netif_host_catch_tx() 440 struct nexus_adapter *hwna = nx_port_get_na(nx, NEXUS_PORT_NET_IF_DEV); in nx_netif_host_output() [all …]
|
| H A D | nx_netif_vp.c | 88 netif_vp_na_channel_event_notify(struct nexus_adapter *, 135 netif_deliver_pkt(struct nexus_adapter *na, struct __kern_packet *pkt_chain, in netif_deliver_pkt() 182 DTRACE_SKYWALK4(delivered, struct nexus_adapter *, na, in netif_deliver_pkt() 191 DTRACE_SKYWALK2(deliver__drop, struct nexus_adapter *, na, in netif_deliver_pkt() 284 struct nexus_adapter *hwna; in netif_llw_rx_notify_fast() 393 netif_vp_na_activate_on(struct nexus_adapter *na) in netif_vp_na_activate_on() 437 netif_vp_na_activate_off(struct nexus_adapter *na) in netif_vp_na_activate_off() 444 DTRACE_SKYWALK1(already__off, struct nexus_adapter *, na); in netif_vp_na_activate_off() 461 netif_vp_na_activate(struct nexus_adapter *na, na_activate_mode_t mode) in netif_vp_na_activate() 632 struct nexus_adapter *na = &dev_nifna->nifna_up; in netif_vp_send_pkt_chain() [all …]
|
| H A D | nx_netif.c | 139 static void nx_netif_na_dtor(struct nexus_adapter *na); 144 static int nx_netif_na_activate(struct nexus_adapter *, na_activate_mode_t); 416 struct nexus_adapter *na = nx_port_get_na(nx, NEXUS_PORT_NET_IF_DEV); in nx_netif_prov_nx_stop() 586 struct kern_nexus *nx, struct nexus_adapter *na) in nx_netif_prov_mem_new() 1288 DTRACE_SKYWALK2(release__vpna__ifp, struct nexus_adapter *, in nx_netif_dom_defunct_finalize() 1316 na_netif_free(struct nexus_adapter *na) in na_netif_free() 1712 struct nexus_adapter *hwna = &NA(ifp)->nifna_up; in nx_netif_doorbell_internal() 1842 nx_netif_na_dtor(struct nexus_adapter *na) in nx_netif_na_dtor() 2068 nx_netif_na_activate(struct nexus_adapter *na, na_activate_mode_t mode) in nx_netif_na_activate() 2250 struct nexus_adapter *__single devna = NULL; in nx_netif_attach() [all …]
|
| H A D | nx_netif_compat.c | 68 static int nx_netif_compat_xmit_frame(struct nexus_adapter *, struct mbuf *, 75 static int nx_netif_compat_na_activate(struct nexus_adapter *, 81 static void nx_netif_compat_na_dtor(struct nexus_adapter *na); 95 static void na_netif_compat_free(struct nexus_adapter *); 195 na_netif_compat_free(struct nexus_adapter *na) in na_netif_compat_free() 342 struct nexus_adapter *na = &NA(ifp)->nifna_up; in nx_netif_compat_tx_intr() 389 nx_netif_compat_na_activate(struct nexus_adapter *na, na_activate_mode_t mode) in nx_netif_compat_na_activate() 881 struct nexus_adapter *na = KRNA(kring); in nx_netif_compat_na_txsync() 1054 struct nexus_adapter *na = &NA(ifp)->nifna_up; in nx_netif_compat_receive() 1277 struct nexus_adapter *na = KRNA(kring); in nx_netif_compat_na_rxsync() [all …]
|
| /xnu-11417.140.69/bsd/skywalk/nexus/monitor/ |
| H A D | nx_monitor.h | 66 struct nexus_adapter mna_up; 68 struct nexus_adapter *mna_pna; 82 struct nexus_adapter **, boolean_t); 83 extern void nx_mon_stop(struct nexus_adapter *);
|
| H A D | nx_monitor.c | 109 static int nx_mon_na_krings_create(struct nexus_adapter *, 111 static void nx_mon_na_krings_delete(struct nexus_adapter *, 116 static int nx_mon_na_krings_locks(struct nexus_adapter *, 118 static void nx_mon_na_krings_unlock(struct nexus_adapter *, 120 static int nx_mon_enable(struct nexus_adapter *, int); 121 static void nx_mon_disable(struct nexus_adapter *); 126 static int nx_mon_na_activate_common(struct nexus_adapter *, 132 static int nx_mon_zcopy_na_activate(struct nexus_adapter *, na_activate_mode_t); 133 static void nx_mon_zcopy_na_dtor(struct nexus_adapter *); 137 static int nx_mon_na_activate(struct nexus_adapter *, na_activate_mode_t); [all …]
|
| /xnu-11417.140.69/bsd/skywalk/nexus/flowswitch/ |
| H A D | fsw_vp.c | 59 static void fsw_vp_na_dtor(struct nexus_adapter *); 60 static int fsw_vp_na_special(struct nexus_adapter *, 63 static void fsw_vp_na_free(struct nexus_adapter *); 64 static int fsw_vp_na_channel_event_notify(struct nexus_adapter *vpna, 73 fsw_vp_na_activate(struct nexus_adapter *na, na_activate_mode_t mode) in fsw_vp_na_activate() 143 fsw_vp_na_dtor(struct nexus_adapter *na) in fsw_vp_na_dtor() 166 fsw_vp_na_krings_create(struct nexus_adapter *na, struct kern_channel *ch) in fsw_vp_na_krings_create() 176 fsw_vp_na_krings_delete(struct nexus_adapter *na, struct kern_channel *ch, in fsw_vp_na_krings_delete() 276 fsw_vp_na_special(struct nexus_adapter *na, struct kern_channel *ch, in fsw_vp_na_special() 343 struct nexus_adapter *na; in fsw_vp_na_create() [all …]
|
| H A D | fsw_var.h | 112 extern int fsw_vp_na_activate(struct nexus_adapter *na, 114 extern int fsw_vp_na_krings_create(struct nexus_adapter *na, 116 extern void fsw_vp_na_krings_delete(struct nexus_adapter *na, 132 struct nexus_adapter *hostna); 134 struct nexus_adapter *hostna); 207 struct nexus_adapter *hostna); 209 struct nexus_adapter *hostna);
|
| H A D | nx_flowswitch.h | 130 struct nexus_adapter vpna_up; 232 struct nexus_adapter *fsw_nifna; /* netif adapter */ 362 struct chreq *, struct nxbind *, struct proc *, struct nexus_adapter **, 369 extern void fsw_devna_rx(struct nexus_adapter *, struct __kern_packet *,
|
| H A D | fsw_classq.c | 34 fsw_classq_setup(struct nx_flowswitch *fsw, struct nexus_adapter *hostna) in fsw_classq_setup() 48 fsw_classq_teardown(struct nx_flowswitch *fsw, struct nexus_adapter *hostna) in fsw_classq_teardown()
|
| H A D | fsw.c | 109 static int fsw_detach(struct nx_flowswitch *fsw, struct nexus_adapter *hwna, 362 fsw_setup_ifp(struct nx_flowswitch *fsw, struct nexus_adapter *hwna) in fsw_setup_ifp() 518 fsw_teardown_ifp(struct nx_flowswitch *fsw, struct nexus_adapter *hwna) in fsw_teardown_ifp() 585 struct nexus_adapter *hwna; in fsw_host_setup() 633 struct nexus_adapter *hwna = fsw->fsw_host_ch->ch_na; in fsw_host_teardown() 674 struct nexus_adapter *hwna = fsw->fsw_dev_ch->ch_na; in fsw_netif_set_callbacks_common() 1428 struct nexus_adapter *na = &vpna->vpna_up; in fsw_port_ctor() 1526 error = nx_port_alloc(nx, nx_port, nxb, (struct nexus_adapter **)vpna, p); in fsw_port_alloc__() 1830 struct nexus_adapter *na; in fsw_mib_get_flow_adv() 2110 struct nexus_adapter *na; in fsw_mib_get_userstack_stats() [all …]
|
| H A D | nx_flowswitch.c | 118 struct kern_nexus *, struct nexus_adapter *); 367 fsw_vp_region_params_setup(struct nexus_adapter *na, in fsw_vp_region_params_setup() 414 struct kern_nexus *nx, struct nexus_adapter *na) in nx_fsw_prov_mem_new() 911 struct nexus_adapter **na, boolean_t create) in nx_fsw_na_find()
|
| /xnu-11417.140.69/bsd/skywalk/nexus/kpipe/ |
| H A D | nx_kernel_pipe.c | 71 static int nx_kpipe_na_activate(struct nexus_adapter *, na_activate_mode_t); 72 static void nx_kpipe_na_dtor(struct nexus_adapter *); 73 static int nx_kpipe_na_krings_create(struct nexus_adapter *, 75 static void nx_kpipe_na_krings_delete(struct nexus_adapter *, 102 struct kern_nexus *, struct nexus_adapter *); 110 static void na_kpipe_free(struct nexus_adapter *); 406 struct nexus_adapter *na = ch->ch_na; in nx_kpipe_dom_defunct() 506 struct kern_nexus *nx, struct nexus_adapter *na) in nx_kpipe_prov_mem_new() 597 na_kpipe_free(struct nexus_adapter *na) in na_kpipe_free() 638 nx_kpipe_na_activate(struct nexus_adapter *na, na_activate_mode_t mode) in nx_kpipe_na_activate() [all …]
|
| H A D | nx_kernel_pipe.h | 67 struct nexus_adapter kna_up; 76 struct chreq *, struct nxbind *, struct proc *, struct nexus_adapter **,
|
| /xnu-11417.140.69/bsd/skywalk/nexus/flowswitch/flow/ |
| H A D | flow_owner.c | 190 nexus_port_t nx_port, struct nexus_adapter *nx_port_na, in flow_owner_bucket_activate_nx_port_common() 207 *(struct nexus_adapter **)(uintptr_t)&fo->fo_nx_port_na = nx_port_na; in flow_owner_bucket_activate_nx_port_common() 230 *(struct nexus_adapter **)(uintptr_t)&fo->fo_nx_port_na = NULL; in flow_owner_bucket_activate_nx_port_common() 243 struct nexus_adapter *nx_port_na, na_activate_mode_t mode) in flow_owner_activate_nexus_port() 350 struct nx_flowswitch *fsw, struct nexus_adapter *nx_port_na, in flow_owner_alloc() 412 *(struct nexus_adapter **)(uintptr_t)&fo->fo_nx_port_na = nx_port_na; in flow_owner_alloc()
|
| /xnu-11417.140.69/bsd/skywalk/channel/ |
| H A D | channel_var.h | 143 struct nexus_adapter *ch_na; 368 struct nexus_adapter *ckr_na; /* adapter this kring belongs to */ 860 extern void csi_selrecord_all(struct nexus_adapter *, enum txrx, struct proc *, 864 extern void csi_selwakeup_all(struct nexus_adapter *, enum txrx, boolean_t,
|
| H A D | channel_kern.c | 336 struct nexus_adapter *hwna; in kern_channel_tx_refill_common() 465 struct nexus_adapter *hwna; in _kern_channel_flowadv_signal() 551 struct nexus_adapter *hwna; in kern_channel_flowadv_report_ce_event()
|