Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
lpfc_ct.c File Reference
#include <linux/blkdev.h>
#include <linux/pci.h>
#include <linux/interrupt.h>
#include <linux/slab.h>
#include <linux/utsname.h>
#include <scsi/scsi.h>
#include <scsi/scsi_device.h>
#include <scsi/scsi_host.h>
#include <scsi/scsi_transport_fc.h>
#include <scsi/fc/fc_fs.h>
#include "lpfc_hw4.h"
#include "lpfc_hw.h"
#include "lpfc_sli.h"
#include "lpfc_sli4.h"
#include "lpfc_nl.h"
#include "lpfc_disc.h"
#include "lpfc_scsi.h"
#include "lpfc.h"
#include "lpfc_logmsg.h"
#include "lpfc_crtn.h"
#include "lpfc_version.h"
#include "lpfc_vport.h"
#include "lpfc_debugfs.h"

Go to the source code of this file.

Macros

#define HBA_PORTSPEED_1GBIT   0x0001 /* 1 GBit/sec */
 
#define HBA_PORTSPEED_2GBIT   0x0002 /* 2 GBit/sec */
 
#define HBA_PORTSPEED_4GBIT   0x0008 /* 4 GBit/sec */
 
#define HBA_PORTSPEED_10GBIT   0x0004 /* 10 GBit/sec */
 
#define HBA_PORTSPEED_8GBIT   0x0010 /* 8 GBit/sec */
 
#define HBA_PORTSPEED_16GBIT   0x0020 /* 16 GBit/sec */
 
#define HBA_PORTSPEED_UNKNOWN   0x0800 /* Unknown */
 
#define FOURBYTES   4
 

Functions

void lpfc_ct_unsol_event (struct lpfc_hba *phba, struct lpfc_sli_ring *pring, struct lpfc_iocbq *piocbq)
 
void lpfc_sli4_ct_abort_unsol_event (struct lpfc_hba *phba, struct lpfc_sli_ring *pring, struct lpfc_iocbq *piocbq)
 
int lpfc_ct_free_iocb (struct lpfc_hba *phba, struct lpfc_iocbq *ctiocb)
 
struct lpfc_vportlpfc_find_vport_by_did (struct lpfc_hba *phba, uint32_t did)
 
int lpfc_vport_symbolic_port_name (struct lpfc_vport *vport, char *symbol, size_t size)
 
int lpfc_vport_symbolic_node_name (struct lpfc_vport *vport, char *symbol, size_t size)
 
int lpfc_ns_cmd (struct lpfc_vport *vport, int cmdcode, uint8_t retry, uint32_t context)
 
int lpfc_fdmi_cmd (struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, int cmdcode)
 
void lpfc_delayed_disc_tmo (unsigned long ptr)
 
void lpfc_delayed_disc_timeout_handler (struct lpfc_vport *vport)
 
void lpfc_fdmi_tmo (unsigned long ptr)
 
void lpfc_fdmi_timeout_handler (struct lpfc_vport *vport)
 
void lpfc_decode_firmware_rev (struct lpfc_hba *phba, char *fwrevision, int flag)
 

Macro Definition Documentation

#define FOURBYTES   4

Definition at line 60 of file lpfc_ct.c.

#define HBA_PORTSPEED_10GBIT   0x0004 /* 10 GBit/sec */

Definition at line 55 of file lpfc_ct.c.

#define HBA_PORTSPEED_16GBIT   0x0020 /* 16 GBit/sec */

Definition at line 57 of file lpfc_ct.c.

#define HBA_PORTSPEED_1GBIT   0x0001 /* 1 GBit/sec */

Definition at line 52 of file lpfc_ct.c.

#define HBA_PORTSPEED_2GBIT   0x0002 /* 2 GBit/sec */

Definition at line 53 of file lpfc_ct.c.

#define HBA_PORTSPEED_4GBIT   0x0008 /* 4 GBit/sec */

Definition at line 54 of file lpfc_ct.c.

#define HBA_PORTSPEED_8GBIT   0x0010 /* 8 GBit/sec */

Definition at line 56 of file lpfc_ct.c.

#define HBA_PORTSPEED_UNKNOWN   0x0800 /* Unknown */

Definition at line 58 of file lpfc_ct.c.

Function Documentation

int lpfc_ct_free_iocb ( struct lpfc_hba phba,
struct lpfc_iocbq ctiocb 
)

Definition at line 273 of file lpfc_ct.c.

void lpfc_ct_unsol_event ( struct lpfc_hba phba,
struct lpfc_sli_ring pring,
struct lpfc_iocbq piocbq 
)

Definition at line 89 of file lpfc_ct.c.

void lpfc_decode_firmware_rev ( struct lpfc_hba phba,
char fwrevision,
int  flag 
)

Definition at line 1833 of file lpfc_ct.c.

void lpfc_delayed_disc_timeout_handler ( struct lpfc_vport vport)

lpfc_delayed_disc_timeout_handler - Function called by worker thread to handle delayed discovery. : pointer to a host virtual N_Port data structure.

This function start nport discovery of the vport.

Definition at line 1783 of file lpfc_ct.c.

void lpfc_delayed_disc_tmo ( unsigned long  ptr)

lpfc_delayed_disc_tmo - Timeout handler for delayed discovery timer. - Context object of the timer.

This function set the WORKER_DELAYED_DISC_TMO flag and wake up the worker thread.

Definition at line 1757 of file lpfc_ct.c.

int lpfc_fdmi_cmd ( struct lpfc_vport vport,
struct lpfc_nodelist ndlp,
int  cmdcode 
)

Definition at line 1364 of file lpfc_ct.c.

void lpfc_fdmi_timeout_handler ( struct lpfc_vport vport)

Definition at line 1818 of file lpfc_ct.c.

void lpfc_fdmi_tmo ( unsigned long  ptr)

Definition at line 1799 of file lpfc_ct.c.

struct lpfc_vport* lpfc_find_vport_by_did ( struct lpfc_hba phba,
uint32_t  did 
)
read

Definition at line 421 of file lpfc_ct.c.

int lpfc_ns_cmd ( struct lpfc_vport vport,
int  cmdcode,
uint8_t  retry,
uint32_t  context 
)

Definition at line 1103 of file lpfc_ct.c.

void lpfc_sli4_ct_abort_unsol_event ( struct lpfc_hba phba,
struct lpfc_sli_ring pring,
struct lpfc_iocbq piocbq 
)

lpfc_sli4_ct_abort_unsol_event - Default handle for sli4 unsol abort : Pointer to HBA context object. : Pointer to the driver internal I/O ring. : Pointer to the IOCBQ.

This function serves as the default handler for the sli4 unsolicited abort event. It shall be invoked when there is no application interface registered unsolicited abort handler. This handler does nothing but just simply releases the dma buffer used by the unsol abort event.

Definition at line 178 of file lpfc_ct.c.

int lpfc_vport_symbolic_node_name ( struct lpfc_vport vport,
char symbol,
size_t  size 
)

Definition at line 1082 of file lpfc_ct.c.

int lpfc_vport_symbolic_port_name ( struct lpfc_vport vport,
char symbol,
size_t  size 
)

Definition at line 1057 of file lpfc_ct.c.