Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
bnx2i_iscsi.c File Reference
#include <linux/slab.h>
#include <scsi/scsi_tcq.h>
#include <scsi/libiscsi.h>
#include "bnx2i.h"

Go to the source code of this file.

Functions

 DECLARE_PER_CPU (struct bnx2i_percpu_s, bnx2i_percpu)
 
void bnx2i_iscsi_unmap_sg_list (struct bnx2i_cmd *cmd)
 
struct bnx2i_connbnx2i_get_conn_from_id (struct bnx2i_hba *hba, u16 iscsi_cid)
 
void bnx2i_drop_session (struct iscsi_cls_session *cls_session)
 
struct bnx2i_endpointbnx2i_find_ep_in_ofld_list (struct bnx2i_hba *hba, u32 iscsi_cid)
 
struct bnx2i_endpointbnx2i_find_ep_in_destroy_list (struct bnx2i_hba *hba, u32 iscsi_cid)
 
struct bnx2i_hbabnx2i_alloc_hba (struct cnic_dev *cnic)
 
void bnx2i_free_hba (struct bnx2i_hba *hba)
 
int bnx2i_hw_ep_disconnect (struct bnx2i_endpoint *bnx2i_ep)
 

Variables

struct scsi_transport_templatebnx2i_scsi_xport_template
 
struct iscsi_transport bnx2i_iscsi_transport
 

Function Documentation

struct bnx2i_hba* bnx2i_alloc_hba ( struct cnic_dev cnic)
read

bnx2i_alloc_hba - allocate and init adapter instance : cnic device pointer

allocate & initialize adapter structure and call other support routines to do per adapter initialization

Definition at line 783 of file bnx2i_iscsi.c.

void bnx2i_drop_session ( struct iscsi_cls_session cls_session)

bnx2i_drop_session - notifies iscsid of connection error. : adapter instance pointer : iscsi session pointer

This notifies iscsid that there is a error, so it can initiate recovery.

This relies on caller using the iscsi class iterator so the object is refcounted and does not disapper from under us.

Definition at line 591 of file bnx2i_iscsi.c.

struct bnx2i_endpoint* bnx2i_find_ep_in_destroy_list ( struct bnx2i_hba hba,
u32  iscsi_cid 
)
read

bnx2i_find_ep_in_destroy_list - find iscsi_cid in destroy list : pointer to adapter instance : iscsi context ID to find

Definition at line 699 of file bnx2i_iscsi.c.

struct bnx2i_endpoint* bnx2i_find_ep_in_ofld_list ( struct bnx2i_hba hba,
u32  iscsi_cid 
)
read

bnx2i_find_ep_in_ofld_list - find iscsi_cid in pending list of endpoints

: pointer to adapter instance : iscsi context ID to find

Definition at line 671 of file bnx2i_iscsi.c.

void bnx2i_free_hba ( struct bnx2i_hba hba)

bnx2i_free_hba- releases hba structure and resources held by the adapter : pointer to adapter instance

free adapter structure and call various cleanup routines.

Definition at line 907 of file bnx2i_iscsi.c.

struct bnx2i_conn* bnx2i_get_conn_from_id ( struct bnx2i_hba hba,
u16  iscsi_cid 
)
read

bnx2i_get_conn_from_id - maps an iscsi cid to corresponding conn ptr : pointer to adapter instance : iscsi context ID, range 0 - (MAX_CONN - 1)

Definition at line 256 of file bnx2i_iscsi.c.

int bnx2i_hw_ep_disconnect ( struct bnx2i_endpoint bnx2i_ep)

Definition at line 2023 of file bnx2i_iscsi.c.

void bnx2i_iscsi_unmap_sg_list ( struct bnx2i_cmd cmd)

bnx2i_iscsi_unmap_sg_list - unmaps SG list : iscsi cmd struct pointer

unmap IO buffers and invalidate the BD table

Definition at line 205 of file bnx2i_iscsi.c.

DECLARE_PER_CPU ( struct bnx2i_percpu_s  ,
bnx2i_percpu   
)

Variable Documentation

struct iscsi_transport bnx2i_iscsi_transport

Definition at line 22 of file bnx2i_iscsi.c.

struct scsi_transport_template* bnx2i_scsi_xport_template

Definition at line 21 of file bnx2i_iscsi.c.