Lines Matching defs:be_adapter
469 struct be_adapter { struct
470 struct pci_dev *pdev;
471 struct net_device *netdev;
473 u8 __iomem *csr; /* CSR BAR used only for BE2/3 */
474 u8 __iomem *db; /* Door Bell */
475 u8 __iomem *pcicfg; /* On SH,BEx only. Shadow of PCI config space */
477 struct mutex mbox_lock; /* For serializing mbox cmds to BE card */
478 struct be_dma_mem mbox_mem;
481 struct be_dma_mem mbox_mem_alloced;
483 struct be_mcc_obj mcc_obj;
484 spinlock_t mcc_lock; /* For serializing mcc cmds to BE card */
485 spinlock_t mcc_cq_lock;
487 u16 cfg_num_qs; /* configured via set-channels */
488 u16 num_evt_qs;
489 u16 num_msix_vec;
490 struct be_eq_obj eq_obj[MAX_EVT_QS];
491 struct msix_entry msix_entries[MAX_MSIX_VECTORS];
492 bool isr_registered;
495 u16 num_tx_qs;
496 struct be_tx_obj tx_obj[MAX_TX_QS];
499 u16 num_rx_qs;
500 u16 num_rss_qs;
501 u16 need_def_rxq;
502 struct be_rx_obj rx_obj[MAX_RX_QS];
503 u32 big_page_size; /* Compounded page size shared by rx wrbs */
505 struct be_drv_stats drv_stats;
506 struct be_aic_obj aic_obj[MAX_EVT_QS];
507 u8 vlan_prio_bmap; /* Available Priority BitMap */
508 u16 recommended_prio; /* Recommended Priority */
509 struct be_dma_mem rx_filter; /* Cmd DMA mem for rx-filter */
511 struct be_dma_mem stats_cmd;
513 struct delayed_work work;
514 u16 work_counter;
516 struct delayed_work be_err_detection_work;
517 u32 flags;
518 u32 cmd_privileges;
520 char fw_ver[FW_VER_LEN];
521 char fw_on_flash[FW_VER_LEN];
524 int if_handle; /* Used to configure filtering */
525 u32 if_flags; /* Interface filtering flags */
526 u32 *pmac_id; /* MAC addr handle used by BE card */
527 u32 uc_macs; /* Count of secondary UC MAC programmed */
528 unsigned long vids[BITS_TO_LONGS(VLAN_N_VID)];
529 u16 vlans_added;
531 u32 beacon_state; /* for set_phys_id */
533 bool eeh_error;
534 bool fw_timeout;
535 bool hw_error;
537 u32 port_num;
538 char port_name;
539 u8 mc_type;
540 u32 function_mode;
541 u32 function_caps;
542 u32 rx_fc; /* Rx flow control */
543 u32 tx_fc; /* Tx flow control */
544 bool stats_cmd_sent;
545 struct {
549 } roce_db;
550 u32 num_msix_roce_vec;
551 struct ocrdma_dev *ocrdma_dev;
552 struct list_head entry;
554 u32 flash_status;
555 struct completion et_cmd_compl;
557 struct be_resources pool_res; /* resources available for the port */
558 struct be_resources res; /* resources available for the func */
559 u16 num_vfs; /* Number of VFs provisioned by PF */
560 u8 virtfn;
561 struct be_vf_cfg *vf_cfg;
562 bool be3_native;
563 u32 sli_family;
564 u8 hba_port_num;
565 u16 pvid;
566 __be16 vxlan_port;
567 int vxlan_port_count;
568 struct phy_info phy;
569 u8 wol_cap;
570 bool wol_en;
571 u16 asic_rev;
572 u16 qnq_vid;
573 u32 msg_enable;
574 int be_get_temp_freq;
575 u8 pf_number;
576 struct rss_info rss_info;