id
stringlengths
4
63
text
stringlengths
153
8.81M
ata_internal_cmd_timeout(9)
NAME ata_internal_cmd_timeout - determine timeout for an internal command SYNOPSIS unsigned int ata_internal_cmd_timeout (struct ata_device *dev , u8 cmd ); ARGUMENTS dev target device cmd internal command to be issued DESCRIPTION Determine timeout for internal command cmd for dev. LOCKING: ...
ata_is_40wire(9)
NAME ata_is_40wire - check drive side detection SYNOPSIS int ata_is_40wire (struct ata_device *dev ); ARGUMENTS dev device DESCRIPTION Perform drive side detection decoding, allowing for device vendors who can't follow the documentation. SEE ALSO Kernel file ./drivers/ata/libata-core.c ata_link_next(9),...
ata_is_ata_dev(9)
NAME ata_is_ata_dev - - check if a struct device represents a ATA device SYNOPSIS bool ata_is_ata_dev (const struct device *dev ); ARGUMENTS dev device to check RETURN true if the device represents a ATA device, false otherwise SEE ALSO Kernel file ./drivers/ata/libata-transport.c ata_is_port(9), ata_tport_...
ata_is_link(9)
NAME ata_is_link - - check if a struct device represents a ATA link SYNOPSIS bool ata_is_link (const struct device *dev ); ARGUMENTS dev device to check RETURN true if the device represents a ATA link, false otherwise SEE ALSO Kernel file ./drivers/ata/libata-transport.c ata_is_port(9), ata_tport_delete...
ata_is_port(9)
NAME ata_is_port - - check if a struct device represents a ATA port SYNOPSIS int ata_is_port (const struct device *dev ); ARGUMENTS dev device to check RETURN 1 if the device represents a ATA Port, 0 else SEE ALSO Kernel file ./drivers/ata/libata-transport.c ata_tport_delete(9), ata_port_classify(9), a...
ata_link_abort(9)
NAME ata_link_abort - abort all qc's on the link SYNOPSIS int ata_link_abort (struct ata_link *link ); ARGUMENTS link ATA link to abort qc's for DESCRIPTION Abort all active qc's active on link and schedule EH. LOCKING: spin_lock_irqsave(host lock) RETURN Number of aborted qc's. SEE ALSO Kernel file ./dr...
ata_link_init(9)
NAME ata_link_init - Initialize an ata_link structure SYNOPSIS void ata_link_init (struct ata_port *ap , struct ata_link *link , int pmp ); ARGUMENTS ap ATA port link is attached to link Link structure to initialize pmp Port multiplier port number DESCRIPTION Initialize link. ...
ata_link_next(9)
NAME ata_link_next - link iteration helper SYNOPSIS struct ata_link * ata_link_next (struct ata_link *link , struct ata_port *ap , enum ata_link_iter_mode mode ); ARGUMENTS link the previous link, NULL to start ap ATA port containing links to iterate mode iteration mode, one of ...
ata_link_offline(9)
NAME ata_link_offline - test whether the given link is offline SYNOPSIS bool ata_link_offline (struct ata_link *link ); ARGUMENTS link ATA link to test DESCRIPTION Test whether link is offline. This is identical to ata_phys_link_offline when there's no slave link. When there's a slave link, this functio...
ata_link_online(9)
NAME ata_link_online - test whether the given link is online SYNOPSIS bool ata_link_online (struct ata_link *link ); ARGUMENTS link ATA link to test DESCRIPTION Test whether link is online. This is identical to ata_phys_link_online when there's no slave link. When there's a slave link, this function sho...
ata_mode_string(9)
NAME ata_mode_string - convert xfer_mask to string SYNOPSIS const char * ata_mode_string (unsigned int xfer_mask ); ARGUMENTS xfer_mask mask of bits supported; only highest bit counts. DESCRIPTION Determine string which represents the highest speed (highest bit in modemask). LOCKING: None. RETURN Constant C stri...
ata_mselect_caching(9)
NAME ata_mselect_caching - Simulate MODE SELECT for caching info page SYNOPSIS int ata_mselect_caching (struct ata_queued_cmd *qc , const u8 *buf , int len , u16 *fp ); ARGUMENTS qc Storage for translated ATA taskfile buf input buffer len number of valid bytes in the input buf...
ata_mselect_control(9)
NAME ata_mselect_control - Simulate MODE SELECT for control page SYNOPSIS int ata_mselect_control (struct ata_queued_cmd *qc , u8 spg , const u8 *buf , int len , u16 *fp ); ARGUMENTS qc Storage for translated ATA taskfile spg target sub-page of the control page buf input buffe...
ata_msense_caching(9)
NAME ata_msense_caching - Simulate MODE SENSE caching info page SYNOPSIS unsigned int ata_msense_caching (u16 *id , u8 *buf , bool changeable ); ARGUMENTS id device IDENTIFY data buf output buffer changeable whether changeable parameters are requested DESCRIPTION Generate a caching ...
ata_msense_control(9)
NAME ata_msense_control - Simulate MODE SENSE control mode page SYNOPSIS unsigned int ata_msense_control (struct ata_device *dev , u8 *buf , u8 spg , bool changeable ); ARGUMENTS dev ATA device of interest buf output buffer spg sub-page code changeable whether changeab...
ata_msense_rw_recovery(9)
NAME ata_msense_rw_recovery - Simulate MODE SENSE r/w error recovery page SYNOPSIS unsigned int ata_msense_rw_recovery (u8 *buf , bool changeable ); ARGUMENTS buf output buffer changeable whether changeable parameters are requested DESCRIPTION Generate a generic MODE SENSE r/w error recovery page. ...
ata_msleep(9)
NAME ata_msleep - ATA EH owner aware msleep SYNOPSIS void ata_msleep (struct ata_port *ap , unsigned int msecs ); ARGUMENTS ap ATA port to attribute the sleep to msecs duration to sleep in milliseconds DESCRIPTION Sleeps msecs. If the current task is owner of ap's EH, the ownership is re...
ata_ncq_enabled(9)
NAME ata_ncq_enabled - Test whether NCQ is enabled SYNOPSIS bool ata_ncq_enabled (struct ata_device *dev ); ARGUMENTS dev ATA device to test DESCRIPTION LOCKING: spin_lock_irqsave(host lock) RETURN true if NCQ is enabled for dev, false otherwise. SEE ALSO Kernel file ./include/linux/libata.h ata_ncq_suppor...
ata_ncq_prio_enable(9)
NAME ata_ncq_prio_enable - Enable/disable NCQ Priority SYNOPSIS int ata_ncq_prio_enable (struct ata_port *ap , struct scsi_device *sdev , bool enable ); ARGUMENTS ap ATA port of the target device sdev SCSI device enable true - enable NCQ Priority, false - disable NCQ Priority DES...
ata_ncq_prio_enabled(9)
NAME ata_ncq_prio_enabled - Check if NCQ Priority is enabled SYNOPSIS int ata_ncq_prio_enabled (struct ata_port *ap , struct scsi_device *sdev , bool *enabled ); ARGUMENTS ap ATA port of the target device sdev SCSI device enabled Address of a boolean to store the result DESCRIPTIO...
ata_ncq_prio_supported(9)
NAME ata_ncq_prio_supported - Check if device supports NCQ Priority SYNOPSIS int ata_ncq_prio_supported (struct ata_port *ap , struct scsi_device *sdev , bool *supported ); ARGUMENTS ap ATA port of the target device sdev SCSI device supported Address of a boolean to store the result ...
ata_ncq_supported(9)
NAME ata_ncq_supported - Test whether NCQ is supported SYNOPSIS bool ata_ncq_supported (struct ata_device *dev ); ARGUMENTS dev ATA device to test DESCRIPTION LOCKING: spin_lock_irqsave(host lock) RETURN true if dev supports NCQ, false otherwise. SEE ALSO Kernel file ./include/linux/libata.h ata_ncq_enable...
ata_pack_xfermask(9)
NAME ata_pack_xfermask - Pack pio, mwdma and udma masks into xfer_mask SYNOPSIS unsigned int ata_pack_xfermask (unsigned int pio_mask , unsigned int mwdma_mask , unsigned int udma_mask ); ARGUMENTS pio_mask pio_mask mwdma_mask mwdma_mask udma_mask udma_mask DESCRIPTION Pack pio_mask, mwdma_mask...
ata_pci_bmdma_clear_simplex(9)
NAME ata_pci_bmdma_clear_simplex - attempt to kick device out of simplex SYNOPSIS int ata_pci_bmdma_clear_simplex (struct pci_dev *pdev ); ARGUMENTS pdev PCI device DESCRIPTION Some PCI ATA devices report simplex mode but in fact can be told to enter non simplex mode. This implements the necessary logic to pe...
ata_pci_bmdma_init(9)
NAME ata_pci_bmdma_init - acquire PCI BMDMA resources and init ATA host SYNOPSIS void ata_pci_bmdma_init (struct ata_host *host ); ARGUMENTS host target ATA host DESCRIPTION Acquire PCI BMDMA resources and initialize host accordingly. LOCKING: Inherited from calling layer (may sleep). SEE ALSO Kernel file ...
ata_pci_bmdma_init_one(9)
NAME ata_pci_bmdma_init_one - Initialize/register BMDMA PCI IDE controller SYNOPSIS int ata_pci_bmdma_init_one (struct pci_dev *pdev , const struct ata_port_info * const * ppi , const struct scsi_host_template *sht , void *host_priv , int hflags ); ARGUMENTS pdev Controller to be initialized ppi ...
ata_pci_bmdma_prepare_host(9)
NAME ata_pci_bmdma_prepare_host - helper to prepare PCI BMDMA ATA host SYNOPSIS int ata_pci_bmdma_prepare_host (struct pci_dev *pdev , const struct ata_port_info * const * ppi , struct ata_host **r_host ); ARGUMENTS pdev target PCI device ppi array of port_info, must be enough for two ports ...
ata_pci_remove_one(9)
NAME ata_pci_remove_one - PCI layer callback for device removal SYNOPSIS void ata_pci_remove_one (struct pci_dev *pdev ); ARGUMENTS pdev PCI device that was removed DESCRIPTION PCI layer indicates to libata via this hook that hot-unplug or module unload event has occurred. Detach all ports. Resource release...
ata_pci_sff_activate_host(9)
NAME ata_pci_sff_activate_host - start SFF host, request IRQ and register it SYNOPSIS int ata_pci_sff_activate_host (struct ata_host *host , irq_handler_t irq_handler , const struct scsi_host_template *sht ); ARGUMENTS host target SFF ATA host irq_handler irq_handler used when requesting IRQ(s) ...
ata_pci_sff_init_host(9)
NAME ata_pci_sff_init_host - acquire native PCI ATA resources and init host SYNOPSIS int ata_pci_sff_init_host (struct ata_host *host ); ARGUMENTS host target ATA host DESCRIPTION Acquire native PCI ATA resources for host and initialize the first two ports of host accordingly. Ports marked dummy are skipped ...
ata_pci_sff_init_one(9)
NAME ata_pci_sff_init_one - Initialize/register PIO-only PCI IDE controller SYNOPSIS int ata_pci_sff_init_one (struct pci_dev *pdev , const struct ata_port_info * const *ppi , const struct scsi_host_template *sht , void *host_priv , int hflag ); ARGUMENTS pdev Controller to be initialized ppi a...
ata_pci_sff_prepare_host(9)
NAME ata_pci_sff_prepare_host - helper to prepare PCI PIO-only SFF ATA host SYNOPSIS int ata_pci_sff_prepare_host (struct pci_dev *pdev , const struct ata_port_info * const *ppi , struct ata_host **r_host ); ARGUMENTS pdev target PCI device ppi array of port_info, must be enough for two ports ...
ata_phys_link_offline(9)
NAME ata_phys_link_offline - test whether the given link is offline SYNOPSIS bool ata_phys_link_offline (struct ata_link *link ); ARGUMENTS link ATA link to test DESCRIPTION Test whether link is offline. Note that this function returns 0 if offline status of link cannot be obtained, so ata_link_online(link) ...
ata_phys_link_online(9)
NAME ata_phys_link_online - test whether the given link is online SYNOPSIS bool ata_phys_link_online (struct ata_link *link ); ARGUMENTS link ATA link to test DESCRIPTION Test whether link is online. Note that this function returns 0 if online status of link cannot be obtained, so ata_link_online(link) != !a...
ata_pio_mask_no_iordy(9)
NAME ata_pio_mask_no_iordy - Return the non IORDY mask SYNOPSIS u32 ata_pio_mask_no_iordy (const struct ata_device *adev ); ARGUMENTS adev ATA device DESCRIPTION Compute the highest mode possible if we are not using iordy. Return -1 if no iordy mode is available. SEE ALSO Kernel file ./drivers/ata/libata-...
ata_pio_need_iordy(9)
NAME ata_pio_need_iordy - check if iordy needed SYNOPSIS unsigned int ata_pio_need_iordy (const struct ata_device *adev ); ARGUMENTS adev ATA device DESCRIPTION Check if the current speed of the device requires IORDY. Used by various controllers for chip configuration. SEE ALSO Kernel file ./drivers/ata/l...
ata_pio_sector(9)
NAME ata_pio_sector - Transfer a sector of data. SYNOPSIS void ata_pio_sector (struct ata_queued_cmd *qc ); ARGUMENTS qc Command on going DESCRIPTION Transfer qc->sect_size bytes of data from/to the ATA device. LOCKING: Inherited from caller. SEE ALSO Kernel file ./drivers/ata/libata-sff.c ata_sff_chec...
ata_pio_sectors(9)
NAME ata_pio_sectors - Transfer one or many sectors. SYNOPSIS void ata_pio_sectors (struct ata_queued_cmd *qc ); ARGUMENTS qc Command on going DESCRIPTION Transfer one or many sectors of data from/to the ATA device for the DRQ request. LOCKING: Inherited from caller. SEE ALSO Kernel file ./drivers/ata/l...
ata_platform_remove_one(9)
NAME ata_platform_remove_one - Platform layer callback for device removal SYNOPSIS void ata_platform_remove_one (struct platform_device *pdev ); ARGUMENTS pdev Platform device that was removed DESCRIPTION Platform layer indicates to libata via this hook that hot-unplug or module unload event has occurred. De...
ata_port_abort(9)
NAME ata_port_abort - abort all qc's on the port SYNOPSIS int ata_port_abort (struct ata_port *ap ); ARGUMENTS ap ATA port to abort qc's for DESCRIPTION Abort all active qc's of ap and schedule EH. LOCKING: spin_lock_irqsave(host_set lock) RETURN Number of aborted qc's. SEE ALSO Kernel file ./drivers/a...
ata_port_alloc(9)
NAME ata_port_alloc - allocate and initialize basic ATA port resources SYNOPSIS struct ata_port * ata_port_alloc (struct ata_host *host ); ARGUMENTS host ATA host this allocated port belongs to DESCRIPTION Allocate and initialize basic ATA port resources. LOCKING: Inherited from calling layer (may sleep). R...
ata_port_classify(9)
NAME ata_port_classify - determine device type based on ATA-spec signature SYNOPSIS unsigned int ata_port_classify (struct ata_port *ap , const struct ata_taskfile *tf ); ARGUMENTS ap ATA port device on which the classification should be run tf ATA taskfile register set for device to be iden...
ata_port_desc(9)
NAME ata_port_desc - append port description SYNOPSIS void ata_port_desc (struct ata_port *ap , const char *fmt , ... ); ARGUMENTS ap target ATA port fmt printf format string ... variable arguments DESCRIPTION Format string according to fmt and append it to port description...
ata_port_detach(9)
NAME ata_port_detach - Detach ATA port in preparation of device removal SYNOPSIS void ata_port_detach (struct ata_port *ap ); ARGUMENTS ap ATA port to be detached DESCRIPTION Detach all ATA devices and the associated SCSI devices of ap; then, remove the associated SCSI host. ap is guaranteed to be quiescen...
ata_port_freeze(9)
NAME ata_port_freeze - abort & freeze port SYNOPSIS int ata_port_freeze (struct ata_port *ap ); ARGUMENTS ap ATA port to freeze DESCRIPTION Abort and freeze ap. The freeze operation must be called first, because some hardware requires special operations before the taskfile registers are accessible. LOCKIN...
ata_port_pbar_desc(9)
NAME ata_port_pbar_desc - append PCI BAR description SYNOPSIS void ata_port_pbar_desc (struct ata_port *ap , int bar , ssize_t offset , const char *name ); ARGUMENTS ap target ATA port bar target PCI BAR offset offset into PCI BAR name name of the area DESCRIPTION...
ata_port_schedule_eh(9)
NAME ata_port_schedule_eh - schedule error handling without a qc SYNOPSIS void ata_port_schedule_eh (struct ata_port *ap ); ARGUMENTS ap ATA port to schedule EH for DESCRIPTION Schedule error handling for ap. EH will kick in as soon as all commands are drained. LOCKING: spin_lock_irqsave(host lock) SEE A...
ata_port_wait_eh(9)
NAME ata_port_wait_eh - Wait for the currently pending EH to complete SYNOPSIS void ata_port_wait_eh (struct ata_port *ap ); ARGUMENTS ap Port to wait EH for DESCRIPTION Wait until the currently pending EH is complete. LOCKING: Kernel thread context (may sleep). SEE ALSO Kernel file ./drivers/ata/libata...
ata_qc_complete(9)
NAME ata_qc_complete - Complete an active ATA command SYNOPSIS void ata_qc_complete (struct ata_queued_cmd *qc ); ARGUMENTS qc Command to complete DESCRIPTION Indicate to the mid and upper layers that an ATA command has completed, with either an ok or not-ok status. Refrain from calling this fun...
ata_qc_complete_multiple(9)
NAME ata_qc_complete_multiple - Complete multiple qcs successfully SYNOPSIS int ata_qc_complete_multiple (struct ata_port *ap , u64 qc_active ); ARGUMENTS ap port in question qc_active new qc_active mask DESCRIPTION Complete in-flight commands. This functions is meant to be called from low-level...
ata_qc_free(9)
NAME ata_qc_free - free unused ata_queued_cmd SYNOPSIS void ata_qc_free (struct ata_queued_cmd *qc ); ARGUMENTS qc Command to complete DESCRIPTION Designed to free unused ata_queued_cmd object in case something prevents using it. LOCKING: spin_lock_irqsave(host lock) SEE ALSO Kernel file ./drivers/ata/...
ata_qc_get_active(9)
NAME ata_qc_get_active - get bitmask of active qcs SYNOPSIS u64 ata_qc_get_active (struct ata_port *ap ); ARGUMENTS ap port in question DESCRIPTION LOCKING: spin_lock_irqsave(host lock) RETURN Bitmask of active qcs SEE ALSO Kernel file ./drivers/ata/libata-core.c ata_link_next(9), ata_dev_next(9), a...
ata_qc_issue(9)
NAME ata_qc_issue - issue taskfile to device SYNOPSIS void ata_qc_issue (struct ata_queued_cmd *qc ); ARGUMENTS qc command to issue to device DESCRIPTION Prepare an ATA command to submission to device. This includes mapping the data into a DMA-able area, filling in the S/G table, and finally writing the ta...
ata_qc_schedule_eh(9)
NAME ata_qc_schedule_eh - schedule qc for error handling SYNOPSIS void ata_qc_schedule_eh (struct ata_queued_cmd *qc ); ARGUMENTS qc command to schedule error handling for DESCRIPTION Schedule error handling for qc. EH will kick in as soon as other commands are drained. LOCKING: spin_lock_irqsave(host loc...
ata_read_log_page(9)
NAME ata_read_log_page - read a specific log page SYNOPSIS unsigned int ata_read_log_page (struct ata_device *dev , u8 log , u8 page , void *buf , unsigned int sectors ); ARGUMENTS dev target device log log to read page page to read buf buffer to store read page ...
ata_read_native_max_address(9)
NAME ata_read_native_max_address - Read native max address SYNOPSIS int ata_read_native_max_address (struct ata_device *dev , u64 *max_sectors ); ARGUMENTS dev target device max_sectors out parameter for the result native max address DESCRIPTION Perform an LBA48 or LBA28 native size query upon the de...
ata_release_transport(9)
NAME ata_release_transport - - release ATA transport template instance SYNOPSIS void ata_release_transport (struct scsi_transport_template *t ); ARGUMENTS t transport template instance SEE ALSO Kernel file ./drivers/ata/libata-transport.c ata_is_port(9), ata_tport_delete(9), ata_port_classify(9), ata...
ata_sas_queuecmd(9)
NAME ata_sas_queuecmd - Issue SCSI cdb to libata-managed device SYNOPSIS int ata_sas_queuecmd (struct scsi_cmnd *cmd , struct ata_port *ap ); ARGUMENTS cmd SCSI command to be sent ap ATA port to which the command is being sent RETURN Return value from __ata_scsi_queuecmd if cmd can be queued...
ata_sas_sdev_configure(9)
NAME ata_sas_sdev_configure - Default sdev_configure routine for libata devices SYNOPSIS int ata_sas_sdev_configure (struct scsi_device *sdev , struct queue_limits *lim , struct ata_port *ap ); ARGUMENTS sdev SCSI device to configure lim queue limits ap ATA port to which SCSI d...
ata_scsi_change_queue_depth(9)
NAME ata_scsi_change_queue_depth - SCSI callback for queue depth config SYNOPSIS int ata_scsi_change_queue_depth (struct scsi_device *sdev , int queue_depth ); ARGUMENTS sdev SCSI device to configure queue depth for queue_depth new queue depth DESCRIPTION This is libata standard hostt->change_queue_de...
ata_scsi_cmd_error_handler(9)
NAME ata_scsi_cmd_error_handler - error callback for a list of commands SYNOPSIS void ata_scsi_cmd_error_handler (struct Scsi_Host *host , struct ata_port *ap , struct list_head *eh_work_q ); ARGUMENTS host scsi host containing the port ap ATA port within the host eh_work_q list of c...
ata_scsi_dev_rescan(9)
NAME ata_scsi_dev_rescan - initiate scsi_rescan_device() SYNOPSIS void ata_scsi_dev_rescan (struct work_struct *work ); ARGUMENTS work Pointer to ATA port to perform scsi_rescan_device DESCRIPTION After ATA pass thru (SAT) commands are executed successfully, libata need to propagate the changes to SCSI layer....
ata_scsi_dma_need_drain(9)
NAME ata_scsi_dma_need_drain - Check whether data transfer may overflow SYNOPSIS bool ata_scsi_dma_need_drain (struct request *rq ); ARGUMENTS rq request to be checked DESCRIPTION ATAPI commands which transfer variable length data to host might overflow due to application error or hardware bug. This functi...
ata_scsi_error(9)
NAME ata_scsi_error - SCSI layer error handler callback SYNOPSIS void ata_scsi_error (struct Scsi_Host *host ); ARGUMENTS host SCSI host on which error occurred DESCRIPTION Handles SCSI-layer-thrown error events. LOCKING: Inherited from SCSI layer (none, can sleep) RETURN Zero. SEE ALSO Kernel file ./dri...
ata_scsi_find_dev(9)
NAME ata_scsi_find_dev - lookup ata_device from scsi_cmnd SYNOPSIS struct ata_device * ata_scsi_find_dev (struct ata_port *ap , const struct scsi_device *scsidev ); ARGUMENTS ap ATA port to which the device is attached scsidev SCSI device from which we derive the ATA device DESCRIPTION Given var...
ata_scsi_flush_xlat(9)
NAME ata_scsi_flush_xlat - Translate SCSI SYNCHRONIZE CACHE command SYNOPSIS unsigned int ata_scsi_flush_xlat (struct ata_queued_cmd *qc ); ARGUMENTS qc Storage for translated ATA taskfile DESCRIPTION Sets up an ATA taskfile to issue FLUSH CACHE or FLUSH CACHE EXT. LOCKING: spin_lock_irqsave(host lock) RE...
ata_scsi_hotplug(9)
NAME ata_scsi_hotplug - SCSI part of hotplug SYNOPSIS void ata_scsi_hotplug (struct work_struct *work ); ARGUMENTS work Pointer to ATA port to perform SCSI hotplug on DESCRIPTION Perform SCSI part of hotplug. It's executed from a separate workqueue after EH completes. This is necessary because SCSI hot pl...
ata_scsi_media_change_notify(9)
NAME ata_scsi_media_change_notify - send media change event SYNOPSIS void ata_scsi_media_change_notify (struct ata_device *dev ); ARGUMENTS dev Pointer to the disk device with media change event DESCRIPTION Tell the block layer to send a media change notification event. LOCKING: spin_lock_irqsave(host lock)...
ata_scsi_mode_select_xlat(9)
NAME ata_scsi_mode_select_xlat - Simulate MODE SELECT 6, 10 commands SYNOPSIS unsigned int ata_scsi_mode_select_xlat (struct ata_queued_cmd *qc ); ARGUMENTS qc Storage for translated ATA taskfile DESCRIPTION Converts a MODE SELECT command to an ATA SET FEATURES taskfile. Assume this is invoke...
ata_scsi_offline_dev(9)
NAME ata_scsi_offline_dev - offline attached SCSI device SYNOPSIS bool ata_scsi_offline_dev (struct ata_device *dev ); ARGUMENTS dev ATA device to offline attached SCSI device for DESCRIPTION This function is called from ata_eh_detach_dev and is responsible for taking the SCSI device attached to d...
ata_scsi_pass_thru(9)
NAME ata_scsi_pass_thru - convert ATA pass-thru CDB to taskfile SYNOPSIS unsigned int ata_scsi_pass_thru (struct ata_queued_cmd *qc ); ARGUMENTS qc command structure to be initialized DESCRIPTION Handles either 12, 16, or 32-byte versions of the CDB. RETURN Zero on success, non-zero on failure. SEE ALSO K...
ata_scsi_port_error_handler(9)
NAME ata_scsi_port_error_handler - recover the port after the commands SYNOPSIS void ata_scsi_port_error_handler (struct Scsi_Host *host , struct ata_port *ap ); ARGUMENTS host SCSI host containing the port ap the ATA port DESCRIPTION Handle the recovery of the port ap after all the commands ...
ata_scsi_qc_new(9)
NAME ata_scsi_qc_new - acquire new ata_queued_cmd reference SYNOPSIS struct ata_queued_cmd * ata_scsi_qc_new (struct ata_device *dev , struct scsi_cmnd *cmd ); ARGUMENTS dev ATA device to which the new command is attached cmd SCSI command that originated this ATA command DESCRIPTION Obtain a...
ata_scsi_queuecmd(9)
NAME ata_scsi_queuecmd - Issue SCSI cdb to libata-managed device SYNOPSIS enum scsi_qc_status ata_scsi_queuecmd (struct Scsi_Host *shost , struct scsi_cmnd *cmd ); ARGUMENTS shost SCSI host of command to be sent cmd SCSI command to be sent DESCRIPTION In some cases, this function translates...
ata_scsi_rbuf_fill(9)
NAME ata_scsi_rbuf_fill - wrapper for SCSI command simulators SYNOPSIS void ata_scsi_rbuf_fill (struct ata_device *dev , struct scsi_cmnd *cmd , unsigned int (*actor)(struct ata_device *dev, struct scsi_cmnd *cmd, u8 *rbuf) ); ARGUMENTS dev Target device. cmd SCSI command of interest. ...
ata_scsi_remove_dev(9)
NAME ata_scsi_remove_dev - remove attached SCSI device SYNOPSIS void ata_scsi_remove_dev (struct ata_device *dev ); ARGUMENTS dev ATA device to remove attached SCSI device for DESCRIPTION This function is called from ata_eh_scsi_hotplug and responsible for removing the SCSI device attached to dev. LOCKING: ...
ata_scsi_report_zones_complete(9)
NAME ata_scsi_report_zones_complete - convert ATA output SYNOPSIS void ata_scsi_report_zones_complete (struct ata_queued_cmd *qc ); ARGUMENTS qc command structure returning the data DESCRIPTION Convert T-13 little-endian field representation into T-10 big-endian field representation. What a mess. SEE ALSO...
ata_scsi_rw_xlat(9)
NAME ata_scsi_rw_xlat - Translate SCSI r/w command into an ATA one SYNOPSIS unsigned int ata_scsi_rw_xlat (struct ata_queued_cmd *qc ); ARGUMENTS qc Storage for translated ATA taskfile DESCRIPTION Converts any of six SCSI read/write commands into the ATA counterpart, including starting sector (LBA), ...
ata_scsi_sdev_configure(9)
NAME ata_scsi_sdev_configure - Set SCSI device attributes SYNOPSIS int ata_scsi_sdev_configure (struct scsi_device *sdev , struct queue_limits *lim ); ARGUMENTS sdev SCSI device to examine lim queue limits DESCRIPTION This is called before we actually start reading and writing to the device, t...
ata_scsi_sdev_destroy(9)
NAME ata_scsi_sdev_destroy - SCSI device is about to be destroyed SYNOPSIS void ata_scsi_sdev_destroy (struct scsi_device *sdev ); ARGUMENTS sdev SCSI device to be destroyed DESCRIPTION sdev is about to be destroyed for hot/warm unplugging. If this unplugging was initiated by libata as indicated by NULL dev-...
ata_scsi_sdev_init(9)
NAME ata_scsi_sdev_init - Early setup of SCSI device SYNOPSIS int ata_scsi_sdev_init (struct scsi_device *sdev ); ARGUMENTS sdev SCSI device to examine DESCRIPTION This is called from scsi_alloc_sdev when the scsi device associated with an ATA device is scanned on a port. LOCKING: Defined by SCSI layer. We ...
ata_scsi_set_passthru_sense_fields(9)
NAME ata_scsi_set_passthru_sense_fields - Set ATA fields in sense buffer SYNOPSIS void ata_scsi_set_passthru_sense_fields (struct ata_queued_cmd *qc ); ARGUMENTS qc ATA PASS-THROUGH command. DESCRIPTION Populates "ATA Status Return sense data descriptor" / "Fixed format sense data" with ATA taskfile fields....
ata_scsi_simulate(9)
NAME ata_scsi_simulate - simulate SCSI command on ATA device SYNOPSIS void ata_scsi_simulate (struct ata_device *dev , struct scsi_cmnd *cmd ); ARGUMENTS dev the target device cmd SCSI command being sent to device. DESCRIPTION Interprets and directly executes a select list of SCSI commands th...
ata_scsi_start_stop_xlat(9)
NAME ata_scsi_start_stop_xlat - Translate SCSI START STOP UNIT command SYNOPSIS unsigned int ata_scsi_start_stop_xlat (struct ata_queued_cmd *qc ); ARGUMENTS qc Storage for translated ATA taskfile DESCRIPTION Sets up an ATA taskfile to issue STANDBY (to stop) or READ VERIFY (to start). Perhaps thes...
ata_scsi_translate(9)
NAME ata_scsi_translate - Translate then issue SCSI command to ATA device SYNOPSIS int ata_scsi_translate (struct ata_device *dev , struct scsi_cmnd *cmd , ata_xlat_func_t xlat_func ); ARGUMENTS dev ATA device to which the command is addressed cmd SCSI command to execute xlat_func Ac...
ata_scsi_unlock_native_capacity(9)
NAME ata_scsi_unlock_native_capacity - unlock native capacity SYNOPSIS void ata_scsi_unlock_native_capacity (struct scsi_device *sdev ); ARGUMENTS sdev SCSI device to adjust device capacity for DESCRIPTION This function is called if a partition on sdev extends beyond the end of the device. It requests EH to ...
ata_scsi_user_scan(9)
NAME ata_scsi_user_scan - indication for user-initiated bus scan SYNOPSIS int ata_scsi_user_scan (struct Scsi_Host *shost , unsigned int channel , unsigned int id , u64 lun ); ARGUMENTS shost SCSI host to scan channel Channel to scan id ID to scan lun LUN to scan DE...
ata_scsi_var_len_cdb_xlat(9)
NAME ata_scsi_var_len_cdb_xlat - SATL variable length CDB to Handler SYNOPSIS unsigned int ata_scsi_var_len_cdb_xlat (struct ata_queued_cmd *qc ); ARGUMENTS qc Command to be translated DESCRIPTION Translate a SCSI variable length CDB to specified commands. It checks a service action value in CDB to call co...
ata_scsi_verify_xlat(9)
NAME ata_scsi_verify_xlat - Translate SCSI VERIFY command into an ATA one SYNOPSIS unsigned int ata_scsi_verify_xlat (struct ata_queued_cmd *qc ); ARGUMENTS qc Storage for translated ATA taskfile DESCRIPTION Converts SCSI VERIFY command to an ATA READ VERIFY command. LOCKING: spin_lock_irqsave(host lock) ...
ata_scsi_write_same_xlat(9)
NAME ata_scsi_write_same_xlat - SATL Write Same to ATA SCT Write Same SYNOPSIS unsigned int ata_scsi_write_same_xlat (struct ata_queued_cmd *qc ); ARGUMENTS qc Command to be translated DESCRIPTION Translate a SCSI WRITE SAME command to be either a DSM TRIM command or an SCT Write Same command. Based on WRI...
ata_scsiop_inq_00(9)
NAME ata_scsiop_inq_00 - Simulate INQUIRY VPD page 0, list of pages SYNOPSIS unsigned int ata_scsiop_inq_00 (struct ata_device *dev , struct scsi_cmnd *cmd , u8 *rbuf ); ARGUMENTS dev Target device. cmd SCSI command of interest. rbuf Response buffer, to which simulated SCSI cmd ...
ata_scsiop_inq_80(9)
NAME ata_scsiop_inq_80 - Simulate INQUIRY VPD page 80, device serial number SYNOPSIS unsigned int ata_scsiop_inq_80 (struct ata_device *dev , struct scsi_cmnd *cmd , u8 *rbuf ); ARGUMENTS dev Target device. cmd SCSI command of interest. rbuf Response buffer, to which simulated S...
ata_scsiop_inq_83(9)
NAME ata_scsiop_inq_83 - Simulate INQUIRY VPD page 83, device identity SYNOPSIS unsigned int ata_scsiop_inq_83 (struct ata_device *dev , struct scsi_cmnd *cmd , u8 *rbuf ); ARGUMENTS dev Target device. cmd SCSI command of interest. rbuf Response buffer, to which simulated SCSI c...
ata_scsiop_inq_89(9)
NAME ata_scsiop_inq_89 - Simulate INQUIRY VPD page 89, ATA info SYNOPSIS unsigned int ata_scsiop_inq_89 (struct ata_device *dev , struct scsi_cmnd *cmd , u8 *rbuf ); ARGUMENTS dev Target device. cmd SCSI command of interest. rbuf Response buffer, to which simulated SCSI cmd outp...
ata_scsiop_inq_b0(9)
NAME ata_scsiop_inq_b0 - Simulate INQUIRY VPD page B0, Block Limits SYNOPSIS unsigned int ata_scsiop_inq_b0 (struct ata_device *dev , struct scsi_cmnd *cmd , u8 *rbuf ); ARGUMENTS dev Target device. cmd SCSI command of interest. rbuf Response buffer, to which simulated SCSI cmd ...
ata_scsiop_inq_b1(9)
NAME ata_scsiop_inq_b1 - Simulate INQUIRY VPD page B1, Block Device Characteristics SYNOPSIS unsigned int ata_scsiop_inq_b1 (struct ata_device *dev , struct scsi_cmnd *cmd , u8 *rbuf ); ARGUMENTS dev Target device. cmd SCSI command of interest. rbuf Response buffer, to which sim...
ata_scsiop_inq_b2(9)
NAME ata_scsiop_inq_b2 - Simulate INQUIRY VPD page B2, Logical Block Provisioning SYNOPSIS unsigned int ata_scsiop_inq_b2 (struct ata_device *dev , struct scsi_cmnd *cmd , u8 *rbuf ); ARGUMENTS dev Target device. cmd SCSI command of interest. rbuf Response buffer, to which simul...
ata_scsiop_inq_b6(9)
NAME ata_scsiop_inq_b6 - Simulate INQUIRY VPD page B6, Zoned Block Device Characteristics SYNOPSIS unsigned int ata_scsiop_inq_b6 (struct ata_device *dev , struct scsi_cmnd *cmd , u8 *rbuf ); ARGUMENTS dev Target device. cmd SCSI command of interest. rbuf Response buffer, to whi...
ata_scsiop_inq_b9(9)
NAME ata_scsiop_inq_b9 - Simulate INQUIRY VPD page B9, Concurrent Positioning Ranges SYNOPSIS unsigned int ata_scsiop_inq_b9 (struct ata_device *dev , struct scsi_cmnd *cmd , u8 *rbuf ); ARGUMENTS dev Target device. cmd SCSI command of interest. rbuf Response buffer, to which si...
ata_scsiop_inq_std(9)
NAME ata_scsiop_inq_std - Simulate standard INQUIRY command SYNOPSIS unsigned int ata_scsiop_inq_std (struct ata_device *dev , struct scsi_cmnd *cmd , u8 *rbuf ); ARGUMENTS dev Target device. cmd SCSI command of interest. rbuf Response buffer, to which simulated SCSI cmd output ...