Home
last modified time | relevance | path

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

/xnu-12377.1.9/bsd/skywalk/nexus/flowswitch/
H A Dfsw_vp.c64 static int fsw_vp_na_channel_event_notify(struct nexus_adapter *vpna,
76 struct nexus_vp_adapter *vpna = (struct nexus_vp_adapter *)(void *)na; in fsw_vp_na_activate() local
77 struct nx_flowswitch *fsw = vpna->vpna_fsw; in fsw_vp_na_activate()
91 vpna->vpna_gencnt = fsw_vpna_gencnt; in fsw_vp_na_activate()
97 ret = fsw_port_na_activate(fsw, vpna, mode); in fsw_vp_na_activate()
145 struct nexus_vp_adapter *vpna = (struct nexus_vp_adapter *)(void *)na; in fsw_vp_na_dtor() local
146 struct nx_flowswitch *fsw = vpna->vpna_fsw; in fsw_vp_na_dtor()
155 fsw_port_free(fsw, vpna, vpna->vpna_nx_port, FALSE); in fsw_vp_na_dtor()
190 struct nexus_vp_adapter *vpna = VPNA(KRNA(kring)); in fsw_vp_na_txsync() local
191 struct nx_flowswitch *fsw = vpna->vpna_fsw; in fsw_vp_na_txsync()
[all …]
H A Dfsw.c118 struct nexus_vp_adapter **vpna) in fsw_attach_vp() argument
128 *vpna = NULL; in fsw_attach_vp()
132 err = fsw_port_alloc(fsw, nxb, vpna, chr->cr_port, p, FALSE, FALSE); in fsw_attach_vp()
136 ASSERT(*vpna == NULL); in fsw_attach_vp()
138 } else if (*vpna != NULL) { in fsw_attach_vp()
145 ASSERT(*vpna == NULL); in fsw_attach_vp()
148 err = fsw_vp_na_create(nx, chr, p, vpna); in fsw_attach_vp()
155 err = fsw_port_alloc(fsw, nxb, vpna, (*vpna)->vpna_nx_port, p, FALSE, FALSE); in fsw_attach_vp()
159 if ((*vpna) != NULL) { in fsw_attach_vp()
160 (*vpna)->vpna_up.na_private = ch; 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.c913 struct nexus_vp_adapter *__single vpna = NULL; in nx_fsw_na_find() local
944 error = fsw_attach_vp(nx, ch, chr, nxb, p, &vpna); in nx_fsw_na_find()
945 ASSERT(vpna == NULL || error == 0); in nx_fsw_na_find()
949 *na = &vpna->vpna_up; in nx_fsw_na_find()
953 cr_name, (int)vpna->vpna_nx_port); in nx_fsw_na_find()
H A Dfsw_dp.c1172 struct nexus_vp_adapter *vpna = VPNA(KRNA(r)); in fsw_tx_ring_dequeue_pktq() local
1215 if (NA_CHANNEL_EVENT_ATTACHED(&vpna->vpna_up)) { in fsw_tx_ring_dequeue_pktq()
1217 vpna->vpna_nx_port, vpna->vpna_gencnt); in fsw_tx_ring_dequeue_pktq()
4242 struct nexus_vp_adapter *vpna = VPNA(KRNA(r)); in fsw_ring_flush() local
4245 ASSERT(vpna->vpna_nx_port != FSW_VP_HOST); in fsw_ring_flush()
4246 ASSERT(vpna->vpna_up.na_md_type == NEXUS_META_TYPE_PACKET); in fsw_ring_flush()
4248 if (vpna->vpna_nx_port == FSW_VP_DEV) { in fsw_ring_flush()
/xnu-12377.1.9/bsd/skywalk/nexus/netif/
H A Dnx_netif_vp.c1082 netif_vp_na_channel_event_notify(struct nexus_adapter *vpna, in netif_vp_na_channel_event_notify() argument
1093 struct __kern_channel_ring *ring = &vpna->na_event_rings[0]; in netif_vp_na_channel_event_notify()
1094 struct netif_stats *nifs = &NIFNA(vpna)->nifna_netif->nif_stats; in netif_vp_na_channel_event_notify()
1104 if (__improbable(!NA_IS_ACTIVE(vpna))) { in netif_vp_na_channel_event_notify()
1109 if (__improbable(NA_IS_DEFUNCT(vpna))) { in netif_vp_na_channel_event_notify()
1114 if (!NA_CHANNEL_EVENT_ATTACHED(vpna)) { in netif_vp_na_channel_event_notify()
1158 kern_channel_event_notify(&vpna->na_tx_rings[0]); in netif_vp_na_channel_event_notify()