Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
be_cmds.c File Reference
#include <scsi/iscsi_proto.h>
#include "be.h"
#include "be_mgmt.h"
#include "be_main.h"

Go to the source code of this file.

Macros

#define long_delay   2000
 
#define MAX_INTR_RATE   651042
 

Functions

int beiscsi_pci_soft_reset (struct beiscsi_hba *phba)
 
int be_chk_reset_complete (struct beiscsi_hba *phba)
 
void be_mcc_notify (struct beiscsi_hba *phba)
 
unsigned int alloc_mcc_tag (struct beiscsi_hba *phba)
 
void free_mcc_tag (struct be_ctrl_info *ctrl, unsigned int tag)
 
bool is_link_state_evt (u32 trailer)
 
int be_mcc_compl_process_isr (struct be_ctrl_info *ctrl, struct be_mcc_compl *compl)
 
void beiscsi_async_link_state_process (struct beiscsi_hba *phba, struct be_async_event_link_state *evt)
 
int beiscsi_process_mcc (struct beiscsi_hba *phba)
 
int be_mcc_notify_wait (struct beiscsi_hba *phba)
 
int be_mbox_notify (struct be_ctrl_info *ctrl)
 
void be_wrb_hdr_prepare (struct be_mcc_wrb *wrb, int payload_len, bool embedded, u8 sge_cnt)
 
void be_cmd_hdr_prepare (struct be_cmd_req_hdr *req_hdr, u8 subsystem, u8 opcode, int cmd_len)
 
struct be_mcc_wrbwrb_from_mbox (struct be_dma_mem *mbox_mem)
 
struct be_mcc_wrbwrb_from_mccq (struct beiscsi_hba *phba)
 
int beiscsi_cmd_eq_create (struct be_ctrl_info *ctrl, struct be_queue_info *eq, int eq_delay)
 
int be_cmd_fw_initialize (struct be_ctrl_info *ctrl)
 
int beiscsi_cmd_cq_create (struct be_ctrl_info *ctrl, struct be_queue_info *cq, struct be_queue_info *eq, bool sol_evts, bool no_delay, int coalesce_wm)
 
int beiscsi_cmd_mccq_create (struct beiscsi_hba *phba, struct be_queue_info *mccq, struct be_queue_info *cq)
 
int beiscsi_cmd_q_destroy (struct be_ctrl_info *ctrl, struct be_queue_info *q, int queue_type)
 
int be_cmd_create_default_pdu_queue (struct be_ctrl_info *ctrl, struct be_queue_info *cq, struct be_queue_info *dq, int length, int entry_size)
 
int be_cmd_wrbq_create (struct be_ctrl_info *ctrl, struct be_dma_mem *q_mem, struct be_queue_info *wrbq)
 
int be_cmd_iscsi_post_sgl_pages (struct be_ctrl_info *ctrl, struct be_dma_mem *q_mem, u32 page_offset, u32 num_pages)
 
int beiscsi_cmd_reset_function (struct beiscsi_hba *phba)
 
int be_cmd_set_vlan (struct beiscsi_hba *phba, uint16_t vlan_tag)
 

Macro Definition Documentation

#define long_delay   2000
#define MAX_INTR_RATE   651042

Function Documentation

unsigned int alloc_mcc_tag ( struct beiscsi_hba phba)

Definition at line 117 of file be_cmds.c.

int be_chk_reset_complete ( struct beiscsi_hba phba)

Definition at line 78 of file be_cmds.c.

int be_cmd_create_default_pdu_queue ( struct be_ctrl_info ctrl,
struct be_queue_info cq,
struct be_queue_info dq,
int  length,
int  entry_size 
)

Definition at line 794 of file be_cmds.c.

int be_cmd_fw_initialize ( struct be_ctrl_info ctrl)

Definition at line 601 of file be_cmds.c.

void be_cmd_hdr_prepare ( struct be_cmd_req_hdr req_hdr,
u8  subsystem,
u8  opcode,
int  cmd_len 
)

