Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions
sas_scsi_host.c File Reference
#include <linux/kthread.h>
#include <linux/firmware.h>
#include <linux/export.h>
#include <linux/ctype.h>
#include "sas_internal.h"
#include <scsi/scsi_host.h>
#include <scsi/scsi_device.h>
#include <scsi/scsi_tcq.h>
#include <scsi/scsi.h>
#include <scsi/scsi_eh.h>
#include <scsi/scsi_transport.h>
#include <scsi/scsi_transport_sas.h>
#include <scsi/sas_ata.h>
#include "../scsi_sas_internal.h"
#include "../scsi_transport_api.h"
#include "../scsi_priv.h"
#include <linux/err.h>
#include <linux/blkdev.h>
#include <linux/freezer.h>
#include <linux/gfp.h>
#include <linux/scatterlist.h>
#include <linux/libata.h>

Go to the source code of this file.

Macros

#define SAS_DEF_QD   256
 
#define SAS_STRING_ADDR_SIZE   16
 

Enumerations

enum  task_disposition {
  TASK_IS_DONE, TASK_IS_ABORTED, TASK_IS_AT_LU, TASK_IS_NOT_AT_HA,
  TASK_IS_NOT_AT_LU, TASK_ABORT_FAILED
}
 

Functions

int sas_queue_up (struct sas_task *task)
 
int sas_queuecommand (struct Scsi_Host *host, struct scsi_cmnd *cmd)
 
struct sas_physas_get_local_phy (struct domain_device *dev)
 
 EXPORT_SYMBOL_GPL (sas_get_local_phy)
 
 EXPORT_SYMBOL (sas_wait_eh)
 
int sas_eh_abort_handler (struct scsi_cmnd *cmd)
 
 EXPORT_SYMBOL_GPL (sas_eh_abort_handler)
 
int sas_eh_device_reset_handler (struct scsi_cmnd *cmd)
 
int sas_eh_bus_reset_handler (struct scsi_cmnd *cmd)
 
void sas_scsi_recover_host (struct Scsi_Host *shost)
 
enum blk_eh_timer_return sas_scsi_timed_out (struct scsi_cmnd *cmd)
 
int sas_ioctl (struct scsi_device *sdev, int cmd, void __user *arg)
 
struct domain_devicesas_find_dev_by_rphy (struct sas_rphy *rphy)
 
int sas_target_alloc (struct scsi_target *starget)
 
int sas_slave_configure (struct scsi_device *scsi_dev)
 
int sas_change_queue_depth (struct scsi_device *sdev, int depth, int reason)
 
int sas_change_queue_type (struct scsi_device *scsi_dev, int qt)
 
int sas_bios_param (struct scsi_device *scsi_dev, struct block_device *bdev, sector_t capacity, int *hsc)
 
int sas_init_queue (struct sas_ha_struct *sas_ha)
 
void sas_shutdown_queue (struct sas_ha_struct *sas_ha)
 
void sas_task_abort (struct sas_task *task)
 
void sas_target_destroy (struct scsi_target *starget)
 
int sas_request_addr (struct Scsi_Host *shost, u8 *addr)
 
 EXPORT_SYMBOL_GPL (sas_request_addr)
 
 EXPORT_SYMBOL_GPL (sas_queuecommand)
 
 EXPORT_SYMBOL_GPL (sas_target_alloc)
 
 EXPORT_SYMBOL_GPL (sas_slave_configure)
 
 EXPORT_SYMBOL_GPL (sas_change_queue_depth)
 
 EXPORT_SYMBOL_GPL (sas_change_queue_type)
 
 EXPORT_SYMBOL_GPL (sas_bios_param)
 
 EXPORT_SYMBOL_GPL (sas_task_abort)
 
 EXPORT_SYMBOL_GPL (sas_phy_reset)
 
 EXPORT_SYMBOL_GPL (sas_eh_device_reset_handler)
 
 EXPORT_SYMBOL_GPL (sas_eh_bus_reset_handler)
 
 EXPORT_SYMBOL_GPL (sas_target_destroy)
 
 EXPORT_SYMBOL_GPL (sas_ioctl)
 

Macro Definition Documentation

#define SAS_DEF_QD   256

Definition at line 922 of file sas_scsi_host.c.

#define SAS_STRING_ADDR_SIZE   16

