Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
mv_sas.c File Reference
#include "mv_sas.h"

Go to the source code of this file.

Macros

#define DEV_IS_GONE(mvi_dev)   ((!mvi_dev || (mvi_dev->dev_type == NO_DEVICE)))
 
#define MVS_TASK_TIMEOUT   20
 

Functions

void mvs_tag_clear (struct mvs_info *mvi, u32 tag)
 
void mvs_tag_free (struct mvs_info *mvi, u32 tag)
 
void mvs_tag_set (struct mvs_info *mvi, unsigned int tag)
 
int mvs_tag_alloc (struct mvs_info *mvi, u32 *tag_out)
 
void mvs_tag_init (struct mvs_info *mvi)
 
struct mvs_infomvs_find_dev_mvi (struct domain_device *dev)
 
int mvs_find_dev_phyno (struct domain_device *dev, int *phyno)
 
struct mvs_devicemvs_find_dev_by_reg_set (struct mvs_info *mvi, u8 reg_set)
 
void mvs_phys_reset (struct mvs_info *mvi, u32 phy_mask, int hard)
 
int mvs_phy_control (struct asd_sas_phy *sas_phy, enum phy_func func, void *funcdata)
 
void __devinit mvs_set_sas_addr (struct mvs_info *mvi, int port_id, u32 off_lo, u32 off_hi, u64 sas_addr)
 
void mvs_scan_start (struct Scsi_Host *shost)
 
int mvs_scan_finished (struct Scsi_Host *shost, unsigned long time)
 
int mvs_queue_command (struct sas_task *task, const int num, gfp_t gfp_flags)
 
void mvs_update_phyinfo (struct mvs_info *mvi, int i, int get_st)
 
void mvs_port_formed (struct asd_sas_phy *sas_phy)
 
void mvs_port_deformed (struct asd_sas_phy *sas_phy)
 
struct mvs_devicemvs_alloc_dev (struct mvs_info *mvi)
 
void mvs_free_dev (struct mvs_device *mvi_dev)
 
int mvs_dev_found_notify (struct domain_device *dev, int lock)
 
int mvs_dev_found (struct domain_device *dev)
 
void mvs_dev_gone_notify (struct domain_device *dev)
 
void mvs_dev_gone (struct domain_device *dev)
 
int mvs_lu_reset (struct domain_device *dev, u8 *lun)
 
int mvs_I_T_nexus_reset (struct domain_device *dev)
 
int mvs_query_task (struct sas_task *task)
 
int mvs_abort_task (struct sas_task *task)
 
int mvs_abort_task_set (struct domain_device *dev, u8 *lun)
 
int mvs_clear_aca (struct domain_device *dev, u8 *lun)
 
int mvs_clear_task_set (struct domain_device *dev, u8 *lun)
 
void mvs_set_sense (u8 *buffer, int len, int d_sense, int key, int asc, int ascq)
 
void mvs_fill_ssp_resp_iu (struct ssp_response_iu *iu, u8 key, u8 asc, u8 asc_q)
 
int mvs_slot_complete (struct mvs_info *mvi, u32 rx_desc, u32 flags)
 
void mvs_do_release_task (struct mvs_info *mvi, int phy_no, struct domain_device *dev)
 
void mvs_release_task (struct mvs_info *mvi, struct domain_device *dev)
 
void mvs_int_port (struct mvs_info *mvi, int phy_no, u32 events)
 
int mvs_int_rx (struct mvs_info *mvi, bool self_clear)
 

Macro Definition Documentation

#define DEV_IS_GONE (   mvi_dev)    ((!mvi_dev || (mvi_dev->dev_type == NO_DEVICE)))

Definition at line 703 of file mv_sas.c.

#define MVS_TASK_TIMEOUT   20

Definition at line 1380 of file mv_sas.c.

Function Documentation

int mvs_abort_task ( struct sas_task task)

Definition at line 1568 of file mv_sas.c.

int mvs_abort_task_set ( struct domain_device dev,
u8 lun 
)

Definition at line 1645 of file mv_sas.c.

struct mvs_device* mvs_alloc_dev ( struct mvs_info mvi)
read

Definition at line 1253 of file mv_sas.c.

int mvs_clear_aca ( struct domain_device dev,
u8 lun 
)

Definition at line 1656 of file mv_sas.c.

int mvs_clear_task_set ( struct domain_device dev,
u8 lun 
)

Definition at line 1667 of file mv_sas.c.

