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

Go to the source code of this file.

Macros

#define FIND_FREE_DDB(_ha)
 
#define SET_DDB(_ddb, _ha)   set_bit(_ddb, (_ha)->hw_prof.ddb_bitmap)
 
#define CLEAR_DDB(_ddb, _ha)   clear_bit(_ddb, (_ha)->hw_prof.ddb_bitmap)
 
#define INIT_CONN_TAG   offsetof(struct asd_ddb_ssp_smp_target_port, init_conn_tag)
 
#define DEST_SAS_ADDR   offsetof(struct asd_ddb_ssp_smp_target_port, dest_sas_addr)
 
#define SEND_QUEUE_HEAD   offsetof(struct asd_ddb_ssp_smp_target_port, send_queue_head)
 
#define DDB_TYPE   offsetof(struct asd_ddb_ssp_smp_target_port, ddb_type)
 
#define CONN_MASK   offsetof(struct asd_ddb_ssp_smp_target_port, conn_mask)
 
#define DDB_TARG_FLAGS   offsetof(struct asd_ddb_ssp_smp_target_port, flags)
 
#define DDB_TARG_FLAGS2   offsetof(struct asd_ddb_stp_sata_target_port, flags2)
 
#define EXEC_QUEUE_TAIL   offsetof(struct asd_ddb_ssp_smp_target_port, exec_queue_tail)
 
#define SEND_QUEUE_TAIL   offsetof(struct asd_ddb_ssp_smp_target_port, send_queue_tail)
 
#define SISTER_DDB   offsetof(struct asd_ddb_ssp_smp_target_port, sister_ddb)
 
#define MAX_CCONN   offsetof(struct asd_ddb_ssp_smp_target_port, max_concurrent_conn)
 
#define NUM_CTX   offsetof(struct asd_ddb_ssp_smp_target_port, num_contexts)
 
#define ATA_CMD_SCBPTR   offsetof(struct asd_ddb_stp_sata_target_port, ata_cmd_scbptr)
 
#define SATA_TAG_ALLOC_MASK   offsetof(struct asd_ddb_stp_sata_target_port, sata_tag_alloc_mask)
 
#define NUM_SATA_TAGS   offsetof(struct asd_ddb_stp_sata_target_port, num_sata_tags)
 
#define SATA_STATUS   offsetof(struct asd_ddb_stp_sata_target_port, sata_status)
 
#define NCQ_DATA_SCB_PTR   offsetof(struct asd_ddb_stp_sata_target_port, ncq_data_scb_ptr)
 
#define ITNL_TIMEOUT   offsetof(struct asd_ddb_ssp_smp_target_port, itnl_timeout)
 
#define PM_PORT_FLAGS   offsetof(struct asd_ddb_sata_pm_port, pm_port_flags)
 
#define PARENT_DDB   offsetof(struct asd_ddb_sata_pm_port, parent_ddb)
 

Functions

void asd_set_dmamode (struct domain_device *dev)
 
int asd_dev_found (struct domain_device *dev)
 
void asd_dev_gone (struct domain_device *dev)
 

Macro Definition Documentation

Definition at line 67 of file aic94xx_dev.c.

#define CLEAR_DDB (   _ddb,
  _ha 
)    clear_bit(_ddb, (_ha)->hw_prof.ddb_bitmap)

Definition at line 36 of file aic94xx_dev.c.

Definition at line 59 of file aic94xx_dev.c.

#define DDB_TARG_FLAGS   offsetof(struct asd_ddb_ssp_smp_target_port, flags)

Definition at line 60 of file aic94xx_dev.c.

#define DDB_TARG_FLAGS2   offsetof(struct asd_ddb_stp_sata_target_port, flags2)

Definition at line 61 of file aic94xx_dev.c.

Definition at line 58 of file aic94xx_dev.c.

Definition at line 56 of file aic94xx_dev.c.

Definition at line 62 of file aic94xx_dev.c.

#define FIND_FREE_DDB (   _ha)
Value:
find_first_zero_bit((_ha)->hw_prof.ddb_bitmap, \
(_ha)->hw_prof.max_ddbs)

Definition at line 33 of file aic94xx_dev.c.

Definition at line 55 of file aic94xx_dev.c.

Definition at line 72 of file aic94xx_dev.c.

Definition at line 65 of file aic94xx_dev.c.

Definition at line 71 of file aic94xx_dev.c.

Definition at line 66 of file aic94xx_dev.c.

Definition at line 69 of file aic94xx_dev.c.

#define PARENT_DDB   offsetof(struct asd_ddb_sata_pm_port, parent_ddb)

Definition at line 254 of file aic94xx_dev.c.

#define PM_PORT_FLAGS   offsetof(struct asd_ddb_sata_pm_port, pm_port_flags)

Definition at line 253 of file aic94xx_dev.c.

Definition at line 70 of file aic94xx_dev.c.

Definition at line 68 of file aic94xx_dev.c.

Definition at line 57 of file aic94xx_dev.c.

Definition at line 63 of file aic94xx_dev.c.

#define SET_DDB (   _ddb,
  _ha 
)    set_bit(_ddb, (_ha)->hw_prof.ddb_bitmap)

Definition at line 35 of file aic94xx_dev.c.

Definition at line 64 of file aic94xx_dev.c.

Function Documentation

int asd_dev_found ( struct domain_device dev)

Definition at line 323 of file aic94xx_dev.c.

void asd_dev_gone ( struct domain_device dev)

Definition at line 348 of file aic94xx_dev.c.

void asd_set_dmamode ( struct domain_device dev)

Definition at line 112 of file aic94xx_dev.c.