Lines Matching refs:vpna
352 struct netmap_vp_adapter *vpna = (struct netmap_vp_adapter *)na; in netmap_vp_bdg_ctl() local
353 struct nm_bridge *b = vpna->na_bdg; in netmap_vp_bdg_ctl()
360 netmap_bdg_detach_common(b, vpna->bdg_port, -1); in netmap_vp_bdg_ctl()
361 vpna->na_bdg = NULL; in netmap_vp_bdg_ctl()
393 struct netmap_vp_adapter *vpna, *hostna = NULL; in netmap_get_bdg_na() local
425 vpna = b->bdg_ports[i]; in netmap_get_bdg_na()
426 nm_prdis("checking %s", vpna->up.name); in netmap_get_bdg_na()
427 if (!strcmp(vpna->up.name, nr_name)) { in netmap_get_bdg_na()
428 netmap_adapter_get(&vpna->up); in netmap_get_bdg_na()
430 *na = &vpna->up; in netmap_get_bdg_na()
466 error = b->bdg_ops.vp_create(hdr, NULL, nmd, &vpna); in netmap_get_bdg_na()
502 vpna = hw->na_vp; in netmap_get_bdg_na()
515 vpna->bdg_port = cand; in netmap_get_bdg_na()
516 nm_prdis("NIC %p to bridge port %d", vpna, cand); in netmap_get_bdg_na()
518 b->bdg_ports[cand] = vpna; in netmap_get_bdg_na()
519 vpna->na_bdg = b; in netmap_get_bdg_na()
529 nm_prdis("if %s refs %d", ifname, vpna->up.na_refcount); in netmap_get_bdg_na()
531 *na = &vpna->up; in netmap_get_bdg_na()
548 struct netmap_vp_adapter * vpna; in netmap_bdg_attach() local
601 vpna = (struct netmap_vp_adapter *)na; in netmap_bdg_attach()
602 req->port_index = vpna->bdg_port; in netmap_bdg_attach()
644 struct netmap_vp_adapter *vpna; in netmap_bdg_detach_locked() local
671 vpna = (struct netmap_vp_adapter *)na; in netmap_bdg_detach_locked()
672 if (na->na_vp != vpna) { in netmap_bdg_detach_locked()
679 nmreq_det->port_index = vpna->bdg_port; in netmap_bdg_detach_locked()
1066 struct netmap_vp_adapter *vpna = in netmap_vp_reg() local
1072 if (vpna->na_bdg) in netmap_vp_reg()
1073 BDG_WLOCK(vpna->na_bdg); in netmap_vp_reg()
1086 if (vpna->na_bdg) in netmap_vp_reg()
1087 BDG_WUNLOCK(vpna->na_bdg); in netmap_vp_reg()
1246 struct netmap_vp_adapter *vpna = &bna->up; in netmap_bwrap_intr_notify() local
1254 bkring = vpna->up.tx_rings[ring_nr]; in netmap_bwrap_intr_notify()