Lines Matching defs:opts
264 return sysfs_emit(buf, "%s\n", ctrl->opts->host->nqn);
274 return sysfs_emit(buf, "%pU\n", &ctrl->opts->host->id);
292 struct nvmf_ctrl_options *opts = ctrl->opts;
294 if (ctrl->opts->max_reconnects == -1)
297 opts->max_reconnects * opts->reconnect_delay);
304 struct nvmf_ctrl_options *opts = ctrl->opts;
312 opts->max_reconnects = -1;
314 opts->max_reconnects = DIV_ROUND_UP(ctrl_loss_tmo,
315 opts->reconnect_delay);
326 if (ctrl->opts->reconnect_delay == -1)
328 return sysfs_emit(buf, "%d\n", ctrl->opts->reconnect_delay);
342 ctrl->opts->reconnect_delay = v;
353 if (ctrl->opts->fast_io_fail_tmo == -1)
355 return sysfs_emit(buf, "%d\n", ctrl->opts->fast_io_fail_tmo);
362 struct nvmf_ctrl_options *opts = ctrl->opts;
370 opts->fast_io_fail_tmo = -1;
372 opts->fast_io_fail_tmo = fast_io_fail_tmo;
417 struct nvmf_ctrl_options *opts = ctrl->opts;
419 if (!opts->dhchap_secret)
421 return sysfs_emit(buf, "%s\n", opts->dhchap_secret);
428 struct nvmf_ctrl_options *opts = ctrl->opts;
431 if (!ctrl->opts->dhchap_secret)
443 if (strcmp(dhchap_secret, opts->dhchap_secret)) {
452 kfree(opts->dhchap_secret);
453 opts->dhchap_secret = dhchap_secret;
475 struct nvmf_ctrl_options *opts = ctrl->opts;
477 if (!opts->dhchap_ctrl_secret)
479 return sysfs_emit(buf, "%s\n", opts->dhchap_ctrl_secret);
486 struct nvmf_ctrl_options *opts = ctrl->opts;
489 if (!ctrl->opts->dhchap_ctrl_secret)
501 if (strcmp(dhchap_secret, opts->dhchap_ctrl_secret)) {
510 kfree(opts->dhchap_ctrl_secret);
511 opts->dhchap_ctrl_secret = dhchap_secret;
570 if (a == &dev_attr_hostnqn.attr && !ctrl->opts)
572 if (a == &dev_attr_hostid.attr && !ctrl->opts)
574 if (a == &dev_attr_ctrl_loss_tmo.attr && !ctrl->opts)
576 if (a == &dev_attr_reconnect_delay.attr && !ctrl->opts)
578 if (a == &dev_attr_fast_io_fail_tmo.attr && !ctrl->opts)
581 if (a == &dev_attr_dhchap_secret.attr && !ctrl->opts)
583 if (a == &dev_attr_dhchap_ctrl_secret.attr && !ctrl->opts)