Home
last modified time | relevance | path

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

/xnu-11417.121.6/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.c115 struct nexus_vp_adapter **vpna) in fsw_attach_vp() argument
125 *vpna = NULL; in fsw_attach_vp()
129 err = fsw_port_alloc(fsw, nxb, vpna, chr->cr_port, p, FALSE, FALSE); in fsw_attach_vp()
133 ASSERT(*vpna == NULL); in fsw_attach_vp()
135 } else if (*vpna != NULL) { in fsw_attach_vp()
142 ASSERT(*vpna == NULL); in fsw_attach_vp()
145 err = fsw_vp_na_create(nx, chr, p, vpna); in fsw_attach_vp()
152 err = fsw_port_alloc(fsw, nxb, vpna, (*vpna)->vpna_nx_port, p, FALSE, FALSE); in fsw_attach_vp()
156 if ((*vpna) != NULL) { in fsw_attach_vp()
157 (*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.c1153 struct nexus_vp_adapter *vpna = VPNA(KRNA(r)); in fsw_tx_ring_dequeue_pktq() local
1196 if (NA_CHANNEL_EVENT_ATTACHED(&vpna->vpna_up)) { in fsw_tx_ring_dequeue_pktq()
1198 vpna->vpna_nx_port, vpna->vpna_gencnt); in fsw_tx_ring_dequeue_pktq()
4155 struct nexus_vp_adapter *vpna = VPNA(KRNA(r)); in fsw_ring_flush() local
4158 ASSERT(vpna->vpna_nx_port != FSW_VP_HOST); in fsw_ring_flush()
4159 ASSERT(vpna->vpna_up.na_md_type == NEXUS_META_TYPE_PACKET); in fsw_ring_flush()
4161 if (vpna->vpna_nx_port == FSW_VP_DEV) { in fsw_ring_flush()
/xnu-11417.121.6/bsd/skywalk/nexus/netif/
H A Dnx_netif_vp.c1079 netif_vp_na_channel_event_notify(struct nexus_adapter *vpna, in netif_vp_na_channel_event_notify() argument
1090 struct __kern_channel_ring *ring = &vpna->na_event_rings[0]; in netif_vp_na_channel_event_notify()
1091 struct netif_stats *nifs = &NIFNA(vpna)->nifna_netif->nif_stats; in netif_vp_na_channel_event_notify()
1101 if (__improbable(!NA_IS_ACTIVE(vpna))) { in netif_vp_na_channel_event_notify()
1106 if (__improbable(NA_IS_DEFUNCT(vpna))) { in netif_vp_na_channel_event_notify()
1111 if (!NA_CHANNEL_EVENT_ATTACHED(vpna)) { in netif_vp_na_channel_event_notify()
1155 kern_channel_event_notify(&vpna->na_tx_rings[0]); in netif_vp_na_channel_event_notify()