Lines Matching refs:opt
66 struct rnbd_map_options *opt) in rnbd_clt_parse_map_options() argument
104 strscpy(opt->sessname, p, NAME_MAX); in rnbd_clt_parse_map_options()
122 *opt->dest_port, in rnbd_clt_parse_map_options()
123 &opt->paths[p_cnt]); in rnbd_clt_parse_map_options()
147 strscpy(opt->pathname, p, NAME_MAX); in rnbd_clt_parse_map_options()
159 *opt->dest_port = dest_port; in rnbd_clt_parse_map_options()
170 *opt->access_mode = RNBD_ACCESS_RO; in rnbd_clt_parse_map_options()
172 *opt->access_mode = RNBD_ACCESS_RW; in rnbd_clt_parse_map_options()
174 *opt->access_mode = RNBD_ACCESS_MIGRATION; in rnbd_clt_parse_map_options()
196 *opt->nr_poll_queues = nr_poll_queues; in rnbd_clt_parse_map_options()
218 *opt->path_cnt = p_cnt; in rnbd_clt_parse_map_options()
299 char *opt, *options; in rnbd_clt_unmap_dev_store() local
303 opt = kstrdup(buf, GFP_KERNEL); in rnbd_clt_unmap_dev_store()
304 if (!opt) in rnbd_clt_unmap_dev_store()
307 options = strstrip(opt); in rnbd_clt_unmap_dev_store()
348 kfree(opt); in rnbd_clt_unmap_dev_store()
401 char *opt, *options; in rnbd_clt_remap_dev_store() local
404 opt = kstrdup(buf, GFP_KERNEL); in rnbd_clt_remap_dev_store()
405 if (!opt) in rnbd_clt_remap_dev_store()
408 options = strstrip(opt); in rnbd_clt_remap_dev_store()
422 kfree(opt); in rnbd_clt_remap_dev_store()
564 struct rnbd_map_options opt; in rnbd_clt_map_device_store() local
576 opt.sessname = sessname; in rnbd_clt_map_device_store()
577 opt.paths = paths; in rnbd_clt_map_device_store()
578 opt.path_cnt = &path_cnt; in rnbd_clt_map_device_store()
579 opt.pathname = pathname; in rnbd_clt_map_device_store()
580 opt.dest_port = &port_nr; in rnbd_clt_map_device_store()
581 opt.access_mode = &access_mode; in rnbd_clt_map_device_store()
582 opt.nr_poll_queues = &nr_poll_queues; in rnbd_clt_map_device_store()
592 ret = rnbd_clt_parse_map_options(buf, ARRAY_SIZE(paths), &opt); in rnbd_clt_map_device_store()