Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
sas_expander.c File Reference
#include <linux/scatterlist.h>
#include <linux/blkdev.h>
#include <linux/slab.h>
#include "sas_internal.h"
#include <scsi/sas_ata.h>
#include <scsi/scsi_transport.h>
#include <scsi/scsi_transport_sas.h>
#include "../scsi_sas_internal.h"

Go to the source code of this file.

Macros

#define SMP_TIMEOUT   10
 
#define DISCOVER_REQ_SIZE   16
 
#define DISCOVER_RESP_SIZE   56
 
#define MAX_EXPANDER_PHYS   128
 
#define RG_REQ_SIZE   8
 
#define RG_RESP_SIZE   32
 
#define MI_REQ_SIZE   8
 
#define MI_RESP_SIZE   64
 
#define PC_REQ_SIZE   44
 
#define PC_RESP_SIZE   8
 
#define RPEL_REQ_SIZE   16
 
#define RPEL_RESP_SIZE   32
 
#define RRI_REQ_SIZE   16
 
#define RRI_RESP_SIZE   44
 
#define CRI_REQ_SIZE   44
 
#define CRI_RESP_SIZE   8
 

Functions

struct domain_devicesas_ex_to_ata (struct domain_device *ex_dev, int phy_id)
 
int sas_ex_phy_discover (struct domain_device *dev, int single)
 
int sas_smp_phy_control (struct domain_device *dev, int phy_id, enum phy_func phy_func, struct sas_phy_linkrates *rates)
 
int sas_smp_get_phy_events (struct sas_phy *phy)
 
int sas_discover_root_expander (struct domain_device *dev)
 
int sas_ex_revalidate_domain (struct domain_device *port_dev)
 
int sas_smp_handler (struct Scsi_Host *shost, struct sas_rphy *rphy, struct request *req)
 

Macro Definition Documentation

#define CRI_REQ_SIZE   44

Definition at line 1446 of file sas_expander.c.

#define CRI_RESP_SIZE   8

Definition at line 1447 of file sas_expander.c.

#define DISCOVER_REQ_SIZE   16

Definition at line 356 of file sas_expander.c.

#define DISCOVER_RESP_SIZE   56

Definition at line 357 of file sas_expander.c.

#define MAX_EXPANDER_PHYS   128

Definition at line 437 of file sas_expander.c.

#define MI_REQ_SIZE   8

Definition at line 525 of file sas_expander.c.

#define MI_RESP_SIZE   64

Definition at line 526 of file sas_expander.c.

#define PC_REQ_SIZE   44

Definition at line 564 of file sas_expander.c.

#define PC_RESP_SIZE   8

Definition at line 565 of file sas_expander.c.

#define RG_REQ_SIZE   8

Definition at line 453 of file sas_expander.c.

#define RG_RESP_SIZE   32

Definition at line 454 of file sas_expander.c.

#define RPEL_REQ_SIZE   16

Definition at line 640 of file sas_expander.c.

#define RPEL_RESP_SIZE   32

Definition at line 641 of file sas_expander.c.

#define RRI_REQ_SIZE   16

Definition at line 1372 of file sas_expander.c.

#define RRI_RESP_SIZE   44

Definition at line 1373 of file sas_expander.c.

#define SMP_TIMEOUT   10

Definition at line 65 of file sas_expander.c.

Function Documentation

int sas_discover_root_expander ( struct domain_device dev)

Definition at line 1640 of file sas_expander.c.

int sas_ex_phy_discover ( struct domain_device dev,
int  single 
)

Definition at line 380 of file sas_expander.c.

int sas_ex_revalidate_domain ( struct domain_device port_dev)

sas_revalidate_domain – revalidate the domain : port to the domain of interest

NOTE: this process must quit (return) as soon as any connection errors are encountered. Connection recovery is done elsewhere. Discover process only interrogates devices in order to discover the domain.

Definition at line 2096 of file sas_expander.c.

struct domain_device* sas_ex_to_ata ( struct domain_device ex_dev,
int  phy_id 
)
read

Definition at line 335 of file sas_expander.c.

int sas_smp_get_phy_events ( struct sas_phy phy)

Definition at line 642 of file sas_expander.c.

int sas_smp_handler ( struct Scsi_Host shost,
struct sas_rphy rphy,
struct request req 
)

Definition at line 2121 of file sas_expander.c.

int sas_smp_phy_control ( struct domain_device dev,
int  phy_id,
enum phy_func phy_func  ,
struct sas_phy_linkrates rates 
)

Definition at line 567 of file sas_expander.c.