Home
last modified time | relevance | path

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

/xnu-8792.41.9/bsd/skywalk/nexus/flowswitch/
H A Dfsw_vp.c64 static int fsw_vp_na_channel_event_notify(struct nexus_adapter *vpna,
77 struct nexus_vp_adapter *vpna = (struct nexus_vp_adapter *)(void *)na; in fsw_vp_na_activate() local
78 struct nx_flowswitch *fsw = vpna->vpna_fsw; in fsw_vp_na_activate()
92 vpna->vpna_gencnt = fsw_vpna_gencnt; in fsw_vp_na_activate()
98 ret = fsw_port_na_activate(fsw, vpna, mode); in fsw_vp_na_activate()
146 struct nexus_vp_adapter *vpna = (struct nexus_vp_adapter *)(void *)na; in fsw_vp_na_dtor() local
147 struct nx_flowswitch *fsw = vpna->vpna_fsw; in fsw_vp_na_dtor()
156 fsw_port_free(fsw, vpna, vpna->vpna_nx_port, FALSE); in fsw_vp_na_dtor()
191 struct nexus_vp_adapter *vpna = VPNA(KRNA(kring)); in fsw_vp_na_txsync() local
192 struct nx_flowswitch *fsw = vpna->vpna_fsw; in fsw_vp_na_txsync()
[all …]
H A Dfsw.c117 struct nexus_vp_adapter **vpna) in fsw_attach_vp() argument
126 *vpna = NULL; in fsw_attach_vp()
130 err = fsw_port_alloc(fsw, nxb, vpna, chr->cr_port, p, FALSE, FALSE); in fsw_attach_vp()
134 ASSERT(*vpna == NULL); in fsw_attach_vp()
136 } else if (*vpna != NULL) { in fsw_attach_vp()
143 ASSERT(*vpna == NULL); in fsw_attach_vp()
146 err = fsw_vp_na_create(nx, chr, vpna); in fsw_attach_vp()
153 err = fsw_vp_na_attach(nx, cr_name, &(*vpna)->vpna_up); in fsw_attach_vp()
156 (*vpna)->vpna_up.na_name, err); in fsw_attach_vp()
161 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.c877 struct nexus_vp_adapter *vpna = NULL; in nx_fsw_na_find() local
908 error = fsw_attach_vp(nx, ch, chr, nxb, p, &vpna); in nx_fsw_na_find()
909 ASSERT(vpna == NULL || error == 0); in nx_fsw_na_find()
913 *na = &vpna->vpna_up; in nx_fsw_na_find()
917 cr_name, (int)vpna->vpna_nx_port); in nx_fsw_na_find()
H A Dfsw_dp.c833 struct nexus_vp_adapter *vpna = VPNA(KRNA(r)); in fsw_ring_dequeue_pktq() local
852 if (NA_CHANNEL_EVENT_ATTACHED(&vpna->vpna_up)) { in fsw_ring_dequeue_pktq()
854 vpna->vpna_nx_port, vpna->vpna_gencnt); in fsw_ring_dequeue_pktq()
3211 struct nexus_vp_adapter *vpna = VPNA(KRNA(r)); in fsw_ring_flush() local
3214 ASSERT(vpna->vpna_nx_port != FSW_VP_HOST); in fsw_ring_flush()
3215 ASSERT(vpna->vpna_up.na_md_type == NEXUS_META_TYPE_PACKET); in fsw_ring_flush()
3217 if (vpna->vpna_nx_port == FSW_VP_DEV) { in fsw_ring_flush()
/xnu-8792.41.9/bsd/skywalk/nexus/netif/
H A Dnx_netif_vp.c1077 netif_vp_na_channel_event_notify(struct nexus_adapter *vpna, in netif_vp_na_channel_event_notify() argument
1088 struct __kern_channel_ring *ring = &vpna->na_event_rings[0]; in netif_vp_na_channel_event_notify()
1089 struct netif_stats *nifs = &NIFNA(vpna)->nifna_netif->nif_stats; in netif_vp_na_channel_event_notify()
1091 if (__improbable(!NA_IS_ACTIVE(vpna))) { in netif_vp_na_channel_event_notify()
1096 if (__improbable(NA_IS_DEFUNCT(vpna))) { in netif_vp_na_channel_event_notify()
1101 if (!NA_CHANNEL_EVENT_ATTACHED(vpna)) { in netif_vp_na_channel_event_notify()
1144 kern_channel_event_notify(&vpna->na_tx_rings[0]); in netif_vp_na_channel_event_notify()