Home
last modified time | relevance | path

Searched refs:nro_reqtype (Results 1 – 6 of 6) sorted by relevance

/freebsd/tests/sys/netmap/
H A Dctrl-api-test.c973 if (opt->nro_reqtype != exp->nro_reqtype) { in checkoption()
974 printf("nro_reqtype %u expected %u\n", opt->nro_reqtype, in checkoption()
975 exp->nro_reqtype); in checkoption()
994 opt.nro_reqtype = 1234; in unsupported_option()
1014 opt.nro_reqtype = NETMAP_REQ_OPT_MAX + 1; in infinite_options()
1031 opt.nro_reqtype = NETMAP_REQ_OPT_OFFSETS; in infinite_options2()
1089 e->nro_opt.nro_reqtype = NETMAP_REQ_OPT_EXTMEM; in push_extmem_option()
1282 opt->nro_opt.nro_reqtype = NETMAP_REQ_OPT_CSB; in push_csb_option()
1317 opt.nro_opt.nro_reqtype = NETMAP_REQ_OPT_CSB; in csb_mode_invalid_memory()
1425 modeopt.nro_opt.nro_reqtype = NETMAP_REQ_OPT_SYNC_KLOOP_MODE; in sync_kloop_eventfds()
[all …]
/freebsd/lib/libnetmap/
H A Dnmreq.c604 if (o->nro_reqtype == t) in nmreq_find_option()
643 nmreq_option_name(uint32_t nro_reqtype) in nmreq_option_name() argument
645 switch (nro_reqtype) { in nmreq_option_name()
684 printf(" nro_opt.nro_reqtype: %"PRIu32"\n", e->nro_opt.nro_reqtype);
H A Dnmport.c160 d->extmem->nro_opt.nro_reqtype = NETMAP_REQ_OPT_EXTMEM; in nmport_extmem()
288 opt->nro_opt.nro_reqtype = NETMAP_REQ_OPT_OFFSETS; in nmport_offset()
623 nmreq_option_name(o->nro_reqtype), in nmport_register()
/freebsd/tools/test/stress2/misc/
H A Dsyzkaller98.sh189 // nro_reqtype: const = 0x1 (4 bytes)
198 // nro_reqtype: const = 0x2 (4 bytes)
/freebsd/sys/dev/netmap/
H A Dnetmap.c3275 nmreq_opt_size_by_type(uint32_t nro_reqtype, uint64_t nro_size) in nmreq_opt_size_by_type() argument
3279 if (nro_reqtype & NETMAP_REQ_OPT_DEBUG) in nmreq_opt_size_by_type()
3280 return (nro_reqtype & ~NETMAP_REQ_OPT_DEBUG); in nmreq_opt_size_by_type()
3282 switch (nro_reqtype) { in nmreq_opt_size_by_type()
3474 if (opt->nro_reqtype < 1) { in nmreq_copyin()
3476 nm_prinf("invalid option type: %u", opt->nro_reqtype); in nmreq_copyin()
3482 if (opt->nro_reqtype >= NETMAP_REQ_OPT_MAX) { in nmreq_copyin()
3490 if (opt_tab[opt->nro_reqtype] != NULL) { in nmreq_copyin()
3492 nm_prinf("duplicate option: %u", opt->nro_reqtype); in nmreq_copyin()
3494 opt_tab[opt->nro_reqtype]->nro_status = EINVAL; in nmreq_copyin()
[all …]
/freebsd/sys/net/
H A Dnetmap.h499 uint32_t nro_reqtype; member