Searched refs:ctrl_loss_tmo (Results 1 - 6 of 6) sorted by relevance
/kernel/linux/linux-6.6/drivers/nvme/host/ |
H A D | sysfs.c | 305 int ctrl_loss_tmo, err; in nvme_ctrl_loss_tmo_store() local 307 err = kstrtoint(buf, 10, &ctrl_loss_tmo); in nvme_ctrl_loss_tmo_store() 311 if (ctrl_loss_tmo < 0) in nvme_ctrl_loss_tmo_store() 314 opts->max_reconnects = DIV_ROUND_UP(ctrl_loss_tmo, in nvme_ctrl_loss_tmo_store() 318 static DEVICE_ATTR(ctrl_loss_tmo, S_IRUGO | S_IWUSR,
|
H A D | fabrics.c | 633 { NVMF_OPT_CTRL_LOSS_TMO, "ctrl_loss_tmo=%d" }, 662 int ctrl_loss_tmo = NVMF_DEF_CTRL_LOSS_TMO; in nvmf_parse_options() local 792 pr_warn("ctrl_loss_tmo < 0 will reconnect forever\n"); in nvmf_parse_options() 793 ctrl_loss_tmo = token; in nvmf_parse_options() 977 if (ctrl_loss_tmo < 0) { in nvmf_parse_options() 980 opts->max_reconnects = DIV_ROUND_UP(ctrl_loss_tmo, in nvmf_parse_options() 982 if (ctrl_loss_tmo < opts->fast_io_fail_tmo) in nvmf_parse_options() 984 opts->fast_io_fail_tmo, ctrl_loss_tmo); in nvmf_parse_options()
|
H A D | fc.c | 3450 int ret, idx, ctrl_loss_tmo; in nvme_fc_init_ctrl() local 3477 * if ctrl_loss_tmo is being enforced and the default reconnect delay in nvme_fc_init_ctrl() 3483 ctrl_loss_tmo = opts->max_reconnects * opts->reconnect_delay; in nvme_fc_init_ctrl() 3485 opts->max_reconnects = DIV_ROUND_UP(ctrl_loss_tmo, in nvme_fc_init_ctrl()
|
/kernel/linux/linux-5.10/drivers/nvme/host/ |
H A D | fabrics.c | 611 { NVMF_OPT_CTRL_LOSS_TMO, "ctrl_loss_tmo=%d" }, 633 int ctrl_loss_tmo = NVMF_DEF_CTRL_LOSS_TMO; in nvmf_parse_options() local 759 pr_warn("ctrl_loss_tmo < 0 will reconnect forever\n"); in nvmf_parse_options() 760 ctrl_loss_tmo = token; in nvmf_parse_options() 892 if (ctrl_loss_tmo < 0) in nvmf_parse_options() 895 opts->max_reconnects = DIV_ROUND_UP(ctrl_loss_tmo, in nvmf_parse_options()
|
H A D | core.c | 3641 int ctrl_loss_tmo, err; in nvme_ctrl_loss_tmo_store() local 3643 err = kstrtoint(buf, 10, &ctrl_loss_tmo); in nvme_ctrl_loss_tmo_store() 3647 else if (ctrl_loss_tmo < 0) in nvme_ctrl_loss_tmo_store() 3650 opts->max_reconnects = DIV_ROUND_UP(ctrl_loss_tmo, in nvme_ctrl_loss_tmo_store() 3654 static DEVICE_ATTR(ctrl_loss_tmo, S_IRUGO | S_IWUSR,
|
H A D | fc.c | 3420 int ret, idx, ctrl_loss_tmo; in nvme_fc_init_ctrl() local 3447 * if ctrl_loss_tmo is being enforced and the default reconnect delay in nvme_fc_init_ctrl() 3453 ctrl_loss_tmo = opts->max_reconnects * opts->reconnect_delay; in nvme_fc_init_ctrl() 3455 opts->max_reconnects = DIV_ROUND_UP(ctrl_loss_tmo, in nvme_fc_init_ctrl()
|
Completed in 20 milliseconds