Lines Matching defs:NA
721 * NA(ifp) points here, and the first entry (which hopefully
1007 * na_bdg points to the bridge this NA is attached to.
1380 #define netmap_ifp_to_vp(_ifp) (NA(_ifp)->na_vp)
1381 #define netmap_ifp_to_host_vp(_ifp) (NA(_ifp)->na_hostvp)
1691 * NA returns a pointer to the struct netmap adapter from the ifp.
1695 #define NA(_ifp) (if_getnetmapadapter(_ifp))
1704 * On old versions of FreeBSD, NA(ifp) is a pspare. On linux we
1707 * We check if NA(ifp) is set and its first element has a related
1712 #define NM_NA_VALID(ifp) (NA(ifp) && \
1713 ((uint32_t)(uintptr_t)NA(ifp) ^ NA(ifp)->magic) == NETMAP_MAGIC )
1717 if (NA(ifp)) \
1718 NA(ifp)->magic = \
1719 ((uint32_t)(uintptr_t)NA(ifp)) ^ NETMAP_MAGIC; \
1724 #define NM_NA_CLASH(ifp) (NA(ifp) && !NM_NA_VALID(ifp))
1728 #define NM_IS_NATIVE(ifp) (NM_NA_VALID(ifp) && NA(ifp)->nm_dtor == netmap_hw_dtor)