Lines Matching defs:hwna
2289 * cross-link the bwrap and hwna rings,
2290 * forward the request to the hwna, override
2291 * the hwna notify callback (to get the frames
3750 struct netmap_hw_adapter *hwna =
3765 error = hwna->nm_hw_register(na, onoff);
3794 struct netmap_hw_adapter *hwna = NULL;
3826 hwna = nm_os_malloc(size);
3827 if (hwna == NULL)
3829 hwna->up = *arg;
3830 hwna->up.na_flags |= NAF_HOST_RINGS | NAF_NATIVE;
3831 strlcpy(hwna->up.name, ifp->if_xname, sizeof(hwna->up.name));
3833 hwna->nm_hw_register = hwna->up.nm_register;
3834 hwna->up.nm_register = netmap_hw_reg;
3836 if (netmap_attach_common(&hwna->up)) {
3837 nm_os_free(hwna);
3840 netmap_adapter_get(&hwna->up);
3842 NM_ATTACH_NA(ifp, &hwna->up);
3847 hwna->up.nm_dtor = netmap_hw_dtor;
3851 hwna->up.num_tx_rings, hwna->up.num_tx_desc,
3852 hwna->up.num_rx_rings, hwna->up.num_rx_desc);
3856 nm_prerr("fail, arg %p ifp %p na %p", arg, ifp, hwna);
3857 return (hwna ? EINVAL : ENOMEM);