Home
last modified time | relevance | path

Searched refs:nmd (Results 1 – 14 of 14) sorted by relevance

/freebsd/sys/dev/netmap/
H A Dnetmap_mem2.c244 return nmd->ops->nmd_config(nmd); in netmap_mem_config()
262 nmd->ops->nmd_delete(nmd); in netmap_mem_delete()
307 nmd->ops->nmd_rings_delete(nmd, na); in netmap_mem_rings_delete()
372 nmd->lasterr = nmd->ops->nmd_finalize(nmd, na); in netmap_mem_finalize()
489 nmd->ops->nmd_deref(nmd, na); in netmap_mem_deref()
701 nmd->prev->next = nmd->next; in nm_mem_release_id()
702 nmd->next->prev = nmd->prev; in nm_mem_release_id()
707 nmd->prev = nmd->next = NULL; in nm_mem_release_id()
724 nmd = nmd->next; in netmap_mem_find()
1831 nmd = nmd->next; in netmap_mem_get_iommu()
[all …]
H A Dnetmap_null.c113 struct netmap_mem_d *nmd, int create) in netmap_get_null_na() argument
129 if (nmd == NULL) { in netmap_get_null_na()
147 nna->up.nm_mem = netmap_mem_get(nmd); in netmap_get_null_na()
H A Dnetmap.c1584 if (nmd == NULL && req->nr_mem_id) { in netmap_get_na()
1586 if (nmd == NULL) in netmap_get_na()
1666 netmap_mem_put(nmd); in netmap_get_na()
2745 struct netmap_mem_d *nmd = NULL; in netmap_ioctl() local
2804 if (nmd == NULL) in netmap_ioctl()
2812 if (nmd == NULL) { in netmap_ioctl()
2906 if (nmd) in netmap_ioctl()
2907 netmap_mem_put(nmd); in netmap_ioctl()
2949 if (nmd == NULL) { in netmap_ioctl()
2976 netmap_mem_put(nmd); in netmap_ioctl()
[all …]
H A Dnetmap_vale.c128 struct netmap_mem_d *nmd, struct netmap_vp_adapter **);
1209 na->nm_mem = nmd ? in netmap_vale_vp_create()
1210 netmap_mem_get(nmd): in netmap_vale_vp_create()
1313 struct netmap_mem_d *nmd, int create) in netmap_get_vale_na() argument
1422 struct netmap_mem_d *nmd = NULL; in netmap_vi_create() local
1454 nmd = netmap_mem_find(req->nr_mem_id); in netmap_vi_create()
1455 if (nmd == NULL) { in netmap_vi_create()
1481 if (nmd) in netmap_vi_create()
1482 netmap_mem_put(nmd); in netmap_vi_create()
1490 if (nmd) in netmap_vi_create()
[all …]
H A Dnetmap_mem2.h129 PMDL win32_build_user_vm_map(struct netmap_mem_d* nmd);
152 unsigned netmap_mem_bufsize(struct netmap_mem_d *nmd);
H A Dnetmap_bdg.h60 if_t ifp, struct netmap_mem_d *nmd,
172 struct netmap_mem_d *nmd, int create, struct netmap_bdg_ops *ops);
H A Dnetmap_bdg.c466 error = b->bdg_ops.vp_create(hdr, NULL, nmd, &vpna); in netmap_get_bdg_na()
491 error = netmap_get_hw_na(ifp, nmd, &hw); in netmap_get_bdg_na()
550 struct netmap_mem_d *nmd = NULL; in netmap_bdg_attach() local
563 nmd = netmap_mem_find(req->reg.nr_mem_id); in netmap_bdg_attach()
564 if (nmd == NULL) { in netmap_bdg_attach()
571 error = netmap_get_vale_na(hdr, &na, nmd, 0); in netmap_bdg_attach()
577 nmd, 1 /* create if not exists */); in netmap_bdg_attach()
604 if (nmd) in netmap_bdg_attach()
605 netmap_mem_put(nmd); in netmap_bdg_attach()
613 if (nmd) in netmap_bdg_attach()
[all …]
H A Dnetmap_kern.h1534 if_t *ifp, struct netmap_mem_d *nmd, int create);
1537 struct netmap_mem_d *nmd, struct netmap_adapter **na);
1546 struct netmap_mem_d *nmd, int create);
1565 struct netmap_mem_d *nmd, int create);
1576 struct netmap_mem_d *nmd, int create);
1585 struct netmap_mem_d *nmd, int create);
H A Dnetmap_pipe.c654 struct netmap_mem_d *nmd, int create) in netmap_get_pipe_na() argument
698 error = netmap_get_na(hdr, &pna, &ifp, nmd, create); in netmap_get_pipe_na()
H A Dnetmap_monitor.c903 struct netmap_mem_d *nmd, int create) in netmap_get_monitor_na() argument
932 error = netmap_get_na(hdr, &pna, &ifp, nmd, create); in netmap_get_monitor_na()
/freebsd/tools/tools/netmap/
H A Dlb.c176 struct nmport_d *nmd; member
378 nmport_close(ports[i].nmd); in free_buffers()
718 if (rxport->nmd == NULL) { in main()
796 rxport->nmd->nifp->ni_bufs_head = 0; in main()
810 rxport->nmd->reg.nr_mem_id); in main()
815 if (p->nmd == NULL) { in main()
818 } else if (p->nmd->mem != rxport->nmd->mem) { in main()
837 (rxport->nmd->mem == p->nmd->mem) ? "enabled" : "disabled"); in main()
888 for (i = rxport->nmd->first_rx_ring; i <= rxport->nmd->last_rx_ring; i++) { in main()
919 pollfd[polli].fd = rxport->nmd->fd; in main()
[all …]
H A Dpkt-gen.c296 struct nmport_d *nmd; member
1802 targ->nmd->first_tx_ring, targ->nmd->last_tx_ring); in sender_body()
2086 ring = NETMAP_TXRING(targ->nmd->nifp, targ->nmd->first_tx_ring); in txseq_body()
2123 targ->nmd->first_tx_ring, targ->nmd->last_tx_ring); in txseq_body()
2273 nrings = targ->nmd->last_rx_ring - targ->nmd->first_rx_ring + 1; in rxseq_body()
2654 t->nmd = nmport_clone(g->nmd); in start_threads()
2672 t->nmd = NULL; in start_threads()
2676 t->nmd = g->nmd; in start_threads()
3262 g.nmd->mem); in main()
3276 devqueues = g.nmd->reg.nr_tx_rings + g.nmd->reg.nr_host_tx_rings; in main()
[all …]
/freebsd/usr.sbin/bhyve/
H A Dnet_backend_netmap.c50 struct nm_desc *nmd; member
134 priv->nmd = nm_open(priv->ifname, NULL, NETMAP_NO_TX_POLL, NULL); in netmap_init()
135 if (priv->nmd == NULL) { in netmap_init()
141 priv->memid = priv->nmd->req.nr_arg2; in netmap_init()
142 priv->tx = NETMAP_TXRING(priv->nmd->nifp, 0); in netmap_init()
143 priv->rx = NETMAP_RXRING(priv->nmd->nifp, 0); in netmap_init()
146 be->fd = priv->nmd->fd; in netmap_init()
165 if (priv->nmd) { in netmap_cleanup()
166 nm_close(priv->nmd); in netmap_cleanup()
/freebsd/cddl/contrib/opensolaris/common/ctf/
H A Dctf_create.c588 ctf_dmdef_t *dmd, *nmd; in ctf_dtd_delete() local
608 dmd != NULL; dmd = nmd) { in ctf_dtd_delete()
616 nmd = ctf_list_next(dmd); in ctf_dtd_delete()