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 <linux/module.h>
#include "be.h"
#include "be_cmds.h"

Go to the source code of this file.

Macros

#define mcc_timeout   120000 /* 12s timeout */
 
#define SLIPORT_READY_TIMEOUT   30
 
#define MAX_INTR_RATE   651042
 

Functions

void be_async_mcc_enable (struct be_adapter *adapter)
 
void be_async_mcc_disable (struct be_adapter *adapter)
 
int be_process_mcc (struct be_adapter *adapter)
 
int lancer_wait_ready (struct be_adapter *adapter)
 
int lancer_test_and_set_rdy_state (struct be_adapter *adapter)
 
int be_fw_wait_ready (struct be_adapter *adapter)
 
int be_cmd_fw_init (struct be_adapter *adapter)
 
int be_cmd_fw_clean (struct be_adapter *adapter)
 
int be_cmd_eq_create (struct be_adapter *adapter, struct be_queue_info *eq, int eq_delay)
 
int be_cmd_mac_addr_query (struct be_adapter *adapter, u8 *mac_addr, bool permanent, u32 if_handle, u32 pmac_id)
 
int be_cmd_pmac_add (struct be_adapter *adapter, u8 *mac_addr, u32 if_id, u32 *pmac_id, u32 domain)
 
int be_cmd_pmac_del (struct be_adapter *adapter, u32 if_id, int pmac_id, u32 dom)
 
int be_cmd_cq_create (struct be_adapter *adapter, struct be_queue_info *cq, struct be_queue_info *eq, bool no_delay, int coalesce_wm)
 
int be_cmd_mccq_ext_create (struct be_adapter *adapter, struct be_queue_info *mccq, struct be_queue_info *cq)
 
int be_cmd_mccq_org_create (struct be_adapter *adapter, struct be_queue_info *mccq, struct be_queue_info *cq)
 
int be_cmd_mccq_create (struct be_adapter *adapter, struct be_queue_info *mccq, struct be_queue_info *cq)
 
int be_cmd_txq_create (struct be_adapter *adapter, struct be_queue_info *txq, struct be_queue_info *cq)
 
int be_cmd_rxq_create (struct be_adapter *adapter, struct be_queue_info *rxq, u16 cq_id, u16 frag_size, u32 if_id, u32 rss, u8 *rss_id)
 
int be_cmd_q_destroy (struct be_adapter *adapter, struct be_queue_info *q, int queue_type)
 
int be_cmd_rxq_destroy (struct be_adapter *adapter, struct be_queue_info *q)
 
int be_cmd_if_create (struct be_adapter *adapter, u32 cap_flags, u32 en_flags, u32 *if_handle, u32 domain)
 
int be_cmd_if_destroy (struct be_adapter *adapter, int interface_id, u32 domain)
 
int be_cmd_get_stats (struct be_adapter *adapter, struct be_dma_mem *nonemb_cmd)
 
int lancer_cmd_get_pport_stats (struct be_adapter *adapter, struct be_dma_mem *nonemb_cmd)
 
int be_cmd_link_status_query (struct be_adapter *adapter, u16 *link_speed, u8 *link_status, u32 dom)
 
int be_cmd_get_die_temperature (struct be_adapter *adapter)
 
int be_cmd_get_reg_len (struct be_adapter *adapter, u32 *log_size)
 
void be_cmd_get_regs (struct be_adapter *adapter, u32 buf_len, void *buf)
 
int be_cmd_get_fw_ver (struct be_adapter *adapter, char *fw_ver, char *fw_on_flash)
 
int be_cmd_modify_eqd (struct be_adapter *adapter, u32 eq_id, u32 eqd)
 
int be_cmd_vlan_config (struct be_adapter *adapter, u32 if_id, u16 *vtag_array, u32 num, bool untagged, bool promiscuous)
 
int be_cmd_rx_filter (struct be_adapter *adapter, u32 flags, u32 value)
 
int be_cmd_set_flow_control (struct be_adapter *adapter, u32 tx_fc, u32 rx_fc)
 
int be_cmd_get_flow_control (struct be_adapter *adapter, u32 *tx_fc, u32 *rx_fc)
 
int be_cmd_query_fw_cfg (struct be_adapter *adapter, u32 *port_num, u32 *mode, u32 *caps)
 
int be_cmd_reset_function (struct be_adapter *adapter)
 
int be_cmd_rss_config (struct be_adapter *adapter, u8 *rsstable, u16 table_size)
 
int be_cmd_set_beacon_state (struct be_adapter *adapter, u8 port_num, u8 bcn, u8 sts, u8 state)
 
