Lines Matching +full:hw +full:- +full:settle +full:- +full:time

1 /* SPDX-License-Identifier: GPL-2.0 */
11 #include <linux/blk-mq.h>
58 * When unknown ioctl is passed return -ENOIOCTLCMD.
93 * For compatibility, any other non-zero return is treated the
97 * this device/host completes, or a period of time determined by
117 * define one of these if you don't want to - there is a default
120 * own strategy routine, this is where it is specified. Note - the
149 * Return values: 0 on success, non-0 on failure
156 * time), you will then get a call to slave_destroy(). This is
161 * each time a device is tore down.
175 * Things currently recommended to be handled at this time include:
183 * device->sdtr will be true if the device supports SDTR messages.
188 * 6. Return 0 on success, non-0 on error. The device will be marked
190 * non-0, your slave_destroy routine will never get called for this
192 * up after yourself before returning non-0
217 * Return values: 0 on success, non-0 on failure
237 * until it returns 1 with the scsi_host and the elapsed time of
322 * Return values: 0 on success, -ve value on failure.
344 * This determines if we will use a non-interrupt driven
346 * of simultaneous commands a single hw queue in HBA will accept.
353 * the case, then it must be reserved. Please set this_id to -1 if
361 * of scatter-gather.
388 * individual devices (e.g. 256 for SCSI-1).
433 * True if the low-level driver performs its own reset-settle delays.
440 /* True if the host uses host-wide tagspace */
483 * Additional per-command data allocated for the driver.
508 spin_lock_irqsave(shost->host_lock, irq_flags); \
509 rc = func_name##_lck (cmd, cmd->scsi_done); \
510 spin_unlock_irqrestore(shost->host_lock, irq_flags); \
568 /* next two fields are used to bound the time spent in error handling */
587 * in the system at one time, this does not need to be set. It is
611 * In scsi-mq mode, the number of hardware queues supported by the LLD.
624 * time being.
647 /* True if the host uses host-wide tagspace */
716 dev_printk(prefix, &(shost)->shost_gendev, fmt, ##a)
720 return (void *)shost->hostdata; in shost_priv()
728 if (!dev->parent) in dev_to_shost()
730 dev = dev->parent; in dev_to_shost()
737 return shost->shost_state == SHOST_RECOVERY || in scsi_host_in_recovery()
738 shost->shost_state == SHOST_CANCEL_RECOVERY || in scsi_host_in_recovery()
739 shost->shost_state == SHOST_DEL_RECOVERY || in scsi_host_in_recovery()
740 shost->tmf_in_progress; in scsi_host_in_recovery()
769 return shost->shost_gendev.parent; in scsi_get_device()
773 * scsi_host_scan_allowed - Is scanning of this host allowed
778 return shost->shost_state == SHOST_RUNNING || in scsi_host_scan_allowed()
779 shost->shost_state == SHOST_RECOVERY; in scsi_host_scan_allowed()
796 * thing. This physical pseudo-device isn't real and won't be available
797 * from any high-level drivers.
827 shost->prot_capabilities = mask; in scsi_host_set_prot()
832 return shost->prot_capabilities; in scsi_host_get_prot()
837 return shost->prot_capabilities >= SHOST_DIX_TYPE0_PROTECTION; in scsi_host_prot_dma()
850 return shost->prot_capabilities & cap[target_type] ? target_type : 0; in scsi_host_dif_capable()
864 return shost->prot_capabilities & cap[target_type]; in scsi_host_dix_capable()
870 * All DIX-capable initiators must support the T10-mandated CRC
885 shost->prot_guard_type = type; in scsi_host_set_guard()
890 return shost->prot_guard_type; in scsi_host_get_guard()