Lines Matching refs:dev_loss_tmo
84 int srp_tmo_valid(int reconnect_delay, int fast_io_fail_tmo, long dev_loss_tmo) in srp_tmo_valid() argument
86 if (reconnect_delay < 0 && fast_io_fail_tmo < 0 && dev_loss_tmo < 0) in srp_tmo_valid()
93 dev_loss_tmo > SCSI_DEVICE_BLOCK_MAX_TIMEOUT) in srp_tmo_valid()
95 if (dev_loss_tmo >= LONG_MAX / HZ) in srp_tmo_valid()
97 if (fast_io_fail_tmo >= 0 && dev_loss_tmo >= 0 && in srp_tmo_valid()
98 fast_io_fail_tmo >= dev_loss_tmo) in srp_tmo_valid()
231 rport->dev_loss_tmo); in store_reconnect_delay()
283 rport->dev_loss_tmo); in store_srp_rport_fast_io_fail_tmo()
303 return srp_show_tmo(buf, rport->dev_loss_tmo); in show_srp_rport_dev_loss_tmo()
312 int dev_loss_tmo; in store_srp_rport_dev_loss_tmo() local
314 res = srp_parse_tmo(&dev_loss_tmo, buf); in store_srp_rport_dev_loss_tmo()
318 dev_loss_tmo); in store_srp_rport_dev_loss_tmo()
321 rport->dev_loss_tmo = dev_loss_tmo; in store_srp_rport_dev_loss_tmo()
328 static DEVICE_ATTR(dev_loss_tmo, S_IRUGO | S_IWUSR,
464 int delay, fast_io_fail_tmo, dev_loss_tmo; in __srp_start_tl_fail_timers() local
470 dev_loss_tmo = rport->dev_loss_tmo; in __srp_start_tl_fail_timers()
479 if ((fast_io_fail_tmo >= 0 || dev_loss_tmo >= 0) && in __srp_start_tl_fail_timers()
488 if (dev_loss_tmo >= 0) in __srp_start_tl_fail_timers()
491 1UL * dev_loss_tmo * HZ); in __srp_start_tl_fail_timers()
612 rport->dev_loss_tmo < 0 && in srp_timed_out()
723 rport->dev_loss_tmo = i->f->dev_loss_tmo ? *i->f->dev_loss_tmo : 60; in srp_rport_add()