int be_cmd_get_beacon_state (struct be_adapter *adapter, u8 port_num, u32 *state)
 
int lancer_cmd_write_object (struct be_adapter *adapter, struct be_dma_mem *cmd, u32 data_size, u32 data_offset, const char *obj_name, u32 *data_written, u8 *change_status, u8 *addn_status)
 
int lancer_cmd_read_object (struct be_adapter *adapter, struct be_dma_mem *cmd, u32 data_size, u32 data_offset, const char *obj_name, u32 *data_read, u32 *eof, u8 *addn_status)
 
int be_cmd_write_flashrom (struct be_adapter *adapter, struct be_dma_mem *cmd, u32 flash_type, u32 flash_opcode, u32 buf_size)
 
int be_cmd_get_flash_crc (struct be_adapter *adapter, u8 *flashed_crc, int offset)
 
int be_cmd_enable_magic_wol (struct be_adapter *adapter, u8 *mac, struct be_dma_mem *nonemb_cmd)
 
int be_cmd_set_loopback (struct be_adapter *adapter, u8 port_num, u8 loopback_type, u8 enable)
 
int be_cmd_loopback_test (struct be_adapter *adapter, u32 port_num, u32 loopback_type, u32 pkt_size, u32 num_pkts, u64 pattern)
 
int be_cmd_ddr_dma_test (struct be_adapter *adapter, u64 pattern, u32 byte_cnt, struct be_dma_mem *cmd)
 
int be_cmd_get_seeprom_data (struct be_adapter *adapter, struct be_dma_mem *nonemb_cmd)
 
int be_cmd_get_phy_info (struct be_adapter *adapter)
 
int be_cmd_set_qos (struct be_adapter *adapter, u32 bps, u32 domain)
 
int be_cmd_get_cntl_attributes (struct be_adapter *adapter)
 
int be_cmd_req_native_mode (struct be_adapter *adapter)
 
int be_cmd_get_mac_from_list (struct be_adapter *adapter, u8 *mac, bool *pmac_id_active, u32 *pmac_id, u8 domain)
 
int be_cmd_set_mac_list (struct be_adapter *adapter, u8 *mac_array, u8 mac_count, u32 domain)
 
int be_cmd_set_hsw_config (struct be_adapter *adapter, u16 pvid, u32 domain, u16 intf_id)
 
int be_cmd_get_hsw_config (struct be_adapter *adapter, u16 *pvid, u32 domain, u16 intf_id)
 
int be_cmd_get_acpi_wol_cap (struct be_adapter *adapter)
 
int be_cmd_get_ext_fat_capabilites (struct be_adapter *adapter, struct be_dma_mem *cmd)
 
int be_cmd_set_ext_fat_capabilites (struct be_adapter *adapter, struct be_dma_mem *cmd, struct be_fat_conf_params *configs)
 
int be_cmd_query_port_name (struct be_adapter *adapter, u8 *port_name)
 
int be_roce_mcc_cmd (void *netdev_handle, void *wrb_payload, int wrb_payload_size, u16 *cmd_status, u16 *ext_status)
 
 EXPORT_SYMBOL (be_roce_mcc_cmd)
 

Macro Definition Documentation

#define MAX_INTR_RATE   651042
#define mcc_timeout   120000 /* 12s timeout */
#define SLIPORT_READY_TIMEOUT   30

Function Documentation

void be_async_mcc_disable ( struct be_adapter adapter)

Definition at line 250 of file be_cmds.c.

void be_async_mcc_enable ( struct be_adapter adapter)

Definition at line 240 of file be_cmds.c.

int be_cmd_cq_create ( struct be_adapter adapter,
struct be_queue_info cq,
struct be_queue_info eq,
bool  no_delay,
int  coalesce_wm 
)

Definition at line 829 of file be_cmds.c.

int be_cmd_ddr_dma_test ( struct be_adapter adapter,
u64  pattern,
u32  byte_cnt,
struct be_dma_mem cmd 
)

Definition at line 2198 of file be_cmds.c.

int be_cmd_enable_magic_wol ( struct be_adapter adapter,
u8 mac,
struct be_dma_mem nonemb_cmd 
)

Definition at line 2099 of file be_cmds.c.

int be_cmd_eq_create ( struct be_adapter adapter,
struct be_queue_info eq,
int  eq_delay 
)

Definition at line 676 of file be_cmds.c.

int be_cmd_fw_clean ( struct be_adapter adapter)

Definition at line 649 of file be_cmds.c.

int be_cmd_fw_init ( struct be_adapter adapter)

Definition at line 619 of file be_cmds.c.

int be_cmd_get_acpi_wol_cap ( struct be_adapter adapter)

