Home
last modified time | relevance | path

Searched refs:nexus_adapter (Results 1 – 25 of 40) sorted by relevance

12

/xnu-8019.80.24/bsd/skywalk/nexus/
H A Dnexus_adapter.h119 struct nexus_adapter { struct
273 int (*na_activate)(struct nexus_adapter *, na_activate_mode_t); argument
279 int (*na_special)(struct nexus_adapter *, struct kern_channel *, argument
317 int (*na_channel_event_notify)(struct nexus_adapter *, argument
324 int (*na_config)(struct nexus_adapter *, argument
331 int (*na_krings_create)(struct nexus_adapter *, struct kern_channel *); argument
332 void (*na_krings_delete)(struct nexus_adapter *, struct kern_channel *, argument
338 void (*na_dtor)(struct nexus_adapter *); argument
343 void (*na_free)(struct nexus_adapter *); argument
350 void (*na_rx)(struct nexus_adapter *, argument
[all …]
H A Dnexus_adapter.c66 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 *, uint32_t, 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 Dnexus_var.h175 ((struct nexus_adapter *)NPI_NA_ADDR((_npi)->npi_nah))
307 struct kern_nexus *, struct nexus_adapter *);
475 struct nxbind *, struct nexus_adapter **, struct proc *);
481 extern struct nexus_adapter *nx_port_get_na(struct kern_nexus *,
/xnu-8019.80.24/bsd/skywalk/nexus/upipe/
H A Dnx_user_pipe.h68 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 Dnx_user_pipe.c66 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-8019.80.24/bsd/skywalk/nexus/netif/
H A Dnx_netif_host.h35 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 Dnx_netif.h115 struct nexus_adapter nifna_up;
481 extern int nx_netif_dev_krings_create(struct nexus_adapter *,
483 extern void nx_netif_dev_krings_delete(struct nexus_adapter *,
486 struct chreq *, struct nxbind *, struct proc *, struct nexus_adapter **,
488 extern int nx_netif_na_special(struct nexus_adapter *,
490 extern int nx_netif_na_special_common(struct nexus_adapter *,
500 struct kern_nexus *, struct nexus_adapter *);
519 extern void na_netif_free(struct nexus_adapter *);
521 extern int nx_netif_interface_advisory_report(struct nexus_adapter *,
587 struct nexus_adapter **);
[all …]
H A Dnx_netif_filter_vp.c75 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 *na = arg; in netif_filter_rx_cb()
158 struct nexus_adapter *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 Dnx_netif_host.c40 static void nx_netif_host_catch_tx(struct nexus_adapter *, boolean_t);
42 nx_netif_mbuf_to_kpkt(struct nexus_adapter *, struct mbuf *);
47 nx_netif_host_na_activate(struct nexus_adapter *na, na_activate_mode_t mode) in nx_netif_host_na_activate()
167 nx_netif_host_krings_create(struct nexus_adapter *na, struct kern_channel *ch) in nx_netif_host_krings_create()
207 nx_netif_host_krings_delete(struct nexus_adapter *na, struct kern_channel *ch, in nx_netif_host_krings_delete()
262 nx_netif_host_na_special(struct nexus_adapter *na, struct kern_channel *ch, in nx_netif_host_na_special()
276 nx_netif_host_catch_tx(struct nexus_adapter *na, boolean_t enable) in nx_netif_host_catch_tx()
367 struct nexus_adapter *hwna = nx_port_get_na(nx, NEXUS_PORT_NET_IF_DEV); in nx_netif_host_output()
368 struct nexus_adapter *hostna = nx_port_get_na(nx, NEXUS_PORT_NET_IF_HOST); in nx_netif_host_output()
473 nx_netif_mbuf_to_kpkt(struct nexus_adapter *na, struct mbuf *m) in nx_netif_mbuf_to_kpkt()
H A Dnx_netif_vp.c82 netif_vp_na_channel_event_notify(struct nexus_adapter *,
129 netif_deliver_pkt(struct nexus_adapter *na, struct __kern_packet *pkt_chain, in netif_deliver_pkt()
176 DTRACE_SKYWALK4(delivered, struct nexus_adapter *, na, in netif_deliver_pkt()
185 DTRACE_SKYWALK2(deliver__drop, struct nexus_adapter *, na, in netif_deliver_pkt()
277 struct nexus_adapter *hwna; in netif_llw_rx_notify_fast()
386 netif_vp_na_activate_on(struct nexus_adapter *na) in netif_vp_na_activate_on()
428 netif_vp_na_activate_off(struct nexus_adapter *na) in netif_vp_na_activate_off()
448 netif_vp_na_activate(struct nexus_adapter *na, na_activate_mode_t mode) in netif_vp_na_activate()
474 struct nexus_adapter *na = &dev_nifna->nifna_up; in netif_vp_send_pkt_chain_low_latency()
623 struct nexus_adapter *na = &dev_nifna->nifna_up; in netif_vp_send_pkt_chain()
[all …]
H A Dnx_netif.c139 static void nx_netif_na_dtor(struct nexus_adapter *na);
144 static int nx_netif_na_activate(struct nexus_adapter *, na_activate_mode_t);
154 static int nx_netif_na_channel_event_notify(struct nexus_adapter *,
459 struct nexus_adapter *na = nx_port_get_na(nx, NEXUS_PORT_NET_IF_DEV); in nx_netif_prov_nx_stop()
632 struct kern_nexus *nx, struct nexus_adapter *na) in nx_netif_prov_mem_new()
1276 na_netif_free(struct nexus_adapter *na) in na_netif_free()
1633 struct nexus_adapter *hwna = &NA(ifp)->nifna_up; in nx_netif_doorbell_internal()
1763 nx_netif_na_dtor(struct nexus_adapter *na) in nx_netif_na_dtor()
1985 nx_netif_na_activate(struct nexus_adapter *na, na_activate_mode_t mode) in nx_netif_na_activate()
2166 struct nexus_adapter *devna = NULL; in nx_netif_attach()
[all …]
H A Dnx_netif_compat.c68 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 *);
215 na_netif_compat_free(struct nexus_adapter *na) in na_netif_compat_free()
362 struct nexus_adapter *na = &NA(ifp)->nifna_up; in nx_netif_compat_tx_intr()
409 nx_netif_compat_na_activate(struct nexus_adapter *na, na_activate_mode_t mode) in nx_netif_compat_na_activate()
896 struct nexus_adapter *na = KRNA(kring); in nx_netif_compat_na_txsync()
1069 struct nexus_adapter *na = &NA(ifp)->nifna_up; in nx_netif_compat_receive()
1292 struct nexus_adapter *na = KRNA(kring); in nx_netif_compat_na_rxsync()
[all …]
/xnu-8019.80.24/bsd/skywalk/nexus/monitor/
H A Dnx_monitor.h66 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 Dnx_monitor.c109 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-8019.80.24/bsd/skywalk/nexus/flowswitch/
H A Dfsw_var.h112 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,
123 struct nexus_adapter *na);
131 struct nexus_adapter *hostna);
133 struct nexus_adapter *hostna);
198 struct nexus_adapter *hostna);
200 struct nexus_adapter *hostna);
H A Dfsw_vp.c58 static void fsw_vp_na_dtor(struct nexus_adapter *);
59 static int fsw_vp_na_special(struct nexus_adapter *,
62 static void fsw_vp_na_free(struct nexus_adapter *);
69 fsw_vp_na_activate(struct nexus_adapter *na, na_activate_mode_t mode) in fsw_vp_na_activate()
135 fsw_vp_na_dtor(struct nexus_adapter *na) in fsw_vp_na_dtor()
158 fsw_vp_na_krings_create(struct nexus_adapter *na, struct kern_channel *ch) in fsw_vp_na_krings_create()
168 fsw_vp_na_krings_delete(struct nexus_adapter *na, struct kern_channel *ch, in fsw_vp_na_krings_delete()
269 struct nexus_adapter *na) in fsw_vp_na_attach()
283 fsw_vp_na_special(struct nexus_adapter *na, struct kern_channel *ch, in fsw_vp_na_special()
349 struct nexus_adapter *na; in fsw_vp_na_create()
[all …]
H A Dnx_flowswitch.h120 struct nexus_adapter vpna_up;
195 struct nexus_adapter *fsw_nifna; /* netif adapter */
307 struct chreq *, struct nxbind *, struct proc *, struct nexus_adapter **,
314 extern void fsw_devna_rx(struct nexus_adapter *, struct __kern_packet *,
H A Dfsw_classq.c34 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 Dfsw.c99 static int fsw_detach(struct nx_flowswitch *fsw, struct nexus_adapter *hwna,
243 fsw_setup_ifp(struct nx_flowswitch *fsw, struct nexus_adapter *hwna) in fsw_setup_ifp()
390 fsw_teardown_ifp(struct nx_flowswitch *fsw, struct nexus_adapter *hwna) in fsw_teardown_ifp()
456 struct nexus_adapter *hwna; in fsw_host_setup()
504 struct nexus_adapter *hwna = fsw->fsw_host_ch->ch_na; in fsw_host_teardown()
541 struct nexus_adapter *hwna = fsw->fsw_dev_ch->ch_na; in fsw_netif_set_callbacks_common()
1236 struct nexus_adapter *na = &vpna->vpna_up; in fsw_port_ctor()
1334 error = nx_port_alloc(nx, nx_port, nxb, (struct nexus_adapter **)vpna, p); in fsw_port_alloc__()
1637 struct nexus_adapter *na; in fsw_mib_get_flow_adv()
1920 struct nexus_adapter *na; in fsw_mib_get_userstack_stats()
[all …]
/xnu-8019.80.24/bsd/skywalk/nexus/kpipe/
H A Dnx_kernel_pipe.c71 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 *);
402 struct nexus_adapter *na = ch->ch_na; in nx_kpipe_dom_defunct()
507 struct kern_nexus *nx, struct nexus_adapter *na) in nx_kpipe_prov_mem_new()
598 na_kpipe_free(struct nexus_adapter *na) in na_kpipe_free()
639 nx_kpipe_na_activate(struct nexus_adapter *na, na_activate_mode_t mode) in nx_kpipe_na_activate()
[all …]
H A Dnx_kernel_pipe.h67 struct nexus_adapter kna_up;
76 struct chreq *, struct nxbind *, struct proc *, struct nexus_adapter **,
/xnu-8019.80.24/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_owner.c197 nexus_port_t nx_port, struct nexus_adapter *nx_port_na, in flow_owner_bucket_activate_nx_port_common()
214 *(struct nexus_adapter **)(uintptr_t)&fo->fo_nx_port_na = nx_port_na; in flow_owner_bucket_activate_nx_port_common()
235 *(struct nexus_adapter **)(uintptr_t)&fo->fo_nx_port_na = NULL; in flow_owner_bucket_activate_nx_port_common()
248 struct nexus_adapter *nx_port_na, na_activate_mode_t mode) in flow_owner_activate_nexus_port()
355 struct nx_flowswitch *fsw, struct nexus_adapter *nx_port_na, in flow_owner_alloc()
414 *(struct nexus_adapter **)(uintptr_t)&fo->fo_nx_port_na = nx_port_na; in flow_owner_alloc()
/xnu-8019.80.24/bsd/skywalk/channel/
H A Dkern_channel_event.c39 struct nexus_adapter *devna; in kern_channel_event_transmit_status()
H A Dchannel_var.h141 struct nexus_adapter *ch_na;
388 struct nexus_adapter *ckr_na; /* adapter this kring belongs to */
963 extern void csi_selrecord_all(struct nexus_adapter *, enum txrx, struct proc *,
967 extern void csi_selwakeup_all(struct nexus_adapter *, enum txrx, boolean_t,
/xnu-8019.80.24/bsd/skywalk/mem/
H A Dskmem_arena_var.h239 const struct nexus_adapter *, struct skmem_region_params[SKMEM_REGIONS],

12