Lines Matching refs:nm_desc
251 struct nm_desc *d;
267 struct nm_desc { struct
268 struct nm_desc *self; /* point to self if netmap. */ argument
309 #define P2NMD(p) ((const struct nm_desc *)(p)) argument
349 static struct nm_desc *nm_open(const char *ifname, const struct nmreq *req,
350 uint64_t flags, const struct nm_desc *arg);
374 static int nm_close(struct nm_desc *);
381 static int nm_mmap(struct nm_desc *, const struct nm_desc *);
389 static int nm_inject(struct nm_desc *, const void *, size_t);
390 static int nm_dispatch(struct nm_desc *, int, nm_cb_t, u_char *);
391 static u_char *nm_nextpkt(struct nm_desc *, struct nm_pkthdr *);
630 nm_parse(const char *ifname, struct nm_desc *d, char *err) in nm_parse()
829 static struct nm_desc *
831 uint64_t new_flags, const struct nm_desc *arg) in nm_open()
833 struct nm_desc *d = NULL; in nm_open()
834 const struct nm_desc *parent = arg; in nm_open()
844 d = (struct nm_desc *)calloc(1, sizeof(*d)); in nm_open()
971 nm_close(struct nm_desc *d) in nm_close()
995 nm_mmap(struct nm_desc *d, const struct nm_desc *parent) in nm_mmap()
1041 nm_inject(struct nm_desc *d, const void *buf, size_t size) in nm_inject()
1088 nm_dispatch(struct nm_desc *d, int cnt, nm_cb_t cb, u_char *arg) in nm_dispatch()
1153 nm_nextpkt(struct nm_desc *d, struct nm_pkthdr *hdr) in nm_nextpkt()