Lines Matching +full:no +full:- +full:scan +full:- +full:on +full:- +full:init

1 /* SPDX-License-Identifier: GPL-2.0 */
11 #include <linux/blk-mq.h>
31 * enum scsi_timeout_action - How to handle a command that timed out.
49 * Additional per-command data allocated for the driver.
61 * commit_rqs. The done() function must be called on the command
62 * when the driver has finished with it. (you may call done on the
77 * For compatibility, any other non-zero return is treated the
82 * I/O pressure in the system if there are no other outstanding
123 * When unknown ioctl is passed return -ENOIOCTLCMD.
136 * define one of these if you don't want to - there is a default
139 * own strategy routine, this is where it is specified. Note - the
159 * Before the mid layer attempts to scan for a new device where none
161 * your driver need to allocate any structs or perform any other init
168 * Return values: 0 on success, non-0 on failure
191 * depth on the device. All other tasks are optional and depend
192 * on what the driver supports and various implementation details.
202 * device->sdtr will be true if the device supports SDTR messages.
204 * 4. Setting the default timeout on this device (if needed).
205 * 5. Anything else the low level driver might want to do on a device
207 * 6. Return 0 on success, non-0 on error. The device will be marked
208 * as offline on error so that no access will occur. If you return
209 * non-0, your sdev_destroy routine will never get called for this
211 * up after yourself before returning non-0
229 * Before the mid layer attempts to scan for a new device attached
230 * to a target where no target currently exists, it will call this
232 * structs or perform any other init items in order to send commands
236 * Return values: 0 on success, non-0 on failure
256 * If a host has the ability to discover targets on its own instead
260 * the scan in jiffies.
267 * If the host wants to be called before the scan starts, but
268 * after the midlayer has set up ready for the scan, it can fill
277 * to be changeable (on a per device basis). Returns either
297 * SCSI interface of blk_poll - poll for IO completions.
325 * This function is called when one or more partitions on the
353 * cmd should be retried on.
360 * Return values: 0 on success, -ve value on failure.
376 * This determines if we will use a non-interrupt driven
384 * supported, our host also has an ID on the SCSI bus. If this is
385 * the case, then it must be reserved. Please set this_id to -1 if
393 * of scatter-gather.
422 * individual devices (e.g. 256 for SCSI-1).
429 * unit on a given host. Set this to the maximum number of command
443 * Track QUEUE_FULL events and reduce queue depth on demand.
458 * True if the low-level driver performs its own reset-settle delays.
465 /* True if the host uses host-wide tagspace */
472 * Countdown for host blocking with no commands outstanding.
517 spin_lock_irqsave(shost->host_lock, irq_flags); \
519 spin_unlock_irqrestore(shost->host_lock, irq_flags); \
561 struct completion * eh_action; /* Wait for specific actions on the
625 * In scsi-mq mode, the number of hardware queues supported by the LLD.
637 * Host has requested that no further requests come through for the
652 /* Asynchronous scan in progress */
661 /* True if the host uses host-wide tagspace */
733 dev_printk(prefix, &(shost)->shost_gendev, fmt, ##a)
737 return (void *)shost->hostdata;
745 if (!dev->parent)
747 dev = dev->parent;
754 return shost->shost_state == SHOST_RECOVERY ||
755 shost->shost_state == SHOST_CANCEL_RECOVERY ||
756 shost->shost_state == SHOST_DEL_RECOVERY ||
757 shost->tmf_in_progress;
793 return shost->shost_gendev.parent;
797 * scsi_host_scan_allowed - Is scanning of this host allowed
802 return shost->shost_state == SHOST_RUNNING ||
803 shost->shost_state == SHOST_RECOVERY;
841 shost->prot_capabilities = mask;
846 return shost->prot_capabilities;
851 return shost->prot_capabilities >= SHOST_DIX_TYPE0_PROTECTION;
864 return shost->prot_capabilities & cap[target_type] ? target_type : 0;
878 return shost->prot_capabilities & cap[target_type];
884 * All DIX-capable initiators must support the T10-mandated CRC
886 * scheme which has much lower impact on system performance. Note
899 shost->prot_guard_type = type;
904 return shost->prot_guard_type;