Definition at line 2646 of file be_cmds.c.

int be_cmd_get_beacon_state ( struct be_adapter adapter,
u8  port_num,
u32 state 
)

Definition at line 1874 of file be_cmds.c.

int be_cmd_get_cntl_attributes ( struct be_adapter adapter)

Definition at line 2351 of file be_cmds.c.

int be_cmd_get_die_temperature ( struct be_adapter adapter)

Definition at line 1396 of file be_cmds.c.

int be_cmd_get_ext_fat_capabilites ( struct be_adapter adapter,
struct be_dma_mem cmd 
)

Definition at line 2701 of file be_cmds.c.

int be_cmd_get_flash_crc ( struct be_adapter adapter,
u8 flashed_crc,
int  offset 
)

Definition at line 2066 of file be_cmds.c.

int be_cmd_get_flow_control ( struct be_adapter adapter,
u32 tx_fc,
u32 rx_fc 
)

Definition at line 1706 of file be_cmds.c.

int be_cmd_get_fw_ver ( struct be_adapter adapter,
char fw_ver,
char fw_on_flash 
)

Definition at line 1522 of file be_cmds.c.

int be_cmd_get_hsw_config ( struct be_adapter adapter,
u16 pvid,
u32  domain,
u16  intf_id 
)

Definition at line 2601 of file be_cmds.c.

int be_cmd_get_mac_from_list ( struct be_adapter adapter,
u8 mac,
bool pmac_id_active,
u32 pmac_id,
u8  domain 
)

Definition at line 2438 of file be_cmds.c.

int be_cmd_get_phy_info ( struct be_adapter adapter)

Definition at line 2271 of file be_cmds.c.

int be_cmd_get_reg_len ( struct be_adapter adapter,
u32 log_size 
)

Definition at line 1423 of file be_cmds.c.

void be_cmd_get_regs ( struct be_adapter adapter,
u32  buf_len,
void buf 
)

Definition at line 1453 of file be_cmds.c.

int be_cmd_get_seeprom_data ( struct be_adapter adapter,
struct be_dma_mem nonemb_cmd 
)

Definition at line 2242 of file be_cmds.c.

int be_cmd_get_stats ( struct be_adapter adapter,
struct be_dma_mem nonemb_cmd 
)

Definition at line 1266 of file be_cmds.c.

int be_cmd_if_create ( struct be_adapter adapter,
u32  cap_flags,
u32  en_flags,
u32 if_handle,
u32  domain 
)

Definition at line 1197 of file be_cmds.c.

int be_cmd_if_destroy ( struct be_adapter adapter,
int  interface_id,
u32  domain 
)

Definition at line 1233 of file be_cmds.c.

int be_cmd_link_status_query ( struct be_adapter adapter,
u16 link_speed,
u8 link_status,
u32  dom 
)

Definition at line 1348 of file be_cmds.c.

int be_cmd_loopback_test ( struct be_adapter adapter,
u32  port_num,
u32  loopback_type,
u32  pkt_size,
u32  num_pkts,
u64  pattern 
)

Definition at line 2159 of file be_cmds.c.

int be_cmd_mac_addr_query ( struct be_adapter adapter,
u8 mac_addr,
bool  permanent,
u32  if_handle,
u32  pmac_id 
)

Definition at line 718 of file be_cmds.c.

int be_cmd_mccq_create ( struct be_adapter adapter,
struct be_queue_info mccq,
struct be_queue_info cq 
)

Definition at line 996 of file be_cmds.c.

int be_cmd_mccq_ext_create ( struct be_adapter adapter,
struct be_queue_info mccq,
struct be_queue_info cq 
)

Definition at line 897 of file be_cmds.c.

int be_cmd_mccq_org_create ( struct be_adapter adapter,
struct be_queue_info mccq,
struct be_queue_info cq 
)

Definition at line 954 of file be_cmds.c.

int be_cmd_modify_eqd ( struct be_adapter adapter,
u32  eq_id,
u32  eqd 
)

Definition at line 1556 of file be_cmds.c.

int be_cmd_pmac_add ( struct be_adapter adapter,
u8 mac_addr,
u32  if_id,
u32 pmac_id,
u32  domain 
)

Definition at line 757 of file be_cmds.c.

int be_cmd_pmac_del ( struct be_adapter adapter,
u32  if_id,
int  pmac_id,
u32  dom 
)

Definition at line 796 of file be_cmds.c.

int be_cmd_q_destroy ( struct be_adapter adapter,
struct be_queue_info q,
int  queue_type 
)

Definition at line 1114 of file be_cmds.c.

