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

/freebsd-11-stable/sys/dev/netmap/
H A Dnetmap_mem2.c186 netmap_mem_get_lut(struct netmap_mem_d *nmd, struct netmap_lut *lut) argument
190 NMA_LOCK(nmd);
191 rv = nmd->ops->nmd_get_lut(nmd, lut);
192 NMA_UNLOCK(nmd);
198 netmap_mem_get_info(struct netmap_mem_d *nmd, uint64_t *size, argument
203 NMA_LOCK(nmd);
204 rv = nmd->ops->nmd_get_info(nmd, size, memflags, memid);
205 NMA_UNLOCK(nmd);
211 netmap_mem_ofstophys(struct netmap_mem_d *nmd, vm_ooffset_t off) argument
230 netmap_mem_config(struct netmap_mem_d *nmd) argument
243 netmap_mem_if_offset(struct netmap_mem_d *nmd, const void *off) argument
255 netmap_mem_delete(struct netmap_mem_d *nmd) argument
264 struct netmap_mem_d *nmd = na->nm_mem; local
276 struct netmap_mem_d *nmd = na->nm_mem; local
287 struct netmap_mem_d *nmd = na->nm_mem; local
299 struct netmap_mem_d *nmd = na->nm_mem; local
312 netmap_mem_get_id(struct netmap_mem_d *nmd) argument
329 __netmap_mem_get(struct netmap_mem_d *nmd, const char *func, int line) argument
339 __netmap_mem_put(struct netmap_mem_d *nmd, const char *func, int line) argument
353 netmap_mem_finalize(struct netmap_mem_d *nmd, struct netmap_adapter *na) argument
437 netmap_mem_init_bitmaps(struct netmap_mem_d *nmd) argument
469 netmap_mem_deref(struct netmap_mem_d *nmd, struct netmap_adapter *na) argument
499 netmap_mem2_get_lut(struct netmap_mem_d *nmd, struct netmap_lut *lut) argument
649 nm_mem_assign_id_locked(struct netmap_mem_d *nmd) argument
680 nm_mem_assign_id(struct netmap_mem_d *nmd) argument
693 nm_mem_release_id(struct netmap_mem_d *nmd) argument
707 struct netmap_mem_d *nmd; local
725 nm_mem_assign_group(struct netmap_mem_d *nmd, struct device *dev) argument
795 netmap_mem2_ofstophys(struct netmap_mem_d* nmd, vm_ooffset_t offset) argument
859 win32_build_user_vm_map(struct netmap_mem_d* nmd) argument
918 netmap_mem2_get_pool_info(struct netmap_mem_d* nmd, u_int pool, u_int *clustsize, u_int *numclusters) argument
933 netmap_mem2_get_info(struct netmap_mem_d* nmd, uint64_t* size, u_int *memflags, nm_memid_t *id) argument
998 netmap_mem2_if_offset(struct netmap_mem_d *nmd, const void *addr) argument
1104 netmap_mem_bufsize(struct netmap_mem_d *nmd) argument
1130 struct netmap_mem_d *nmd = na->nm_mem; local
1157 struct netmap_mem_d *nmd = na->nm_mem; local
1179 netmap_new_bufs(struct netmap_mem_d *nmd, struct netmap_slot *slot, u_int n) argument
1211 netmap_mem_set_ring(struct netmap_mem_d *nmd, struct netmap_slot *slot, u_int n, uint32_t index) argument
1225 netmap_free_buf(struct netmap_mem_d *nmd, uint32_t i) argument
1238 netmap_free_bufs(struct netmap_mem_d *nmd, struct netmap_slot *slot, u_int n) argument
1507 netmap_mem_reset_all(struct netmap_mem_d *nmd) argument
1621 netmap_mem_finalize_all(struct netmap_mem_d *nmd) argument
1770 netmap_mem2_config(struct netmap_mem_d *nmd) argument
1800 netmap_mem2_finalize(struct netmap_mem_d *nmd) argument
1815 netmap_mem2_delete(struct netmap_mem_d *nmd) argument
2062 netmap_mem2_deref(struct netmap_mem_d *nmd) argument
2086 netmap_mem_pools_info_get(struct nmreq_pools_info *req, struct netmap_mem_d *nmd) argument
2189 netmap_mem_ext_config(struct netmap_mem_d *nmd) argument
2382 netmap_mem_pt_guest_ifp_add(struct netmap_mem_d *nmd, struct ifnet *ifp, unsigned int nifp_offset) argument
2412 netmap_mem_pt_guest_ifp_lookup(struct netmap_mem_d *nmd, struct ifnet *ifp) argument
2428 netmap_mem_pt_guest_ifp_del(struct netmap_mem_d *nmd, struct ifnet *ifp) argument
2459 netmap_mem_pt_guest_get_lut(struct netmap_mem_d *nmd, struct netmap_lut *lut) argument
2472 netmap_mem_pt_guest_get_info(struct netmap_mem_d *nmd, uint64_t *size, u_int *memflags, uint16_t *id) argument
2494 netmap_mem_pt_guest_ofstophys(struct netmap_mem_d *nmd, vm_ooffset_t off) argument
2505 netmap_mem_pt_guest_config(struct netmap_mem_d *nmd) argument
2514 netmap_mem_pt_guest_finalize(struct netmap_mem_d *nmd) argument
2587 netmap_mem_pt_guest_deref(struct netmap_mem_d *nmd) argument
2604 netmap_mem_pt_guest_if_offset(struct netmap_mem_d *nmd, const void *vaddr) argument
2612 netmap_mem_pt_guest_delete(struct netmap_mem_d *nmd) argument
2791 struct netmap_mem_d *nmd; local
2816 struct netmap_mem_d *nmd; local
2836 struct netmap_mem_d *nmd; local
[all...]
H A Dnetmap_null.c114 struct netmap_mem_d *nmd, int create)
130 if (nmd == NULL) {
148 nna->up.nm_mem = netmap_mem_get(nmd);
113 netmap_get_null_na(struct nmreq_header *hdr, struct netmap_adapter **na, struct netmap_mem_d *nmd, int create) argument
H A Dnetmap_mem2.h128 PMDL win32_build_user_vm_map(struct netmap_mem_d* nmd);
150 unsigned netmap_mem_bufsize(struct netmap_mem_d *nmd);
H A Dnetmap_vale.c123 struct netmap_mem_d *nmd, struct netmap_vp_adapter **);
397 struct netmap_mem_d *nmd = NULL; local
410 nmd = netmap_mem_find(req->reg.nr_mem_id);
411 if (nmd == NULL) {
418 error = netmap_get_vale_na(hdr, &na, nmd, 0);
424 nmd, 1 /* create if not exists */);
451 if (nmd)
452 netmap_mem_put(nmd);
460 if (nmd)
461 netmap_mem_put(nmd);
1257 netmap_vale_vp_create(struct nmreq_header *hdr, struct ifnet *ifp, struct netmap_mem_d *nmd, struct netmap_vp_adapter **ret) argument
1428 netmap_get_vale_na(struct nmreq_header *hdr, struct netmap_adapter **na, struct netmap_mem_d *nmd, int create) argument
1538 struct netmap_mem_d *nmd = NULL; local
[all...]
H A Dnetmap_bdg.h62 struct ifnet *ifp, struct netmap_mem_d *nmd,
174 struct netmap_mem_d *nmd, int create, struct netmap_bdg_ops *ops);
H A Dnetmap.c1403 netmap_get_hw_na(struct ifnet *ifp, struct netmap_mem_d *nmd, struct netmap_adapter **na) argument
1465 if (nmd != NULL && !((*na)->na_flags & NAF_MEM_OWNER) &&
1466 (*na)->active_fds == 0 && ((*na)->nm_mem != nmd)) {
1468 (*na)->nm_mem = netmap_mem_get(nmd);
1494 struct netmap_mem_d *nmd, int create)
1520 if (nmd == NULL && req->nr_mem_id) {
1521 nmd = netmap_mem_find(req->nr_mem_id);
1522 if (nmd == NULL)
1538 error = netmap_get_null_na(hdr, na, nmd, create);
1543 error = netmap_get_monitor_na(hdr, na, nmd, creat
1492 netmap_get_na(struct nmreq_header *hdr, struct netmap_adapter **na, struct ifnet **ifp, struct netmap_mem_d *nmd, int create) argument
2422 struct netmap_mem_d *nmd = NULL; local
[all...]
H A Dnetmap_kern.h1473 struct ifnet **ifp, struct netmap_mem_d *nmd, int create);
1476 struct netmap_mem_d *nmd, struct netmap_adapter **na);
1484 struct netmap_mem_d *nmd, int create);
1500 struct netmap_mem_d *nmd, int create);
1511 struct netmap_mem_d *nmd, int create);
1520 struct netmap_mem_d *nmd, int create);
H A Dnetmap_pipe.c652 struct netmap_mem_d *nmd, int create)
697 error = netmap_get_na(hdr, &pna, &ifp, nmd, create);
651 netmap_get_pipe_na(struct nmreq_header *hdr, struct netmap_adapter **na, struct netmap_mem_d *nmd, int create) argument
H A Dnetmap_bdg.c389 struct netmap_mem_d *nmd, int create, struct netmap_bdg_ops *ops)
468 error = b->bdg_ops.vp_create(hdr, NULL, nmd, &vpna);
493 error = netmap_get_hw_na(ifp, nmd, &hw);
388 netmap_get_bdg_na(struct nmreq_header *hdr, struct netmap_adapter **na, struct netmap_mem_d *nmd, int create, struct netmap_bdg_ops *ops) argument
H A Dnetmap_monitor.c898 struct netmap_mem_d *nmd, int create)
927 error = netmap_get_na(hdr, &pna, &ifp, nmd, create);
897 netmap_get_monitor_na(struct nmreq_header *hdr, struct netmap_adapter **na, struct netmap_mem_d *nmd, int create) argument
/freebsd-11-stable/tools/tools/netmap/
H A Dlb.c176 struct nm_desc *nmd; member in struct:port_des
370 *b = rxport->nmd->nifp->ni_bufs_head;
371 rxport->nmd->nifp->ni_bufs_head = s.buf_idx;
378 nm_close(ports[i].nmd);
695 rxport->nmd = nm_open(glob_arg.ifname, &base_req, 0, NULL);
697 if (rxport->nmd == NULL) {
702 rxport->nmd->req.nr_tx_slots);
705 uint32_t extra_bufs = rxport->nmd->req.nr_arg3;
708 rxport->ring = NETMAP_RXRING(rxport->nmd->nifp, 0);
741 for (scan = rxport->nmd
[all...]
H A Dpkt-gen.c292 struct nm_desc *nmd; member in struct:glob_arg
326 struct nm_desc *nmd; member in struct:targ
1116 bcopy(g->nmd->req.nr_name, req.nr_name, sizeof(req.nr_name));
1142 bcopy(g->nmd->req.nr_name, req.nr_name, sizeof(req.nr_name));
1285 struct netmap_if *nifp = targ->nmd->nifp;
1316 struct netmap_ring *ring = NETMAP_TXRING(nifp, targ->nmd->first_tx_ring);
1376 for (i = targ->nmd->first_rx_ring;
1377 i <= targ->nmd->last_rx_ring; i++) {
1476 struct netmap_if *nifp = targ->nmd->nifp;
1501 txring = NETMAP_TXRING(nifp, targ->nmd
2504 struct nm_desc nmd = *g->nmd; /* copy, we overwrite ringid */ local
[all...]
/freebsd-11-stable/usr.sbin/bhyve/
H A Dpci_virtio_net.c368 pci_vtnet_netmap_writev(struct nm_desc *nmd, struct iovec *iov, int iovcnt) argument
373 for (r = nmd->cur_tx_ring; ; ) {
374 struct netmap_ring *ring = NETMAP_TXRING(nmd->nifp, r);
380 if (r > nmd->last_tx_ring)
381 r = nmd->first_tx_ring;
382 if (r == nmd->cur_tx_ring)
398 nmd->cur_tx_ring = r;
399 ioctl(nmd->fd, NIOCTXSYNC, NULL);
407 pci_vtnet_netmap_readv(struct nm_desc *nmd, struct iovec *iov, int iovcnt) argument
413 for (r = nmd
[all...]
/freebsd-11-stable/cddl/contrib/opensolaris/common/ctf/
H A Dctf_create.c484 ctf_dmdef_t *dmd, *nmd; local
504 dmd != NULL; dmd = nmd) {
512 nmd = ctf_list_next(dmd);

Completed in 106 milliseconds