Definition at line 496 of file be_cmds.c.

int be_cmd_iscsi_post_sgl_pages ( struct be_ctrl_info ctrl,
struct be_dma_mem q_mem,
u32  page_offset,
u32  num_pages 
)

Definition at line 869 of file be_cmds.c.

int be_cmd_set_vlan ( struct beiscsi_hba phba,
uint16_t  vlan_tag 
)

be_cmd_set_vlan()- Configure VLAN paramters on the adapter : device priv structure instance : TAG to be set

Set the VLAN_TAG for the adapter or Disable VLAN on adapter

returns TAG for the MBX Cmd

Definition at line 948 of file be_cmds.c.

int be_cmd_wrbq_create ( struct be_ctrl_info ctrl,
struct be_dma_mem q_mem,
struct be_queue_info wrbq 
)

Definition at line 842 of file be_cmds.c.

int be_mbox_notify ( struct be_ctrl_info ctrl)

Definition at line 378 of file be_cmds.c.

int be_mcc_compl_process_isr ( struct be_ctrl_info ctrl,
struct be_mcc_compl compl 
)

Definition at line 195 of file be_cmds.c.

void be_mcc_notify ( struct beiscsi_hba phba)

Definition at line 107 of file be_cmds.c.

int be_mcc_notify_wait ( struct beiscsi_hba phba)

Definition at line 341 of file be_cmds.c.

void be_wrb_hdr_prepare ( struct be_mcc_wrb wrb,
int  payload_len,
bool  embedded,
u8  sge_cnt 
)

Definition at line 484 of file be_cmds.c.

void beiscsi_async_link_state_process ( struct beiscsi_hba phba,
struct be_async_event_link_state evt 
)

Definition at line 238 of file be_cmds.c.

int beiscsi_cmd_cq_create ( struct be_ctrl_info ctrl,
struct be_queue_info cq,
struct be_queue_info eq,
bool  sol_evts,
bool  no_delay,
int  coalesce_wm 
)

Definition at line 631 of file be_cmds.c.

int beiscsi_cmd_eq_create ( struct be_ctrl_info ctrl,
struct be_queue_info eq,
int  eq_delay 
)

Definition at line 561 of file be_cmds.c.

int beiscsi_cmd_mccq_create ( struct beiscsi_hba phba,
struct be_queue_info mccq,
struct be_queue_info cq 
)

Definition at line 690 of file be_cmds.c.

int beiscsi_cmd_q_destroy ( struct be_ctrl_info ctrl,
struct be_queue_info q,
int  queue_type 
)

Definition at line 737 of file be_cmds.c.

int beiscsi_cmd_reset_function ( struct beiscsi_hba phba)

Definition at line 919 of file be_cmds.c.

int beiscsi_pci_soft_reset ( struct beiscsi_hba phba)

Copyright (C) 2005 - 2011 Emulex All rights reserved.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. The full GNU General Public License is included in this distribution in the file called COPYING.

Contact Information: linux.nosp@m.-dri.nosp@m.vers@.nosp@m.emul.nosp@m.ex.co.nosp@m.m

Emulex 3333 Susan Street Costa Mesa, CA 92626

Definition at line 24 of file be_cmds.c.

int beiscsi_process_mcc ( struct beiscsi_hba phba)

Definition at line 281 of file be_cmds.c.

void free_mcc_tag ( struct be_ctrl_info ctrl,
unsigned int  tag 
)

Definition at line 136 of file be_cmds.c.

bool is_link_state_evt ( u32  trailer)

Definition at line 149 of file be_cmds.c.

struct be_mcc_wrb* wrb_from_mbox ( struct be_dma_mem mbox_mem)
read

Definition at line 541 of file be_cmds.c.

struct be_mcc_wrb* wrb_from_mccq ( struct beiscsi_hba phba)
read

Definition at line 546 of file be_cmds.c.