Lines Matching defs:be_adapter

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