int be_cmd_query_fw_cfg ( struct be_adapter adapter,
u32 port_num,
u32 mode,
u32 caps 
)

Definition at line 1738 of file be_cmds.c.

int be_cmd_query_port_name ( struct be_adapter adapter,
u8 port_name 
)

Definition at line 2757 of file be_cmds.c.

int be_cmd_req_native_mode ( struct be_adapter adapter)

Definition at line 2399 of file be_cmds.c.

int be_cmd_reset_function ( struct be_adapter adapter)

Definition at line 1767 of file be_cmds.c.

int be_cmd_rss_config ( struct be_adapter adapter,
u8 rsstable,
u16  table_size 
)

Definition at line 1802 of file be_cmds.c.

int be_cmd_rx_filter ( struct be_adapter adapter,
u32  flags,
u32  value 
)

Definition at line 1622 of file be_cmds.c.

int be_cmd_rxq_create ( struct be_adapter adapter,
struct be_queue_info rxq,
u16  cq_id,
u16  frag_size,
u32  if_id,
u32  rss,
u8 rss_id 
)

Definition at line 1069 of file be_cmds.c.

int be_cmd_rxq_destroy ( struct be_adapter adapter,
struct be_queue_info q 
)

Definition at line 1166 of file be_cmds.c.

int be_cmd_set_beacon_state ( struct be_adapter adapter,
u8  port_num,
u8  bcn,
u8  sts,
u8  state 
)

Definition at line 1842 of file be_cmds.c.

int be_cmd_set_ext_fat_capabilites ( struct be_adapter adapter,
struct be_dma_mem cmd,
struct be_fat_conf_params configs 
)

Definition at line 2729 of file be_cmds.c.

int be_cmd_set_flow_control ( struct be_adapter adapter,
u32  tx_fc,
u32  rx_fc 
)

Definition at line 1677 of file be_cmds.c.

int be_cmd_set_hsw_config ( struct be_adapter adapter,
u16  pvid,
u32  domain,
u16  intf_id 
)

Definition at line 2563 of file be_cmds.c.

int be_cmd_set_loopback ( struct be_adapter adapter,
u8  port_num,
u8  loopback_type,
u8  enable 
)

Definition at line 2127 of file be_cmds.c.

int be_cmd_set_mac_list ( struct be_adapter adapter,
u8 mac_array,
u8  mac_count,
u32  domain 
)

Definition at line 2519 of file be_cmds.c.

int be_cmd_set_qos ( struct be_adapter adapter,
u32  bps,
u32  domain 
)

Definition at line 2321 of file be_cmds.c.

int be_cmd_txq_create ( struct be_adapter adapter,
struct be_queue_info txq,
struct be_queue_info cq 
)

Definition at line 1012 of file be_cmds.c.

int be_cmd_vlan_config ( struct be_adapter adapter,
u32  if_id,
u16 vtag_array,
u32  num,
bool  untagged,
bool  promiscuous 
)

Definition at line 1587 of file be_cmds.c.

int be_cmd_write_flashrom ( struct be_adapter adapter,
struct be_dma_mem cmd,
u32  flash_type,
u32  flash_opcode,
u32  buf_size 
)

Definition at line 2026 of file be_cmds.c.

int be_fw_wait_ready ( struct be_adapter adapter)

Definition at line 483 of file be_cmds.c.

int be_process_mcc ( struct be_adapter adapter)

Definition at line 255 of file be_cmds.c.

int be_roce_mcc_cmd ( void netdev_handle,
void wrb_payload,
int  wrb_payload_size,
u16 cmd_status,
u16 ext_status 
)

Definition at line 2795 of file be_cmds.c.

EXPORT_SYMBOL ( be_roce_mcc_cmd  )
int lancer_cmd_get_pport_stats ( struct be_adapter adapter,
struct be_dma_mem nonemb_cmd 
)

Definition at line 1296 of file be_cmds.c.

int lancer_cmd_read_object ( struct be_adapter adapter,
struct be_dma_mem cmd,
u32  data_size,
u32  data_offset,
const char obj_name,
u32 data_read,
u32 eof,
u8 addn_status 
)

Definition at line 1979 of file be_cmds.c.

int lancer_cmd_write_object ( struct be_adapter adapter,
struct be_dma_mem cmd,
u32  data_size,
u32  data_offset,
const char obj_name,
u32 data_written,
u8 change_status,
u8 addn_status 
)

Definition at line 1906 of file be_cmds.c.

int lancer_test_and_set_rdy_state ( struct be_adapter adapter)

Definition at line 455 of file be_cmds.c.

int lancer_wait_ready ( struct be_adapter adapter)

Definition at line 435 of file be_cmds.c.