• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/dev/netmap/

Lines Matching refs:nifp

266 	struct netmap_if *nifp;
270 nifp = nmd->ops->nmd_if_new(na, priv);
273 return nifp;
1082 * objects (rings, nifp)
1434 * to native interfaces. In all other cases (nifp, netmap rings
1991 struct netmap_if *nifp;
1992 ssize_t base; /* handy for relative offsets between rings and nifp */
2008 nifp = netmap_if_malloc(na->nm_mem, len);
2009 if (nifp == NULL) {
2014 *(u_int *)(uintptr_t)&nifp->ni_tx_rings = na->num_tx_rings;
2015 *(u_int *)(uintptr_t)&nifp->ni_rx_rings = na->num_rx_rings;
2016 *(u_int *)(uintptr_t)&nifp->ni_host_tx_rings =
2018 *(u_int *)(uintptr_t)&nifp->ni_host_rx_rings =
2020 strlcpy(nifp->ni_name, na->name, sizeof(nifp->ni_name));
2024 * between the ring and nifp, so the information is usable in
2025 * userspace to reach the ring from the nifp.
2027 base = netmap_if_offset(na->nm_mem, nifp);
2038 *(ssize_t *)(uintptr_t)&nifp->ring_ofs[i] = ofs;
2050 *(ssize_t *)(uintptr_t)&nifp->ring_ofs[i+n[NR_TX]] = ofs;
2053 return (nifp);
2057 netmap_mem2_if_delete(struct netmap_adapter *na, struct netmap_if *nifp)
2059 if (nifp == NULL)
2062 if (nifp->ni_bufs_head)
2063 netmap_extra_free(na, nifp->ni_bufs_head);
2064 netmap_if_free(na->nm_mem, nifp);
2637 struct netmap_if *nifp = NULL;
2645 nifp = (struct netmap_if *)((char *)(ptnmd->nm_addr) +
2648 return nifp;
2652 netmap_mem_pt_guest_if_delete(struct netmap_adapter *na, struct netmap_if *nifp)
2667 struct netmap_if *nifp;
2678 nifp = (struct netmap_if *)((char *)ptnmd->nm_addr + ptif->nifp_offset);
2684 ((char *)nifp + nifp->ring_ofs[i]);
2691 ((char *)nifp +
2692 nifp->ring_ofs[netmap_all_rings(na, NR_TX) + i]);