Lines Matching refs:opts

402 	return sysfs_emit(buf, "%s\n", ctrl->opts->host->nqn);
412 return sysfs_emit(buf, "%pU\n", &ctrl->opts->host->id);
430 struct nvmf_ctrl_options *opts = ctrl->opts;
432 if (ctrl->opts->max_reconnects == -1)
435 opts->max_reconnects * opts->reconnect_delay);
442 struct nvmf_ctrl_options *opts = ctrl->opts;
450 opts->max_reconnects = -1;
452 opts->max_reconnects = DIV_ROUND_UP(ctrl_loss_tmo,
453 opts->reconnect_delay);
464 if (ctrl->opts->reconnect_delay == -1)
466 return sysfs_emit(buf, "%d\n", ctrl->opts->reconnect_delay);
480 ctrl->opts->reconnect_delay = v;
491 if (ctrl->opts->fast_io_fail_tmo == -1)
493 return sysfs_emit(buf, "%d\n", ctrl->opts->fast_io_fail_tmo);
500 struct nvmf_ctrl_options *opts = ctrl->opts;
508 opts->fast_io_fail_tmo = -1;
510 opts->fast_io_fail_tmo = fast_io_fail_tmo;
555 struct nvmf_ctrl_options *opts = ctrl->opts;
557 if (!opts->dhchap_secret)
559 return sysfs_emit(buf, "%s\n", opts->dhchap_secret);
566 struct nvmf_ctrl_options *opts = ctrl->opts;
569 if (!ctrl->opts->dhchap_secret)
581 if (strcmp(dhchap_secret, opts->dhchap_secret)) {
590 kfree(opts->dhchap_secret);
591 opts->dhchap_secret = dhchap_secret;
613 struct nvmf_ctrl_options *opts = ctrl->opts;
615 if (!opts->dhchap_ctrl_secret)
617 return sysfs_emit(buf, "%s\n", opts->dhchap_ctrl_secret);
624 struct nvmf_ctrl_options *opts = ctrl->opts;
627 if (!ctrl->opts->dhchap_ctrl_secret)
639 if (strcmp(dhchap_secret, opts->dhchap_ctrl_secret)) {
648 kfree(opts->dhchap_ctrl_secret);
649 opts->dhchap_ctrl_secret = dhchap_secret;
725 if (a == &dev_attr_hostnqn.attr && !ctrl->opts)
727 if (a == &dev_attr_hostid.attr && !ctrl->opts)
729 if (a == &dev_attr_ctrl_loss_tmo.attr && !ctrl->opts)
731 if (a == &dev_attr_reconnect_delay.attr && !ctrl->opts)
733 if (a == &dev_attr_fast_io_fail_tmo.attr && !ctrl->opts)
736 if (a == &dev_attr_dhchap_secret.attr && !ctrl->opts)
738 if (a == &dev_attr_dhchap_ctrl_secret.attr && !ctrl->opts)
743 (!ctrl->opts || strcmp(ctrl->opts->transport, "tcp")))