FreeBSD kernel pms device code
|
#include <sys/cdefs.h>
#include <dev/pms/config.h>
#include <sys/param.h>
#include <sys/ioccom.h>
#include <sys/module.h>
#include <sys/systm.h>
#include <sys/errno.h>
#include <sys/kernel.h>
#include <sys/conf.h>
#include <sys/uio.h>
#include <sys/types.h>
#include <sys/malloc.h>
#include <sys/bus.h>
#include <machine/bus.h>
#include <sys/rman.h>
#include <machine/resource.h>
#include <vm/vm.h>
#include <vm/pmap.h>
#include <dev/pci/pcivar.h>
#include <dev/pci/pcireg.h>
#include <sys/endian.h>
#include <sys/lock.h>
#include <sys/mutex.h>
#include <sys/sema.h>
#include <sys/queue.h>
#include <sys/taskqueue.h>
#include <machine/atomic.h>
#include <sys/libkern.h>
#include <cam/cam.h>
#include <cam/cam_ccb.h>
#include <cam/cam_debug.h>
#include <cam/cam_periph.h>
#include <cam/cam_sim.h>
#include <cam/cam_xpt_sim.h>
#include <cam/scsi/scsi_all.h>
#include <cam/scsi/scsi_message.h>
#include <dev/pms/RefTisa/tisa/api/tiapi.h>
#include <dev/pms/freebsd/driver/ini/src/agtiapi.h>
#include <dev/pms/freebsd/driver/ini/src/agtiproto.h>
#include <dev/pms/RefTisa/tisa/api/ostiapi.h>
#include <dev/pms/RefTisa/tisa/sassata/common/tdsatypes.h>
#include <dev/pms/freebsd/driver/common/lxencrypt.h>
#include <dev/pms/freebsd/driver/common/lxosapi.c>
#include <dev/pms/freebsd/driver/ini/src/osapi.c>
#include <dev/pms/freebsd/driver/common/lxutil.c>
#include <dev/pms/freebsd/driver/common/lxencrypt.c>
Go to the source code of this file.
Macros | |
#define | MAJOR_REVISION 1 |
#define | MINOR_REVISION 3 |
#define | BUILD_REVISION 10800 |
#define | cache_line_size() CACHE_LINE_SIZE |
#define | PMCoffsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) |
#define | CPU_TO_LE32(dst, src) |
#define | CMND_TO_CHANNEL(ccb) ( ccb->ccb_h.path_id ) |
#define | CMND_TO_TARGET( ccb) ( ccb->ccb_h.target_id ) |
#define | CMND_TO_LUN( ccb) ( ccb->ccb_h.target_lun ) |
#define | AGTIAPI_WWN(name, len) |
#define | AGTIAPI_WWNPRINTK(name, len, format, a...) |
#define | AGTIAPI_ERR_WWNPRINTK(name, len, format, a...) |
#define | AGTIAPI_CPY_DEV_INFO(root, dev, pDev) |
#define | AG_GET_DONE_PCCB(pccb, pmcsc) |
#define | AG_GET_DONE_SMP_PCCB(pccb, pmcsc) |
#define | AG_IO_DUMPCCB(pccb) |
#define | SCHED_DELAY_JIFFIES 4 /* in seconds */ |
#define | AG_HOTPLUG_LOCK_INIT(lock) |
#define | AG_LIST_LOCK(lock) |
#define | AG_LIST_UNLOCK(lock) |
Functions | |
__FBSDID ("$FreeBSD$") | |
MALLOC_DEFINE (M_PMC_MCCB, "CCB List", "CCB List for PMCS driver") | |
MALLOC_DEFINE (M_PMC_MSTL, "STLock malloc", "allocated in agtiapi_attach as memory for lock use") | |
MALLOC_DEFINE (M_PMC_MDVT, "ag_device_t malloc", "allocated in agtiapi_attach as mem for ag_device_t pDevList") | |
MALLOC_DEFINE (M_PMC_MPRT, "ag_portal_data_t malloc", "allocated in agtiapi_attach as mem for *pPortalData") | |
MALLOC_DEFINE (M_PMC_MDEV, "tiDeviceHandle_t * malloc", "allocated in agtiapi_GetDevHandle as local mem for **agDev") | |
MALLOC_DEFINE (M_PMC_MFLG, "lDevFlags * malloc", "allocated in agtiapi_GetDevHandle as local mem for * flags") | |
MALLOC_DEFINE (TEMP,"tempbuff","buffer for payload") | |
MALLOC_DEFINE (TEMP2, "tempbuff", "buffer for agtiapi_getdevlist") | |
STATIC void | agtiapi_CheckIOTimeout (void *data) |
static void | agtiapi_cam_action (struct cam_sim *, union ccb *) |
static void | agtiapi_cam_poll (struct cam_sim *) |
static void | agtiapi_async (void *callback_arg, u_int32_t code, struct cam_path *path, void *arg) |
void | agtiapi_adjust_queue_depth (struct cam_path *path, bit32 QueueDepth) |
int | agtiapi_open (struct cdev *dev, int oflags, int devtype, struct thread *td) |
int | agtiapi_close (struct cdev *dev, int fflag, int devtype, struct thread *td) |
int | agtiapi_read (struct cdev *dev, struct uio *uio, int ioflag) |
int | agtiapi_write (struct cdev *dev, struct uio *uio, int ioflag) |
int | agtiapi_getdevlist (struct agtiapi_softc *pCard, tiIOCTLPayload_t *agIOCTLPayload) |
int | agtiapi_getCardInfo (struct agtiapi_softc *pCard, U32_64 size, void *buffer) |
static int | agtiapi_CharIoctl (struct cdev *dev, u_long cmd, caddr_t data, int fflag, struct thread *td) |
static int | agtiapi_probe (device_t dev) |
static int | agtiapi_attach (device_t devx) |
STATIC agBOOLEAN | agtiapi_InitCardSW (struct agtiapi_softc *pmsc) |
STATIC agBOOLEAN | agtiapi_InitCardHW (struct agtiapi_softc *pmsc) |
void | agtiapi_IntrHandlerx_ (void *arg, int index) |
void | agtiapi_IntrHandler0 (void *arg) |
void | agtiapi_IntrHandler1 (void *arg) |
void | agtiapi_IntrHandler2 (void *arg) |
void | agtiapi_IntrHandler3 (void *arg) |
void | agtiapi_IntrHandler4 (void *arg) |
void | agtiapi_IntrHandler5 (void *arg) |
void | agtiapi_IntrHandler6 (void *arg) |
void | agtiapi_IntrHandler7 (void *arg) |
void | agtiapi_IntrHandler8 (void *arg) |
void | agtiapi_IntrHandler9 (void *arg) |
void | agtiapi_IntrHandler10 (void *arg) |
void | agtiapi_IntrHandler11 (void *arg) |
void | agtiapi_IntrHandler12 (void *arg) |
void | agtiapi_IntrHandler13 (void *arg) |
void | agtiapi_IntrHandler14 (void *arg) |
void | agtiapi_IntrHandler15 (void *arg) |
static void | agtiapi_SglMemoryCB (void *arg, bus_dma_segment_t *dm_segs, int nseg, int error) |
static void | agtiapi_MemoryCB (void *arg, bus_dma_segment_t *dm_segs, int nseg, int error) |
int | agtiapi_alloc_requests (struct agtiapi_softc *pmcsc) |
int | agtiapi_alloc_ostimem (struct agtiapi_softc *pmcsc) |
STATIC pccb_t | agtiapi_GetCCB (struct agtiapi_softc *pmcsc) |
int | agtiapi_QueueCmnd_ (struct agtiapi_softc *pmcsc, union ccb *ccb) |
STATIC void | agtiapi_DumpCDB (const char *ptitle, ccb_t *pccb) |
int | agtiapi_DoSoftReset (struct agtiapi_softc *pmcsc) |
int | agtiapi_StartTM (struct agtiapi_softc *pCard, ccb_t *pccb) |
static int | agtiapi_PrepareSGList (struct agtiapi_softc *pmcsc, ccb_t *pccb) |
static void | agtiapi_PrepareSGListCB (void *arg, bus_dma_segment_t *segs, int nsegs, int error) |
STATIC void | agtiapi_StartIO (struct agtiapi_softc *pmcsc) |
STATIC void | agtiapi_StartSMP (struct agtiapi_softc *pmcsc) |
static int | agtiapi_PrepareSMPSGList (struct agtiapi_softc *pmcsc, ccb_t *pccb) |
static void | agtiapi_PrepareSMPSGListCB (void *arg, bus_dma_segment_t *segs, int nsegs, int error) |
STATIC void | agtiapi_Done (struct agtiapi_softc *pmcsc, ccb_t *pccb) |
STATIC void | agtiapi_SMPDone (struct agtiapi_softc *pmcsc, ccb_t *pccb) |
void | agtiapi_hexdump (const char *ptitle, bit8 *pbuf, int len) |
STATIC U32 | agtiapi_CheckError (struct agtiapi_softc *pmcsc, ccb_t *pccb) |
STATIC U32 | agtiapi_CheckSMPError (struct agtiapi_softc *pmcsc, ccb_t *pccb) |
void | agtiapi_HandleEncryptedIOFailure (ag_device_t *pDev, ccb_t *pccb) |
STATIC void | agtiapi_Retry (struct agtiapi_softc *pmcsc, ccb_t *pccb) |
STATIC void | agtiapi_DumpCCB (ccb_t *pccb) |
int | agtiapi_eh_HostReset (struct agtiapi_softc *pmcsc, union ccb *cmnd) |
STATIC void | agtiapi_QueueCCB (struct agtiapi_softc *pmcsc, pccb_t *phead, pccb_t *ptail, ccb_t *pccb) |
static int | agtiapi_QueueSMP (struct agtiapi_softc *pmcsc, union ccb *ccb) |
void | agtiapi_SetLunField (ccb_t *pccb) |
STATIC void | agtiapi_FreeCCB (struct agtiapi_softc *pmcsc, pccb_t pccb) |
STATIC void | agtiapi_FlushCCBs (struct agtiapi_softc *pCard, U32 flag) |
STATIC void | agtiapi_FreeSMPCCB (struct agtiapi_softc *pmcsc, pccb_t pccb) |
STATIC void | agtiapi_FreeTMCCB (struct agtiapi_softc *pmcsc, pccb_t pccb) |
void | agtiapi_CheckAllVectors (struct agtiapi_softc *pCard, bit32 context) |
agBOOLEAN | agtiapi_CheckCB (struct agtiapi_softc *pCard, U32 milisec, U32 flag, volatile U32 *pStatus) |
STATIC void | agtiapi_DiscoverTgt (struct agtiapi_softc *pCard) |
STATIC void | agtiapi_PrepCCBs (struct agtiapi_softc *pCard, ccb_hdr_t *hdr, U32 size, U32 max_ccb, int tid) |
STATIC U32 | agtiapi_InitCCBs (struct agtiapi_softc *pCard, int tgtCount, int tid) |
STATIC int | agtiapi_FindWWNListNext (ag_tgt_map_t *pWWNList, int lstMax) |
STATIC U32 | agtiapi_GetDevHandle (struct agtiapi_softc *pCard, ag_portal_info_t *pPortalInfo, U32 eType, U32 eStatus) |
static void | agtiapi_scan (struct agtiapi_softc *pmcsc) |
STATIC agBOOLEAN | agtiapi_DeQueueCCB (struct agtiapi_softc *pCard, pccb_t *phead, pccb_t *ptail, ccb_t *pccb) |
STATIC void | wwnprintk (unsigned char *name, int len) |
STATIC int | wwncpy (ag_device_t *pDevice) |
STATIC void | agtiapi_ReleaseCCBs (struct agtiapi_softc *pCard) |
STATIC void | agtiapi_TITimer (void *data) |
STATIC void | agtiapi_clrRmScan (struct agtiapi_softc *pCard) |
STATIC void | agtiapi_devRmCheck (void *data) |
U32 | agtiapi_ResetCard (struct agtiapi_softc *pCard, unsigned long *flags) |
int | agtiapi_ReleaseHBA (device_t dev) |
static int | agtiapi_shutdown (device_t dev) |
static int | agtiapi_suspend (device_t dev) |
static int | agtiapi_resume (device_t dev) |
DRIVER_MODULE (pmspcv, pci, pmspcv_driver, pmspcv_devclass, 0, 0) | |
MODULE_DEPEND (pmspcv, cam, 1, 1, 1) | |
MODULE_DEPEND (pmspcv, pci, 1, 1, 1) | |
Variables | |
STATIC U32 | agtiapi_intx_mode = 0 |
STATIC U08 | ag_Perbi = 0 |
STATIC U32 | agtiapi_polling_mode = 0 |
STATIC U32 | ag_card_good = 0 |
STATIC U32 | ag_option_flag = 0 |
STATIC U32 | agtiapi_1st_time = 1 |
STATIC U32 | ag_timeout_secs = 10 |
U32 | gTiDebugLevel = 1 |
S32 | ag_encryption_enable = 0 |
atomic_t | outstanding_encrypted_io_count |
STATIC U08 | agtiapi_AddrModes [AGTIAPI_MAX_CHANNEL_NUM+1] |
static ag_card_info_t | agCardInfoList [AGTIAPI_MAX_CARDS] |
static d_open_t | agtiapi_open |
static d_close_t | agtiapi_close |
static d_read_t | agtiapi_read |
static d_write_t | agtiapi_write |
static d_ioctl_t | agtiapi_CharIoctl |
static struct cdevsw | agtiapi_cdevsw |
U32 | maxTargets = 0 |
U32 | ag_portal_count = 0 |
static device_method_t | agtiapi_methods [] |
static devclass_t | pmspcv_devclass |
static driver_t | pmspcv_driver |
#define AG_GET_DONE_PCCB | ( | pccb, | |
pmcsc | |||
) |
#define AG_GET_DONE_SMP_PCCB | ( | pccb, | |
pmcsc | |||
) |
#define AGTIAPI_CPY_DEV_INFO | ( | root, | |
dev, | |||
pDev | |||
) |
#define AGTIAPI_ERR_WWNPRINTK | ( | name, | |
len, | |||
format, | |||
a... | |||
) |
#define AGTIAPI_WWNPRINTK | ( | name, | |
len, | |||
format, | |||
a... | |||
) |
#define CPU_TO_LE32 | ( | dst, | |
src | |||
) |
#define PMCoffsetof | ( | TYPE, | |
MEMBER | |||
) | ((size_t) &((TYPE *)0)->MEMBER) |
__FBSDID | ( | "$FreeBSD$" | ) |
void agtiapi_adjust_queue_depth | ( | struct cam_path * | path, |
bit32 | QueueDepth | ||
) |
Definition at line 470 of file agtiapi.c.
Referenced by agtiapi_async(), and agtiapi_QueueCmnd_().
int agtiapi_alloc_ostimem | ( | struct agtiapi_softc * | pmcsc | ) |
Definition at line 1720 of file agtiapi.c.
References agNULL, AGTIAPI_DYNAMIC_MAX, AGTIAPI_FAIL, agtiapi_MemoryCB(), AGTIAPI_PRINTK, AGTIAPI_SUCCESS, _ag_card_info::dynamicMem, _ag_card_info::freeDynamicMem, _ag_dma_addr::nocache_busaddr, _ag_dma_addr::nocache_mem, NULL, agtiapi_softc::osti_busaddr, agtiapi_softc::osti_dmat, agtiapi_softc::osti_mapp, agtiapi_softc::osti_mem, agtiapi_softc::pCardInfo, and _ag_card_info::topOfFreeDynamicMem.
Referenced by agtiapi_attach().
int agtiapi_alloc_requests | ( | struct agtiapi_softc * | pmcsc | ) |
Definition at line 1620 of file agtiapi.c.
References agNULL, AGTIAPI_CCB_PER_DEVICE, AGTIAPI_MAX_DMA_SEGS, AGTIAPI_NSEGS, AGTIAPI_PRINTK, agtiapi_SglMemoryCB(), agtiapi_TITimer(), agtiapi_softc::buffer_dmat, agtiapi_softc::devRmTimer, agtiapi_softc::devRmTimerLock, agtiapi_softc::IO_timer, agtiapi_softc::IO_timer_lock, maxTargets, NULL, agtiapi_softc::OS_timer, agtiapi_softc::OS_timer_lock, agtiapi_softc::pCardInfo, _ag_card_info::pmIOLock, _ag_resource_info::tiLoLevelResource, _ag_card_info::tiRscInfo, agtiapi_softc::tisgl_busaddr, agtiapi_softc::tisgl_dmat, agtiapi_softc::tisgl_map, agtiapi_softc::tisgl_mem, and USEC_PER_TICK.
Referenced by agtiapi_attach().
|
static |
Definition at line 485 of file agtiapi.c.
References agtiapi_adjust_queue_depth(), INDEX, maxTargets, NULL, agtiapi_softc::pDevList, and _ag_device::qdepth.
Referenced by agtiapi_attach(), and agtiapi_ReleaseHBA().
|
static |
Definition at line 724 of file agtiapi.c.
References ag_encryption_enable, ag_portal_count, ag_timeout_secs, agCardInfoList, agFALSE, agNULL, agtiapi_alloc_ostimem(), agtiapi_alloc_requests(), agtiapi_async(), agtiapi_cam_action(), agtiapi_cam_poll(), agtiapi_cdevsw, AGTIAPI_FAIL, AGTIAPI_HW_LIMIT_DEVICE, AGTIAPI_INIT_TIME, agtiapi_InitCardHW(), agtiapi_InitCardSW(), AGTIAPI_INITIATOR, agtiapi_InitResource(), AGTIAPI_INSTALLED, agtiapi_IntrHandler0(), agtiapi_IntrHandler1(), agtiapi_IntrHandler10(), agtiapi_IntrHandler11(), agtiapi_IntrHandler12(), agtiapi_IntrHandler13(), agtiapi_IntrHandler14(), agtiapi_IntrHandler15(), agtiapi_IntrHandler2(), agtiapi_IntrHandler3(), agtiapi_IntrHandler4(), agtiapi_IntrHandler5(), agtiapi_IntrHandler6(), agtiapi_IntrHandler7(), agtiapi_IntrHandler8(), agtiapi_IntrHandler9(), AGTIAPI_IRQ_REQUESTED, AGTIAPI_MAX_CAM_Q_DEPTH, AGTIAPI_MAX_DEVICE, AGTIAPI_MAX_DEVICE_7H, AGTIAPI_MAX_DEVICE_8H, AGTIAPI_MAX_PORTALS, AGTIAPI_PRINTK, agtiapi_ScopeDMARes(), AGTIAPI_SCSI_REGISTERED, agtiapi_SetupEncryption(), AGTIAPI_SUCCESS, AGTIAPI_UNKNOWN, agTRUE, agtiapi_softc::cardNo, agtiapi_softc::ccbAllocList, agtiapi_softc::ccbChainList, agtiapi_softc::ccbFreeList, agtiapi_softc::ccbTotal, agtiapi_softc::dev_scan, agtiapi_softc::devDiscover, agtiapi_softc::devq_flag, agtiapi_softc::encrypt, tiLoLevelOption::encryption, agtiapi_softc::flags, gTiDebugLevel, agtiapi_softc::intrcookie, agtiapi_softc::irq, Is_ADP7H, Is_ADP8H, tiLoLevelResource::loLevelOption, lun, MAX_MSIX_NUM_ISR, MAX_MSIX_NUM_VECTOR, _ag_card_info::maxInterruptVectors, maxTargets, MIN, agtiapi_softc::my_cdev, agtiapi_softc::my_dev, NULL, tiPortalContext::osData, tiRoot::osData, osti_memset, osti_strncmp, osti_strtoul, ostiGetTransportParam(), agtiapi_softc::path, _ag_card_info::pCard, _ag_portal_data::pCard, agtiapi_softc::pCardInfo, PCI_DEVICE_ID_HIALEAH_HBA_SPCVE, _ag_card_info::pmIOLock, _ag_portal_data::portalInfo, agtiapi_softc::portCount, _ag_portal_info::portID, _ag_card_info::pPCIDev, agtiapi_softc::pPortalData, agtiapi_softc::rscID, agtiapi_softc::sim, agtiapi_softc::SimQFrozen, tiCOMGetResource(), _ag_resource_info::tiInitiatorResource, _ag_resource_info::tiLoLevelResource, _ag_portal_info::tiPortalContext, agtiapi_softc::tiRoot, _ag_card_info::tiRscInfo, _ag_resource_info::tiSharedMem, tiSuccess, TRUE, agtiapi_softc::typhn, and agtiapi_softc::VidDid.
|
static |
Definition at line 1794 of file agtiapi.c.
References agFALSE, agNULL, agtiapi_eh_HostReset(), AGTIAPI_IO, AGTIAPI_MAX_LUN, AGTIAPI_NSEGS, AGTIAPI_PRINTK, agtiapi_QueueCmnd_(), agtiapi_QueueSMP(), AGTIAPI_SHUT_DOWN, agtiapi_softc::cardNo, agtiapi_softc::dev_scan, tiDetailedDeviceInfo::devType_S_Rate, agtiapi_softc::flags, INDEX, tiDeviceInfo::info, maxTargets, NULL, agtiapi_softc::pCardInfo, _ag_device::pDevHandle, agtiapi_softc::pDevList, _ag_card_info::pmIOLock, agtiapi_softc::pWWNList, agtiapi_softc::sim, SUCCESS, tiINIGetDeviceInfo(), and agtiapi_softc::tiRoot.
Referenced by agtiapi_attach().
|
static |
Definition at line 6044 of file agtiapi.c.
Referenced by agtiapi_attach().
|
static |
Definition at line 526 of file agtiapi.c.
References agtiapi_getCardInfo(), agtiapi_getdevlist(), AGTIAPI_PORT_PANIC, AGTIAPI_PRINTK, agtiapi_ResetCard(), AGTIAPI_SOFT_RESET, AGTIAPI_SUCCESS, agtiapi_softc::cardNo, tdDeviceListPayload_s::deviceLength, agtiapi_softc::down_count, flags, agtiapi_softc::flags, tiIOCTLPayload::FunctionSpecificArea, IOCTL_CALL_FAIL, IOCTL_CALL_PENDING, IOCTL_CALL_SUCCESS, IOCTL_MJ_CHECK_DPMC_EVENT, IOCTL_MJ_CHECK_FATAL_ERROR, IOCTL_MJ_FATAL_ERR_CHK_SEND_FALSE, IOCTL_MJ_FATAL_ERR_CHK_SEND_TRUE, IOCTL_MJ_FATAL_ERROR_DUMP_COMPLETE, IOCTL_MJ_FATAL_ERROR_SOFT_RESET_TRIG, IOCTL_MJ_GET_DEVICE_LIST, IOCTL_MN_GET_CARD_INFO, tiIOCTLPayload::Length, tiIOCTLPayload::MajorFunction, NULL, ostiIOCTLWaitForSignal(), pCard, agtiapi_softc::pIoctlSem, tdDeviceListPayload_s::realDeviceCount, status, tiIOCTLPayload::Status, tiCOMMgntIOCTL(), agtiapi_softc::tiRoot, and agtiapi_softc::up_count.
void agtiapi_CheckAllVectors | ( | struct agtiapi_softc * | pCard, |
bit32 | context | ||
) |
Definition at line 4781 of file agtiapi.c.
References agtiapi_intx_mode, agTRUE, _ag_card_info::maxInterruptVectors, pCard, agtiapi_softc::pCardInfo, tiCOMDelayedInterruptHandler(), tiCOMInterruptHandler(), and agtiapi_softc::tiRoot.
Referenced by agtiapi_CheckCB(), and agtiapi_TITimer().
agBOOLEAN agtiapi_CheckCB | ( | struct agtiapi_softc * | pCard, |
U32 | milisec, | ||
U32 | flag, | ||
volatile U32 * | pStatus | ||
) |
Definition at line 4819 of file agtiapi.c.
References AGTIAPI_CB_DONE, agtiapi_CheckAllVectors(), agtiapi_DelayMSec(), AGTIAPI_FAIL, AGTIAPI_FLOW, AGTIAPI_PRINTK, AGTIAPI_SUCCESS, agtiapi_softc::flags, pCard, agtiapi_softc::pCardInfo, TASK_MANAGEMENT, TASK_TIMEOUT, tiCOMTimerTick(), _ag_resource_info::tiInitiatorResource, tiNonInterruptContext, agtiapi_softc::tiRoot, and _ag_card_info::tiRscInfo.
Referenced by agtiapi_DiscoverTgt(), and agtiapi_ResetCard().
STATIC U32 agtiapi_CheckError | ( | struct agtiapi_softc * | pmcsc, |
ccb_t * | pccb | ||
) |
Definition at line 3936 of file agtiapi.c.
References agFALSE, agtiapi_FreeCCB(), agtiapi_HandleEncryptedIOFailure(), AGTIAPI_IO, AGTIAPI_PRINTK, agTRUE, _CCB::ccb, _ag_device::CCBCount, _CCB::ccbStatus, agtiapi_softc::freezeSim, INDEX, maxTargets, NULL, agtiapi_softc::pDevList, agtiapi_softc::pWWNList, SCSI_CHECK_CONDITION, SCSI_TASK_ABORTED, _CCB::scsiStatus, agtiapi_softc::sim, _CCB::targetId, tiBusy, tiDetailAborted, tiDetailAbortLogin, tiDetailAbortReset, tiDetailDekIVMismatch, tiDetailDekKeyCacheMiss, tiDetailDifAppTagMismatch, tiDetailDifCrcMismatch, tiDetailDifRefTagMismatch, tiDetailNoLogin, tiDetailNotValid, tiDetailOtherError, tiDeviceBusy, tiIODifError, tiIOEncryptError, tiIOFailed, tiIOOverRun, tiIOSuccess, and tiIOUnderRun.
Referenced by agtiapi_Done().
STATIC void agtiapi_CheckIOTimeout | ( | void * | data | ) |
Definition at line 2215 of file agtiapi.c.
References agtiapi_softc::activeCCB, ag_timeout_secs, agtiapi_CheckIOTimeout(), agtiapi_DoSoftReset(), AGTIAPI_PRINTK, AGTIAPI_SHUT_DOWN, agtiapi_StartTM(), AGTIAPI_SUCCESS, agtiapi_softc::ccbChainList, flags, _CCB::flags, agtiapi_softc::flags, agtiapi_softc::IO_timer, NULL, _CCB::pccbChainNext, _CCB::startTime, status, tiIORequest::tdData, _CCB::tiIORequest, and TIMEDOUT.
Referenced by agtiapi_CheckIOTimeout(), and ostiInitiatorEvent().
STATIC U32 agtiapi_CheckSMPError | ( | struct agtiapi_softc * | pmcsc, |
ccb_t * | pccb | ||
) |
Definition at line 4165 of file agtiapi.c.
References agtiapi_FreeSMPCCB(), AGTIAPI_PRINTK, _CCB::ccb, _CCB::ccbStatus, _CCB::targetId, tiSMPFailed, and tiSMPSuccess.
Referenced by agtiapi_SMPDone().
int agtiapi_close | ( | struct cdev * | dev, |
int | fflag, | ||
int | devtype, | ||
struct thread * | td | ||
) |
Definition at line 258 of file agtiapi.c.
References AGTIAPI_PRINTK, and agtiapi_softc::my_dev.
STATIC void agtiapi_clrRmScan | ( | struct agtiapi_softc * | pCard | ) |
Definition at line 5905 of file agtiapi.c.
References AG_LIST_LOCK, AG_LIST_UNLOCK, AGTIAPI_PRINTK, agtiapi_scan(), agtiapi_softc::devDiscover, agtiapi_softc::devListLock, _ag_device::flags, NULL, pCard, _ag_device::pDevHandle, agtiapi_softc::pDevList, _ag_portal_data::portalInfo, _ag_tgt_map::portId, agtiapi_softc::pPortalData, agtiapi_softc::pWWNList, and agtiapi_softc::rmChkCt.
Referenced by agtiapi_devRmCheck(), and agtiapi_GetDevHandle().
STATIC agBOOLEAN agtiapi_DeQueueCCB | ( | struct agtiapi_softc * | pCard, |
pccb_t * | phead, | ||
pccb_t * | ptail, | ||
ccb_t * | pccb | ||
) |
Definition at line 5695 of file agtiapi.c.
References AGTIAPI_FAIL, AGTIAPI_PRINTK, AGTIAPI_SUCCESS, NULL, _CCB::pccbNext, and status.
STATIC void agtiapi_devRmCheck | ( | void * | data | ) |
Definition at line 5957 of file agtiapi.c.
References AG_LIST_LOCK, AG_LIST_UNLOCK, agtiapi_clrRmScan(), agtiapi_devRmCheck(), AGTIAPI_PRINTK, AGTIAPI_SHUT_DOWN, agtiapi_softc::devDiscover, agtiapi_softc::devListLock, agtiapi_softc::devRmTimer, FALSE, agtiapi_softc::flags, pCard, agtiapi_softc::pWWNList, agtiapi_softc::rmChkCt, and TRUE.
Referenced by agtiapi_devRmCheck(), and agtiapi_GetDevHandle().
STATIC void agtiapi_DiscoverTgt | ( | struct agtiapi_softc * | pCard | ) |
Definition at line 4882 of file agtiapi.c.
References agtiapi_CheckCB(), agtiapi_DelayMSec(), AGTIAPI_DISC_COMPLETE, AGTIAPI_DISC_DONE, AGTIAPI_EXTRA_DELAY, AGTIAPI_FAIL, AGTIAPI_FLOW, AGTIAPI_GET_DEV_MAX, agtiapi_GetDevHandle(), AGTIAPI_INIT, AGTIAPI_INIT_DELAY, AGTIAPI_INIT_TIME, AGTIAPI_PORT_DISC_READY, AGTIAPI_PORT_LINK_UP, AGTIAPI_PRINTK, agtiapi_softc::flags, FORCE_PERSISTENT_ASSIGN_MASK, pCard, PORTAL_STATUS, _ag_portal_data::portalInfo, agtiapi_softc::portCount, agtiapi_softc::pPortalData, agtiapi_softc::tgtCount, tiINIDiscoverTargets(), _ag_portal_info::tiPortalContext, agtiapi_softc::tiRoot, and tiSuccess.
Referenced by agtiapi_InitCardHW().
STATIC void agtiapi_Done | ( | struct agtiapi_softc * | pmcsc, |
ccb_t * | pccb | ||
) |
Definition at line 3801 of file agtiapi.c.
References agtiapi_CheckError(), agtiapi_FreeCCB(), AGTIAPI_IO, AGTIAPI_PRINTK, _CCB::ccb, tiIniScsiCmnd::cdb, CMND_DMA_UNMAP, _CCB::pccbNext, tiSuperScsiInitiatorRequest::scsiCmnd, _CCB::targetId, and _CCB::tiSuperScsiRequest.
Referenced by agtiapi_StartIO(), and ostiInitiatorIOCompleted().
int agtiapi_DoSoftReset | ( | struct agtiapi_softc * | pmcsc | ) |
Definition at line 2189 of file agtiapi.c.
References agtiapi_ResetCard(), AGTIAPI_SOFT_RESET, AGTIAPI_SUCCESS, flags, agtiapi_softc::flags, SUCCESS, and tiError.
Referenced by agtiapi_CheckIOTimeout(), agtiapi_eh_HostReset(), and agtiapi_StartTM().
Definition at line 4265 of file agtiapi.c.
References _CCB::addrMode, tiSuperScsiInitiatorRequest::agSgl1, AGTIAPI_PRINTK, _CCB::ccbStatus, tiIniScsiCmnd::cdb, _CCB::dataLen, _CCB::devHandle, tiIniScsiCmnd::expDataLength, _CCB::flags, tiSgl_s::len, tiSgl_s::lower, _CCB::lun, _CCB::numSgElements, tiSuperScsiInitiatorRequest::scsiCmnd, _CCB::scsiStatus, _CCB::senseLen, _CCB::targetId, tiIniScsiCmnd::taskAttribute, _CCB::tiSuperScsiRequest, tiSgl_s::type, and tiSgl_s::upper.
Referenced by agtiapi_StartIO().
Definition at line 2130 of file agtiapi.c.
References AGTIAPI_IO, _CCB::ccb, _CCB::flags, MIN, and NULL.
Referenced by agtiapi_FreeCCB().
int agtiapi_eh_HostReset | ( | struct agtiapi_softc * | pmcsc, |
union ccb * | cmnd | ||
) |
Definition at line 4322 of file agtiapi.c.
References agNULL, agtiapi_DoSoftReset(), AGTIAPI_PRINTK, IOCTL_EVT_SEV_INFORMATIONAL, NULL, and tiInvalidHandle.
Referenced by agtiapi_cam_action().
STATIC int agtiapi_FindWWNListNext | ( | ag_tgt_map_t * | pWWNList, |
int | lstMax | ||
) |
Definition at line 5257 of file agtiapi.c.
References AGTIAPI_PRINTK.
Referenced by agtiapi_GetDevHandle().
STATIC void agtiapi_FlushCCBs | ( | struct agtiapi_softc * | pCard, |
U32 | flag | ||
) |
Definition at line 4623 of file agtiapi.c.
References AGTIAPI_CALLBACK, agtiapi_FreeCCB(), agtiapi_FreeSMPCCB(), agtiapi_FreeTMCCB(), AGTIAPI_PRINTK, _CCB::ccb, agtiapi_softc::ccbChainList, CMND_DMA_UNMAP, DEV_RESET, _CCB::flags, NULL, pCard, _CCB::pccbChainNext, TAG_SMP, and TASK_MANAGEMENT.
Referenced by agtiapi_ResetCard().
STATIC void agtiapi_FreeCCB | ( | struct agtiapi_softc * | pmcsc, |
pccb_t | pccb | ||
) |
Definition at line 4500 of file agtiapi.c.
References agtiapi_softc::activeCCB, agNULL, AGSCSI_INIT_XCHG_LEN, agtiapi_CleanupEncryptedIO(), agtiapi_DumpCDB(), AGTIAPI_IO, AGTIAPI_PRINTK, agtiapi_softc::buffer_dmat, _CCB::ccb, _CCB::CCB_dmamap, agtiapi_softc::ccbFreeList, _CCB::ccbStatus, _CCB::dataLen, tiSuperScsiInitiatorRequest::Dif, tiDif_s::DIFPerLAAddrHi, tiDif_s::DIFPerLAAddrLo, _CCB::dmaHandle, tiDif_s::enableDIFPerLA, tiEncrypt::enableEncryptionPerLA, agtiapi_softc::encrypt, tiSuperScsiInitiatorRequest::Encrypt, tiEncrypt::EncryptionPerLAAddrHi, tiEncrypt::EncryptionPerLAAddrLo, FALSE, _CCB::flags, NULL, _CCB::numSgElements, agtiapi_softc::pCardInfo, _CCB::pccbIO, _CCB::pccbNext, _ag_card_info::pPCIDev, _CCB::retryCount, _CCB::scsiStatus, _CCB::sgList, _CCB::startTime, tiIORequest::tdData, _CCB::tiIORequest, _CCB::tiSuperScsiRequest, and TRUE.
Referenced by agtiapi_CheckError(), agtiapi_Done(), agtiapi_FlushCCBs(), agtiapi_PrepareSGListCB(), agtiapi_PrepareSMPSGListCB(), agtiapi_QueueCmnd_(), and agtiapi_QueueSMP().
STATIC void agtiapi_FreeSMPCCB | ( | struct agtiapi_softc * | pmcsc, |
pccb_t | pccb | ||
) |
Definition at line 4678 of file agtiapi.c.
References agtiapi_softc::activeCCB, AGSMP_INIT_XCHG_LEN, AGTIAPI_PRINTK, agtiapi_softc::buffer_dmat, _CCB::ccb, _CCB::CCB_dmamap, agtiapi_softc::ccbFreeList, _CCB::ccbStatus, _CCB::dataLen, _CCB::dmaHandle, _CCB::flags, NULL, _CCB::numSgElements, _CCB::pccbNext, _CCB::retryCount, _CCB::startTime, tiIORequest::tdData, _CCB::tiIORequest, and _CCB::tiSMPFrame.
Referenced by agtiapi_CheckSMPError(), agtiapi_FlushCCBs(), and agtiapi_SMPDone().
STATIC void agtiapi_FreeTMCCB | ( | struct agtiapi_softc * | pmcsc, |
pccb_t | pccb | ||
) |
Definition at line 4750 of file agtiapi.c.
References agtiapi_softc::activeCCB, AGSCSI_INIT_XCHG_LEN, AGTIAPI_PRINTK, _CCB::ccb, agtiapi_softc::ccbFreeList, _CCB::ccbStatus, _CCB::dataLen, _CCB::dmaHandle, _CCB::flags, NULL, _CCB::numSgElements, _CCB::pccbIO, _CCB::pccbNext, _CCB::retryCount, _CCB::scsiStatus, _CCB::startTime, tiIORequest::tdData, _CCB::tiIORequest, and _CCB::tiSuperScsiRequest.
Referenced by agtiapi_FlushCCBs(), agtiapi_StartTM(), and ostiInitiatorEvent().
int agtiapi_getCardInfo | ( | struct agtiapi_softc * | pCard, |
U32_64 | size, | ||
void * | buffer | ||
) |
Definition at line 449 of file agtiapi.c.
References agtiapi_softc::my_dev, pCard, agtiapi_softc::pCardInfo, _ag_card_info::pciIOAddrLow, _ag_card_info::pciIOAddrUp, and _ag_card_info::pciMemBase.
Referenced by agtiapi_CharIoctl().
STATIC pccb_t agtiapi_GetCCB | ( | struct agtiapi_softc * | pmcsc | ) |
Definition at line 1998 of file agtiapi.c.
References ACTIVE, agtiapi_softc::activeCCB, AGTIAPI_IO, AGTIAPI_PRINTK, agtiapi_softc::ccbFreeList, _CCB::flags, NULL, _CCB::pccbNext, and _CCB::startTime.
Referenced by agtiapi_QueueCmnd_(), agtiapi_QueueSMP(), agtiapi_StartTM(), ostiInitiatorEvent(), and ostiNumOfLUNIOCTLreq().
STATIC U32 agtiapi_GetDevHandle | ( | struct agtiapi_softc * | pCard, |
ag_portal_info_t * | pPortalInfo, | ||
U32 | eType, | ||
U32 | eStatus | ||
) |
Definition at line 5296 of file agtiapi.c.
References ACTIVE, AG_LIST_LOCK, AG_LIST_UNLOCK, agFALSE, agtiapi_clrRmScan(), agtiapi_devRmCheck(), agtiapi_FindWWNListNext(), AGTIAPI_FLOW, AGTIAPI_INIT_DELAY, AGTIAPI_INIT_TIME, agtiapi_InitCCBs(), AGTIAPI_PRINTK, _ag_device::CCBCount, agtiapi_softc::devDiscover, _ag_device::devInfo, _ag_tgt_map::devListIndex, agtiapi_softc::devListLock, _ag_portal_info::devPrev, agtiapi_softc::devRmTimer, _ag_portal_info::devTotal, _ag_device::devType, DIRECT_DEVICE, DPMC_LEANFLAG_AGDEVUSED, DPMC_LEANFLAG_NOAGDEVYT, DPMC_LEANFLAG_NOWWNLIST, DPMC_LEANFLAG_PDEVSUSED, FALSE, _ag_device::flags, _ag_tgt_map::flags, agtiapi_softc::flags, _ag_slr_map::localeNameLen, tiPortInfo::localName, tiPortInfo::localNameLen, NULL, tiDeviceHandle::osData, pCard, _ag_device::pCard, _ag_device::pDevHandle, agtiapi_softc::pDevList, _ag_device::portalId, _ag_portal_info::portID, _ag_tgt_map::portId, _ag_device::pPortalInfo, agtiapi_softc::pSLRList, agtiapi_softc::pWWNList, _ag_device::qbusy, tiPortInfo::remoteName, _ag_slr_map::remoteNameLen, tiPortInfo::remoteNameLen, agtiapi_softc::rmChkCt, _ag_tgt_map::sasLrIdx, SOFT_MAPPED, _ag_device::targetId, _ag_device::targetLen, _ag_tgt_map::targetLen, _ag_device::targetName, agtiapi_softc::tgtCount, tiCOMGetPortInfo(), tiINIGetDeviceHandles(), tiINIGetDeviceInfo(), _ag_portal_info::tiPortalContext, agtiapi_softc::tiRoot, tiSuccess, TRUE, wwncpy(), and wwnprintk().
Referenced by agtiapi_DiscoverTgt(), and ostiInitiatorEvent().
int agtiapi_getdevlist | ( | struct agtiapi_softc * | pCard, |
tiIOCTLPayload_t * | agIOCTLPayload | ||
) |
Definition at line 290 of file agtiapi.c.
References AG_ALIGNSIZE, agNULL, AGTIAPI_PRINTK, agtiapi_softc::devDiscover, tdDeviceListPayload_s::deviceLength, DISCOVERY_IN_PROGRESS, tiIOCTLPayload::FunctionSpecificArea, IOCTL_CALL_FAIL, IOCTL_CALL_INVALID_CODE, IOCTL_CALL_SUCCESS, IOCTL_ERR_STATUS_INTERNAL_ERROR, IOCTL_ERR_STATUS_OK, NULL, osti_memcpy, osti_memset, pCard, _ag_portal_data::portalInfo, agtiapi_softc::portCount, agtiapi_softc::pPortalData, tdDeviceListPayload_s::realDeviceCount, tiIOCTLPayload::Status, tiINIGetDeviceHandlesForWinIOCTL(), tiIniGetDirectSataSasAddr(), _ag_portal_info::tiPortalContext, and agtiapi_softc::tiRoot.
Referenced by agtiapi_CharIoctl().
void agtiapi_HandleEncryptedIOFailure | ( | ag_device_t * | pDev, |
ccb_t * | pccb | ||
) |
Definition at line 4218 of file agtiapi.c.
References AGTIAPI_PRINTK.
Referenced by agtiapi_CheckError().
void agtiapi_hexdump | ( | const char * | ptitle, |
bit8 * | pbuf, | ||
int | len | ||
) |
Definition at line 3894 of file agtiapi.c.
References AGTIAPI_PRINTK.
Referenced by ostiInitiatorIOCompleted(), and ostiInitiatorSMPCompleted().
STATIC agBOOLEAN agtiapi_InitCardHW | ( | struct agtiapi_softc * | pmsc | ) |
Definition at line 1216 of file agtiapi.c.
References ag_Perbi, agtiapi_DelayMSec(), AGTIAPI_DISC_COMPLETE, AGTIAPI_DISC_DONE, agtiapi_DiscoverTgt(), AGTIAPI_EXTRA_DELAY, AGTIAPI_FAIL, AGTIAPI_INIT_TIME, AGTIAPI_INSTALLED, AGTIAPI_LOOP_MAX, AGTIAPI_PORT_DISC_READY, AGTIAPI_PORT_START, AGTIAPI_PRINTK, AGTIAPI_SYS_INTR_ON, AGTIAPI_TIMER_ON, agtiapi_TITimer(), agTRUE, agtiapi_softc::devDiscover, flags, agtiapi_softc::flags, NULL, pCard, agtiapi_softc::pDevList, _ag_portal_data::portalInfo, agtiapi_softc::portCount, _ag_portal_info::portID, _ag_portal_info::portStatus, agtiapi_softc::pPortalData, agtiapi_softc::pSLRList, agtiapi_softc::pWWNList, agtiapi_softc::tgtCount, tiCOMGetPortInfo(), tiCOMPortStart(), tiCOMSystemInterruptsActive(), _ag_portal_info::tiPortalContext, _ag_portal_info::tiPortInfo, agtiapi_softc::tiRoot, and tiSuccess.
Referenced by agtiapi_attach().
STATIC agBOOLEAN agtiapi_InitCardSW | ( | struct agtiapi_softc * | pmsc | ) |
Definition at line 1120 of file agtiapi.c.
References agFALSE, AGTIAPI_FAIL, AGTIAPI_PORT_INITIALIZED, AGTIAPI_PRINTK, AGTIAPI_SUCCESS, AGTIAPI_SYS_INTR_ON, agTRUE, atomic_set, agtiapi_softc::devListLock, agtiapi_softc::encrypt, tiLoLevelOption::encryption, tiLoLevelOption::flag, agtiapi_softc::flags, agtiapi_softc::freezeSim, tiLoLevelResource::loLevelOption, tiLoLevelOption::max_MSI_InterruptVectors, _ag_card_info::maxInterruptVectors, tiLoLevelOption::maxNumOSLocks, agtiapi_softc::my_dev, NULL, tiLoLevelOption::numOfQueuesPerPort, outstanding_encrypted_io_count, agtiapi_softc::pCardInfo, PCI_DEVICE_ID_HIALEAH_HBA_SPCVE, _ag_card_info::pPCIDev, tiCOMInit(), tiCOMPortInit(), _ag_resource_info::tiInitiatorResource, _ag_resource_info::tiLoLevelResource, agtiapi_softc::tiRoot, _ag_card_info::tiRscInfo, _ag_resource_info::tiSharedMem, and tiSuccess.
Referenced by agtiapi_attach().
STATIC U32 agtiapi_InitCCBs | ( | struct agtiapi_softc * | pCard, |
int | tgtCount, | ||
int | tid | ||
) |
Definition at line 5143 of file agtiapi.c.
References AGSA_MAX_INBOUND_Q, AGTIAPI_CCB_PER_DEVICE, AGTIAPI_CCB_SIZE, AGTIAPI_FLOW, agtiapi_PrepCCBs(), AGTIAPI_PRINTK, cache_line_size, hdr, NULL, pCard, and agtiapi_softc::tgtCount.
Referenced by agtiapi_GetDevHandle().
void agtiapi_IntrHandler0 | ( | void * | arg | ) |
Definition at line 1401 of file agtiapi.c.
References agtiapi_IntrHandlerx_().
Referenced by agtiapi_attach().
void agtiapi_IntrHandler1 | ( | void * | arg | ) |
Definition at line 1412 of file agtiapi.c.
References agtiapi_IntrHandlerx_().
Referenced by agtiapi_attach().
void agtiapi_IntrHandler10 | ( | void * | arg | ) |
Definition at line 1511 of file agtiapi.c.
References agtiapi_IntrHandlerx_().
Referenced by agtiapi_attach().
void agtiapi_IntrHandler11 | ( | void * | arg | ) |
Definition at line 1522 of file agtiapi.c.
References agtiapi_IntrHandlerx_().
Referenced by agtiapi_attach().
void agtiapi_IntrHandler12 | ( | void * | arg | ) |
Definition at line 1533 of file agtiapi.c.
References agtiapi_IntrHandlerx_().
Referenced by agtiapi_attach().
void agtiapi_IntrHandler13 | ( | void * | arg | ) |
Definition at line 1544 of file agtiapi.c.
References agtiapi_IntrHandlerx_().
Referenced by agtiapi_attach().
void agtiapi_IntrHandler14 | ( | void * | arg | ) |
Definition at line 1555 of file agtiapi.c.
References agtiapi_IntrHandlerx_().
Referenced by agtiapi_attach().
void agtiapi_IntrHandler15 | ( | void * | arg | ) |
Definition at line 1566 of file agtiapi.c.
References agtiapi_IntrHandlerx_().
Referenced by agtiapi_attach().
void agtiapi_IntrHandler2 | ( | void * | arg | ) |
Definition at line 1423 of file agtiapi.c.
References agtiapi_IntrHandlerx_().
Referenced by agtiapi_attach().
void agtiapi_IntrHandler3 | ( | void * | arg | ) |
Definition at line 1434 of file agtiapi.c.
References agtiapi_IntrHandlerx_().
Referenced by agtiapi_attach().
void agtiapi_IntrHandler4 | ( | void * | arg | ) |
Definition at line 1445 of file agtiapi.c.
References agtiapi_IntrHandlerx_().
Referenced by agtiapi_attach().
void agtiapi_IntrHandler5 | ( | void * | arg | ) |
Definition at line 1456 of file agtiapi.c.
References agtiapi_IntrHandlerx_().
Referenced by agtiapi_attach().
void agtiapi_IntrHandler6 | ( | void * | arg | ) |
Definition at line 1467 of file agtiapi.c.
References agtiapi_IntrHandlerx_().
Referenced by agtiapi_attach().
void agtiapi_IntrHandler7 | ( | void * | arg | ) |
Definition at line 1478 of file agtiapi.c.
References agtiapi_IntrHandlerx_().
Referenced by agtiapi_attach().
void agtiapi_IntrHandler8 | ( | void * | arg | ) |
Definition at line 1489 of file agtiapi.c.
References agtiapi_IntrHandlerx_().
Referenced by agtiapi_attach().
void agtiapi_IntrHandler9 | ( | void * | arg | ) |
Definition at line 1500 of file agtiapi.c.
References agtiapi_IntrHandlerx_().
Referenced by agtiapi_attach().
void agtiapi_IntrHandlerx_ | ( | void * | arg, |
int | index | ||
) |
Definition at line 1353 of file agtiapi.c.
References AG_GET_DONE_PCCB, AG_GET_DONE_SMP_PCCB, agFALSE, AGTIAPI_SHUT_DOWN, agtiapi_softc::flags, index, pCard, agtiapi_softc::pCardInfo, _ag_card_info::pmIOLock, tiCOMDelayedInterruptHandler(), tiCOMInterruptHandler(), tiInterruptContext, and agtiapi_softc::tiRoot.
Referenced by agtiapi_IntrHandler0(), agtiapi_IntrHandler1(), agtiapi_IntrHandler10(), agtiapi_IntrHandler11(), agtiapi_IntrHandler12(), agtiapi_IntrHandler13(), agtiapi_IntrHandler14(), agtiapi_IntrHandler15(), agtiapi_IntrHandler2(), agtiapi_IntrHandler3(), agtiapi_IntrHandler4(), agtiapi_IntrHandler5(), agtiapi_IntrHandler6(), agtiapi_IntrHandler7(), agtiapi_IntrHandler8(), and agtiapi_IntrHandler9().
|
static |
Definition at line 1590 of file agtiapi.c.
References AGTIAPI_PRINTK.
Referenced by agtiapi_alloc_ostimem(), and agtiapi_typhAlloc().
int agtiapi_open | ( | struct cdev * | dev, |
int | oflags, | ||
int | devtype, | ||
struct thread * | td | ||
) |
Definition at line 248 of file agtiapi.c.
References AGTIAPI_PRINTK, and agtiapi_softc::my_dev.
|
static |
Definition at line 2520 of file agtiapi.c.
References AGTIAPI_IO, agtiapi_PrepareSGListCB(), AGTIAPI_PRINTK, agTRUE, agtiapi_softc::buffer_dmat, _CCB::ccb, _CCB::CCB_dmamap, NULL, agtiapi_softc::sim, agtiapi_softc::SimQFrozen, tiReject, and tiSuccess.
Referenced by agtiapi_QueueCmnd_().
|
static |
Definition at line 2600 of file agtiapi.c.
References tiSuperScsiInitiatorRequest::agSgl1, agtiapi_FreeCCB(), AGTIAPI_INQUIRY, AGTIAPI_IO, AGTIAPI_MAX_DMA_SEGS, AGTIAPI_PRINTK, agtiapi_QueueCCB(), agtiapi_SetLunField(), agtiapi_SetupEncryptedIO(), agtiapi_StartIO(), agtiapi_softc::buffer_dmat, _CCB::ccb, _CCB::CCB_dmamap, agtiapi_softc::ccbSendHead, agtiapi_softc::ccbSendTail, _CCB::ccbStatus, tiIniScsiCmnd::cdb, CMND_TO_TARGET, CPU_TO_LE32, tiSuperScsiInitiatorRequest::dataDirection, _CCB::dataLen, agtiapi_softc::devDiscover, _CCB::devHandle, tiSuperScsiInitiatorRequest::Dif, DIF_BLOCK_SIZE_4096, DIF_BLOCK_SIZE_4160, DIF_BLOCK_SIZE_520, DIF_CRC_VERIFICATION, DIF_INSERT, DIF_UDT_REF_BLOCK_COUNT, DIF_VERIFY_DELETE, DIF_VERIFY_FORWARD, EDC_DATA, EDC_DATA_CRC, tiDif_s::enableDIFPerLA, agtiapi_softc::encrypt, tiIniScsiCmnd::expDataLength, _CCB::flags, _ag_device::flags, agtiapi_softc::flags, tiDif_s::flags, tiSuperScsiInitiatorRequest::flags, INDEX, tiSgl_s::len, maxTargets, NULL, _CCB::numSgElements, pCard, _ag_device::pDevHandle, agtiapi_softc::pDevList, _CCB::pmcsc, tiSuperScsiInitiatorRequest::scsiCmnd, _CCB::scsiStatus, _ag_device::sector_size, _CCB::senseLen, _CCB::sgList, tiSuperScsiInitiatorRequest::sglVirtualAddr, _CCB::targetId, TASK_ACA, TASK_HEAD_OF_QUEUE, TASK_ORDERED, TASK_SIMPLE, tiIniScsiCmnd::taskAttribute, TI_SCSI_INITIATOR_DIF, tiDetailNoLogin, tiDirectionIn, tiDirectionOut, tiIOFailed, tiSgl, _CCB::tisgl_busaddr, tiSglList, tiSuccess, _CCB::tiSuperScsiRequest, TRUE, tiSgl_s::type, and tiDif_s::udtArray.
Referenced by agtiapi_PrepareSGList().
|
static |
Definition at line 3532 of file agtiapi.c.
References agtiapi_PrepareSMPSGListCB(), AGTIAPI_PRINTK, agTRUE, agtiapi_softc::buffer_dmat, _CCB::ccb, _CCB::CCB_dmamap, tiSMPFrame::expectedRespLen, tiSMPFrame::flag, NULL, tiSMPFrame::outFrameBuf, tiSMPFrame::outFrameLen, agtiapi_softc::sim, agtiapi_softc::SimQFrozen, tiReject, _CCB::tiSMPFrame, and tiSuccess.
Referenced by agtiapi_QueueSMP().
|
static |
Definition at line 3666 of file agtiapi.c.
References agtiapi_FreeCCB(), AGTIAPI_MAX_DMA_SEGS, AGTIAPI_PRINTK, agtiapi_QueueCCB(), agtiapi_StartSMP(), agtiapi_softc::buffer_dmat, _CCB::ccb, _CCB::CCB_dmamap, CMND_TO_TARGET, agtiapi_softc::devDiscover, _CCB::devHandle, INDEX, maxTargets, NULL, _ag_device::pDevHandle, agtiapi_softc::pDevList, _CCB::pmcsc, _ag_device::pPortalInfo, agtiapi_softc::smpSendHead, agtiapi_softc::smpSendTail, status, _CCB::targetId, tiINIGetExpander(), _ag_portal_info::tiPortalContext, agtiapi_softc::tiRoot, and tiSuccess.
Referenced by agtiapi_PrepareSMPSGList().
STATIC void agtiapi_PrepCCBs | ( | struct agtiapi_softc * | pCard, |
ccb_hdr_t * | hdr, | ||
U32 | size, | ||
U32 | max_ccb, | ||
int | tid | ||
) |
Definition at line 5012 of file agtiapi.c.
References AGTIAPI_CCB_PER_DEVICE, AGTIAPI_CCB_SIZE, AGTIAPI_NSEGS, AGTIAPI_PRINTK, agtiapi_softc::buffer_dmat, cache_line_size, _CCB::ccb, _CCB::CCB_dmamap, agtiapi_softc::ccbAllocList, agtiapi_softc::ccbChainList, agtiapi_softc::ccbFreeList, _CCB::ccbStatus, agtiapi_softc::ccbTotal, _CCB::cmd, _CCB::dataLen, _CCB::devHandle, _CCB::flags, hdr, _CCB::lun, NULL, _CCB::numSgElements, tiIORequest::osData, pCard, _CCB::pccbChainNext, _CCB::pccbIO, _CCB::pccbNext, _CCB::pSenseData, _CCB::retryCount, _CCB::scsiStatus, _CCB::senseLen, _CCB::sgList, _CCB::startTime, _CCB::targetId, _CCB::tdIOReqBody, _CCB::tiIORequest, _CCB::tisgl_busaddr, agtiapi_softc::tisgl_busaddr, agtiapi_softc::tisgl_mem, tiSuccess, and _CCB::tiSuperScsiRequest.
Referenced by agtiapi_InitCCBs().
|
static |
Definition at line 691 of file agtiapi.c.
References agCardInfoList, AGTIAPI_MAX_CARDS, and agtiapi_ProbeCard().
STATIC void agtiapi_QueueCCB | ( | struct agtiapi_softc * | pmcsc, |
pccb_t * | phead, | ||
pccb_t * | ptail, | ||
ccb_t * | pccb | ||
) |
Definition at line 4360 of file agtiapi.c.
References AGTIAPI_IO, NULL, and _CCB::pccbNext.
Referenced by agtiapi_PrepareSGListCB(), agtiapi_PrepareSMPSGListCB(), agtiapi_Retry(), agtiapi_StartIO(), agtiapi_StartSMP(), ostiInitiatorIOCompleted(), and ostiInitiatorSMPCompleted().
int agtiapi_QueueCmnd_ | ( | struct agtiapi_softc * | pmcsc, |
union ccb * | ccb | ||
) |
Definition at line 2038 of file agtiapi.c.
References _CCB::addrMode, agNULL, agtiapi_AddrModes, agtiapi_adjust_queue_depth(), agtiapi_FreeCCB(), agtiapi_GetCCB(), AGTIAPI_IO, agtiapi_PrepareSGList(), AGTIAPI_PRINTK, _CCB::ccb, _CCB::channel, CMND_TO_CHANNEL, CMND_TO_LUN, CMND_TO_TARGET, tiSuperScsiInitiatorRequest::flags, INDEX, _CCB::lun, maxTargets, NULL, agtiapi_softc::pDevList, _CCB::pmcsc, _CCB::pSenseData, _ag_device::qdepth, _CCB::senseLen, _CCB::startTime, status, _CCB::targetId, tiBusy, tiError, tiReject, tiSuccess, and _CCB::tiSuperScsiRequest.
Referenced by agtiapi_cam_action().
|
static |
Definition at line 4405 of file agtiapi.c.
References agNULL, agtiapi_FreeCCB(), agtiapi_GetCCB(), agtiapi_PrepareSMPSGList(), AGTIAPI_PRINTK, _CCB::ccb, NULL, _CCB::pmcsc, status, _CCB::targetId, tiBusy, tiError, tiReject, and tiSuccess.
Referenced by agtiapi_cam_action().
int agtiapi_read | ( | struct cdev * | dev, |
struct uio * | uio, | ||
int | ioflag | ||
) |
Definition at line 268 of file agtiapi.c.
References AGTIAPI_PRINTK, and agtiapi_softc::my_dev.
STATIC void agtiapi_ReleaseCCBs | ( | struct agtiapi_softc * | pCard | ) |
Definition at line 5803 of file agtiapi.c.
References AGTIAPI_PRINTK, agtiapi_softc::buffer_dmat, cache_line_size, _CCB::CCB_dmamap, agtiapi_softc::ccbAllocList, agtiapi_softc::ccbChainList, hdr, NULL, pCard, and _CCB::pccbChainNext.
Referenced by agtiapi_ReleaseHBA().
int agtiapi_ReleaseHBA | ( | device_t | dev | ) |
Definition at line 6319 of file agtiapi.c.
References ag_card_good, agCardInfoList, agNULL, agtiapi_1st_time, agtiapi_async(), AGTIAPI_INSTALLED, agtiapi_intx_mode, AGTIAPI_IRQ_REQUESTED, agtiapi_MemFree(), AGTIAPI_PORT_INITIALIZED, AGTIAPI_PRINTK, agtiapi_ReleaseCCBs(), agtiapi_ReleasePCIMem(), AGTIAPI_SCSI_REGISTERED, AGTIAPI_SHUT_DOWN, AGTIAPI_SYS_INTR_ON, AGTIAPI_TIMER_ON, atomic_read, agtiapi_softc::buffer_dmat, agtiapi_softc::ccbTotal, agtiapi_softc::devListLock, agtiapi_softc::devq, agtiapi_softc::devRmTimer, agtiapi_softc::devRmTimerLock, agtiapi_softc::encrypt, FALSE, flags, agtiapi_softc::flags, agtiapi_softc::intrcookie, agtiapi_softc::IO_timer, agtiapi_softc::irq, tiLoLevelResource::loLevelOption, MAX_MSIX_NUM_DPC, MAX_MSIX_NUM_VECTOR, agtiapi_softc::my_cdev, NULL, tiLoLevelOption::numOfQueuesPerPort, agtiapi_softc::OS_timer, agtiapi_softc::OS_timer_lock, agtiapi_softc::osti_busaddr, agtiapi_softc::osti_dmat, agtiapi_softc::osti_mapp, agtiapi_softc::osti_mem, outstanding_encrypted_io_count, agtiapi_softc::path, pCard, agtiapi_softc::pCardInfo, agtiapi_softc::pDevList, _ag_card_info::pmIOLock, agtiapi_softc::pPortalData, agtiapi_softc::pSLRList, agtiapi_softc::pWWNList, agtiapi_softc::rscID, agtiapi_softc::sim, tiCOMShutDown(), tiCOMSystemInterruptsActive(), _ag_resource_info::tiLoLevelResource, agtiapi_softc::tiRoot, _ag_card_info::tiRscInfo, agtiapi_softc::tisgl_busaddr, agtiapi_softc::tisgl_dmat, agtiapi_softc::tisgl_map, and agtiapi_softc::tisgl_mem.
U32 agtiapi_ResetCard | ( | struct agtiapi_softc * | pCard, |
unsigned long * | flags | ||
) |
Definition at line 6063 of file agtiapi.c.
References agBOOLEAN, agFALSE, agNULL, AGTIAPI_CALLBACK, AGTIAPI_CB_DONE, agtiapi_CheckCB(), AGTIAPI_DISC_COMPLETE, AGTIAPI_DISC_DONE, AGTIAPI_FAIL, agtiapi_FlushCCBs(), AGTIAPI_HAD_RESET, AGTIAPI_INSTALLED, AGTIAPI_LOOP_MAX, AGTIAPI_PORT_DISC_READY, AGTIAPI_PORT_START, AGTIAPI_PRINTK, AGTIAPI_RESET, AGTIAPI_RESET_SUCCESS, AGTIAPI_SOFT_RESET, agtiapi_StartIO(), AGTIAPI_SUCCESS, AGTIAPI_SYS_INTR_ON, agtiapi_softc::ccbDoneHead, agtiapi_softc::ccbDoneTail, agtiapi_softc::ccbSendHead, agtiapi_softc::ccbSendTail, agtiapi_softc::devDiscover, _ag_portal_info::devPrev, _ag_portal_info::devTotal, FALSE, flags, _ag_device::flags, agtiapi_softc::flags, IOCTL_EVT_SEV_INFORMATIONAL, maxTargets, NULL, pCard, _ag_device::pDevHandle, agtiapi_softc::pDevList, _ag_portal_data::portalInfo, agtiapi_softc::portCount, _ag_portal_info::portID, _ag_portal_info::portStatus, agtiapi_softc::pPortalData, agtiapi_softc::resetCount, agtiapi_softc::smpDoneHead, agtiapi_softc::smpDoneTail, agtiapi_softc::smpSendHead, agtiapi_softc::smpSendTail, agtiapi_softc::tgtCount, tiCOMGetPortInfo(), tiCOMPortInit(), tiCOMPortStart(), tiCOMReset(), tiCOMSystemInterruptsActive(), _ag_portal_info::tiPortalContext, _ag_portal_info::tiPortInfo, agtiapi_softc::tiRoot, tiSoftReset, tiSuccess, and TRUE.
Referenced by agtiapi_CharIoctl(), and agtiapi_DoSoftReset().
|
static |
Definition at line 6608 of file agtiapi.c.
References AGTIAPI_PRINTK.
STATIC void agtiapi_Retry | ( | struct agtiapi_softc * | pmcsc, |
ccb_t * | pccb | ||
) |
Definition at line 4237 of file agtiapi.c.
References ACTIVE, AGTIAPI_PRINTK, agtiapi_QueueCCB(), AGTIAPI_RETRY, agtiapi_softc::ccbSendHead, agtiapi_softc::ccbSendTail, _CCB::ccbStatus, _CCB::flags, _CCB::retryCount, _CCB::scsiStatus, and _CCB::startTime.
|
static |
Definition at line 5647 of file agtiapi.c.
References agNULL, AGTIAPI_PRINTK, agTRUE, agtiapi_softc::cardNo, agtiapi_softc::dev_scan, lun, agtiapi_softc::pCardInfo, _ag_card_info::pmIOLock, and agtiapi_softc::sim.
Referenced by agtiapi_clrRmScan().
void agtiapi_SetLunField | ( | ccb_t * | pccb | ) |
Definition at line 4458 of file agtiapi.c.
References _CCB::addrMode, AGTIAPI_ADDRMODE_SHIFT, AGTIAPI_LUN_ADDR, AGTIAPI_PERIPHERAL, AGTIAPI_VOLUME_SET, _CCB::lun, tiIniScsiCmnd::lun, tiSuperScsiInitiatorRequest::scsiCmnd, _CCB::targetId, and _CCB::tiSuperScsiRequest.
Referenced by agtiapi_PrepareSGListCB().
|
static |
Definition at line 1572 of file agtiapi.c.
References AGTIAPI_PRINTK.
Referenced by agtiapi_alloc_requests().
|
static |
Definition at line 6596 of file agtiapi.c.
References AGTIAPI_PRINTK.
STATIC void agtiapi_SMPDone | ( | struct agtiapi_softc * | pmcsc, |
ccb_t * | pccb | ||
) |
Definition at line 3851 of file agtiapi.c.
References agtiapi_CheckSMPError(), agtiapi_FreeSMPCCB(), AGTIAPI_PRINTK, _CCB::ccb, CMND_DMA_UNMAP, and _CCB::pccbNext.
Referenced by agtiapi_StartSMP().
STATIC void agtiapi_StartIO | ( | struct agtiapi_softc * | pmcsc | ) |
Definition at line 3085 of file agtiapi.c.
References ACTIVE, AG_GET_DONE_PCCB, AG_IO_DUMPCCB, agNULL, agtiapi_Done(), agtiapi_DumpCCB(), AGTIAPI_IO, AGTIAPI_PRINTK, agtiapi_QueueCCB(), AGTIAPI_RESET, _CCB::ccb, agtiapi_softc::ccbSendHead, agtiapi_softc::ccbSendTail, _CCB::ccbStatus, _CCB::devHandle, flags, agtiapi_softc::flags, INDEX, IOCTL_EVT_SEV_ERROR, IOCTL_EVT_SEV_INFORMATIONAL, maxTargets, NULL, tiDeviceHandle::osData, _CCB::pccbNext, agtiapi_softc::pDevList, _CCB::retryCount, _CCB::scsiStatus, status, _CCB::targetId, _CCB::tdIOReqBody, tiBusy, tiDetailNoLogin, tiDetailOtherError, tiDeviceBusy, tiError, tiINISuperIOStart(), tiInterruptContext, tiIOFailed, tiIONoDevice, _CCB::tiIORequest, agtiapi_softc::tiRoot, tiSuccess, and _CCB::tiSuperScsiRequest.
Referenced by agtiapi_PrepareSGListCB(), and agtiapi_ResetCard().
STATIC void agtiapi_StartSMP | ( | struct agtiapi_softc * | pmcsc | ) |
Definition at line 3298 of file agtiapi.c.
References AG_GET_DONE_SMP_PCCB, AGTIAPI_PRINTK, agtiapi_QueueCCB(), AGTIAPI_RESET, agtiapi_SMPDone(), _CCB::ccb, _CCB::ccbStatus, _CCB::devHandle, _CCB::flags, agtiapi_softc::flags, NULL, _CCB::pccbNext, _CCB::retryCount, agtiapi_softc::smpSendHead, agtiapi_softc::smpSendTail, status, TAG_SMP, _CCB::tdIOReqBody, tiBusy, tiError, tiINISMPStart(), tiInterruptContext, _CCB::tiIORequest, agtiapi_softc::tiRoot, tiSMPFailed, _CCB::tiSMPFrame, and tiSuccess.
Referenced by agtiapi_PrepareSMPSGListCB().
int agtiapi_StartTM | ( | struct agtiapi_softc * | pCard, |
ccb_t * | pccb | ||
) |
Definition at line 2307 of file agtiapi.c.
References ACTIVE, AG_ABORT_TASK, agtiapi_DoSoftReset(), AGTIAPI_FAIL, agtiapi_FreeTMCCB(), agtiapi_GetCCB(), AGTIAPI_PRINTK, AGTIAPI_SUCCESS, agtiapi_softc::devDiscover, _CCB::devHandle, _CCB::flags, _ag_device::flags, INDEX, tiIniScsiCmnd::lun, maxTargets, NULL, pCard, _CCB::pccbIO, agtiapi_softc::pDevList, _CCB::pmcsc, tiSuperScsiInitiatorRequest::scsiCmnd, _CCB::startTime, status, _CCB::targetId, TASK_MANAGEMENT, TASK_SUCCESS, tiIORequest::tdData, tiINIIOAbort(), tiINITaskManagement(), tiIONoDevice, _CCB::tiIORequest, agtiapi_softc::tiRoot, tiSuccess, and _CCB::tiSuperScsiRequest.
Referenced by agtiapi_CheckIOTimeout().
|
static |
Definition at line 6602 of file agtiapi.c.
References AGTIAPI_PRINTK.
STATIC void agtiapi_TITimer | ( | void * | data | ) |
Definition at line 5865 of file agtiapi.c.
References agtiapi_CheckAllVectors(), agtiapi_polling_mode, AGTIAPI_SHUT_DOWN, agtiapi_TITimer(), flags, agtiapi_softc::flags, agtiapi_softc::OS_timer, pCard, agtiapi_softc::pCardInfo, tiCOMTimerTick(), _ag_resource_info::tiLoLevelResource, tiNonInterruptContext, agtiapi_softc::tiRoot, _ag_card_info::tiRscInfo, and USEC_PER_TICK.
Referenced by agtiapi_alloc_requests(), agtiapi_InitCardHW(), and agtiapi_TITimer().
int agtiapi_write | ( | struct cdev * | dev, |
struct uio * | uio, | ||
int | ioflag | ||
) |
Definition at line 279 of file agtiapi.c.
References AGTIAPI_PRINTK, and agtiapi_softc::my_dev.
DRIVER_MODULE | ( | pmspcv | , |
pci | , | ||
pmspcv_driver | , | ||
pmspcv_devclass | , | ||
0 | , | ||
0 | |||
) |
MALLOC_DEFINE | ( | M_PMC_MCCB | , |
"CCB List" | , | ||
"CCB List for PMCS driver" | |||
) |
MALLOC_DEFINE | ( | M_PMC_MDEV | , |
"tiDeviceHandle_t * malloc" | , | ||
"allocated in agtiapi_GetDevHandle as local mem for **agDev" | |||
) |
MALLOC_DEFINE | ( | M_PMC_MDVT | , |
"ag_device_t malloc" | , | ||
"allocated in agtiapi_attach as mem for ag_device_t pDevList" | |||
) |
MALLOC_DEFINE | ( | M_PMC_MFLG | , |
"lDevFlags * malloc" | , | ||
"allocated in agtiapi_GetDevHandle as local mem for * flags" | |||
) |
MALLOC_DEFINE | ( | M_PMC_MPRT | , |
"ag_portal_data_t malloc" | , | ||
"allocated in agtiapi_attach as mem for *pPortalData" | |||
) |
MALLOC_DEFINE | ( | M_PMC_MSTL | , |
"STLock malloc" | , | ||
"allocated in agtiapi_attach as memory for lock use" | |||
) |
MALLOC_DEFINE | ( | TEMP | , |
"tempbuff" | , | ||
"buffer for payload" | |||
) |
MALLOC_DEFINE | ( | TEMP2 | , |
"tempbuff" | , | ||
"buffer for agtiapi_getdevlist" | |||
) |
MODULE_DEPEND | ( | pmspcv | , |
cam | , | ||
1 | , | ||
1 | , | ||
1 | |||
) |
MODULE_DEPEND | ( | pmspcv | , |
pci | , | ||
1 | , | ||
1 | , | ||
1 | |||
) |
STATIC int wwncpy | ( | ag_device_t * | pDevice | ) |
Definition at line 5766 of file agtiapi.c.
References AGTIAPI_PRINTK, _ag_device::devInfo, tiDeviceInfo::osAddress1, tiDeviceInfo::osAddress2, tiDeviceInfo::remoteAddress, tiDeviceInfo::remoteName, _ag_device::targetLen, and _ag_device::targetName.
Referenced by agtiapi_GetDevHandle().
STATIC void wwnprintk | ( | unsigned char * | name, |
int | len | ||
) |
Definition at line 5752 of file agtiapi.c.
References AGTIAPI_PRINTK.
Referenced by agtiapi_GetDevHandle().
Definition at line 96 of file agtiapi.c.
Referenced by agtiapi_ReleaseHBA().
S32 ag_encryption_enable = 0 |
Definition at line 102 of file agtiapi.c.
Referenced by agtiapi_attach().
Definition at line 94 of file agtiapi.c.
Referenced by agtiapi_InitCardHW().
U32 ag_portal_count = 0 |
Definition at line 242 of file agtiapi.c.
Referenced by agtiapi_attach().
Definition at line 99 of file agtiapi.c.
Referenced by agtiapi_attach(), and agtiapi_CheckIOTimeout().
|
static |
Definition at line 216 of file agtiapi.c.
Referenced by agtiapi_attach(), agtiapi_probe(), agtiapi_ProbeCard(), and agtiapi_ReleaseHBA().
Definition at line 98 of file agtiapi.c.
Referenced by agtiapi_ReleaseHBA().
STATIC U08 agtiapi_AddrModes[AGTIAPI_MAX_CHANNEL_NUM+1] |
Definition at line 117 of file agtiapi.c.
Referenced by agtiapi_QueueCmnd_().
|
static |
Definition at line 231 of file agtiapi.c.
Referenced by agtiapi_attach().
Definition at line 93 of file agtiapi.c.
Referenced by agtiapi_CheckAllVectors(), and agtiapi_ReleaseHBA().
|
static |
Definition at line 95 of file agtiapi.c.
Referenced by agtiapi_TITimer().
U32 gTiDebugLevel = 1 |
Definition at line 101 of file agtiapi.c.
Referenced by agtiapi_attach().
U32 maxTargets = 0 |
Definition at line 241 of file agtiapi.c.
Referenced by agtiapi_alloc_requests(), agtiapi_async(), agtiapi_attach(), agtiapi_cam_action(), agtiapi_CheckError(), agtiapi_PrepareSGListCB(), agtiapi_PrepareSMPSGListCB(), agtiapi_QueueCmnd_(), agtiapi_ResetCard(), agtiapi_StartIO(), and agtiapi_StartTM().
atomic_t outstanding_encrypted_io_count |
Definition at line 103 of file agtiapi.c.
Referenced by agtiapi_InitCardSW(), and agtiapi_ReleaseHBA().
|
static |