Lines Matching defs:hwna
2551 * cross-link the bwrap and hwna rings,
2552 * forward the request to the hwna, override
2553 * the hwna notify callback (to get the frames
4035 struct netmap_hw_adapter *hwna =
4050 error = hwna->nm_hw_register(na, onoff);
4079 struct netmap_hw_adapter *hwna = NULL;
4111 hwna = nm_os_malloc(size);
4112 if (hwna == NULL)
4114 hwna->up = *arg;
4115 hwna->up.na_flags |= NAF_HOST_RINGS | NAF_NATIVE;
4116 strlcpy(hwna->up.name, if_name(ifp), sizeof(hwna->up.name));
4118 hwna->nm_hw_register = hwna->up.nm_register;
4119 hwna->up.nm_register = netmap_hw_reg;
4121 if (netmap_attach_common(&hwna->up)) {
4122 nm_os_free(hwna);
4125 netmap_adapter_get(&hwna->up);
4127 NM_ATTACH_NA(ifp, &hwna->up);
4132 hwna->up.nm_dtor = netmap_hw_dtor;
4136 hwna->up.num_tx_rings, hwna->up.num_tx_desc,
4137 hwna->up.num_rx_rings, hwna->up.num_rx_desc);
4141 nm_prerr("fail, arg %p ifp %p na %p", arg, ifp, hwna);
4142 return (hwna ? EINVAL : ENOMEM);