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