Lines Matching refs:opt
64 struct rnbd_map_options *opt) in rnbd_clt_parse_map_options() argument
100 strlcpy(opt->sessname, p, NAME_MAX); in rnbd_clt_parse_map_options()
118 *opt->dest_port, in rnbd_clt_parse_map_options()
119 &opt->paths[p_cnt]); in rnbd_clt_parse_map_options()
143 strlcpy(opt->pathname, p, NAME_MAX); in rnbd_clt_parse_map_options()
155 *opt->dest_port = dest_port; in rnbd_clt_parse_map_options()
166 *opt->access_mode = RNBD_ACCESS_RO; in rnbd_clt_parse_map_options()
168 *opt->access_mode = RNBD_ACCESS_RW; in rnbd_clt_parse_map_options()
170 *opt->access_mode = RNBD_ACCESS_MIGRATION; in rnbd_clt_parse_map_options()
201 *opt->path_cnt = p_cnt; in rnbd_clt_parse_map_options()
270 char *opt, *options; in rnbd_clt_unmap_dev_store() local
274 opt = kstrdup(buf, GFP_KERNEL); in rnbd_clt_unmap_dev_store()
275 if (!opt) in rnbd_clt_unmap_dev_store()
278 options = strstrip(opt); in rnbd_clt_unmap_dev_store()
319 kfree(opt); in rnbd_clt_unmap_dev_store()
374 char *opt, *options; in rnbd_clt_remap_dev_store() local
377 opt = kstrdup(buf, GFP_KERNEL); in rnbd_clt_remap_dev_store()
378 if (!opt) in rnbd_clt_remap_dev_store()
381 options = strstrip(opt); in rnbd_clt_remap_dev_store()
395 kfree(opt); in rnbd_clt_remap_dev_store()
520 struct rnbd_map_options opt; in rnbd_clt_map_device_store() local
531 opt.sessname = sessname; in rnbd_clt_map_device_store()
532 opt.paths = paths; in rnbd_clt_map_device_store()
533 opt.path_cnt = &path_cnt; in rnbd_clt_map_device_store()
534 opt.pathname = pathname; in rnbd_clt_map_device_store()
535 opt.dest_port = &port_nr; in rnbd_clt_map_device_store()
536 opt.access_mode = &access_mode; in rnbd_clt_map_device_store()
546 ret = rnbd_clt_parse_map_options(buf, ARRAY_SIZE(paths), &opt); in rnbd_clt_map_device_store()