| /xnu-12377.1.9/bsd/skywalk/nexus/ |
| H A D | nexus_adapter.h | 116 struct nexus_adapter { struct 281 int (*na_activate)(struct nexus_adapter *, na_activate_mode_t); argument 287 int (*na_special)(struct nexus_adapter *, struct kern_channel *, argument 325 int (*na_channel_event_notify)(struct nexus_adapter *, argument 332 int (*na_config)(struct nexus_adapter *, argument 339 int (*na_krings_create)(struct nexus_adapter *, struct kern_channel *); argument 340 void (*na_krings_delete)(struct nexus_adapter *, struct kern_channel *, argument 346 void (*na_dtor)(struct nexus_adapter *); argument 351 void (*na_free)(struct nexus_adapter *); argument 358 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 *); 485 struct nxbind *, struct nexus_adapter **, struct proc *); 491 extern struct nexus_adapter *nx_port_get_na(struct kern_nexus *,
|
| /xnu-12377.1.9/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-12377.1.9/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 | 477 struct nexus_adapter nifna_up; 510 extern int nx_netif_dev_krings_create(struct nexus_adapter *, 512 extern void nx_netif_dev_krings_delete(struct nexus_adapter *, 515 struct chreq *, struct nxbind *, struct proc *, struct nexus_adapter **, 517 extern int nx_netif_na_special(struct nexus_adapter *, 519 extern int nx_netif_na_special_common(struct nexus_adapter *, 529 struct kern_nexus *, struct nexus_adapter *); 548 extern void na_netif_free(struct nexus_adapter *); 615 struct nexus_adapter **); 669 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() 271 nx_netif_host_krings_delete(struct nexus_adapter *na, struct kern_channel *ch, in nx_netif_host_krings_delete() 326 nx_netif_host_na_special(struct nexus_adapter *na, struct kern_channel *ch, in nx_netif_host_na_special() 340 nx_netif_host_catch_tx(struct nexus_adapter *na, bool activate) in nx_netif_host_catch_tx() 439 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() 396 netif_vp_na_activate_on(struct nexus_adapter *na) in netif_vp_na_activate_on() 440 netif_vp_na_activate_off(struct nexus_adapter *na) in netif_vp_na_activate_off() 447 DTRACE_SKYWALK1(already__off, struct nexus_adapter *, na); in netif_vp_na_activate_off() 464 netif_vp_na_activate(struct nexus_adapter *na, na_activate_mode_t mode) in netif_vp_na_activate() 635 struct nexus_adapter *na = &dev_nifna->nifna_up; in netif_vp_send_pkt_chain() 770 netif_vp_na_krings_create(struct nexus_adapter *na, struct kern_channel *ch) in netif_vp_na_krings_create() [all …]
|
| H A D | nx_netif.c | 140 static void nx_netif_na_dtor(struct nexus_adapter *na); 145 static int nx_netif_na_activate(struct nexus_adapter *, na_activate_mode_t); 417 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() 1287 DTRACE_SKYWALK2(release__vpna__ifp, struct nexus_adapter *, in nx_netif_dom_defunct_finalize() 1315 na_netif_free(struct nexus_adapter *na) in na_netif_free() 1711 struct nexus_adapter *hwna = &NA(ifp)->nifna_up; in nx_netif_doorbell_internal() 1839 nx_netif_na_dtor(struct nexus_adapter *na) in nx_netif_na_dtor() 2065 nx_netif_na_activate(struct nexus_adapter *na, na_activate_mode_t mode) in nx_netif_na_activate() 2247 struct nexus_adapter *__single devna = NULL; in nx_netif_attach() [all …]
|
| H A D | nx_netif_compat.c | 69 static int nx_netif_compat_xmit_frame(struct nexus_adapter *, struct mbuf *, 76 static int nx_netif_compat_na_activate(struct nexus_adapter *, 82 static void nx_netif_compat_na_dtor(struct nexus_adapter *na); 96 static void na_netif_compat_free(struct nexus_adapter *); 196 na_netif_compat_free(struct nexus_adapter *na) in na_netif_compat_free() 343 struct nexus_adapter *na = &NA(ifp)->nifna_up; in nx_netif_compat_tx_intr() 390 nx_netif_compat_na_activate(struct nexus_adapter *na, na_activate_mode_t mode) in nx_netif_compat_na_activate() 882 struct nexus_adapter *na = KRNA(kring); in nx_netif_compat_na_txsync() 1055 struct nexus_adapter *na = &NA(ifp)->nifna_up; in nx_netif_compat_receive() 1278 struct nexus_adapter *na = KRNA(kring); in nx_netif_compat_na_rxsync() [all …]
|
| H A D | nx_netif_poll.c | 336 struct nexus_adapter *na = &NA(ifp)->nifna_up; in netif_rxpoll_process_interrupt() 371 struct nexus_adapter *na = &NA(ifp)->nifna_up; in netif_rxpoll_compat_thread_cont()
|
| /xnu-12377.1.9/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() 274 fsw_vp_na_special(struct nexus_adapter *na, struct kern_channel *ch, in fsw_vp_na_special() 341 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); 209 struct nexus_adapter *hostna); 211 struct nexus_adapter *hostna);
|
| H A D | nx_flowswitch.h | 130 struct nexus_adapter vpna_up; 232 struct nexus_adapter *fsw_nifna; /* netif adapter */ 365 struct chreq *, struct nxbind *, struct proc *, struct nexus_adapter **, 372 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 | 112 static int fsw_detach(struct nx_flowswitch *fsw, struct nexus_adapter *hwna, 365 fsw_setup_ifp(struct nx_flowswitch *fsw, struct nexus_adapter *hwna) in fsw_setup_ifp() 521 fsw_teardown_ifp(struct nx_flowswitch *fsw, struct nexus_adapter *hwna) in fsw_teardown_ifp() 588 struct nexus_adapter *hwna; 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() 1439 struct nexus_adapter *na = &vpna->vpna_up; in fsw_port_ctor() 1537 error = nx_port_alloc(nx, nx_port, nxb, (struct nexus_adapter **)vpna, p); in fsw_port_alloc__() 1841 struct nexus_adapter *na; in fsw_mib_get_flow_adv() 2121 struct nexus_adapter *na; in fsw_mib_get_userstack_stats() [all …]
|
| H A D | nx_flowswitch.c | 118 struct kern_nexus *, struct nexus_adapter *); 366 fsw_vp_region_params_setup(struct nexus_adapter *na, in fsw_vp_region_params_setup() 413 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-12377.1.9/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 *); 405 struct nexus_adapter *na = ch->ch_na; in nx_kpipe_dom_defunct() 505 struct kern_nexus *nx, struct nexus_adapter *na) in nx_kpipe_prov_mem_new() 596 na_kpipe_free(struct nexus_adapter *na) in na_kpipe_free() 636 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-12377.1.9/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-12377.1.9/bsd/skywalk/channel/ |
| H A D | channel_var.h | 144 struct nexus_adapter *ch_na; 368 struct nexus_adapter *ckr_na; /* adapter this kring belongs to */ 826 extern void csi_selrecord_all(struct nexus_adapter *, enum txrx, struct proc *, 830 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_congestion_event()
|
| /xnu-12377.1.9/bsd/skywalk/mem/ |
| H A D | skmem_arena_var.h | 238 const struct nexus_adapter *, struct skmem_region_params[SKMEM_REGIONS],
|