int mvs_dev_found ( struct domain_device dev)

Definition at line 1331 of file mv_sas.c.

int mvs_dev_found_notify ( struct domain_device dev,
int  lock 
)

Definition at line 1280 of file mv_sas.c.

void mvs_dev_gone ( struct domain_device dev)

Definition at line 1360 of file mv_sas.c.

void mvs_dev_gone_notify ( struct domain_device dev)

Definition at line 1336 of file mv_sas.c.

void mvs_do_release_task ( struct mvs_info mvi,
int  phy_no,
struct domain_device dev 
)

Definition at line 1925 of file mv_sas.c.

void mvs_fill_ssp_resp_iu ( struct ssp_response_iu *  iu,
u8  key,
u8  asc,
u8  asc_q 
)

Definition at line 1741 of file mv_sas.c.

struct mvs_device* mvs_find_dev_by_reg_set ( struct mvs_info mvi,
u8  reg_set 
)
read

Definition at line 135 of file mv_sas.c.

struct mvs_info* mvs_find_dev_mvi ( struct domain_device dev)
read

Definition at line 77 of file mv_sas.c.

int mvs_find_dev_phyno ( struct domain_device dev,
int phyno 
)

Definition at line 105 of file mv_sas.c.

void mvs_free_dev ( struct mvs_device mvi_dev)

Definition at line 1270 of file mv_sas.c.

int mvs_I_T_nexus_reset ( struct domain_device dev)

Definition at line 1508 of file mv_sas.c.

void mvs_int_port ( struct mvs_info mvi,
int  phy_no,
u32  events 
)

Definition at line 2053 of file mv_sas.c.

int mvs_int_rx ( struct mvs_info mvi,
bool  self_clear 
)

Definition at line 2147 of file mv_sas.c.

int mvs_lu_reset ( struct domain_device dev,
u8 lun 
)

Definition at line 1486 of file mv_sas.c.

int mvs_phy_control ( struct asd_sas_phy sas_phy,
enum phy_func  func,
void funcdata 
)

Definition at line 179 of file mv_sas.c.

void mvs_phys_reset ( struct mvs_info mvi,
u32  phy_mask,
int  hard 
)

Definition at line 169 of file mv_sas.c.

void mvs_port_deformed ( struct asd_sas_phy sas_phy)

Definition at line 1248 of file mv_sas.c.

void mvs_port_formed ( struct asd_sas_phy sas_phy)

Definition at line 1243 of file mv_sas.c.

int mvs_query_task ( struct sas_task task)

Definition at line 1530 of file mv_sas.c.

int mvs_queue_command ( struct sas_task task,
const int  num,
gfp_t  gfp_flags 
)

Definition at line 966 of file mv_sas.c.

void mvs_release_task ( struct mvs_info mvi,
struct domain_device dev 
)

Definition at line 1958 of file mv_sas.c.

int mvs_scan_finished ( struct Scsi_Host shost,
unsigned long  time 
)

Definition at line 303 of file mv_sas.c.

void mvs_scan_start ( struct Scsi_Host shost)

Definition at line 285 of file mv_sas.c.

void __devinit mvs_set_sas_addr ( struct mvs_info mvi,
int  port_id,
u32  off_lo,
u32  off_hi,
u64  sas_addr 
)

Definition at line 223 of file mv_sas.c.

void mvs_set_sense ( u8 buffer,
int  len,
int  d_sense,
int  key,
int  asc,
int  ascq 
)

Definition at line 1702 of file mv_sas.c.

int mvs_slot_complete ( struct mvs_info mvi,
u32  rx_desc,
u32  flags 
)

Definition at line 1803 of file mv_sas.c.

int mvs_tag_alloc ( struct mvs_info mvi,
u32 tag_out 
)
inline

Definition at line 56 of file mv_sas.c.

void mvs_tag_clear ( struct mvs_info mvi,
u32  tag 
)

Definition at line 39 of file mv_sas.c.

void mvs_tag_free ( struct mvs_info mvi,
u32  tag 
)

Definition at line 45 of file mv_sas.c.

void mvs_tag_init ( struct mvs_info mvi)

Definition at line 70 of file mv_sas.c.

void mvs_tag_set ( struct mvs_info mvi,
unsigned int  tag 
)

Definition at line 50 of file mv_sas.c.

void mvs_update_phyinfo ( struct mvs_info mvi,
int  i,
int  get_st 
)

Definition at line 1108 of file mv_sas.c.