Lines Matching refs:nmreq_option

2787 				struct nmreq_option *opt;  in netmap_ioctl()
3125 struct nmreq_option *opt; in netmap_ioctl()
3277 size_t rv = sizeof(struct nmreq_option); in nmreq_opt_size_by_type()
3303 return rv - sizeof(struct nmreq_option); in nmreq_opt_size_by_type()
3371 struct nmreq_option **next, *src, **opt_tab, *opt; in nmreq_copyin()
3427 next = (struct nmreq_option **)&hdr->nr_options; in nmreq_copyin()
3437 opt_tab = (struct nmreq_option **)p; in nmreq_copyin()
3442 struct nmreq_option *nsrc; in nmreq_copyin()
3454 opt = (struct nmreq_option *)(ptrs + 1); in nmreq_copyin()
3468 nsrc = (struct nmreq_option *)opt->nro_next; in nmreq_copyin()
3521 next = (struct nmreq_option **)&opt->nro_next; in nmreq_copyin()
3528 for (src = (struct nmreq_option *)hdr->nr_options; src; in nmreq_copyin()
3529 src = (struct nmreq_option *)src->nro_next) { in nmreq_copyin()
3543 struct nmreq_option *src, *dst; in nmreq_copyout()
3556 src = (struct nmreq_option *)(uintptr_t)hdr->nr_options; in nmreq_copyout()
3570 dst = (struct nmreq_option *)(uintptr_t)hdr->nr_options; in nmreq_copyout()
3599 src = (struct nmreq_option *)(uintptr_t)next; in nmreq_copyout()
3600 dst = (struct nmreq_option *)(uintptr_t)*ptrs; in nmreq_copyout()
3610 struct nmreq_option *
3613 struct nmreq_option **opt_tab; in nmreq_getoption()
3618 opt_tab = (struct nmreq_option **)((uintptr_t)hdr->nr_options) - in nmreq_getoption()
3626 struct nmreq_option *opt; in nmreq_checkoptions()
3631 for (opt = (struct nmreq_option *)(uintptr_t)hdr->nr_options; opt; in nmreq_checkoptions()
3632 opt = (struct nmreq_option *)(uintptr_t)opt->nro_next) in nmreq_checkoptions()