Lines Matching defs:be_adapter

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