Linux Kernel
3.7.1
|
#include "mpi/mpi2_type.h"
#include "mpi/mpi2.h"
#include "mpi/mpi2_ioc.h"
#include "mpi/mpi2_cnfg.h"
#include "mpi/mpi2_init.h"
#include "mpi/mpi2_raid.h"
#include "mpi/mpi2_tool.h"
#include "mpi/mpi2_sas.h"
#include <scsi/scsi.h>
#include <scsi/scsi_cmnd.h>
#include <scsi/scsi_device.h>
#include <scsi/scsi_host.h>
#include <scsi/scsi_tcq.h>
#include <scsi/scsi_transport_sas.h>
#include <scsi/scsi_dbg.h>
#include <scsi/scsi_eh.h>
#include "mpt2sas_debug.h"
Go to the source code of this file.
Data Structures | |
struct | MPT2SAS_TARGET |
struct | _MPI2_CONFIG_PAGE_MAN_10 |
struct | MPT2SAS_DEVICE |
struct | _internal_cmd |
struct | _sas_device |
struct | _raid_device |
struct | _boot_device |
struct | _sas_port |
struct | _sas_phy |
struct | _sas_node |
struct | chain_tracker |
struct | scsiio_tracker |
struct | request_tracker |
struct | _tr_list |
struct | adapter_reply_queue |
union | mpi2_version_union |
struct | mpt2sas_facts |
struct | mpt2sas_port_facts |
struct | MPT2SAS_ADAPTER |
Typedefs | |
typedef struct _MPI2_CONFIG_PAGE_MAN_10 | MPI2_CONFIG_PAGE_MAN_10 |
typedef struct _MPI2_CONFIG_PAGE_MAN_10 | PTR_MPI2_CONFIG_PAGE_MAN_10 |
typedef struct _MPI2_CONFIG_PAGE_MAN_10 | Mpi2ManufacturingPage10_t |
typedef struct _MPI2_CONFIG_PAGE_MAN_10 | pMpi2ManufacturingPage10_t |
typedef void(* | MPT_ADD_SGE )(void *paddr, u32 flags_length, dma_addr_t dma_addr) |
Enumerations | |
enum | reset_type { RESET_TYPE_INVISIBLE = 0, RESET_TYPE_ALL = 1, RESET_TYPE_WORLD = 2, RESET_TYPE_DISABLE = 3, RESET_TYPE_MAX_METHOD, RESET_TYPE_TX_WATCHDOG, RESET_TYPE_INT_ERROR, RESET_TYPE_RX_RECOVERY, RESET_TYPE_RX_DESC_FETCH, RESET_TYPE_TX_DESC_FETCH, RESET_TYPE_TX_SKIP, RESET_TYPE_MC_FAILURE, RESET_TYPE_MAX, FORCE_BIG_HAMMER, SOFT_RESET, RESET_TYPE_NORESET = 0x00, RESET_TYPE_NORMAL = 0x01, RESET_TYPE_SILENT = 0x02 } |
: the name registered to request_irq() | |
struct adapter_reply_queue - the reply queue struct : per adapter object : msix index into vector table : irq vector : head index in the pool where FW completes IO : reply post base virt address : isr is actively processing replies on another cpu : this list | |
enum | mutex_type { TM_MUTEX_OFF = 0, TM_MUTEX_ON = 1 } |
typedef void(* | MPT2SAS_FLUSH_RUNNING_CMDS )(struct MPT2SAS_ADAPTER *ioc) |
#define CAN_SLEEP 1 |
Definition at line 107 of file mpt2sas_base.h.
Definition at line 110 of file mpt2sas_base.h.
#define MFG10_GF0_OCE_DISABLED (0x00000001) |
Definition at line 271 of file mpt2sas_base.h.
#define MFG10_GF0_R10_DISPLAY (0x00000004) |
Definition at line 273 of file mpt2sas_base.h.
#define MFG10_GF0_R1E_DRIVE_COUNT (0x00000002) |
Definition at line 272 of file mpt2sas_base.h.
#define MFG10_GF0_SINGLE_DRIVE_R0 (0x00000010) |
Definition at line 275 of file mpt2sas_base.h.
#define MFG10_GF0_SSD_DATA_SCRUB_DISABLE (0x00000008) |
Definition at line 274 of file mpt2sas_base.h.
#define MFG10_OEM_ID_DELL (0x00000001) |
Definition at line 265 of file mpt2sas_base.h.
#define MFG10_OEM_ID_FSC (0x00000002) |
Definition at line 266 of file mpt2sas_base.h.
#define MFG10_OEM_ID_IBM (0x00000004) |
Definition at line 268 of file mpt2sas_base.h.
#define MFG10_OEM_ID_INVALID (0x00000000) |
struct MPT2SAS_DEVICE - sdev private hostdata : starget private hostdata : lun number : MPT_DEVICE_XXX flags : lun is configured : device is in SDEV_BLOCK state : flag used in determining whether to disable TLR
Definition at line 264 of file mpt2sas_base.h.
#define MFG10_OEM_ID_SUN (0x00000003) |
Definition at line 267 of file mpt2sas_base.h.
#define MFG_PAGE10_EXPOSE_ALL_DISKS (0x01) |
Definition at line 296 of file mpt2sas_base.h.
#define MFG_PAGE10_HIDE_ALL_DISKS (0x00) |
Definition at line 295 of file mpt2sas_base.h.
#define MFG_PAGE10_HIDE_IF_VOL_PRESENT (0x02) |
Definition at line 297 of file mpt2sas_base.h.
#define MFG_PAGE10_HIDE_SSDS_MASK (0x00000003) |
Definition at line 294 of file mpt2sas_base.h.
#define MPI2_HIM_MASK 0xFFFFFFFF /* mask every bit*/ |
Definition at line 112 of file mpt2sas_base.h.
#define MPT2_CMD_COMPLETE 0x0001 /* completed */ |
Definition at line 310 of file mpt2sas_base.h.
#define MPT2_CMD_NOT_USED 0x8000 /* free */ |
Definition at line 309 of file mpt2sas_base.h.
#define MPT2_CMD_PENDING 0x0002 /* pending */ |
Definition at line 311 of file mpt2sas_base.h.
#define MPT2_CMD_REPLY_VALID 0x0004 /* reply is valid */ |
Definition at line 312 of file mpt2sas_base.h.
#define MPT2_CMD_RESET 0x0008 /* host reset dropped the command */ |
Definition at line 313 of file mpt2sas_base.h.
Definition at line 121 of file mpt2sas_base.h.
#define MPT2_IOC_DONE_RESET 3 /* links re-initialized */ |
Definition at line 122 of file mpt2sas_base.h.
Definition at line 120 of file mpt2sas_base.h.
#define MPT2_WARPDRIVE_LC_BRMF (0x4D) |
Definition at line 215 of file mpt2sas_base.h.
#define MPT2_WARPDRIVE_LC_SSDLF (0x44) |
Definition at line 214 of file mpt2sas_base.h.
#define MPT2_WARPDRIVE_LC_SSDLW (0x43) |
Definition at line 213 of file mpt2sas_base.h.
#define MPT2_WARPDRIVE_LC_SSDT (0x41) |
Definition at line 212 of file mpt2sas_base.h.
#define MPT2_WARPDRIVE_LOGENTRY (0x8002) |
Definition at line 211 of file mpt2sas_base.h.
#define MPT2SAS_AUTHOR "LSI Corporation <[email protected]>" |
Definition at line 70 of file mpt2sas_base.h.
#define MPT2SAS_BUILD_VERSION 00 |
Definition at line 75 of file mpt2sas_base.h.
#define MPT2SAS_DELL_6GBPS_SAS_BRANDING "Dell 6Gbps SAS" |
Definition at line 144 of file mpt2sas_base.h.
#define MPT2SAS_DELL_6GBPS_SAS_HBA_BRANDING "Dell 6Gbps SAS HBA" |
Definition at line 138 of file mpt2sas_base.h.
#define MPT2SAS_DELL_6GBPS_SAS_HBA_SSDID 0x1F1C |
Definition at line 149 of file mpt2sas_base.h.
#define MPT2SAS_DELL_6GBPS_SAS_SSDID 0x1F22 |
Definition at line 155 of file mpt2sas_base.h.
#define MPT2SAS_DELL_BRANDING_SIZE 32 |
Definition at line 136 of file mpt2sas_base.h.
#define MPT2SAS_DELL_PERC_H200_ADAPTER_BRANDING "Dell PERC H200 Adapter" |
Definition at line 139 of file mpt2sas_base.h.
#define MPT2SAS_DELL_PERC_H200_ADAPTER_SSDID 0x1F1D |
Definition at line 150 of file mpt2sas_base.h.
#define MPT2SAS_DELL_PERC_H200_BRANDING "Dell PERC H200" |
Definition at line 143 of file mpt2sas_base.h.
#define MPT2SAS_DELL_PERC_H200_EMBEDDED_BRANDING "Dell PERC H200 Embedded" |
Definition at line 142 of file mpt2sas_base.h.
#define MPT2SAS_DELL_PERC_H200_EMBEDDED_SSDID 0x1F20 |
Definition at line 153 of file mpt2sas_base.h.
#define MPT2SAS_DELL_PERC_H200_INTEGRATED_BRANDING "Dell PERC H200 Integrated" |
Definition at line 140 of file mpt2sas_base.h.
#define MPT2SAS_DELL_PERC_H200_INTEGRATED_SSDID 0x1F1E |
Definition at line 151 of file mpt2sas_base.h.
#define MPT2SAS_DELL_PERC_H200_MODULAR_BRANDING "Dell PERC H200 Modular" |
Definition at line 141 of file mpt2sas_base.h.
#define MPT2SAS_DELL_PERC_H200_MODULAR_SSDID 0x1F1F |
Definition at line 152 of file mpt2sas_base.h.
#define MPT2SAS_DELL_PERC_H200_SSDID 0x1F21 |
Definition at line 154 of file mpt2sas_base.h.
Definition at line 71 of file mpt2sas_base.h.
#define MPT2SAS_DRIVER_NAME "mpt2sas" |
Definition at line 69 of file mpt2sas_base.h.
#define MPT2SAS_DRIVER_VERSION "14.100.00.00" |
Definition at line 72 of file mpt2sas_base.h.
#define MPT2SAS_ERR_FMT KERN_ERR MPT2SAS_FMT |
Definition at line 131 of file mpt2sas_base.h.
#define MPT2SAS_FMT "%s: " |
Definition at line 127 of file mpt2sas_base.h.
#define MPT2SAS_HP_1_4_INTERNAL_1_4_EXTERNAL_BRANDING "HP H222 Host Bus Adapter" |
Definition at line 194 of file mpt2sas_base.h.
#define MPT2SAS_HP_1_4_INTERNAL_1_4_EXTERNAL_SSDID 0x0043 |
Definition at line 203 of file mpt2sas_base.h.
#define MPT2SAS_HP_2_4_EXTERNAL_BRANDING "HP H221 Host Bus Adapter" |
Definition at line 193 of file mpt2sas_base.h.
#define MPT2SAS_HP_2_4_EXTERNAL_SSDID 0x0042 |
Definition at line 202 of file mpt2sas_base.h.
#define MPT2SAS_HP_2_4_INTERNAL_BRANDING "HP H220 Host Bus Adapter" |
Definition at line 192 of file mpt2sas_base.h.
#define MPT2SAS_HP_2_4_INTERNAL_SSDID 0x0041 |
Definition at line 201 of file mpt2sas_base.h.
#define MPT2SAS_HP_3PAR_SSVID 0x1590 |
Definition at line 191 of file mpt2sas_base.h.
#define MPT2SAS_HP_DAUGHTER_2_4_INTERNAL_BRANDING "HP H210i Host Bus Adapter" |
Definition at line 196 of file mpt2sas_base.h.
#define MPT2SAS_HP_DAUGHTER_2_4_INTERNAL_SSDID 0x0046 |
Definition at line 205 of file mpt2sas_base.h.
#define MPT2SAS_HP_EMBEDDED_2_4_INTERNAL_BRANDING "HP H220i Host Bus Adapter" |
Definition at line 195 of file mpt2sas_base.h.
#define MPT2SAS_HP_EMBEDDED_2_4_INTERNAL_SSDID 0x0044 |
Definition at line 204 of file mpt2sas_base.h.
#define MPT2SAS_INFO_FMT KERN_INFO MPT2SAS_FMT |
Definition at line 128 of file mpt2sas_base.h.
#define MPT2SAS_INTEL_RMS25JB040_BRANDING "Intel(R) Integrated RAID Module RMS25JB040" |
Definition at line 162 of file mpt2sas_base.h.
#define MPT2SAS_INTEL_RMS25JB040_SSDID 0x3517 |
Definition at line 180 of file mpt2sas_base.h.
#define MPT2SAS_INTEL_RMS25JB080_BRANDING "Intel(R) Integrated RAID Module RMS25JB080" |
Definition at line 160 of file mpt2sas_base.h.
#define MPT2SAS_INTEL_RMS25JB080_SSDID 0x3516 |
Definition at line 179 of file mpt2sas_base.h.
#define MPT2SAS_INTEL_RMS25KB040_BRANDING "Intel(R) Integrated RAID Module RMS25KB040" |
Definition at line 166 of file mpt2sas_base.h.
#define MPT2SAS_INTEL_RMS25KB040_SSDID 0x3519 |
Definition at line 182 of file mpt2sas_base.h.
#define MPT2SAS_INTEL_RMS25KB080_BRANDING "Intel(R) Integrated RAID Module RMS25KB080" |
Definition at line 164 of file mpt2sas_base.h.
#define MPT2SAS_INTEL_RMS25KB080_SSDID 0x3518 |
Definition at line 181 of file mpt2sas_base.h.
#define MPT2SAS_INTEL_RMS2LL040_BRANDING "Intel Integrated RAID Module RMS2LL040" |
Definition at line 170 of file mpt2sas_base.h.
#define MPT2SAS_INTEL_RMS2LL040_SSDID 0x350F |
Definition at line 184 of file mpt2sas_base.h.
#define MPT2SAS_INTEL_RMS2LL080_BRANDING "Intel Integrated RAID Module RMS2LL080" |
Definition at line 168 of file mpt2sas_base.h.
#define MPT2SAS_INTEL_RMS2LL080_SSDID 0x350E |
Definition at line 183 of file mpt2sas_base.h.
#define MPT2SAS_INTEL_RS25GB008_BRANDING "Intel(R) RAID Controller RS25GB008" |
Definition at line 172 of file mpt2sas_base.h.
#define MPT2SAS_INTEL_RS25GB008_SSDID 0x3000 |
Definition at line 185 of file mpt2sas_base.h.
#define MPT2SAS_INTEL_SSD910_BRANDING "Intel(R) SSD 910 Series" |
Definition at line 174 of file mpt2sas_base.h.
#define MPT2SAS_INTEL_SSD910_SSDID 0x3700 |
Definition at line 186 of file mpt2sas_base.h.
#define MPT2SAS_INVALID_DEVICE_HANDLE 0xFFFF |
Definition at line 114 of file mpt2sas_base.h.
#define MPT2SAS_MAJOR_VERSION 14 |
Definition at line 73 of file mpt2sas_base.h.
#define MPT2SAS_MINOR_VERSION 100 |
Definition at line 74 of file mpt2sas_base.h.
#define MPT2SAS_NOTE_FMT KERN_NOTICE MPT2SAS_FMT |
Definition at line 129 of file mpt2sas_base.h.
#define MPT2SAS_RAID_QUEUE_DEPTH 128 |
Definition at line 99 of file mpt2sas_base.h.
#define MPT2SAS_RELEASE_VERSION 00 |
Definition at line 76 of file mpt2sas_base.h.
#define MPT2SAS_SAS_QUEUE_DEPTH 254 |
Definition at line 98 of file mpt2sas_base.h.
#define MPT2SAS_SATA_QUEUE_DEPTH 32 |
Definition at line 97 of file mpt2sas_base.h.
#define MPT2SAS_SG_DEPTH 128 /* MAX_HW_SEGMENTS */ |
Definition at line 90 of file mpt2sas_base.h.
#define MPT2SAS_WARN_FMT KERN_WARNING MPT2SAS_FMT |
Definition at line 130 of file mpt2sas_base.h.
#define MPT_DEVICE_FLAGS_INIT 0x01 |
Definition at line 250 of file mpt2sas_base.h.
#define MPT_DEVICE_TLR_ON 0x02 |
Definition at line 251 of file mpt2sas_base.h.
#define MPT_MAX_CALLBACKS 16 |
Definition at line 104 of file mpt2sas_base.h.
#define MPT_MAX_WARPDRIVE_PDS 8 |
struct _raid_device - raid volume link list : sas device list : starget object : scsi device struct (volumes are single lun) : unique identifier for the volume : device handle : Block size of the volume : target id : target channel : the raid level : bitfield provides detailed info about the hidden components : number of hidden raid components : used in _scsih_raid_device_mark_responding : resync percent complete : Whether direct io to PDs are allowed or not : X where 2powX is the stripe sz in blocks : X where 2powX is the block sz in bytes : Maximum number of LBA in the volume : Stripe Size of the volume : Device info of the volume member disk : Array of handles of the physical drives for direct I/O in le16
Definition at line 395 of file mpt2sas_base.h.
#define MPT_NAME_LENGTH 32 /* generic length of strings */ |
Definition at line 101 of file mpt2sas_base.h.
#define MPT_STRING_LENGTH 64 |
Definition at line 102 of file mpt2sas_base.h.
#define MPT_TARGET_FLAGS_DELETED 0x04 |
Definition at line 222 of file mpt2sas_base.h.
#define MPT_TARGET_FLAGS_RAID_COMPONENT 0x01 |
Definition at line 220 of file mpt2sas_base.h.
#define MPT_TARGET_FLAGS_VOLUME 0x02 |
Definition at line 221 of file mpt2sas_base.h.
#define NO_SLEEP 0 |
Definition at line 108 of file mpt2sas_base.h.
typedef void(* MPT2SAS_FLUSH_RUNNING_CMDS)(struct MPT2SAS_ADAPTER *ioc) |
Definition at line 641 of file mpt2sas_base.h.
Definition at line 560 of file mpt2sas_base.h.
Definition at line 993 of file mpt2sas_base.h.
enum mutex_type |
enum mutex_type - task management mutex type : mutex is not required becuase calling function is acquiring it : mutex is required
Definition at line 636 of file mpt2sas_base.h.
enum reset_type |
enum reset_type - reset state : issue diagnostic reset : issue message_unit_reset, if fails to to big hammer
Definition at line 502 of file mpt2sas_base.h.
int mpt2sas_base_attach | ( | struct MPT2SAS_ADAPTER * | ioc | ) |
mpt2sas_base_attach - attach controller instance : per adapter object
Returns 0 for success, non-zero for failure.
Definition at line 4226 of file mpt2sas_base.c.
void mpt2sas_base_build_zero_len_sge | ( | struct MPT2SAS_ADAPTER * | ioc, |
void * | paddr | ||
) |
mpt2sas_base_build_zero_len_sge - build zero length sg entry : per adapter object : virtual address for SGE
Create a zero length scatter gather entry to insure the IOCs hardware has something to use if the target device goes brain dead and tries to send data even when none is asked for.
Return nothing.
Definition at line 1106 of file mpt2sas_base.c.
void mpt2sas_base_detach | ( | struct MPT2SAS_ADAPTER * | ioc | ) |
mpt2sas_base_detach - remove controller instance : per adapter object
Return nothing.
Definition at line 4430 of file mpt2sas_base.c.
mpt2sas_base_done - base internal command completion routine : per adapter object : system request message index : MSIX table index supplied by the OS : reply message frame(lower 32bit addr)
Return 1 meaning mf should be freed from _base_interrupt 0 means the mf is freed from this function.
Definition at line 730 of file mpt2sas_base.c.
void mpt2sas_base_fault_info | ( | struct MPT2SAS_ADAPTER * | ioc, |
u16 | fault_code | ||
) |
mpt2sas_base_fault_info - verbose translation of firmware FAULT code : per adapter object : fault code
Return nothing.
Definition at line 282 of file mpt2sas_base.c.
void mpt2sas_base_flush_reply_queues | ( | struct MPT2SAS_ADAPTER * | ioc | ) |
mpt2sas_base_flush_reply_queues - flushing the MSIX reply queues : per adapter object Context: ISR conext
Called when a Task Management request has completed. We want to flush the other reply queues so all the outstanding IO has been completed back to OS before we process the TM completetion.
Return nothing.
Definition at line 1029 of file mpt2sas_base.c.
void mpt2sas_base_free_resources | ( | struct MPT2SAS_ADAPTER * | ioc | ) |
mpt2sas_base_free_resources - free resources controller resources (io/irq/memap) : per adapter object
Return nothing.
Definition at line 4197 of file mpt2sas_base.c.
void mpt2sas_base_free_smid | ( | struct MPT2SAS_ADAPTER * | ioc, |
u16 | smid | ||
) |
mpt2sas_base_free_smid - put smid back on free_list : per adapter object : system request message index
Return nothing.
Definition at line 1717 of file mpt2sas_base.c.
u32 mpt2sas_base_get_iocstate | ( | struct MPT2SAS_ADAPTER * | ioc, |
int | cooked | ||
) |
mpt2sas_base_get_iocstate - Get the current state of a MPT adapter. : Pointer to MPT_ADAPTER structure : Request raw or cooked IOC state
Returns all IOC Doorbell register bits if cooked==0, else just the Doorbell bits in MPI_IOC_STATE_MASK.
Definition at line 2788 of file mpt2sas_base.c.
void* mpt2sas_base_get_msg_frame | ( | struct MPT2SAS_ADAPTER * | ioc, |
u16 | smid | ||
) |
mpt2sas_base_get_msg_frame - obtain request mf pointer : per adapter object : system request message index(smid zero is invalid)
Returns virt pointer to message frame.
Definition at line 1567 of file mpt2sas_base.c.
void* mpt2sas_base_get_reply_virt_addr | ( | struct MPT2SAS_ADAPTER * | ioc, |
u32 | phys_addr | ||
) |
mpt2sas_base_get_reply_virt_addr - obtain reply frames virt address : per adapter object : lower 32 physical addr of the reply
Converts 32bit lower physical addr into a virt address.
Definition at line 1607 of file mpt2sas_base.c.
void* mpt2sas_base_get_sense_buffer | ( | struct MPT2SAS_ADAPTER * | ioc, |
u16 | smid | ||
) |
mpt2sas_base_get_sense_buffer - obtain a sense buffer assigned to a mf request : per adapter object : system request message index
Returns virt pointer to sense buffer.
Definition at line 1580 of file mpt2sas_base.c.
__le32 mpt2sas_base_get_sense_buffer_dma | ( | struct MPT2SAS_ADAPTER * | ioc, |
u16 | smid | ||
) |
mpt2sas_base_get_sense_buffer_dma - obtain a sense buffer assigned to a mf request : per adapter object : system request message index
Returns phys pointer to the low 32bit address of the sense buffer.
Definition at line 1593 of file mpt2sas_base.c.
u16 mpt2sas_base_get_smid | ( | struct MPT2SAS_ADAPTER * | ioc, |
u8 | cb_idx | ||
) |
mpt2sas_base_get_smid - obtain a free smid from internal queue : per adapter object : callback index
Returns smid (zero is invalid)
Definition at line 1622 of file mpt2sas_base.c.
u16 mpt2sas_base_get_smid_hpr | ( | struct MPT2SAS_ADAPTER * | ioc, |
u8 | cb_idx | ||
) |
mpt2sas_base_get_smid_hpr - obtain a free smid from hi-priority queue : per adapter object : callback index
Returns smid (zero is invalid)
Definition at line 1687 of file mpt2sas_base.c.
u16 mpt2sas_base_get_smid_scsiio | ( | struct MPT2SAS_ADAPTER * | ioc, |
u8 | cb_idx, | ||
struct scsi_cmnd * | scmd | ||
) |
mpt2sas_base_get_smid_scsiio - obtain a free smid from scsiio queue : per adapter object : callback index : pointer to scsi command object
Returns smid (zero is invalid)
Definition at line 1654 of file mpt2sas_base.c.
int mpt2sas_base_hard_reset_handler | ( | struct MPT2SAS_ADAPTER * | ioc, |
int | sleep_flag, | ||
enum reset_type | type | ||
) |
mpt2sas_base_hard_reset_handler - reset controller : Pointer to MPT_ADAPTER structure : CAN_SLEEP or NO_SLEEP : FORCE_BIG_HAMMER or SOFT_RESET
Returns 0 for success, non-zero for failure.
Definition at line 4565 of file mpt2sas_base.c.
mpt2sas_base_initialize_callback_handler - initialize the interrupt callback handler
Return nothing.
Definition at line 1086 of file mpt2sas_base.c.
int mpt2sas_base_map_resources | ( | struct MPT2SAS_ADAPTER * | ioc | ) |
mpt2sas_base_map_resources - map in controller resources (io/irq/memap) : per adapter object
Returns 0 for success, non-zero for failure.
Definition at line 1463 of file mpt2sas_base.c.
void mpt2sas_base_put_smid_default | ( | struct MPT2SAS_ADAPTER * | ioc, |
u16 | smid | ||
) |
mpt2sas_base_put_smid_default - Default, primarily used for config pages : per adapter object : system request message index
Return nothing.
Definition at line 1861 of file mpt2sas_base.c.
void mpt2sas_base_put_smid_hi_priority | ( | struct MPT2SAS_ADAPTER * | ioc, |
u16 | smid | ||
) |
mpt2sas_base_put_smid_hi_priority - send Task Management request to firmware : per adapter object : system request message index
Return nothing.
Definition at line 1838 of file mpt2sas_base.c.
void mpt2sas_base_put_smid_scsi_io | ( | struct MPT2SAS_ADAPTER * | ioc, |
u16 | smid, | ||
u16 | handle | ||
) |
mpt2sas_base_put_smid_scsi_io - send SCSI_IO request to firmware : per adapter object : system request message index : device handle
Return nothing.
Definition at line 1814 of file mpt2sas_base.c.
void mpt2sas_base_put_smid_target_assist | ( | struct MPT2SAS_ADAPTER * | ioc, |
u16 | smid, | ||
u16 | io_index | ||
) |
mpt2sas_base_put_smid_target_assist - send Target Assist/Status to firmware : per adapter object : system request message index : value used to track the IO
Return nothing.
Definition at line 1884 of file mpt2sas_base.c.
u8 mpt2sas_base_register_callback_handler | ( | MPT_CALLBACK | cb_func | ) |
mpt2sas_base_register_callback_handler - obtain index for the interrupt callback handler : callback function
Returns cb_func.
Definition at line 1068 of file mpt2sas_base.c.
mpt2sas_base_release_callback_handler - clear interrupt callback handler : callback index
Return nothing.
Definition at line 1056 of file mpt2sas_base.c.
int mpt2sas_base_sas_iounit_control | ( | struct MPT2SAS_ADAPTER * | ioc, |
Mpi2SasIoUnitControlReply_t * | mpi_reply, | ||
Mpi2SasIoUnitControlRequest_t * | mpi_request | ||
) |
mpt2sas_base_sas_iounit_control - send sas iounit control to FW : per adapter object : the reply payload from FW : the request payload sent to FW
The SAS IO Unit Control Request message allows the host to perform low-level operations, such as resets on the PHYs of the IO Unit, also allows the host to obtain the IOC assigned device handles for a device if it has other identifying information about the device, in addition allows the host to remove IOC resources associated with the device.
Returns 0 for success, non-zero for failure.
Definition at line 3139 of file mpt2sas_base.c.
int mpt2sas_base_scsi_enclosure_processor | ( | struct MPT2SAS_ADAPTER * | ioc, |
Mpi2SepReply_t * | mpi_reply, | ||
Mpi2SepRequest_t * | mpi_request | ||
) |
mpt2sas_base_scsi_enclosure_processor - sending request to sep device : per adapter object : the reply payload from FW : the request payload sent to FW
The SCSI Enclosure Processor request message causes the IOC to communicate with SES devices to control LED status signals.
Returns 0 for success, non-zero for failure.
Definition at line 3245 of file mpt2sas_base.c.
void mpt2sas_base_start_watchdog | ( | struct MPT2SAS_ADAPTER * | ioc | ) |
mpt2sas_base_start_watchdog - start the fault_reset_work_q : per adapter object Context: sleep.
Return nothing.
Definition at line 224 of file mpt2sas_base.c.
void mpt2sas_base_stop_watchdog | ( | struct MPT2SAS_ADAPTER * | ioc | ) |
mpt2sas_base_stop_watchdog - stop the fault_reset_work_q : per adapter object Context: sleep.
Return nothing.
Definition at line 258 of file mpt2sas_base.c.
void mpt2sas_base_validate_event_type | ( | struct MPT2SAS_ADAPTER * | ioc, |
u32 * | event_type | ||
) |
mpt2sas_base_validate_event_type - validating event types : per adapter object : firmware event
This will turn on firmware event notification when application ask for that event. We don't mask events that are already enabled.
Definition at line 3834 of file mpt2sas_base.c.
mpt2sas_config_done - config page completion routine : per adapter object : system request message index : MSIX table index supplied by the OS : reply message frame(lower 32bit addr) Context: none.
The callback handler when using _config_request.
Return 1 meaning mf should be freed from _base_interrupt 0 means the mf is freed from this function.
Definition at line 240 of file mpt2sas_config.c.
int mpt2sas_config_get_bios_pg2 | ( | struct MPT2SAS_ADAPTER * | ioc, |
Mpi2ConfigReply_t * | mpi_reply, | ||
Mpi2BiosPage2_t * | config_page | ||
) |
mpt2sas_config_get_bios_pg2 - obtain bios page 2 : per adapter object : reply mf payload returned from firmware : contents of the config page Context: sleep.
Returns 0 for success, non-zero for failure.
Definition at line 515 of file mpt2sas_config.c.
int mpt2sas_config_get_bios_pg3 | ( | struct MPT2SAS_ADAPTER * | ioc, |
Mpi2ConfigReply_t * | mpi_reply, | ||
Mpi2BiosPage3_t * | config_page | ||
) |
mpt2sas_config_get_bios_pg3 - obtain bios page 3 : per adapter object : reply mf payload returned from firmware : contents of the config page Context: sleep.
Returns 0 for success, non-zero for failure.
Definition at line 551 of file mpt2sas_config.c.
int mpt2sas_config_get_enclosure_pg0 | ( | struct MPT2SAS_ADAPTER * | ioc, |
Mpi2ConfigReply_t * | mpi_reply, | ||
Mpi2SasEnclosurePage0_t * | config_page, | ||
u32 | form, | ||
u32 | handle | ||
) |
mpt2sas_config_get_enclosure_pg0 - obtain enclosure page 0 : per adapter object : reply mf payload returned from firmware : contents of the config page : GET_NEXT_HANDLE or HANDLE : expander handle Context: sleep.
Returns 0 for success, non-zero for failure.
Definition at line 1100 of file mpt2sas_config.c.
int mpt2sas_config_get_expander_pg0 | ( | struct MPT2SAS_ADAPTER * | ioc, |
Mpi2ConfigReply_t * | mpi_reply, | ||
Mpi2ExpanderPage0_t * | config_page, | ||
u32 | form, | ||
u32 | handle | ||
) |
mpt2sas_config_get_expander_pg0 - obtain expander page 0 : per adapter object : reply mf payload returned from firmware : contents of the config page : GET_NEXT_HANDLE or HANDLE : expander handle Context: sleep.
Returns 0 for success, non-zero for failure.
Definition at line 1017 of file mpt2sas_config.c.
int mpt2sas_config_get_expander_pg1 | ( | struct MPT2SAS_ADAPTER * | ioc, |
Mpi2ConfigReply_t * | mpi_reply, | ||
Mpi2ExpanderPage1_t * | config_page, | ||
u32 | phy_number, | ||
u16 | handle | ||
) |
mpt2sas_config_get_expander_pg1 - obtain expander page 1 : per adapter object : reply mf payload returned from firmware : contents of the config page : phy number : expander handle Context: sleep.
Returns 0 for success, non-zero for failure.
Definition at line 1057 of file mpt2sas_config.c.
int mpt2sas_config_get_ioc_pg8 | ( | struct MPT2SAS_ADAPTER * | ioc, |
Mpi2ConfigReply_t * | mpi_reply, | ||
Mpi2IOCPage8_t * | config_page | ||
) |
mpt2sas_config_get_ioc_pg8 - obtain ioc page 8 : per adapter object : reply mf payload returned from firmware : contents of the config page Context: sleep.
Returns 0 for success, non-zero for failure.
Definition at line 731 of file mpt2sas_config.c.
int mpt2sas_config_get_iounit_pg0 | ( | struct MPT2SAS_ADAPTER * | ioc, |
Mpi2ConfigReply_t * | mpi_reply, | ||
Mpi2IOUnitPage0_t * | config_page | ||
) |
mpt2sas_config_get_iounit_pg0 - obtain iounit page 0 : per adapter object : reply mf payload returned from firmware : contents of the config page Context: sleep.
Returns 0 for success, non-zero for failure.
Definition at line 587 of file mpt2sas_config.c.
int mpt2sas_config_get_iounit_pg1 | ( | struct MPT2SAS_ADAPTER * | ioc, |
Mpi2ConfigReply_t * | mpi_reply, | ||
Mpi2IOUnitPage1_t * | config_page | ||
) |
mpt2sas_config_get_iounit_pg1 - obtain iounit page 1 : per adapter object : reply mf payload returned from firmware : contents of the config page Context: sleep.
Returns 0 for success, non-zero for failure.
Definition at line 623 of file mpt2sas_config.c.
int mpt2sas_config_get_iounit_pg3 | ( | struct MPT2SAS_ADAPTER * | ioc, |
Mpi2ConfigReply_t * | mpi_reply, | ||
Mpi2IOUnitPage3_t * | config_page, | ||
u16 | sz | ||
) |
mpt2sas_config_get_iounit_pg3 - obtain iounit page 3 : per adapter object : reply mf payload returned from firmware : contents of the config page : size of buffer passed in config_page Context: sleep.
Returns 0 for success, non-zero for failure.
Definition at line 696 of file mpt2sas_config.c.
int mpt2sas_config_get_manufacturing_pg0 | ( | struct MPT2SAS_ADAPTER * | ioc, |
Mpi2ConfigReply_t * | mpi_reply, | ||
Mpi2ManufacturingPage0_t * | config_page | ||
) |
mpt2sas_config_get_manufacturing_pg0 - obtain manufacturing page 0 : per adapter object : reply mf payload returned from firmware : contents of the config page Context: sleep.
Returns 0 for success, non-zero for failure.
Definition at line 443 of file mpt2sas_config.c.
int mpt2sas_config_get_manufacturing_pg10 | ( | struct MPT2SAS_ADAPTER * | ioc, |
Mpi2ConfigReply_t * | mpi_reply, | ||
Mpi2ManufacturingPage10_t * | config_page | ||
) |
mpt2sas_config_get_manufacturing_pg10 - obtain manufacturing page 10 : per adapter object : reply mf payload returned from firmware : contents of the config page Context: sleep.
Returns 0 for success, non-zero for failure.
Definition at line 479 of file mpt2sas_config.c.
int mpt2sas_config_get_number_hba_phys | ( | struct MPT2SAS_ADAPTER * | ioc, |
u8 * | num_phys | ||
) |
mpt2sas_config_get_number_hba_phys - obtain number of phys on the host : per adapter object : pointer returned with the number of phys Context: sleep.
Returns 0 for success, non-zero for failure.
Definition at line 846 of file mpt2sas_config.c.
int mpt2sas_config_get_number_pds | ( | struct MPT2SAS_ADAPTER * | ioc, |
u16 | handle, | ||
u8 * | num_pds | ||
) |
mpt2sas_config_get_number_pds - obtain number of phys disk assigned to volume : per adapter object : volume handle : returns pds count Context: sleep.
Returns 0 for success, non-zero for failure.
Definition at line 1258 of file mpt2sas_config.c.
int mpt2sas_config_get_phy_pg0 | ( | struct MPT2SAS_ADAPTER * | ioc, |
Mpi2ConfigReply_t * | mpi_reply, | ||
Mpi2SasPhyPage0_t * | config_page, | ||
u32 | phy_number | ||
) |
mpt2sas_config_get_phy_pg0 - obtain phy page 0 : per adapter object : reply mf payload returned from firmware : contents of the config page : phy number Context: sleep.
Returns 0 for success, non-zero for failure.
Definition at line 1139 of file mpt2sas_config.c.
int mpt2sas_config_get_phy_pg1 | ( | struct MPT2SAS_ADAPTER * | ioc, |
Mpi2ConfigReply_t * | mpi_reply, | ||
Mpi2SasPhyPage1_t * | config_page, | ||
u32 | phy_number | ||
) |
mpt2sas_config_get_phy_pg1 - obtain phy page 1 : per adapter object : reply mf payload returned from firmware : contents of the config page : phy number Context: sleep.
Returns 0 for success, non-zero for failure.
Definition at line 1179 of file mpt2sas_config.c.
int mpt2sas_config_get_phys_disk_pg0 | ( | struct MPT2SAS_ADAPTER * | ioc, |
Mpi2ConfigReply_t * | mpi_reply, | ||
Mpi2RaidPhysDiskPage0_t * | config_page, | ||
u32 | form, | ||
u32 | form_specific | ||
) |
mpt2sas_config_get_phys_disk_pg0 - obtain phys disk page 0 : per adapter object : reply mf payload returned from firmware : contents of the config page : GET_NEXT_PHYSDISKNUM, PHYSDISKNUM, DEVHANDLE : specific to the form Context: sleep.
Returns 0 for success, non-zero for failure.
Definition at line 1349 of file mpt2sas_config.c.
int mpt2sas_config_get_raid_volume_pg0 | ( | struct MPT2SAS_ADAPTER * | ioc, |
Mpi2ConfigReply_t * | mpi_reply, | ||
Mpi2RaidVolPage0_t * | config_page, | ||
u32 | form, | ||
u32 | handle, | ||
u16 | sz | ||
) |
mpt2sas_config_get_raid_volume_pg0 - obtain raid volume page 0 : per adapter object : reply mf payload returned from firmware : contents of the config page : GET_NEXT_HANDLE or HANDLE : volume handle : size of buffer passed in config_page Context: sleep.
Returns 0 for success, non-zero for failure.
Definition at line 1310 of file mpt2sas_config.c.
int mpt2sas_config_get_raid_volume_pg1 | ( | struct MPT2SAS_ADAPTER * | ioc, |
Mpi2ConfigReply_t * | mpi_reply, | ||
Mpi2RaidVolPage1_t * | config_page, | ||
u32 | form, | ||
u32 | handle | ||
) |
mpt2sas_config_get_raid_volume_pg1 - obtain raid volume page 1 : per adapter object : reply mf payload returned from firmware : contents of the config page : GET_NEXT_HANDLE or HANDLE : volume handle Context: sleep.
Returns 0 for success, non-zero for failure.
Definition at line 1220 of file mpt2sas_config.c.
int mpt2sas_config_get_sas_device_pg0 | ( | struct MPT2SAS_ADAPTER * | ioc, |
Mpi2ConfigReply_t * | mpi_reply, | ||
Mpi2SasDevicePage0_t * | config_page, | ||
u32 | form, | ||
u32 | handle | ||
) |
mpt2sas_config_get_sas_device_pg0 - obtain sas device page 0 : per adapter object : reply mf payload returned from firmware : contents of the config page : GET_NEXT_HANDLE or HANDLE : device handle Context: sleep.
Returns 0 for success, non-zero for failure.
Definition at line 769 of file mpt2sas_config.c.
int mpt2sas_config_get_sas_device_pg1 | ( | struct MPT2SAS_ADAPTER * | ioc, |
Mpi2ConfigReply_t * | mpi_reply, | ||
Mpi2SasDevicePage1_t * | config_page, | ||
u32 | form, | ||
u32 | handle | ||
) |
mpt2sas_config_get_sas_device_pg1 - obtain sas device page 1 : per adapter object : reply mf payload returned from firmware : contents of the config page : GET_NEXT_HANDLE or HANDLE : device handle Context: sleep.
Returns 0 for success, non-zero for failure.
Definition at line 809 of file mpt2sas_config.c.
int mpt2sas_config_get_sas_iounit_pg0 | ( | struct MPT2SAS_ADAPTER * | ioc, |
Mpi2ConfigReply_t * | mpi_reply, | ||
Mpi2SasIOUnitPage0_t * | config_page, | ||
u16 | sz | ||
) |
mpt2sas_config_get_sas_iounit_pg0 - obtain sas iounit page 0 : per adapter object : reply mf payload returned from firmware : contents of the config page : size of buffer passed in config_page Context: sleep.
Calling function should call config_get_number_hba_phys prior to this function, so enough memory is allocated for config_page.
Returns 0 for success, non-zero for failure.
Definition at line 896 of file mpt2sas_config.c.
int mpt2sas_config_get_sas_iounit_pg1 | ( | struct MPT2SAS_ADAPTER * | ioc, |
Mpi2ConfigReply_t * | mpi_reply, | ||
Mpi2SasIOUnitPage1_t * | config_page, | ||
u16 | sz | ||
) |
mpt2sas_config_get_sas_iounit_pg1 - obtain sas iounit page 1 : per adapter object : reply mf payload returned from firmware : contents of the config page : size of buffer passed in config_page Context: sleep.
Calling function should call config_get_number_hba_phys prior to this function, so enough memory is allocated for config_page.
Returns 0 for success, non-zero for failure.
Definition at line 936 of file mpt2sas_config.c.
int mpt2sas_config_get_volume_handle | ( | struct MPT2SAS_ADAPTER * | ioc, |
u16 | pd_handle, | ||
u16 * | volume_handle | ||
) |
mpt2sas_config_get_volume_handle - returns volume handle for give hidden raid components : per adapter object : phys disk handle : volume handle Context: sleep.
Returns 0 for success, non-zero for failure.
Definition at line 1387 of file mpt2sas_config.c.
int mpt2sas_config_get_volume_wwid | ( | struct MPT2SAS_ADAPTER * | ioc, |
u16 | volume_handle, | ||
u64 * | wwid | ||
) |
mpt2sas_config_get_volume_wwid - returns wwid given the volume handle : per adapter object : volume handle : volume wwid Context: sleep.
Returns 0 for success, non-zero for failure.
Definition at line 1476 of file mpt2sas_config.c.
int mpt2sas_config_set_iounit_pg1 | ( | struct MPT2SAS_ADAPTER * | ioc, |
Mpi2ConfigReply_t * | mpi_reply, | ||
Mpi2IOUnitPage1_t * | config_page | ||
) |
mpt2sas_config_set_iounit_pg1 - set iounit page 1 : per adapter object : reply mf payload returned from firmware : contents of the config page Context: sleep.
Returns 0 for success, non-zero for failure.
Definition at line 659 of file mpt2sas_config.c.
int mpt2sas_config_set_sas_iounit_pg1 | ( | struct MPT2SAS_ADAPTER * | ioc, |
Mpi2ConfigReply_t * | mpi_reply, | ||
Mpi2SasIOUnitPage1_t * | config_page, | ||
u16 | sz | ||
) |
mpt2sas_config_set_sas_iounit_pg1 - send sas iounit page 1 : per adapter object : reply mf payload returned from firmware : contents of the config page : size of buffer passed in config_page Context: sleep.
Calling function should call config_get_number_hba_phys prior to this function, so enough memory is allocated for config_page.
Returns 0 for success, non-zero for failure.
Definition at line 976 of file mpt2sas_config.c.
void mpt2sas_ctl_add_to_event_log | ( | struct MPT2SAS_ADAPTER * | ioc, |
Mpi2EventNotificationReply_t * | mpi_reply | ||
) |
mpt2sas_ctl_add_to_event_log - add event : per adapter object : reply message frame
Return nothing.
Definition at line 348 of file mpt2sas_ctl.c.
mpt2sas_ctl_done - ctl module completion routine : per adapter object : system request message index : MSIX table index supplied by the OS : reply message frame(lower 32bit addr) Context: none.
The callback handler when using ioc->ctl_cb_idx.
Return 1 meaning mf should be freed from _base_interrupt 0 means the mf is freed from this function.
Definition at line 274 of file mpt2sas_ctl.c.
u8 mpt2sas_ctl_event_callback | ( | struct MPT2SAS_ADAPTER * | ioc, |
u8 | msix_index, | ||
u32 | reply | ||
) |
mpt2sas_ctl_event_callback - firmware event handler (called at ISR time) : per adapter object : MSIX table index supplied by the OS : reply message frame(lower 32bit addr) Context: interrupt.
This function merely adds a new work task into ioc->firmware_event_thread. The tasks are worked from _firmware_event_work in user context.
Return 1 meaning mf should be freed from _base_interrupt 0 means the mf is freed from this function.
Definition at line 404 of file mpt2sas_ctl.c.
mpt2sas_ctl_exit - exit point for ctl
Definition at line 3065 of file mpt2sas_ctl.c.
mpt2sas_ctl_init - main entry point for ctl.
Definition at line 3050 of file mpt2sas_ctl.c.
void mpt2sas_ctl_reset_handler | ( | struct MPT2SAS_ADAPTER * | ioc, |
int | reset_phase | ||
) |
mpt2sas_ctl_reset_handler - reset callback handler (for ctl) : per adapter object : phase
The handler for doing any required cleanup or initialization.
The reset phase can be MPT2_IOC_PRE_RESET, MPT2_IOC_AFTER_RESET, MPT2_IOC_DONE_RESET
Definition at line 447 of file mpt2sas_ctl.c.
void mpt2sas_device_remove_by_sas_address | ( | struct MPT2SAS_ADAPTER * | ioc, |
u64 | sas_address | ||
) |
mpt2sas_device_remove_by_sas_address - removing device object by sas address : per adapter object : device sas_address
Return nothing.
Definition at line 5379 of file mpt2sas_scsih.c.
void mpt2sas_enable_diag_buffer | ( | struct MPT2SAS_ADAPTER * | ioc, |
u8 | bits_to_register | ||
) |
mpt2sas_enable_diag_buffer - enabling diag_buffers support driver load time : per adapter object : bitwise field where trace is bit 0, and snapshot is bit 1
This is called when command line option diag_buffer_enable is enabled at driver load time.
Definition at line 1530 of file mpt2sas_ctl.c.
void mpt2sas_expander_remove | ( | struct MPT2SAS_ADAPTER * | ioc, |
u64 | sas_address | ||
) |
mpt2sas_expander_remove - removing expander object : per adapter object : expander sas_address
Return nothing.
Definition at line 5043 of file mpt2sas_scsih.c.
void mpt2sas_halt_firmware | ( | struct MPT2SAS_ADAPTER * | ioc | ) |
mpt2sas_halt_firmware - halt's mpt controller firmware : per adapter object
For debugging timeout related issues. Writing 0xCOFFEE00 to the doorbell register will halt controller firmware. With the purpose to stop both driver and firmware, the enduser can obtain a ring buffer from controller UART.
Definition at line 298 of file mpt2sas_base.c.
int mpt2sas_port_enable | ( | struct MPT2SAS_ADAPTER * | ioc | ) |
mpt2sas_port_enable - initiate firmware discovery (don't wait for reply) : per adapter object
Returns 0 for success, non-zero for failure.
Definition at line 3659 of file mpt2sas_base.c.
void mpt2sas_port_enable_complete | ( | struct MPT2SAS_ADAPTER * | ioc | ) |
mpt2sas_port_enable_complete - port enable completed (fake event) : per adapter object
Return nothing.
Definition at line 2855 of file mpt2sas_scsih.c.
mpt2sas_port_enable_done - command completion routine for port enable : per adapter object : system request message index : MSIX table index supplied by the OS : reply message frame(lower 32bit addr)
Return 1 meaning mf should be freed from _base_interrupt 0 means the mf is freed from this function.
Definition at line 3542 of file mpt2sas_base.c.
void mpt2sas_scsih_clear_tm_flag | ( | struct MPT2SAS_ADAPTER * | ioc, |
u16 | handle | ||
) |
mpt2sas_scsih_clear_tm_flag - clear per target tm_busy : per adapter object : device handle
During taskmangement request, we need to freeze the device queue.
Definition at line 2321 of file mpt2sas_scsih.c.
u8 mpt2sas_scsih_event_callback | ( | struct MPT2SAS_ADAPTER * | ioc, |
u8 | msix_index, | ||
u32 | reply | ||
) |
mpt2sas_scsih_event_callback - firmware event handler (called at ISR time) : per adapter object : MSIX table index supplied by the OS : reply message frame(lower 32bit addr) Context: interrupt.
This function merely adds a new work task into ioc->firmware_event_thread. The tasks are worked from _firmware_event_work in user context.
Return 1 meaning mf should be freed from _base_interrupt 0 means the mf is freed from this function.
Definition at line 7363 of file mpt2sas_scsih.c.
|
read |
mpt2sas_scsih_expander_find_by_handle - expander device search : per adapter object : expander handle (assigned by firmware) Context: Calling function should acquire ioc->sas_device_lock
This searches for expander device based on handle, then returns the sas_node object.
Definition at line 788 of file mpt2sas_scsih.c.
|
read |
mpt2sas_scsih_expander_find_by_sas_address - expander device search : per adapter object : sas address Context: Calling function should acquire ioc->sas_node_lock.
This searches for expander device based on sas_address, then returns the sas_node object.
Definition at line 813 of file mpt2sas_scsih.c.
int mpt2sas_scsih_issue_tm | ( | struct MPT2SAS_ADAPTER * | ioc, |
u16 | handle, | ||
uint | channel, | ||
uint | id, | ||
uint | lun, | ||
u8 | type, | ||
u16 | smid_task, | ||
ulong | timeout, | ||
unsigned long | serial_number, | ||
enum mutex_type | m_type | ||
) |
mpt2sas_scsih_issue_tm - main routine for sending tm requests : per adapter struct : device handle : the channel assigned by the OS : the id assigned by the OS : lun number : MPI2_SCSITASKMGMT_TASKTYPE__XXX (defined in mpi2_init.h) : smid assigned to the task : timeout in seconds : the serial_number from scmd : TM_MUTEX_ON or TM_MUTEX_OFF Context: user
A generic API for sending task management requests to firmware.
The callback index is set inside ioc->tm_cb_idx
.
Return SUCCESS or FAILED.
Definition at line 2363 of file mpt2sas_scsih.c.
void mpt2sas_scsih_reset_handler | ( | struct MPT2SAS_ADAPTER * | ioc, |
int | reset_phase | ||
) |
mpt2sas_scsih_reset_handler - reset callback handler (for scsih) : per adapter object : phase
The handler for doing any required cleanup or initialization.
The reset phase can be MPT2_IOC_PRE_RESET, MPT2_IOC_AFTER_RESET, MPT2_IOC_DONE_RESET
Return nothing.
Definition at line 7231 of file mpt2sas_scsih.c.
|
read |
mpt2sas_scsih_sas_device_find_by_sas_address - sas device search : per adapter object : sas address Context: Calling function should acquire ioc->sas_device_lock
This searches for sas_device based on sas_address, then return sas_device object.
Definition at line 532 of file mpt2sas_scsih.c.
void mpt2sas_scsih_set_tm_flag | ( | struct MPT2SAS_ADAPTER * | ioc, |
u16 | handle | ||
) |
mpt2sas_scsih_set_tm_flag - set per target tm_busy : per adapter object : device handle
During taskmangement request, we need to freeze the device queue.
Definition at line 2293 of file mpt2sas_scsih.c.
u8 mpt2sas_stm_zero_smid_handler | ( | struct MPT2SAS_ADAPTER * | ioc, |
u8 | msix_index, | ||
u32 | reply | ||
) |
int mpt2sas_transport_add_expander_phy | ( | struct MPT2SAS_ADAPTER * | ioc, |
struct _sas_phy * | mpt2sas_phy, | ||
Mpi2ExpanderPage1_t | expander_pg1, | ||
struct device * | parent_dev | ||
) |
mpt2sas_transport_add_expander_phy - report expander phy to transport : per adapter object : mpt2sas per phy object : expander page 1 : parent device class object
Returns 0 for success, non-zero for failure.
Definition at line 916 of file mpt2sas_transport.c.
int mpt2sas_transport_add_host_phy | ( | struct MPT2SAS_ADAPTER * | ioc, |
struct _sas_phy * | mpt2sas_phy, | ||
Mpi2SasPhyPage0_t | phy_pg0, | ||
struct device * | parent_dev | ||
) |
mpt2sas_transport_add_host_phy - report sas_host phy to transport : per adapter object : mpt2sas per phy object : sas phy page 0 : parent device class object
Returns 0 for success, non-zero for failure.
Definition at line 849 of file mpt2sas_transport.c.
mpt2sas_transport_done - internal transport layer callback handler. : per adapter object : system request message index : MSIX table index supplied by the OS : reply message frame(lower 32bit addr)
Callback handler when sending internal generated transport cmds. The callback index passed is ioc->transport_cb_idx
Return 1 meaning mf should be freed from _base_interrupt 0 means the mf is freed from this function.
Definition at line 228 of file mpt2sas_transport.c.
|
read |
mpt2sas_transport_port_add - insert port to the list : per adapter object : handle of attached device : sas address of parent expander or sas host Context: This function will acquire ioc->sas_node_lock.
Adding new port object to the sas_node->sas_port_list.
Returns mpt2sas_port.
Definition at line 649 of file mpt2sas_transport.c.
void mpt2sas_transport_port_remove | ( | struct MPT2SAS_ADAPTER * | ioc, |
u64 | sas_address, | ||
u64 | sas_address_parent | ||
) |
mpt2sas_transport_port_remove - remove port from the list : per adapter object : sas address of attached device : sas address of parent expander or sas host Context: This function will acquire ioc->sas_node_lock.
Removing object and freeing associated memory from the ioc->sas_port_list.
Return nothing.
Definition at line 785 of file mpt2sas_transport.c.
void mpt2sas_transport_update_links | ( | struct MPT2SAS_ADAPTER * | ioc, |
u64 | sas_address, | ||
u16 | handle, | ||
u8 | phy_number, | ||
u8 | link_rate | ||
) |
mpt2sas_transport_update_links - refreshing phy link changes : per adapter object : sas address of parent expander or sas host : attached device handle : phy number : new link rate
Returns nothing.
Definition at line 984 of file mpt2sas_transport.c.
int scsi_internal_device_block | ( | struct scsi_device * | sdev | ) |
scsi_internal_device_block - internal function to put a device temporarily into the SDEV_BLOCK state : device to block
Block request made by scsi lld's to temporarily stop all scsi commands on the specified device. Called from interrupt or normal process context.
Returns zero if successful or error if not
Notes: This routine transitions the device to the SDEV_BLOCK state (which must be a legal transition). When the device is in this state, all commands are deferred until the scsi lld reenables the device with scsi_device_unblock or device_block_tmo fires.
Definition at line 2434 of file scsi_lib.c.
int scsi_internal_device_unblock | ( | struct scsi_device * | sdev, |
enum scsi_device_state | new_state | ||
) |
scsi_internal_device_unblock - resume a device after a block request : device to resume : state to set devices to after unblocking
Called by scsi lld's or the midlayer to restart the device queue for the previously suspended scsi device. Called from interrupt or normal process context.
Returns zero if successful or error if not.
Notes: This routine transitions the device to the SDEV_RUNNING state or to one of the offline states (which must be a legal transition) allowing the midlayer to goose the queue for this device.
Definition at line 2478 of file scsi_lib.c.
struct device_attribute* mpt2sas_dev_attrs[] |
Definition at line 3021 of file mpt2sas_ctl.c.
struct device_attribute* mpt2sas_host_attrs[] |
Definition at line 2954 of file mpt2sas_ctl.c.
struct sas_function_template mpt2sas_transport_functions |
Definition at line 2157 of file mpt2sas_transport.c.
struct scsi_transport_template* mpt2sas_transport_template |
Definition at line 2167 of file mpt2sas_transport.c.