Lines Matching refs:nm_desc
235 struct nm_desc *d;
251 struct nm_desc { struct
252 struct nm_desc *self; /* point to self if netmap. */ argument
293 #define P2NMD(p) ((const struct nm_desc *)(p)) argument
333 static struct nm_desc *nm_open(const char *ifname, const struct nmreq *req,
334 uint64_t flags, const struct nm_desc *arg);
357 static int nm_close(struct nm_desc *);
364 static int nm_mmap(struct nm_desc *, const struct nm_desc *);
372 static int nm_inject(struct nm_desc *, const void *, size_t);
373 static int nm_dispatch(struct nm_desc *, int, nm_cb_t, u_char *);
374 static u_char *nm_nextpkt(struct nm_desc *, struct nm_pkthdr *);
612 nm_parse(const char *ifname, struct nm_desc *d, char *err) in nm_parse()
811 static struct nm_desc *
813 uint64_t new_flags, const struct nm_desc *arg) in nm_open()
815 struct nm_desc *d = NULL; in nm_open()
816 const struct nm_desc *parent = arg; in nm_open()
826 d = (struct nm_desc *)calloc(1, sizeof(*d)); in nm_open()
951 nm_close(struct nm_desc *d) in nm_close()
974 nm_mmap(struct nm_desc *d, const struct nm_desc *parent) in nm_mmap()
1020 nm_inject(struct nm_desc *d, const void *buf, size_t size) in nm_inject()
1066 nm_dispatch(struct nm_desc *d, int cnt, nm_cb_t cb, u_char *arg) in nm_dispatch()
1131 nm_nextpkt(struct nm_desc *d, struct nm_pkthdr *hdr) in nm_nextpkt()