Home
last modified time | relevance | path

Searched refs:vpna (Results 1 – 6 of 6) sorted by relevance

/xnu-8019.80.24/bsd/skywalk/nexus/flowswitch/
H A Dfsw_vp.c72 struct nexus_vp_adapter *vpna = (struct nexus_vp_adapter *)(void *)na; in fsw_vp_na_activate() local
73 struct nx_flowswitch *fsw = vpna->vpna_fsw; in fsw_vp_na_activate()
89 ret = fsw_port_na_activate(fsw, vpna, mode); in fsw_vp_na_activate()
137 struct nexus_vp_adapter *vpna = (struct nexus_vp_adapter *)(void *)na; in fsw_vp_na_dtor() local
138 struct nx_flowswitch *fsw = vpna->vpna_fsw; in fsw_vp_na_dtor()
147 fsw_port_free(fsw, vpna, vpna->vpna_nx_port, FALSE); in fsw_vp_na_dtor()
182 struct nexus_vp_adapter *vpna = VPNA(KRNA(kring)); in fsw_vp_na_txsync() local
183 struct nx_flowswitch *fsw = vpna->vpna_fsw; in fsw_vp_na_txsync()
348 struct nexus_vp_adapter *vpna; in fsw_vp_na_create() local
363 vpna = fsw_vp_na_alloc(Z_WAITOK); in fsw_vp_na_create()
[all …]
H A Dfsw.c105 struct nexus_vp_adapter **vpna) in fsw_attach_vp() argument
114 *vpna = NULL; in fsw_attach_vp()
118 err = fsw_port_alloc(fsw, nxb, vpna, chr->cr_port, p, FALSE, FALSE); in fsw_attach_vp()
122 ASSERT(*vpna == NULL); in fsw_attach_vp()
124 } else if (*vpna != NULL) { in fsw_attach_vp()
131 ASSERT(*vpna == NULL); in fsw_attach_vp()
134 err = fsw_vp_na_create(nx, chr, vpna); in fsw_attach_vp()
141 err = fsw_vp_na_attach(nx, cr_name, &(*vpna)->vpna_up); in fsw_attach_vp()
144 (*vpna)->vpna_up.na_name, err); in fsw_attach_vp()
149 err = fsw_port_alloc(fsw, nxb, vpna, (*vpna)->vpna_nx_port, p, FALSE, FALSE); in fsw_attach_vp()
[all …]
H A Dfsw_var.h88 struct nexus_vp_adapter *vpna);
93 struct nexus_vp_adapter **vpna);
101 struct nexus_vp_adapter **vpna, nexus_port_t nx_port, struct proc *p,
104 struct nexus_vp_adapter *vpna, nexus_port_t nx_port, boolean_t defunct);
107 struct nexus_vp_adapter *vpna, na_activate_mode_t mode);
H A Dnx_flowswitch.c885 struct nexus_vp_adapter *vpna = NULL; in nx_fsw_na_find() local
916 error = fsw_attach_vp(nx, ch, chr, nxb, p, &vpna); in nx_fsw_na_find()
917 ASSERT(vpna == NULL || error == 0); in nx_fsw_na_find()
921 *na = &vpna->vpna_up; in nx_fsw_na_find()
925 cr_name, (int)vpna->vpna_nx_port); in nx_fsw_na_find()
H A Dfsw_dp.c2946 struct nexus_vp_adapter *vpna = VPNA(KRNA(r)); in fsw_ring_flush() local
2949 ASSERT(vpna->vpna_nx_port != FSW_VP_HOST); in fsw_ring_flush()
2950 ASSERT(vpna->vpna_up.na_md_type == NEXUS_META_TYPE_PACKET); in fsw_ring_flush()
2952 if (vpna->vpna_nx_port == FSW_VP_DEV) { in fsw_ring_flush()
/xnu-8019.80.24/bsd/skywalk/nexus/netif/
H A Dnx_netif_vp.c1067 netif_vp_na_channel_event_notify(struct nexus_adapter *vpna, in netif_vp_na_channel_event_notify() argument
1080 struct __kern_channel_ring *ring = &vpna->na_event_rings[0]; in netif_vp_na_channel_event_notify()
1081 struct netif_stats *nifs = &NIFNA(vpna)->nifna_netif->nif_stats; in netif_vp_na_channel_event_notify()
1083 if (__improbable(!NA_IS_ACTIVE(vpna))) { in netif_vp_na_channel_event_notify()
1088 if (__improbable(NA_IS_DEFUNCT(vpna))) { in netif_vp_na_channel_event_notify()
1093 if (!NA_CHANNEL_EVENT_ATTACHED(vpna)) { in netif_vp_na_channel_event_notify()
1136 kern_channel_event_notify(&vpna->na_tx_rings[0]); in netif_vp_na_channel_event_notify()