Lines Matching refs:opt
68 struct rnbd_map_options *opt) in rnbd_clt_parse_map_options() argument
106 strscpy(opt->sessname, p, NAME_MAX); in rnbd_clt_parse_map_options()
124 *opt->dest_port, in rnbd_clt_parse_map_options()
125 &opt->paths[p_cnt]); in rnbd_clt_parse_map_options()
149 strscpy(opt->pathname, p, NAME_MAX); in rnbd_clt_parse_map_options()
161 *opt->dest_port = dest_port; in rnbd_clt_parse_map_options()
172 *opt->access_mode = RNBD_ACCESS_RO; in rnbd_clt_parse_map_options()
174 *opt->access_mode = RNBD_ACCESS_RW; in rnbd_clt_parse_map_options()
176 *opt->access_mode = RNBD_ACCESS_MIGRATION; in rnbd_clt_parse_map_options()
198 *opt->nr_poll_queues = nr_poll_queues; in rnbd_clt_parse_map_options()
220 *opt->path_cnt = p_cnt; in rnbd_clt_parse_map_options()
301 char *opt, *options; in rnbd_clt_unmap_dev_store() local
305 opt = kstrdup(buf, GFP_KERNEL); in rnbd_clt_unmap_dev_store()
306 if (!opt) in rnbd_clt_unmap_dev_store()
309 options = strstrip(opt); in rnbd_clt_unmap_dev_store()
350 kfree(opt); in rnbd_clt_unmap_dev_store()
403 char *opt, *options; in rnbd_clt_remap_dev_store() local
406 opt = kstrdup(buf, GFP_KERNEL); in rnbd_clt_remap_dev_store()
407 if (!opt) in rnbd_clt_remap_dev_store()
410 options = strstrip(opt); in rnbd_clt_remap_dev_store()
424 kfree(opt); in rnbd_clt_remap_dev_store()
567 struct rnbd_map_options opt; in rnbd_clt_map_device_store() local
579 opt.sessname = sessname; in rnbd_clt_map_device_store()
580 opt.paths = paths; in rnbd_clt_map_device_store()
581 opt.path_cnt = &path_cnt; in rnbd_clt_map_device_store()
582 opt.pathname = pathname; in rnbd_clt_map_device_store()
583 opt.dest_port = &port_nr; in rnbd_clt_map_device_store()
584 opt.access_mode = &access_mode; in rnbd_clt_map_device_store()
585 opt.nr_poll_queues = &nr_poll_queues; in rnbd_clt_map_device_store()
595 ret = rnbd_clt_parse_map_options(buf, ARRAY_SIZE(paths), &opt); in rnbd_clt_map_device_store()