Definition at line 1185 of file sas_scsi_host.c.

Enumeration Type Documentation

Enumerator:
TASK_IS_DONE 
TASK_IS_ABORTED 
TASK_IS_AT_LU 
TASK_IS_NOT_AT_HA 
TASK_IS_NOT_AT_LU 
TASK_ABORT_FAILED 

Definition at line 322 of file sas_scsi_host.c.

Function Documentation

EXPORT_SYMBOL ( sas_wait_eh  )
EXPORT_SYMBOL_GPL ( sas_get_local_phy  )
EXPORT_SYMBOL_GPL ( sas_eh_abort_handler  )
EXPORT_SYMBOL_GPL ( sas_request_addr  )
EXPORT_SYMBOL_GPL ( sas_queuecommand  )
EXPORT_SYMBOL_GPL ( sas_target_alloc  )
EXPORT_SYMBOL_GPL ( sas_slave_configure  )
EXPORT_SYMBOL_GPL ( sas_change_queue_depth  )
EXPORT_SYMBOL_GPL ( sas_change_queue_type  )
EXPORT_SYMBOL_GPL ( sas_bios_param  )
EXPORT_SYMBOL_GPL ( sas_task_abort  )
EXPORT_SYMBOL_GPL ( sas_phy_reset  )
EXPORT_SYMBOL_GPL ( sas_eh_device_reset_handler  )
EXPORT_SYMBOL_GPL ( sas_eh_bus_reset_handler  )
EXPORT_SYMBOL_GPL ( sas_target_destroy  )
EXPORT_SYMBOL_GPL ( sas_ioctl  )
int sas_bios_param ( struct scsi_device scsi_dev,
struct block_device bdev,
sector_t  capacity,
int hsc 
)

Definition at line 1000 of file sas_scsi_host.c.

int sas_change_queue_depth ( struct scsi_device sdev,
int  depth,
int  reason 
)

Definition at line 957 of file sas_scsi_host.c.

int sas_change_queue_type ( struct scsi_device scsi_dev,
int  qt 
)

Definition at line 982 of file sas_scsi_host.c.

int sas_eh_abort_handler ( struct scsi_cmnd cmd)

Definition at line 534 of file sas_scsi_host.c.

int sas_eh_bus_reset_handler ( struct scsi_cmnd cmd)

Definition at line 579 of file sas_scsi_host.c.

int sas_eh_device_reset_handler ( struct scsi_cmnd cmd)

Definition at line 556 of file sas_scsi_host.c.

struct domain_device* sas_find_dev_by_rphy ( struct sas_rphy rphy)
read

Definition at line 880 of file sas_scsi_host.c.

struct sas_phy* sas_get_local_phy ( struct domain_device dev)
read

Definition at line 443 of file sas_scsi_host.c.

int sas_init_queue ( struct sas_ha_struct sas_ha)

Definition at line 1085 of file sas_scsi_host.c.

int sas_ioctl ( struct scsi_device sdev,
int  cmd,
void __user arg 
)

Definition at line 870 of file sas_scsi_host.c.

int sas_queue_up ( struct sas_task task)

Definition at line 182 of file sas_scsi_host.c.

int sas_queuecommand ( struct Scsi_Host host,
struct scsi_cmnd cmd 
)

Definition at line 202 of file sas_scsi_host.c.

int sas_request_addr ( struct Scsi_Host shost,
u8 addr 
)

Definition at line 1187 of file sas_scsi_host.c.

void sas_scsi_recover_host ( struct Scsi_Host shost)

Definition at line 800 of file sas_scsi_host.c.

enum blk_eh_timer_return sas_scsi_timed_out ( struct scsi_cmnd cmd)

Definition at line 863 of file sas_scsi_host.c.

void sas_shutdown_queue ( struct sas_ha_struct sas_ha)

Definition at line 1101 of file sas_scsi_host.c.

int sas_slave_configure ( struct scsi_device scsi_dev)

Definition at line 924 of file sas_scsi_host.c.

int sas_target_alloc ( struct scsi_target starget)

Definition at line 909 of file sas_scsi_host.c.

void sas_target_destroy ( struct scsi_target starget)

Definition at line 1159 of file sas_scsi_host.c.

void sas_task_abort ( struct sas_task task)

Definition at line 1131 of file sas_scsi_host.c.