id
stringlengths
4
63
text
stringlengths
153
8.81M
ata_bmdma_stop(9)
NAME ata_bmdma_stop - Stop PCI IDE BMDMA transfer SYNOPSIS void ata_bmdma_stop (struct ata_queued_cmd *qc ); ARGUMENTS qc Command we are ending DMA for DESCRIPTION Clears the ATA_DMA_START flag in the dma control register May be used as the bmdma_stop entry in ata_port_operations. LOCKING: spin_lock_irqsav...
ata_build_rw_tf(9)
NAME ata_build_rw_tf - Build ATA taskfile for given read/write request SYNOPSIS int ata_build_rw_tf (struct ata_queued_cmd *qc , u64 block , u32 n_block , unsigned int tf_flags , int cdl , int class ); ARGUMENTS qc Metadata associated with the taskfile to build block Block address n_blo...
ata_cable_40wire(9)
NAME ata_cable_40wire - return 40 wire cable type SYNOPSIS int ata_cable_40wire (struct ata_port *ap ); ARGUMENTS ap port DESCRIPTION Helper method for drivers which want to hardwire 40 wire cable detection. SEE ALSO Kernel file ./drivers/ata/libata-core.c ata_link_next(9), ata_dev_next(9), ata_dev_p...
ata_cable_80wire(9)
NAME ata_cable_80wire - return 80 wire cable type SYNOPSIS int ata_cable_80wire (struct ata_port *ap ); ARGUMENTS ap port DESCRIPTION Helper method for drivers which want to hardwire 80 wire cable detection. SEE ALSO Kernel file ./drivers/ata/libata-core.c ata_link_next(9), ata_dev_next(9), ata_dev_p...
ata_cable_ignore(9)
NAME ata_cable_ignore - return ignored PATA cable. SYNOPSIS int ata_cable_ignore (struct ata_port *ap ); ARGUMENTS ap port DESCRIPTION Helper method for drivers which don't use cable type to limit transfer mode. SEE ALSO Kernel file ./drivers/ata/libata-core.c ata_link_next(9), ata_dev_next(9), ata_d...
ata_cable_sata(9)
NAME ata_cable_sata - return SATA cable type SYNOPSIS int ata_cable_sata (struct ata_port *ap ); ARGUMENTS ap port DESCRIPTION Helper method for drivers which have SATA cables SEE ALSO Kernel file ./drivers/ata/libata-core.c ata_link_next(9), ata_dev_next(9), ata_dev_phys_link(9), ata_force_cbl(9), ...
ata_cable_unknown(9)
NAME ata_cable_unknown - return unknown PATA cable. SYNOPSIS int ata_cable_unknown (struct ata_port *ap ); ARGUMENTS ap port DESCRIPTION Helper method for drivers which have no PATA cable detection. SEE ALSO Kernel file ./drivers/ata/libata-core.c ata_link_next(9), ata_dev_next(9), ata_dev_phys_link(...
ata_change_queue_depth(9)
NAME ata_change_queue_depth - Set a device maximum queue depth SYNOPSIS int ata_change_queue_depth (struct ata_port *ap , struct scsi_device *sdev , int queue_depth ); ARGUMENTS ap ATA port of the target device sdev SCSI device to configure queue depth for queue_depth new queue depth ...
ata_cmd_ioctl(9)
NAME ata_cmd_ioctl - Handler for HDIO_DRIVE_CMD ioctl SYNOPSIS int ata_cmd_ioctl (struct scsi_device *scsidev , void __user *arg ); ARGUMENTS scsidev Device to which we are issuing command arg User provided data for issuing command DESCRIPTION LOCKING: Defined by the SCSI layer. We don't really ...
ata_data_xfer_8bit(9)
NAME ata_data_xfer_8bit - Transfer data by 8bit PIO SYNOPSIS unsigned int ata_data_xfer_8bit (struct ata_queued_cmd *qc , unsigned char *buf , unsigned int buflen , int rw ); ARGUMENTS qc queued command buf data buffer buflen buffer length rw read/write DESCRIPT...
ata_dev_acpi_handle(9)
NAME ata_dev_acpi_handle - provide the acpi_handle for an ata_device SYNOPSIS acpi_handle ata_dev_acpi_handle (struct ata_device *dev ); ARGUMENTS dev the acpi_handle returned will correspond to this device DESCRIPTION Returns the acpi_handle for the ACPI namespace object corresponding to the ata_device pass...
ata_dev_classify(9)
NAME ata_dev_classify - determine device type based on ATA-spec signature SYNOPSIS unsigned int ata_dev_classify (const struct ata_taskfile *tf ); ARGUMENTS tf ATA taskfile register set for device to be identified DESCRIPTION Determine from taskfile register contents whether a device is ATA or ATAPI, as per...
ata_dev_configure(9)
NAME ata_dev_configure - Configure the specified ATA/ATAPI device SYNOPSIS int ata_dev_configure (struct ata_device *dev ); ARGUMENTS dev Target device to configure DESCRIPTION Configure dev according to dev->id. Generic and low-level driver specific fixups are also applied. LOCKING: Kernel thread context ...
ata_dev_disable(9)
NAME ata_dev_disable - disable ATA device SYNOPSIS void ata_dev_disable (struct ata_device *dev ); ARGUMENTS dev ATA device to disable DESCRIPTION Disable dev. Locking: EH context. SEE ALSO Kernel file ./drivers/ata/libata-eh.c __ata_ehi_push_desc(9), ata_ehi_push_desc(9), ata_ehi_clear_desc(9), ata_por...
ata_dev_free_resources(9)
NAME ata_dev_free_resources - Free a device resources SYNOPSIS void ata_dev_free_resources (struct ata_device *dev ); ARGUMENTS dev Target ATA device DESCRIPTION Free resources allocated to support a device features. LOCKING: Kernel thread context (may sleep). SEE ALSO Kernel file ./drivers/ata/libata-c...
ata_dev_get_GTF(9)
NAME ata_dev_get_GTF - get the drive bootup default taskfile settings SYNOPSIS int ata_dev_get_GTF (struct ata_device *dev , struct ata_acpi_gtf **gtf ); ARGUMENTS dev target ATA device gtf output parameter for buffer containing _GTF taskfile arrays DESCRIPTION This applies to both PATA a...
ata_dev_init(9)
NAME ata_dev_init - Initialize an ata_device structure SYNOPSIS void ata_dev_init (struct ata_device *dev ); ARGUMENTS dev Device structure to initialize DESCRIPTION Initialize dev in preparation for probing. LOCKING: Inherited from caller. SEE ALSO Kernel file ./drivers/ata/libata-core.c ata_link_next...
ata_dev_init_params(9)
NAME ata_dev_init_params - Issue INIT DEV PARAMS command SYNOPSIS unsigned int ata_dev_init_params (struct ata_device *dev , u16 heads , u16 sectors ); ARGUMENTS dev Device to which command will be sent heads Number of heads (taskfile parameter) sectors Number of sectors (taskfile pa...
ata_dev_next(9)
NAME ata_dev_next - device iteration helper SYNOPSIS struct ata_device * ata_dev_next (struct ata_device *dev , struct ata_link *link , enum ata_dev_iter_mode mode ); ARGUMENTS dev the previous device, NULL to start link ATA link containing devices to iterate mode iteration mode,...
ata_dev_pair(9)
NAME ata_dev_pair - return other device on cable SYNOPSIS struct ata_device * ata_dev_pair (struct ata_device *adev ); ARGUMENTS adev device DESCRIPTION Obtain the other device on the same cable, or if none is present NULL is returned SEE ALSO Kernel file ./drivers/ata/libata-core.c ata_link_next(9), at...
ata_dev_phys_link(9)
NAME ata_dev_phys_link - find physical link for a device SYNOPSIS struct ata_link * ata_dev_phys_link (struct ata_device *dev ); ARGUMENTS dev ATA device to look up physical link for DESCRIPTION Look up physical link which dev is attached to. Note that this is different from dev->link only when dev is on sl...
ata_dev_power_set_active(9)
NAME ata_dev_power_set_active - Set a device power mode to active SYNOPSIS void ata_dev_power_set_active (struct ata_device *dev ); ARGUMENTS dev target device DESCRIPTION Issue a VERIFY command to enter to ensure that the device is in the active power mode. For a spun-down HDD (standby or idle power mode...
ata_dev_power_set_standby(9)
NAME ata_dev_power_set_standby - Set a device power mode to standby SYNOPSIS void ata_dev_power_set_standby (struct ata_device *dev ); ARGUMENTS dev target device DESCRIPTION Issue a STANDBY IMMEDIATE command to set a device power mode to standby. For an HDD device, this spins down the disks. LOCKING: Kern...
ata_dev_read_id(9)
NAME ata_dev_read_id - Read ID data from the specified device SYNOPSIS int ata_dev_read_id (struct ata_device *dev , unsigned int *p_class , unsigned int flags , u16 *id ); ARGUMENTS dev target device p_class pointer to class of the target device (may be changed) flags ATA_READID_* f...
ata_dev_reread_id(9)
NAME ata_dev_reread_id - Re-read IDENTIFY data SYNOPSIS int ata_dev_reread_id (struct ata_device *dev , unsigned int readid_flags ); ARGUMENTS dev target ATA device readid_flags read ID flags DESCRIPTION Re-read IDENTIFY page and make sure dev is still attached to the port. LOCKIN...
ata_dev_revalidate(9)
NAME ata_dev_revalidate - Revalidate ATA device SYNOPSIS int ata_dev_revalidate (struct ata_device *dev , unsigned int new_class , unsigned int readid_flags ); ARGUMENTS dev device to revalidate new_class new class code readid_flags read ID flags DESCRIPTION Re-read IDENT...
ata_dev_same_device(9)
NAME ata_dev_same_device - Determine whether new ID matches configured device SYNOPSIS int ata_dev_same_device (struct ata_device *dev , unsigned int new_class , const u16 *new_id ); ARGUMENTS dev device to compare against new_class class of the new device new_id IDENTIFY page of the ne...
ata_dev_select(9)
NAME ata_dev_select - Select device 0/1 on ATA bus SYNOPSIS void ata_dev_select (struct ata_port *ap , unsigned int device , unsigned int wait , unsigned int can_sleep ); ARGUMENTS ap ATA channel to manipulate device ATA device (numbered from zero) to select wait non-zero to wait ...
ata_dev_set_feature(9)
NAME ata_dev_set_feature - Issue SET FEATURES SYNOPSIS unsigned int ata_dev_set_feature (struct ata_device *dev , u8 subcmd , u8 action ); ARGUMENTS dev Device to which command will be sent subcmd The SET FEATURES subcommand to be sent action The sector count represents a subcommand ...
ata_dev_set_xfermode(9)
NAME ata_dev_set_xfermode - Issue SET FEATURES - XFER MODE command SYNOPSIS unsigned int ata_dev_set_xfermode (struct ata_device *dev ); ARGUMENTS dev Device to which command will be sent DESCRIPTION Issue SET FEATURES - XFER MODE command to device dev on port ap. LOCKING: PCI/etc. bus probe sem. RETURN 0 ...
ata_dev_xfermask(9)
NAME ata_dev_xfermask - Compute supported xfermask of the given device SYNOPSIS void ata_dev_xfermask (struct ata_device *dev ); ARGUMENTS dev Device to compute xfermask for DESCRIPTION Compute supported xfermask of dev and store it in dev->*_mask. This function is responsible for applying all known limits ...
ata_devchk(9)
NAME ata_devchk - PATA device presence detection SYNOPSIS bool ata_devchk (struct ata_port *ap , unsigned int device ); ARGUMENTS ap ATA channel to examine device Device to examine (starting at zero) DESCRIPTION This technique was originally described in Hale Landis's ATADRVR (www.ata-atapi.co...
ata_do_dev_read_id(9)
NAME ata_do_dev_read_id - default ID read method SYNOPSIS unsigned int ata_do_dev_read_id (struct ata_device *dev , struct ata_taskfile *tf , __le16 *id ); ARGUMENTS dev device tf proposed taskfile id data buffer DESCRIPTION Issue the identify taskfile and hand back the buff...
ata_down_xfermask_limit(9)
NAME ata_down_xfermask_limit - adjust dev xfer masks downward SYNOPSIS int ata_down_xfermask_limit (struct ata_device *dev , unsigned int sel ); ARGUMENTS dev Device to adjust xfer masks sel ATA_DNXFER_* selector DESCRIPTION Adjust xfer masks of dev downward. Note that this function does not...
ata_dump_id(9)
NAME ata_dump_id - IDENTIFY DEVICE info debugging output SYNOPSIS void ata_dump_id (struct ata_device *dev , const u16 *id ); ARGUMENTS dev device from which the information is fetched id IDENTIFY DEVICE page to dump DESCRIPTION Dump selected 16-bit words from the given IDENTIFY DEVICE page....
ata_eh_about_to_do(9)
NAME ata_eh_about_to_do - about to perform eh_action SYNOPSIS void ata_eh_about_to_do (struct ata_link *link , struct ata_device *dev , unsigned int action ); ARGUMENTS link target ATA link dev target ATA dev for per-dev action (can be NULL) action action about to be performed DES...
ata_eh_acquire(9)
NAME ata_eh_acquire - acquire EH ownership SYNOPSIS void ata_eh_acquire (struct ata_port *ap ); ARGUMENTS ap ATA port to acquire EH ownership for DESCRIPTION Acquire EH ownership for ap. This is the basic exclusion mechanism for ports sharing a host. Only one port hanging off the same host can claim the o...
ata_eh_analyze_ncq_error(9)
NAME ata_eh_analyze_ncq_error - analyze NCQ error SYNOPSIS void ata_eh_analyze_ncq_error (struct ata_link *link ); ARGUMENTS link ATA link to analyze NCQ error for DESCRIPTION Read log page 10h, determine the offending qc and acquire error status TF. For NCQ device errors, all LLDDs have to do is setti...
ata_eh_analyze_serror(9)
NAME ata_eh_analyze_serror - analyze SError for a failed port SYNOPSIS void ata_eh_analyze_serror (struct ata_link *link ); ARGUMENTS link ATA link to analyze SError for DESCRIPTION Analyze SError if available and further determine cause of failure. LOCKING: None. SEE ALSO Kernel file ./drivers/ata/libata...
ata_eh_analyze_tf(9)
NAME ata_eh_analyze_tf - analyze taskfile of a failed qc SYNOPSIS unsigned int ata_eh_analyze_tf (struct ata_queued_cmd *qc ); ARGUMENTS qc qc to analyze DESCRIPTION Analyze taskfile of qc and further determine cause of failure. This function also requests ATAPI sense data if available. LOCKING: Kernel th...
ata_eh_autopsy(9)
NAME ata_eh_autopsy - analyze error and determine recovery action SYNOPSIS void ata_eh_autopsy (struct ata_port *ap ); ARGUMENTS ap host port to perform autopsy on DESCRIPTION Analyze all links of ap and determine why they failed and which recovery actions are needed. LOCKING: Kernel thread context (may sl...
ata_eh_decide_disposition(9)
NAME ata_eh_decide_disposition - Disposition a qc based on sense data SYNOPSIS enum scsi_disposition ata_eh_decide_disposition (struct ata_queued_cmd *qc ); ARGUMENTS qc qc to examine DESCRIPTION For a regular SCSI command, the SCSI completion callback (scsi_done) will call scsi_complete, which will cal...
ata_eh_detach_dev(9)
NAME ata_eh_detach_dev - detach ATA device SYNOPSIS void ata_eh_detach_dev (struct ata_device *dev ); ARGUMENTS dev ATA device to detach DESCRIPTION Detach dev. LOCKING: None. SEE ALSO Kernel file ./drivers/ata/libata-eh.c __ata_ehi_push_desc(9), ata_ehi_push_desc(9), ata_ehi_clear_desc(9), ata_port_...
ata_eh_done(9)
NAME ata_eh_done - EH action complete SYNOPSIS void ata_eh_done (struct ata_link *link , struct ata_device *dev , unsigned int action ); ARGUMENTS link ATA link for which EH actions are complete dev target ATA dev for per-dev action (can be NULL) action action just completed DESCR...
ata_eh_finish(9)
NAME ata_eh_finish - finish up EH SYNOPSIS void ata_eh_finish (struct ata_port *ap ); ARGUMENTS ap host port to finish EH for DESCRIPTION Recovery is complete. Clean up EH states and retry or finish failed qcs. LOCKING: None. SEE ALSO Kernel file ./drivers/ata/libata-eh.c __ata_ehi_push_desc(9), ata_e...
ata_eh_freeze_port(9)
NAME ata_eh_freeze_port - EH helper to freeze port SYNOPSIS void ata_eh_freeze_port (struct ata_port *ap ); ARGUMENTS ap ATA port to freeze DESCRIPTION Freeze ap. LOCKING: None. SEE ALSO Kernel file ./drivers/ata/libata-eh.c __ata_ehi_push_desc(9), ata_ehi_push_desc(9), ata_ehi_clear_desc(9), ata_po...
ata_eh_get_ncq_success_sense(9)
NAME ata_eh_get_ncq_success_sense - Read and process the sense data for successful NCQ commands log page SYNOPSIS int ata_eh_get_ncq_success_sense (struct ata_link *link ); ARGUMENTS link ATA link to get sense data for DESCRIPTION Read the sense data for successful NCQ commands log page to obtain sense data f...
ata_eh_handle_port_resume(9)
NAME ata_eh_handle_port_resume - perform port resume operation SYNOPSIS void ata_eh_handle_port_resume (struct ata_port *ap ); ARGUMENTS ap port to resume DESCRIPTION Resume ap. LOCKING: Kernel thread context (may sleep). SEE ALSO Kernel file ./drivers/ata/libata-eh.c __ata_ehi_push_desc(9), ata_ehi_pu...
ata_eh_handle_port_suspend(9)
NAME ata_eh_handle_port_suspend - perform port suspend operation SYNOPSIS void ata_eh_handle_port_suspend (struct ata_port *ap ); ARGUMENTS ap port to suspend DESCRIPTION Suspend ap. LOCKING: Kernel thread context (may sleep). SEE ALSO Kernel file ./drivers/ata/libata-eh.c __ata_ehi_push_desc(9), ata_e...
ata_eh_link_autopsy(9)
NAME ata_eh_link_autopsy - analyze error and determine recovery action SYNOPSIS void ata_eh_link_autopsy (struct ata_link *link ); ARGUMENTS link host link to perform autopsy on DESCRIPTION Analyze why link failed and determine which recovery actions are needed. This function also sets more detailed AC_ERR_*...
ata_eh_link_report(9)
NAME ata_eh_link_report - report error handling to user SYNOPSIS void ata_eh_link_report (struct ata_link *link ); ARGUMENTS link ATA link EH is going on DESCRIPTION Report EH to user. LOCKING: None. SEE ALSO Kernel file ./drivers/ata/libata-eh.c __ata_ehi_push_desc(9), ata_ehi_push_desc(9), ata_ehi_clea...
ata_eh_link_set_lpm(9)
NAME ata_eh_link_set_lpm - configure SATA interface power management SYNOPSIS int ata_eh_link_set_lpm (struct ata_link *link , enum ata_lpm_policy policy , struct ata_device **r_failed_dev ); ARGUMENTS link link to configure policy the link power management policy r_failed_dev ...
ata_eh_maybe_retry_flush(9)
NAME ata_eh_maybe_retry_flush - Retry FLUSH if necessary SYNOPSIS int ata_eh_maybe_retry_flush (struct ata_device *dev ); ARGUMENTS dev ATA device which may need FLUSH retry DESCRIPTION If dev failed FLUSH, it needs to be reported upper layer immediately as it means that dev failed to remap and already los...
ata_eh_qc_complete(9)
NAME ata_eh_qc_complete - Complete an active ATA command from EH SYNOPSIS void ata_eh_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. To be used from EH. SEE ALSO Kernel file ./drivers/ata/liba...
ata_eh_qc_retry(9)
NAME ata_eh_qc_retry - Tell midlayer to retry an ATA command after EH SYNOPSIS void ata_eh_qc_retry (struct ata_queued_cmd *qc ); ARGUMENTS qc Command to retry DESCRIPTION Indicate to the mid and upper layers that an ATA command should be retried. To be used from EH. SCSI midlayer limits the number of r...
ata_eh_quiet(9)
NAME ata_eh_quiet - check if we need to be quiet about a command error SYNOPSIS bool ata_eh_quiet (struct ata_queued_cmd *qc ); ARGUMENTS qc qc to check DESCRIPTION Look at the qc flags anbd its scsi command request flags to determine if we need to be quiet about the command failure. SEE ALSO Kernel file ...
ata_eh_read_log_10h(9)
NAME ata_eh_read_log_10h - Read log page 10h for NCQ error details SYNOPSIS int ata_eh_read_log_10h (struct ata_device *dev , int *tag , struct ata_taskfile *tf ); ARGUMENTS dev Device to read log page 10h from tag Resulting tag of the failed command tf Resulting taskfile regi...
ata_eh_recover(9)
NAME ata_eh_recover - recover host port after error SYNOPSIS int ata_eh_recover (struct ata_port *ap , struct ata_reset_operations *reset_ops , struct ata_link **r_failed_link ); ARGUMENTS ap host port to recover reset_ops The set of reset operations to use r_failed_link ...
ata_eh_release(9)
NAME ata_eh_release - release EH ownership SYNOPSIS void ata_eh_release (struct ata_port *ap ); ARGUMENTS ap ATA port to release EH ownership for DESCRIPTION Release EH ownership for ap if the caller. The caller must have acquired EH ownership using ata_eh_acquire previously. LOCKING: EH context. SEE ALS...
ata_eh_report(9)
NAME ata_eh_report - report error handling to user SYNOPSIS void ata_eh_report (struct ata_port *ap ); ARGUMENTS ap ATA port to report EH about DESCRIPTION Report EH to user. LOCKING: None. SEE ALSO Kernel file ./drivers/ata/libata-eh.c __ata_ehi_push_desc(9), ata_ehi_push_desc(9), ata_ehi_clear_desc...
ata_eh_request_sense(9)
NAME ata_eh_request_sense - perform REQUEST_SENSE_DATA_EXT SYNOPSIS bool ata_eh_request_sense (struct ata_queued_cmd *qc ); ARGUMENTS qc qc to perform REQUEST_SENSE_SENSE_DATA_EXT to DESCRIPTION Perform REQUEST_SENSE_DATA_EXT after the device reported CHECK SENSE. This function is an EH helper. LOCKING: K...
ata_eh_set_mode(9)
NAME ata_eh_set_mode - Program timings and issue SET FEATURES - XFER SYNOPSIS int ata_eh_set_mode (struct ata_link *link , struct ata_device **r_failed_dev ); ARGUMENTS link link on which timings will be programmed r_failed_dev out parameter for failed device DESCRIPTION Set ATA dev...
ata_eh_set_pending(9)
NAME ata_eh_set_pending - set ATA_PFLAG_EH_PENDING and activate fast drain SYNOPSIS void ata_eh_set_pending (struct ata_port *ap , bool fastdrain ); ARGUMENTS ap target ATA port fastdrain activate fast drain DESCRIPTION Set ATA_PFLAG_EH_PENDING and activate fast drain if fastdrain is non-zero and ...
ata_eh_speed_down(9)
NAME ata_eh_speed_down - record error and speed down if necessary SYNOPSIS unsigned int ata_eh_speed_down (struct ata_device *dev , unsigned int eflags , unsigned int err_mask ); ARGUMENTS dev Failed device eflags mask of ATA_EFLAG_* flags err_mask err_mask of the error DESCRIPTION Re...
ata_eh_speed_down_verdict(9)
NAME ata_eh_speed_down_verdict - Determine speed down verdict SYNOPSIS unsigned int ata_eh_speed_down_verdict (struct ata_device *dev ); ARGUMENTS dev Device of interest DESCRIPTION This function examines error ring of dev and determines whether NCQ needs to be turned off, transfer speed should be stepp...
ata_eh_thaw_port(9)
NAME ata_eh_thaw_port - EH helper to thaw port SYNOPSIS void ata_eh_thaw_port (struct ata_port *ap ); ARGUMENTS ap ATA port to thaw DESCRIPTION Thaw frozen port ap. LOCKING: None. SEE ALSO Kernel file ./drivers/ata/libata-eh.c __ata_ehi_push_desc(9), ata_ehi_push_desc(9), ata_ehi_clear_desc(9), ata_por...
ata_eh_worth_retry(9)
NAME ata_eh_worth_retry - analyze error and decide whether to retry SYNOPSIS int ata_eh_worth_retry (struct ata_queued_cmd *qc ); ARGUMENTS qc qc to possibly retry DESCRIPTION Look at the cause of the error and decide if a retry might be useful or not. We don't want to retry media errors because the drive ...
ata_ehi_clear_desc(9)
NAME ata_ehi_clear_desc - clean error description SYNOPSIS void ata_ehi_clear_desc (struct ata_eh_info *ehi ); ARGUMENTS ehi target EHI DESCRIPTION Clear ehi->desc. LOCKING: spin_lock_irqsave(host lock) SEE ALSO Kernel file ./drivers/ata/libata-eh.c __ata_ehi_push_desc(9), ata_ehi_push_desc(9), ata_po...
ata_ehi_push_desc(9)
NAME ata_ehi_push_desc - push error description with separator SYNOPSIS void ata_ehi_push_desc (struct ata_eh_info *ehi , const char *fmt , ... ); ARGUMENTS ehi target EHI fmt printf format string ... variable arguments DESCRIPTION Format string according to fmt and append it ...
ata_err_string(9)
NAME ata_err_string - convert err_mask to descriptive string SYNOPSIS const char * ata_err_string (unsigned int err_mask ); ARGUMENTS err_mask error mask to convert to string DESCRIPTION Convert err_mask to descriptive string. Errors are prioritized according to severity and only the most severe error is reporte...
ata_exec_internal(9)
NAME ata_exec_internal - execute libata internal command SYNOPSIS unsigned int ata_exec_internal (struct ata_device *dev , struct ata_taskfile *tf , const u8 *cdb , enum dma_data_direction dma_dir , void *buf , unsigned int buflen , unsigned int timeout ); ARGUMENTS dev Device to which the command is sent ...
ata_finalize_port_ops(9)
NAME ata_finalize_port_ops - finalize ata_port_operations SYNOPSIS void ata_finalize_port_ops (struct ata_port_operations *ops ); ARGUMENTS ops ata_port_operations to finalize DESCRIPTION An ata_port_operations can inherit from another ops and that ops can again inherit from another. This can go on as many ...
ata_force_cbl(9)
NAME ata_force_cbl - force cable type according to libata.force SYNOPSIS void ata_force_cbl (struct ata_port *ap ); ARGUMENTS ap ATA port of interest DESCRIPTION Force cable type according to libata.force and whine about it. The last entry which has matching port number is used, so it can be specified as...
ata_force_link_limits(9)
NAME ata_force_link_limits - force link limits according to libata.force SYNOPSIS void ata_force_link_limits (struct ata_link *link ); ARGUMENTS link ATA link of interest DESCRIPTION Force link flags and SATA spd limit according to libata.force and whine about it. When only the port part is specified (e.g. ...
ata_force_pflags(9)
NAME ata_force_pflags - force port flags according to libata.force SYNOPSIS void ata_force_pflags (struct ata_port *ap ); ARGUMENTS ap ATA port of interest DESCRIPTION Force port flags according to libata.force and whine about it. LOCKING: EH context. SEE ALSO Kernel file ./drivers/ata/libata-core.c at...
ata_force_quirks(9)
NAME ata_force_quirks - force quirks according to libata.force SYNOPSIS void ata_force_quirks (struct ata_device *dev ); ARGUMENTS dev ATA device of interest DESCRIPTION Force quirks according to libata.force and whine about it. For consistency with link selection, device number 15 selects the first device ...
ata_force_xfermask(9)
NAME ata_force_xfermask - force xfermask according to libata.force SYNOPSIS void ata_force_xfermask (struct ata_device *dev ); ARGUMENTS dev ATA device of interest DESCRIPTION Force xfer_mask according to libata.force and whine about it. For consistency with link selection, device number 15 selects the firs...
ata_format_dsm_trim_descr(9)
NAME ata_format_dsm_trim_descr - SATL Write Same to DSM Trim SYNOPSIS size_t ata_format_dsm_trim_descr (struct scsi_cmnd *cmd , u32 trmax , u64 sector , u32 count ); ARGUMENTS cmd SCSI command being translated trmax Maximum number of entries that will fit in sector_size bytes. sector ...
ata_gen_ata_sense(9)
NAME ata_gen_ata_sense - generate a SCSI fixed sense block SYNOPSIS void ata_gen_ata_sense (struct ata_queued_cmd *qc ); ARGUMENTS qc Command that we are erroring out DESCRIPTION Generate sense block for a failed ATA command qc. LOCKING: None. SEE ALSO Kernel file ./drivers/ata/libata-scsi.c ata_scsi_s...
ata_generic_init_one(9)
NAME ata_generic_init_one - attach generic IDE SYNOPSIS int ata_generic_init_one (struct pci_dev *dev , const struct pci_device_id *id ); ARGUMENTS dev PCI device found id match entry DESCRIPTION Called each time a matching IDE interface is found. We check if the interface is one we wish to ...
ata_get_cmd_name(9)
NAME ata_get_cmd_name - get name for ATA command SYNOPSIS const char * ata_get_cmd_name (u8 command ); ARGUMENTS command ATA command code to get name for DESCRIPTION Return a textual name of the given command or "unknown" LOCKING: None SEE ALSO Kernel file ./drivers/ata/libata-eh.c __ata_ehi_push_desc(9), at...
ata_get_identity(9)
NAME ata_get_identity - Handler for HDIO_GET_IDENTITY ioctl SYNOPSIS int ata_get_identity (struct ata_port *ap , struct scsi_device *sdev , void __user *arg ); ARGUMENTS ap target port sdev SCSI device to get identify data for arg User buffer area for identify data DESCRIPTION...
ata_get_xlat_func(9)
NAME ata_get_xlat_func - check if SCSI to ATA translation is possible SYNOPSIS ata_xlat_func_t ata_get_xlat_func (struct ata_device *dev , u8 cmd ); ARGUMENTS dev ATA device cmd SCSI command opcode to consider DESCRIPTION Look up the SCSI command given, and determine whether the SCSI command ...
ata_host_activate(9)
NAME ata_host_activate - start host, request IRQ and register it SYNOPSIS int ata_host_activate (struct ata_host *host , int irq , irq_handler_t irq_handler , unsigned long irq_flags , const struct scsi_host_template *sht ); ARGUMENTS host target ATA host irq IRQ to request irq_handler ...
ata_host_alloc(9)
NAME ata_host_alloc - allocate and init basic ATA host resources SYNOPSIS struct ata_host * ata_host_alloc (struct device *dev , int n_ports ); ARGUMENTS dev generic device this host is associated with n_ports the number of ATA ports associated with this host DESCRIPTION Allocate and initialize b...
ata_host_alloc_pinfo(9)
NAME ata_host_alloc_pinfo - alloc host and init with port_info array SYNOPSIS struct ata_host * ata_host_alloc_pinfo (struct device *dev , const struct ata_port_info * const * ppi , int n_ports ); ARGUMENTS dev generic device this host is associated with ppi array of ATA port_info to initializ...
ata_host_detach(9)
NAME ata_host_detach - Detach all ports of an ATA host SYNOPSIS void ata_host_detach (struct ata_host *host ); ARGUMENTS host Host to detach DESCRIPTION Detach all ports of host. LOCKING: Kernel thread context (may sleep). SEE ALSO Kernel file ./drivers/ata/libata-core.c ata_link_next(9), ata_dev_next(...
ata_host_init(9)
NAME ata_host_init - Initialize a host struct for sas (ipr, libsas) SYNOPSIS void ata_host_init (struct ata_host *host , struct device *dev , struct ata_port_operations *ops ); ARGUMENTS host host to initialize dev device host is attached to ops port_ops SEE ALSO Kernel file ...
ata_host_register(9)
NAME ata_host_register - register initialized ATA host SYNOPSIS int ata_host_register (struct ata_host *host , const struct scsi_host_template *sht ); ARGUMENTS host ATA host to register sht template for SCSI host DESCRIPTION Register initialized ATA host. host is allocated using ata_host_a...
ata_host_resume(9)
NAME ata_host_resume - resume host SYNOPSIS void ata_host_resume (struct ata_host *host ); ARGUMENTS host host to resume DESCRIPTION Resume host. Actual operation is performed by port resume. SEE ALSO Kernel file ./drivers/ata/libata-core.c ata_link_next(9), ata_dev_next(9), ata_dev_phys_link(9), ata...
ata_host_start(9)
NAME ata_host_start - start and freeze ports of an ATA host SYNOPSIS int ata_host_start (struct ata_host *host ); ARGUMENTS host ATA host to start ports for DESCRIPTION Start and then freeze ports of host. Started status is recorded in host->flags, so this function can be called multiple times. Ports are ...
ata_host_suspend(9)
NAME ata_host_suspend - suspend host SYNOPSIS void ata_host_suspend (struct ata_host *host , pm_message_t mesg ); ARGUMENTS host host to suspend mesg PM message DESCRIPTION Suspend host. Actual operation is performed by port suspend. SEE ALSO Kernel file ./drivers/ata/libata-core.c ata_li...
ata_hpa_resize(9)
NAME ata_hpa_resize - Resize a device with an HPA set SYNOPSIS int ata_hpa_resize (struct ata_device *dev ); ARGUMENTS dev Device to resize DESCRIPTION Read the size of an LBA28 or LBA48 disk with HPA features and resize it if required to the full size of the media. The caller must check the drive has the HP...
ata_hsm_ok_in_wq(9)
NAME ata_hsm_ok_in_wq - Check if the qc can be handled in the workqueue. SYNOPSIS int ata_hsm_ok_in_wq (struct ata_port *ap , struct ata_queued_cmd *qc ); ARGUMENTS ap the target ata_port qc qc on going RETURN 1 if ok in workqueue, 0 otherwise. SEE ALSO Kernel file ./drivers/ata/libata-s...
ata_hsm_qc_complete(9)
NAME ata_hsm_qc_complete - finish a qc running on standard HSM SYNOPSIS void ata_hsm_qc_complete (struct ata_queued_cmd *qc , int in_wq ); ARGUMENTS qc Command to complete in_wq 1 if called from workqueue, 0 otherwise DESCRIPTION Finish qc which is running on standard HSM. LOCKING: If in_wq i...
ata_id_c_string(9)
NAME ata_id_c_string - Convert IDENTIFY DEVICE page into C string SYNOPSIS void ata_id_c_string (const u16 *id , unsigned char *s , unsigned int ofs , unsigned int len ); ARGUMENTS id IDENTIFY DEVICE results we will examine s string into which data is output ofs offset into ...
ata_id_major_version(9)
NAME ata_id_major_version - get ATA level of drive SYNOPSIS unsigned int ata_id_major_version (const u16 *id ); ARGUMENTS id Identify data DESCRIPTION Caveats: ATA-1 considers identify optional ATA-2 introduces mandatory identify ATA-3 introduces word 80 and accurate reporting The practical impact of this i...
ata_id_string(9)
NAME ata_id_string - Convert IDENTIFY DEVICE page into string SYNOPSIS void ata_id_string (const u16 *id , unsigned char *s , unsigned int ofs , unsigned int len ); ARGUMENTS id IDENTIFY DEVICE results we will examine s string into which data is output ofs offset into identi...
ata_id_xfermask(9)
NAME ata_id_xfermask - Compute xfermask from the given IDENTIFY data SYNOPSIS unsigned int ata_id_xfermask (const u16 *id ); ARGUMENTS id IDENTIFY data to compute xfer mask from DESCRIPTION Compute the xfermask for this device. This is not as trivial as it seems if we must consider early devices correctly. ...
ata_internal_cmd_timed_out(9)
NAME ata_internal_cmd_timed_out - notification for internal command timeout SYNOPSIS void ata_internal_cmd_timed_out (struct ata_device *dev , u8 cmd ); ARGUMENTS dev target device cmd internal command which timed out DESCRIPTION Notify EH that internal command cmd for dev timed out. This fu...