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

Lines Matching defs:hdr

166 nmreq_hdr_init(struct nmreq_header *hdr, const char *ifname)
168 memset(hdr, 0, sizeof(*hdr));
169 hdr->nr_version = NETMAP_API;
170 strncpy(hdr->nr_name, ifname, sizeof(hdr->nr_name) - 1);
178 struct nmreq_header hdr;
184 nmreq_hdr_init(&hdr, ctx->ifname_ext);
185 hdr.nr_reqtype = NETMAP_REQ_PORT_INFO_GET;
186 hdr.nr_body = (uintptr_t)&req;
189 ret = ioctl(ctx->fd, NIOCCTRL, &hdr);
222 struct nmreq_header hdr;
231 nmreq_hdr_init(&hdr, ctx->ifname_ext);
232 hdr.nr_reqtype = NETMAP_REQ_REGISTER;
233 hdr.nr_body = (uintptr_t)&req;
234 hdr.nr_options = (uintptr_t)ctx->nr_opt;
247 ret = ioctl(ctx->fd, NIOCCTRL, &hdr);
520 struct nmreq_header hdr;
527 nmreq_hdr_init(&hdr, vpname);
528 hdr.nr_reqtype = NETMAP_REQ_VALE_ATTACH;
529 hdr.nr_body = (uintptr_t)&req;
536 ret = ioctl(ctx->fd, NIOCCTRL, &hdr);
554 struct nmreq_header hdr;
562 nmreq_hdr_init(&hdr, vpname);
563 hdr.nr_reqtype = NETMAP_REQ_VALE_DETACH;
564 hdr.nr_body = (uintptr_t)&req;
565 ret = ioctl(ctx->fd, NIOCCTRL, &hdr);
600 struct nmreq_header hdr;
605 nmreq_hdr_init(&hdr, ctx->ifname_ext);
606 hdr.nr_reqtype = NETMAP_REQ_PORT_HDR_SET;
607 hdr.nr_body = (uintptr_t)&req;
610 ret = ioctl(ctx->fd, NIOCCTRL, &hdr);
621 hdr.nr_reqtype = NETMAP_REQ_PORT_HDR_GET;
623 ret = ioctl(ctx->fd, NIOCCTRL, &hdr);
671 struct nmreq_header hdr;
679 nmreq_hdr_init(&hdr, ctx->ifname_ext);
680 hdr.nr_reqtype = NETMAP_REQ_VALE_NEWIF;
681 hdr.nr_body = (uintptr_t)&req;
688 ret = ioctl(ctx->fd, NIOCCTRL, &hdr);
698 hdr.nr_reqtype = NETMAP_REQ_VALE_DELIF;
699 hdr.nr_body = (uintptr_t)NULL;
700 ret = ioctl(ctx->fd, NIOCCTRL, &hdr);
716 struct nmreq_header hdr;
721 nmreq_hdr_init(&hdr, ctx->ifname_ext);
722 hdr.nr_reqtype = NETMAP_REQ_POOLS_INFO_GET;
723 hdr.nr_body = (uintptr_t)&req;
726 ret = ioctl(ctx->fd, NIOCCTRL, &hdr);
833 struct nmreq_header hdr;
840 nmreq_hdr_init(&hdr, vpname);
841 hdr.nr_reqtype = NETMAP_REQ_VALE_POLLING_ENABLE;
842 hdr.nr_body = (uintptr_t)&req;
847 ret = ioctl(ctx->fd, NIOCCTRL, &hdr);
865 struct nmreq_header hdr;
872 nmreq_hdr_init(&hdr, vpname);
873 hdr.nr_reqtype = NETMAP_REQ_VALE_POLLING_DISABLE;
874 hdr.nr_body = (uintptr_t)&req;
876 ret = ioctl(ctx->fd, NIOCCTRL, &hdr);
1280 struct nmreq_header hdr;
1285 nmreq_hdr_init(&hdr, ctx->ifname_ext);
1286 hdr.nr_reqtype = NETMAP_REQ_SYNC_KLOOP_STOP;
1287 ret = ioctl(ctx->fd, NIOCCTRL, &hdr);
1300 struct nmreq_header hdr;
1305 nmreq_hdr_init(&hdr, ctx->ifname_ext);
1306 hdr.nr_reqtype = NETMAP_REQ_SYNC_KLOOP_START;
1307 hdr.nr_body = (uintptr_t)&req;
1308 hdr.nr_options = (uintptr_t)ctx->nr_opt;
1311 ret = ioctl(ctx->fd, NIOCCTRL, &hdr);
1497 struct nmreq_header hdr;
1507 nmreq_hdr_init(&hdr, ctx->ifname_ext);
1508 hdr.nr_reqtype = NETMAP_REQ_CSB_ENABLE;
1509 hdr.nr_options = (uintptr_t)ctx->nr_opt;
1510 hdr.nr_body = (uintptr_t)NULL;
1514 ret = ioctl(ctx->fd, NIOCCTRL, &hdr);