Home
last modified time | relevance | path

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

/xnu-10063.141.1/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
124 *vpna = NULL; in fsw_attach_vp()
128 err = fsw_port_alloc(fsw, nxb, vpna, chr->cr_port, p, FALSE, FALSE); in fsw_attach_vp()
132 ASSERT(*vpna == NULL); in fsw_attach_vp()
134 } else if (*vpna != NULL) { in fsw_attach_vp()
141 ASSERT(*vpna == NULL); in fsw_attach_vp()
144 err = fsw_vp_na_create(nx, chr, p, vpna); in fsw_attach_vp()
151 err = fsw_port_alloc(fsw, nxb, vpna, (*vpna)->vpna_nx_port, p, FALSE, FALSE); in fsw_attach_vp()
155 if ((*vpna) != NULL) { in fsw_attach_vp()
158 "nx_port %d (err %d)", (*vpna)->vpna_up.na_name, 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.c911 struct nexus_vp_adapter *vpna = NULL; in nx_fsw_na_find() local
942 error = fsw_attach_vp(nx, ch, chr, nxb, p, &vpna); in nx_fsw_na_find()
943 ASSERT(vpna == NULL || error == 0); in nx_fsw_na_find()
947 *na = &vpna->vpna_up; in nx_fsw_na_find()
951 cr_name, (int)vpna->vpna_nx_port); in nx_fsw_na_find()
H A Dfsw_dp.c1068 struct nexus_vp_adapter *vpna = VPNA(KRNA(r)); in fsw_tx_ring_dequeue_pktq() local
1111 if (NA_CHANNEL_EVENT_ATTACHED(&vpna->vpna_up)) { in fsw_tx_ring_dequeue_pktq()
1113 vpna->vpna_nx_port, vpna->vpna_gencnt); in fsw_tx_ring_dequeue_pktq()
3985 struct nexus_vp_adapter *vpna = VPNA(KRNA(r)); in fsw_ring_flush() local
3988 ASSERT(vpna->vpna_nx_port != FSW_VP_HOST); in fsw_ring_flush()
3989 ASSERT(vpna->vpna_up.na_md_type == NEXUS_META_TYPE_PACKET); in fsw_ring_flush()
3991 if (vpna->vpna_nx_port == FSW_VP_DEV) { in fsw_ring_flush()
/xnu-10063.141.1/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()
1099 if (__improbable(!NA_IS_ACTIVE(vpna))) { in netif_vp_na_channel_event_notify()
1104 if (__improbable(NA_IS_DEFUNCT(vpna))) { in netif_vp_na_channel_event_notify()
1109 if (!NA_CHANNEL_EVENT_ATTACHED(vpna)) { in netif_vp_na_channel_event_notify()
1152 kern_channel_event_notify(&vpna->na_tx_rings[0]); in netif_vp_na_channel_event_notify()