Searched refs:dev_loss_tmo (Results 1 - 19 of 19) sorted by relevance

/linux-4.1.27/include/scsi/
H A Dscsi_transport_srp.h42 * fast_io_fail / dev_loss_tmo activity.
48 * @dev_loss_tmo: Device loss timeout in seconds.
70 int dev_loss_tmo; member in struct:srp_rport
80 * dev_loss_tmo sysfs attribute for an rport.
85 * @dev_loss_tmo: If not NULL, points to the default dev_loss_tmo value.
102 int *dev_loss_tmo; member in struct:srp_function_template
121 int dev_loss_tmo);
H A Dfcoe_sysfs.h99 u32 dev_loss_tmo; member in struct:fcoe_fcf_device
H A Dscsi_transport_fc.h335 u32 dev_loss_tmo; /* Remote Port loss timeout in seconds. */ member in struct:fc_rport
524 u32 dev_loss_tmo; member in struct:fc_host_attrs
624 (((struct fc_host_attrs *)(x)->shost_data)->dev_loss_tmo)
/linux-4.1.27/drivers/scsi/
H A Dscsi_transport_srp.c68 * @dev_loss_tmo: Device loss timeout in seconds.
72 * timeout to exceed SCSI_DEVICE_BLOCK_MAX_TIMEOUT nor allow dev_loss_tmo to
77 int srp_tmo_valid(int reconnect_delay, int fast_io_fail_tmo, int dev_loss_tmo) srp_tmo_valid() argument
79 if (reconnect_delay < 0 && fast_io_fail_tmo < 0 && dev_loss_tmo < 0) srp_tmo_valid()
86 dev_loss_tmo > SCSI_DEVICE_BLOCK_MAX_TIMEOUT) srp_tmo_valid()
88 if (dev_loss_tmo >= LONG_MAX / HZ) srp_tmo_valid()
90 if (fast_io_fail_tmo >= 0 && dev_loss_tmo >= 0 && srp_tmo_valid()
91 fast_io_fail_tmo >= dev_loss_tmo) srp_tmo_valid()
232 rport->dev_loss_tmo); store_reconnect_delay()
284 rport->dev_loss_tmo); store_srp_rport_fast_io_fail_tmo()
304 return srp_show_tmo(buf, rport->dev_loss_tmo); show_srp_rport_dev_loss_tmo()
313 int dev_loss_tmo; store_srp_rport_dev_loss_tmo() local
315 res = srp_parse_tmo(&dev_loss_tmo, buf); store_srp_rport_dev_loss_tmo()
319 dev_loss_tmo); store_srp_rport_dev_loss_tmo()
322 rport->dev_loss_tmo = dev_loss_tmo; store_srp_rport_dev_loss_tmo()
329 static DEVICE_ATTR(dev_loss_tmo, S_IRUGO | S_IWUSR,
478 pr_info("dev_loss_tmo expired for SRP %s / %s.\n", rport_dev_loss_timedout()
492 int delay, fast_io_fail_tmo, dev_loss_tmo; __srp_start_tl_fail_timers() local
498 dev_loss_tmo = rport->dev_loss_tmo; __srp_start_tl_fail_timers()
507 if ((fast_io_fail_tmo >= 0 || dev_loss_tmo >= 0) && __srp_start_tl_fail_timers()
516 if (dev_loss_tmo >= 0) __srp_start_tl_fail_timers()
519 1UL * dev_loss_tmo * HZ); __srp_start_tl_fail_timers()
742 rport->dev_loss_tmo = i->f->dev_loss_tmo ? *i->f->dev_loss_tmo : 60; srp_rport_add()
H A Dscsi_transport_fc.c58 * dev_loss_tmo: the default number of seconds that the FC transport
64 module_param_named(dev_loss_tmo, fc_dev_loss_tmo, uint, S_IRUGO|S_IWUSR);
65 MODULE_PARM_DESC(dev_loss_tmo,
447 fc_host->dev_loss_tmo = fc_dev_loss_tmo; fc_host_setup()
845 * dev_loss_tmo attribute
855 * Check for overflow; dev_loss_tmo is u32 fc_str_to_dev_loss()
874 * Check for overflow; dev_loss_tmo is u32 fc_rport_set_dev_loss_tmo()
881 * dev_loss_tmo at SCSI_DEVICE_BLOCK_MAX_TIMEOUT fc_rport_set_dev_loss_tmo()
891 fc_rport_show_function(dev_loss_tmo, "%d\n", 20, )
909 static FC_DEVICE_ATTR(rport, dev_loss_tmo, S_IRUGO | S_IWUSR,
989 * Cap fast_io_fail by dev_loss_tmo or store_fc_rport_fast_io_fail_tmo()
992 if ((val >= rport->dev_loss_tmo) || store_fc_rport_fast_io_fail_tmo()
1682 fc_private_host_show_function(dev_loss_tmo, "%d\n", 20, );
1683 static FC_DEVICE_ATTR(host, dev_loss_tmo, S_IRUGO | S_IWUSR,
2268 SETUP_PRIVATE_HOST_ATTRIBUTE_RW(dev_loss_tmo); fc_attach_transport()
2287 SETUP_RPORT_ATTRIBUTE_RW(dev_loss_tmo); fc_attach_transport()
2628 rport->dev_loss_tmo = fc_host->dev_loss_tmo; fc_rport_create()
2953 * fc_remote_port_add()) within the dev_loss_tmo timeout, then the
2962 * If the remote port returns within the dev_loss_tmo value (and matches
2978 unsigned long timeout = rport->dev_loss_tmo; fc_remote_port_delete()
3005 * So... we now unconditionally wait dev_loss_tmo before fc_remote_port_delete()
/linux-4.1.27/drivers/scsi/fcoe/
H A Dfcoe_sysfs.c102 ((x)->dev_loss_tmo)
109 * dev_loss_tmo attribute
119 * Check for overflow; dev_loss_tmo is u32 fcoe_str_to_dev_loss()
135 * Check for overflow; dev_loss_tmo is u32 fcoe_fcf_set_dev_loss_tmo()
432 fcoe_fcf_private_show_function(dev_loss_tmo, "%d\n", 20, )
450 static FCOE_DEVICE_ATTR(fcf, dev_loss_tmo, S_IRUGO | S_IWUSR,
849 int timeout = fcf->dev_loss_tmo; fcoe_fcf_device_delete()
908 fcf->dev_loss_tmo = ctlr->fcf_dev_loss_tmo; fcoe_fcf_device_add()
/linux-4.1.27/drivers/scsi/csiostor/
H A Dcsio_attr.c364 * If timeout is non zero set the dev_loss_tmo to timeout, else set
365 * dev_loss_tmo to one.
371 rport->dev_loss_tmo = timeout; csio_set_rport_loss_tmo()
373 rport->dev_loss_tmo = 1; csio_set_rport_loss_tmo()
/linux-4.1.27/drivers/message/fusion/
H A Dmptfc.c267 rport->dev_loss_tmo = timeout; mptfc_set_rport_loss_tmo()
269 rport->dev_loss_tmo = mptfc_dev_loss_tmo; mptfc_set_rport_loss_tmo()
473 rport->dev_loss_tmo = mptfc_dev_loss_tmo; mptfc_register_dev()
503 ri->rport->dev_loss_tmo)); mptfc_register_dev()
/linux-4.1.27/drivers/scsi/bfa/
H A Dbfad_attr.c339 * Update dev_loss_tmo based on the value pushed down by the stack
351 rport->dev_loss_tmo = timeout; bfad_im_set_rport_loss_tmo()
353 rport->dev_loss_tmo = path_tov + 1; bfad_im_set_rport_loss_tmo()
H A Dbfad_im.c1143 fc_rport->dev_loss_tmo = bfad_im_itnim_work_handler()
1169 fc_rport->dev_loss_tmo = bfad_im_itnim_work_handler()
/linux-4.1.27/drivers/scsi/fnic/
H A Dfnic_main.c129 rport->dev_loss_tmo = timeout; fnic_set_rport_dev_loss_tmo()
131 rport->dev_loss_tmo = 1; fnic_set_rport_dev_loss_tmo()
/linux-4.1.27/drivers/s390/scsi/
H A Dzfcp_scsi.c519 rport->dev_loss_tmo = timeout; zfcp_set_rport_dev_loss_tmo()
/linux-4.1.27/drivers/infiniband/ulp/srp/
H A Dib_srp.c117 module_param_cb(dev_loss_tmo, &srp_tmo_ops, &srp_dev_loss_tmo,
119 MODULE_PARM_DESC(dev_loss_tmo,
3531 .dev_loss_tmo = &srp_dev_loss_tmo,
/linux-4.1.27/drivers/scsi/qla2xxx/
H A Dqla_attr.c1758 rport->dev_loss_tmo = timeout; qla2x00_set_rport_loss_tmo()
1760 rport->dev_loss_tmo = 1; qla2x00_set_rport_loss_tmo()
H A Dqla_target.c564 uint32_t dev_loss_tmo = tgt->ha->port_down_retry_count + 5; qlt_schedule_sess_for_deletion() local
578 dev_loss_tmo = 0; qlt_schedule_sess_for_deletion()
586 sess->expires = jiffies + dev_loss_tmo * HZ; qlt_schedule_sess_for_deletion()
593 dev_loss_tmo, sess->expires, immediate, sess->logout_on_delete, qlt_schedule_sess_for_deletion()
/linux-4.1.27/drivers/scsi/libfc/
H A Dfc_rport.c190 rport->dev_loss_tmo = timeout; fc_set_rport_loss_tmo()
192 rport->dev_loss_tmo = 1; fc_set_rport_loss_tmo()
/linux-4.1.27/drivers/scsi/lpfc/
H A Dlpfc_attr.c2962 ndlp->rport->dev_loss_tmo = vport->cfg_devloss_tmo; lpfc_update_rport_devloss_tmo()
5603 * If timeout is non zero set the dev_loss_tmo to timeout, else set
5604 * dev_loss_tmo to one.
5610 rport->dev_loss_tmo = timeout; lpfc_set_rport_loss_tmo()
5612 rport->dev_loss_tmo = 1; lpfc_set_rport_loss_tmo()
H A Dlpfc_hbadisc.c101 * This function will be called when dev_loss_tmo fire.
/linux-4.1.27/drivers/scsi/ibmvscsi/
H A Dibmvfc.c1038 rport->dev_loss_tmo = timeout; ibmvfc_set_rport_dev_loss_tmo()
1040 rport->dev_loss_tmo = 1; ibmvfc_set_rport_dev_loss_tmo()

Completed in 628 milliseconds