Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
lpfc_vport.c File Reference
#include <linux/blkdev.h>
#include <linux/delay.h>
#include <linux/dma-mapping.h>
#include <linux/idr.h>
#include <linux/interrupt.h>
#include <linux/kthread.h>
#include <linux/pci.h>
#include <linux/slab.h>
#include <linux/spinlock.h>
#include <scsi/scsi.h>
#include <scsi/scsi_device.h>
#include <scsi/scsi_host.h>
#include <scsi/scsi_transport_fc.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"

Go to the source code of this file.

Functions

void lpfc_vport_set_state (struct lpfc_vport *vport, enum fc_vport_state new_state)
 
int lpfc_vport_create (struct fc_vport *fc_vport, bool disable)
 
int lpfc_vport_disable (struct fc_vport *fc_vport, bool disable)
 
int lpfc_vport_delete (struct fc_vport *fc_vport)
 
struct lpfc_vport ** lpfc_create_vport_work_array (struct lpfc_hba *phba)
 
void lpfc_destroy_vport_work_array (struct lpfc_hba *phba, struct lpfc_vport **vports)
 
void lpfc_vport_reset_stat_data (struct lpfc_vport *vport)
 
void lpfc_alloc_bucket (struct lpfc_vport *vport)
 
void lpfc_free_bucket (struct lpfc_vport *vport)
 

Function Documentation

void lpfc_alloc_bucket ( struct lpfc_vport vport)

lpfc_alloc_bucket - Allocate data buffer required for statistical data : Pointer to vport object.

This function allocates data buffer required for all the FC nodes of the vport to collect statistical data.

Definition at line 833 of file lpfc_vport.c.

struct lpfc_vport** lpfc_create_vport_work_array ( struct lpfc_hba phba)
read

Definition at line 766 of file lpfc_vport.c.

void lpfc_destroy_vport_work_array ( struct lpfc_hba phba,
struct lpfc_vport **  vports 
)

Definition at line 792 of file lpfc_vport.c.

void lpfc_free_bucket ( struct lpfc_vport vport)

lpfc_free_bucket - Free data buffer required for statistical data : Pointer to vport object.

Th function frees statistical data buffer of all the FC nodes of the vport.

Definition at line 866 of file lpfc_vport.c.

int lpfc_vport_create ( struct fc_vport fc_vport,
bool  disable 
)

Definition at line 291 of file lpfc_vport.c.

int lpfc_vport_delete ( struct fc_vport fc_vport)

Definition at line 564 of file lpfc_vport.c.

int lpfc_vport_disable ( struct fc_vport fc_vport,
bool  disable 
)

Definition at line 554 of file lpfc_vport.c.

void lpfc_vport_reset_stat_data ( struct lpfc_vport vport)

lpfc_vport_reset_stat_data - Reset the statistical data for the vport : Pointer to vport object.

This function resets the statistical data for the vport. This function is called with the host_lock held

Definition at line 811 of file lpfc_vport.c.

void lpfc_vport_set_state ( struct lpfc_vport vport,
enum fc_vport_state  new_state 
)
inline

Definition at line 49 of file lpfc_vport.c.