Lines Matching defs:be_adapter
551 struct be_adapter { struct
552 struct pci_dev *pdev;
553 struct net_device *netdev;
555 u8 __iomem *csr; /* CSR BAR used only for BE2/3 */
556 u8 __iomem *db; /* Door Bell */
557 u8 __iomem *pcicfg; /* On SH,BEx only. Shadow of PCI config space */
559 struct mutex mbox_lock; /* For serializing mbox cmds to BE card */
560 struct be_dma_mem mbox_mem;
563 struct be_dma_mem mbox_mem_alloced;
565 struct be_mcc_obj mcc_obj;
566 struct mutex mcc_lock; /* For serializing mcc cmds to BE card */
567 spinlock_t mcc_cq_lock;
569 u16 cfg_num_rx_irqs; /* configured via set-channels */
570 u16 cfg_num_tx_irqs; /* configured via set-channels */
571 u16 num_evt_qs;
572 u16 num_msix_vec;
573 struct be_eq_obj eq_obj[MAX_EVT_QS];
574 struct msix_entry msix_entries[MAX_MSIX_VECTORS];
575 bool isr_registered;
578 u16 num_tx_qs;
579 struct be_tx_obj tx_obj[MAX_TX_QS];
582 u16 num_rx_qs;
583 u16 num_rss_qs;
584 u16 need_def_rxq;
585 struct be_rx_obj rx_obj[MAX_RX_QS];
586 u32 big_page_size; /* Compounded page size shared by rx wrbs */
588 struct be_drv_stats drv_stats;
589 struct be_aic_obj aic_obj[MAX_EVT_QS];
590 bool aic_enabled;
591 u8 vlan_prio_bmap; /* Available Priority BitMap */
592 u16 recommended_prio_bits;/* Recommended Priority bits in vlan tag */
593 struct be_dma_mem rx_filter; /* Cmd DMA mem for rx-filter */
595 struct be_dma_mem stats_cmd;
597 struct delayed_work work;
598 u16 work_counter;
600 u8 recovery_retries;
601 u8 err_flags;
602 bool pcicfg_mapped; /* pcicfg obtained via pci_iomap() */
603 u32 flags;
604 u32 cmd_privileges;
606 char fw_ver[FW_VER_LEN];
607 char fw_on_flash[FW_VER_LEN];
610 int if_handle; /* Used to configure filtering */
611 u32 if_flags; /* Interface filtering flags */
612 u32 *pmac_id; /* MAC addr handle used by BE card */
613 struct be_eth_addr *uc_list;/* list of uc-addrs programmed (not perm) */
614 u32 uc_macs; /* Count of secondary UC MAC programmed */
615 struct be_eth_addr *mc_list;/* list of mcast addrs programmed */
616 u32 mc_count;
617 unsigned long vids[BITS_TO_LONGS(VLAN_N_VID)];
618 u16 vlans_added;
619 bool update_uc_list;
620 bool update_mc_list;
621 struct mutex rx_filter_lock;/* For protecting vids[] & mc/uc_list[] */
623 u32 beacon_state; /* for set_phys_id */
625 u32 port_num;
626 char port_name;
627 u8 mc_type;
628 u32 function_mode;
629 u32 function_caps;
630 u32 rx_fc; /* Rx flow control */
631 u32 tx_fc; /* Tx flow control */
632 bool stats_cmd_sent;
633 struct {
637 } roce_db;
638 u32 num_msix_roce_vec;
639 struct ocrdma_dev *ocrdma_dev;
640 struct list_head entry;
642 u32 flash_status;
643 struct completion et_cmd_compl;
645 struct be_resources pool_res; /* resources available for the port */
646 struct be_resources res; /* resources available for the func */
647 u16 num_vfs; /* Number of VFs provisioned by PF */
648 u8 pf_num; /* Numbering used by FW, starts at 0 */
649 u8 vf_num; /* Numbering used by FW, starts at 1 */
650 u8 virtfn;
651 struct be_vf_cfg *vf_cfg;
652 bool be3_native;
653 u32 sli_family;
654 u8 hba_port_num;
655 u16 pvid;
679 struct be_adapter *adapter; argument