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

1 /* SPDX-License-Identifier: GPL-2.0 */
11 #include <linux/blk-mq.h>
57 * When unknown ioctl is passed return -ENOIOCTLCMD.
92 * For compatibility, any other non-zero return is treated the
96 * this device/host completes, or a period of time determined by
116 * define one of these if you don't want to - there is a default
119 * own strategy routine, this is where it is specified. Note - the
148 * Return values: 0 on success, non-0 on failure
155 * time), you will then get a call to slave_destroy(). This is
160 * each time a device is tore down.
174 * Things currently recommended to be handled at this time include:
182 * device->sdtr will be true if the device supports SDTR messages.
187 * 6. Return 0 on success, non-0 on error. The device will be marked
189 * non-0, your slave_destroy routine will never get called for this
191 * up after yourself before returning non-0
216 * Return values: 0 on success, non-0 on failure
236 * until it returns 1 with the scsi_host and the elapsed time of
321 * Return values: 0 on success, -ve value on failure.
343 * This determines if we will use a non-interrupt driven
345 * of simultaneous commands a single hw queue in HBA will accept.
352 * the case, then it must be reserved. Please set this_id to -1 if
360 * of scatter-gather.
387 * individual devices (e.g. 256 for SCSI-1).
432 * True if the low-level driver performs its own reset-settle delays.
439 /* True if the host uses host-wide tagspace */
482 * Additional per-command data allocated for the driver.
502 spin_lock_irqsave(shost->host_lock, irq_flags); \
503 rc = func_name##_lck (cmd, cmd->scsi_done); \
504 spin_unlock_irqrestore(shost->host_lock, irq_flags); \
562 /* next two fields are used to bound the time spent in error handling */
581 * in the system at one time, this does not need to be set. It is
605 * In scsi-mq mode, the number of hardware queues supported by the LLD.
618 * time being.
641 /* True if the host uses host-wide tagspace */
708 dev_printk(prefix, &(shost)->shost_gendev, fmt, ##a)
712 return (void *)shost->hostdata; in shost_priv()
720 if (!dev->parent) in dev_to_shost()
722 dev = dev->parent; in dev_to_shost()
729 return shost->shost_state == SHOST_RECOVERY || in scsi_host_in_recovery()
730 shost->shost_state == SHOST_CANCEL_RECOVERY || in scsi_host_in_recovery()
731 shost->shost_state == SHOST_DEL_RECOVERY || in scsi_host_in_recovery()
732 shost->tmf_in_progress; in scsi_host_in_recovery()
761 return shost->shost_gendev.parent; in scsi_get_device()
765 * scsi_host_scan_allowed - Is scanning of this host allowed
770 return shost->shost_state == SHOST_RUNNING || in scsi_host_scan_allowed()
771 shost->shost_state == SHOST_RECOVERY; in scsi_host_scan_allowed()
788 * thing. This physical pseudo-device isn't real and won't be available
789 * from any high-level drivers.
819 shost->prot_capabilities = mask; in scsi_host_set_prot()
824 return shost->prot_capabilities; in scsi_host_get_prot()
829 return shost->prot_capabilities >= SHOST_DIX_TYPE0_PROTECTION; in scsi_host_prot_dma()
842 return shost->prot_capabilities & cap[target_type] ? target_type : 0; in scsi_host_dif_capable()
856 return shost->prot_capabilities & cap[target_type]; in scsi_host_dix_capable()
862 * All DIX-capable initiators must support the T10-mandated CRC
877 shost->prot_guard_type = type; in scsi_host_set_guard()
882 return shost->prot_guard_type; in scsi_host_get_guard()