Lines Matching refs:hostna

393 	struct netmap_vp_adapter *vpna, *hostna = NULL;  in netmap_get_bdg_na()  local
503 hostna = hw->na_hostvp; in netmap_get_bdg_na()
509 hostna = NULL; in netmap_get_bdg_na()
521 if (hostna != NULL) { in netmap_get_bdg_na()
523 b->bdg_ports[cand2] = hostna; in netmap_get_bdg_na()
524 hostna->bdg_port = cand2; in netmap_get_bdg_na()
525 hostna->na_bdg = b; in netmap_get_bdg_na()
527 nm_prdis("host %p to bridge port %d", hostna, cand2); in netmap_get_bdg_na()
1310 struct netmap_vp_adapter *hostna = &bna->host; in netmap_bwrap_reg() local
1324 if (hostna->na_bdg) { in netmap_bwrap_reg()
1329 hostna->up.na_lut = na->na_lut; in netmap_bwrap_reg()
1357 if (hostna->na_bdg) in netmap_bwrap_reg()
1358 netmap_vp_reg(&hostna->up, onoff); in netmap_bwrap_reg()
1372 if (hostna->na_bdg) { in netmap_bwrap_reg()
1437 struct netmap_adapter *hostna = &bna->host.up; in netmap_bwrap_config() local
1442 hostna->num_tx_rings = nma_get_nrings(hwna, NR_RX); in netmap_bwrap_config()
1443 hostna->num_rx_rings = nma_get_nrings(hwna, NR_TX); in netmap_bwrap_config()
1445 nm_bound_var(&hostna->num_tx_rings, 1, 1, in netmap_bwrap_config()
1447 nm_bound_var(&hostna->num_rx_rings, 1, 1, in netmap_bwrap_config()
1452 u_int nr = nma_get_nrings(hostna, t); in netmap_bwrap_config()
1458 nma_set_ndesc(hostna, t, nma_get_ndesc(hwna, r)); in netmap_bwrap_config()
1507 struct netmap_adapter *hostna = &bna->host.up; in netmap_bwrap_krings_create_common() local
1550 hostna->tx_rings = &na->tx_rings[na->num_tx_rings]; in netmap_bwrap_krings_create_common()
1551 hostna->rx_rings = &na->rx_rings[na->num_rx_rings]; in netmap_bwrap_krings_create_common()
1553 for (i = 0; i < nma_get_nrings(hostna, t); i++) { in netmap_bwrap_krings_create_common()
1554 NMR(hostna, t)[i]->na = hostna; in netmap_bwrap_krings_create_common() local
1715 struct netmap_adapter *hostna = NULL; in netmap_bwrap_attach_common() local
1759 hostna = &bna->host.up; in netmap_bwrap_attach_common()
1761 snprintf(hostna->name, sizeof(hostna->name), "%s^", na->name); in netmap_bwrap_attach_common()
1762 hostna->ifp = hwna->ifp; in netmap_bwrap_attach_common()
1765 hostna->nm_mem = netmap_mem_get(na->nm_mem); in netmap_bwrap_attach_common()
1766 hostna->na_private = bna; in netmap_bwrap_attach_common()
1767 hostna->na_vp = &bna->up; in netmap_bwrap_attach_common()
1769 hostna->na_hostvp = &bna->host; in netmap_bwrap_attach_common()
1770 hostna->na_flags = NAF_BUSY; /* prevent NIOCREGIF */ in netmap_bwrap_attach_common()
1771 hostna->rx_buf_maxsize = hwna->rx_buf_maxsize; in netmap_bwrap_attach_common()