Lines Matching defs:lpfc_hba
627 struct lpfc_hba { struct
630 (struct lpfc_hba *phba, struct lpfc_nodelist *ndlp, argument
633 (struct lpfc_hba *, struct lpfc_io_buf *); argument
635 (struct lpfc_hba *, struct lpfc_io_buf *); argument
637 (struct lpfc_hba *, struct lpfc_io_buf *); argument
639 (struct lpfc_hba *); argument
646 (struct lpfc_hba *, uint32_t, argument
648 void (*__lpfc_sli_release_iocbq)(struct lpfc_hba *, argument
650 int (*lpfc_hba_down_post)(struct lpfc_hba *phba); argument
654 (struct lpfc_hba *, struct lpfc_iocbq *, struct lpfc_iocbq *); argument
658 (struct lpfc_hba *, LPFC_MBOXQ_t *, uint32_t); argument
662 (struct lpfc_hba *phba, struct lpfc_sli_ring *pring, argument
667 (struct lpfc_hba *, uint32_t, struct hbq_dmabuf *); argument
669 (struct lpfc_hba *); argument
671 (struct lpfc_hba *, uint32_t); argument
673 (struct lpfc_hba *); argument
675 (struct lpfc_hba *); argument
676 int (*lpfc_hba_init_link) argument
678 int (*lpfc_hba_down_link) argument
681 (struct lpfc_hba *); argument
684 (struct lpfc_hba *, struct lpfc_io_buf *); argument
688 struct lpfc_epd_pool epd_pool;
691 struct lpfc_sli4_hba sli4_hba;
693 struct workqueue_struct *wq;
694 struct delayed_work eq_delay_work;
696 struct lpfc_sli sli;
697 uint8_t pci_dev_grp; /* lpfc PCI dev group: 0x0, 0x1, 0x2,... */
698 uint32_t sli_rev; /* SLI2, SLI3, or SLI4 */
699 uint32_t sli3_options; /* Mask of enabled SLI3 options */
708 uint32_t iocb_cmd_size;
709 uint32_t iocb_rsp_size;
711 struct lpfc_trunk_link trunk_link;
712 enum hba_state link_state;
713 uint32_t link_flag; /* link state flags */
722 uint32_t hba_flag; /* hba generic flags */
746 uint32_t fcp_ring_in_use; /* When polling test if intr-hndlr active*/
747 struct lpfc_dmabuf slim2p;
749 MAILBOX_t *mbox;
750 uint32_t *mbox_ext;
751 struct lpfc_mbox_ext_buf_ctx mbox_ext_buf_ctx;
752 uint32_t ha_copy;
753 struct _PCB *pcb;
754 struct _IOCB *IOCBs;
756 struct lpfc_dmabuf hbqslimp;
758 uint16_t pci_cfg_value;
760 uint8_t fc_linkspeed; /* Link speed after last READ_LA */
762 uint32_t fc_eventTag; /* event tag for link attention */
763 uint32_t link_events;
766 uint32_t fc_pref_DID; /* preferred D_ID */
767 uint8_t fc_pref_ALPA; /* preferred AL_PA */
768 uint32_t fc_edtovResol; /* E_D_TOV timer resolution */
769 uint32_t fc_edtov; /* E_D_TOV timer value */
770 uint32_t fc_arbtov; /* ARB_TOV timer value */
771 uint32_t fc_ratov; /* R_A_TOV timer value */
772 uint32_t fc_rttov; /* R_T_TOV timer value */
773 uint32_t fc_altov; /* AL_TOV timer value */
774 uint32_t fc_crtov; /* C_R_TOV timer value */
776 struct serv_parm fc_fabparam; /* fabric service parameters buffer */
777 uint8_t alpa_map[128]; /* AL_PA map from READ_LA */
779 uint32_t lmt;
781 uint32_t fc_topology; /* link topology, from LINK INIT */
782 uint32_t fc_topology_changed; /* link topology, from LINK INIT */
784 struct lpfc_stats fc_stat;
786 struct lpfc_nodelist fc_fcpnodev; /* nodelist entry for no device */
787 uint32_t nport_event_cnt; /* timestamp for nlplist entry */
789 uint8_t wwnn[8];
790 uint8_t wwpn[8];
791 uint32_t RandomData[7];
792 uint8_t fcp_embed_io;
793 uint8_t nvme_support; /* Firmware supports NVME */
794 uint8_t nvmet_support; /* driver supports NVMET */
796 uint8_t mds_diags_support;
797 uint8_t bbcredit_support;
798 uint8_t enab_exp_wqcq_pages;
799 u8 nsler; /* Firmware supports FC-NVMe-2 SLER */
802 uint32_t cfg_ack0;
803 uint32_t cfg_xri_rebalancing;
804 uint32_t cfg_xpsgl;
805 uint32_t cfg_enable_npiv;
806 uint32_t cfg_enable_rrq;
807 uint32_t cfg_topology;
808 uint32_t cfg_link_speed;
811 uint32_t cfg_fcf_failover_policy;
812 uint32_t cfg_fcp_io_sched;
813 uint32_t cfg_ns_query;
814 uint32_t cfg_fcp2_no_tgt_reset;
815 uint32_t cfg_cr_delay;
816 uint32_t cfg_cr_count;
817 uint32_t cfg_multi_ring_support;
818 uint32_t cfg_multi_ring_rctl;
819 uint32_t cfg_multi_ring_type;
820 uint32_t cfg_poll;
821 uint32_t cfg_poll_tmo;
822 uint32_t cfg_task_mgmt_tmo;
823 uint32_t cfg_use_msi;
824 uint32_t cfg_auto_imax;
825 uint32_t cfg_fcp_imax;
826 uint32_t cfg_force_rscn;
827 uint32_t cfg_cq_poll_threshold;
828 uint32_t cfg_cq_max_proc_limit;
829 uint32_t cfg_fcp_cpu_map;
830 uint32_t cfg_fcp_mq_threshold;
831 uint32_t cfg_hdw_queue;
832 uint32_t cfg_irq_chann;
833 uint32_t cfg_suppress_rsp;
834 uint32_t cfg_nvme_oas;
835 uint32_t cfg_nvme_embed_cmd;
836 uint32_t cfg_nvmet_mrq_post;
837 uint32_t cfg_nvmet_mrq;
838 uint32_t cfg_enable_nvmet;
839 uint32_t cfg_nvme_enable_fb;
840 uint32_t cfg_nvmet_fb_size;
841 uint32_t cfg_total_seg_cnt;
842 uint32_t cfg_sg_seg_cnt;
843 uint32_t cfg_nvme_seg_cnt;
844 uint32_t cfg_scsi_seg_cnt;
845 uint32_t cfg_sg_dma_buf_size;
846 uint64_t cfg_soft_wwnn;
847 uint64_t cfg_soft_wwpn;
848 uint32_t cfg_hba_queue_depth;
849 uint32_t cfg_enable_hba_reset;
850 uint32_t cfg_enable_hba_heartbeat;
851 uint32_t cfg_fof;
852 uint32_t cfg_EnableXLane;
853 uint8_t cfg_oas_tgt_wwpn[8];
854 uint8_t cfg_oas_vpt_wwpn[8];
855 uint32_t cfg_oas_lun_state;
858 uint32_t cfg_oas_lun_status;
860 uint32_t cfg_oas_flags;
864 uint32_t cfg_oas_priority;
865 uint32_t cfg_XLanePriority;
866 uint32_t cfg_enable_bg;
867 uint32_t cfg_prot_mask;
868 uint32_t cfg_prot_guard;
869 uint32_t cfg_hostmem_hgp;
870 uint32_t cfg_log_verbose;
871 uint32_t cfg_enable_fc4_type;
872 uint32_t cfg_aer_support;
873 uint32_t cfg_sriov_nr_virtfn;
874 uint32_t cfg_request_firmware_upgrade;
875 uint32_t cfg_iocb_cnt;
876 uint32_t cfg_suppress_link_up;
877 uint32_t cfg_rrq_xri_bitmap_sz;
878 uint32_t cfg_delay_discovery;
879 uint32_t cfg_sli_mode;
883 uint32_t cfg_enable_dss;
884 uint32_t cfg_fdmi_on;
887 uint32_t cfg_enable_SmartSAN;
888 uint32_t cfg_enable_mds_diags;
889 uint32_t cfg_ras_fwlog_level;
890 uint32_t cfg_ras_fwlog_buffsize;
891 uint32_t cfg_ras_fwlog_func;
892 uint32_t cfg_enable_bbcr; /* Enable BB Credit Recovery */
893 uint32_t cfg_enable_dpp; /* Enable Direct Packet Push */
897 uint32_t cfg_enable_pbde;
898 struct nvmet_fc_target_port *targetport;
899 lpfc_vpd_t vpd; /* vital product data */
901 struct pci_dev *pcidev;
902 struct list_head work_list;
903 uint32_t work_ha; /* Host Attention Bits for WT */
904 uint32_t work_ha_mask; /* HA Bits owned by WT */
905 uint32_t work_hs; /* HS stored in case of ERRAT */
906 uint32_t work_status[2]; /* Extra status from SLIM */
908 wait_queue_head_t work_waitq;
909 struct task_struct *worker_thread;
910 unsigned long data_flags;
911 uint32_t border_sge_num;
913 uint32_t hbq_in_use; /* HBQs in use flag */
914 uint32_t hbq_count; /* Count of configured HBQs */
915 struct hbq_s hbqs[LPFC_MAX_HBQS]; /* local copy of hbq indicies */
917 atomic_t fcp_qidx; /* next FCP WQ (RR Policy) */
918 atomic_t nvme_qidx; /* next NVME WQ (RR Policy) */
920 phys_addr_t pci_bar0_map; /* Physical address for PCI BAR0 */
921 phys_addr_t pci_bar1_map; /* Physical address for PCI BAR1 */
922 phys_addr_t pci_bar2_map; /* Physical address for PCI BAR2 */
923 void __iomem *slim_memmap_p; /* Kernel memory mapped address for
925 void __iomem *ctrl_regs_memmap_p;/* Kernel memory mapped address for
928 void __iomem *pci_bar0_memmap_p; /* Kernel memory mapped address for
930 void __iomem *pci_bar2_memmap_p; /* Kernel memory mapped address for
932 void __iomem *pci_bar4_memmap_p; /* Kernel memory mapped address for
937 void __iomem *MBslimaddr; /* virtual address for mbox cmds */
938 void __iomem *HAregaddr; /* virtual address for host attn reg */
939 void __iomem *CAregaddr; /* virtual address for chip attn reg */
940 void __iomem *HSregaddr; /* virtual address for host status
942 void __iomem *HCregaddr; /* virtual address for host ctl reg */
944 struct lpfc_hgp __iomem *host_gp; /* Host side get/put pointers */
945 struct lpfc_pgp *port_gp;
946 uint32_t __iomem *hbq_put; /* Address in SLIM to HBQ put ptrs */
947 uint32_t *hbq_get; /* Host mem address of HBQ get ptrs */
949 int brd_no; /* FC board number */
950 char SerialNumber[32]; /* adapter Serial Number */
951 char OptionROMVersion[32]; /* adapter BIOS / Fcode version */
952 char BIOSVersion[16]; /* Boot BIOS version */
953 char ModelDesc[256]; /* Model Description */
954 char ModelName[80]; /* Model Name */
955 char ProgramType[256]; /* Program Type */
956 char Port[20]; /* Port No */
957 uint8_t vpd_flag; /* VPD data flag */
965 uint8_t soft_wwn_enable;
967 struct timer_list fcp_poll_timer;
968 struct timer_list eratt_poll;
969 uint32_t eratt_poll_interval;
971 uint64_t bg_guard_err_cnt;
972 uint64_t bg_apptag_err_cnt;
973 uint64_t bg_reftag_err_cnt;
976 spinlock_t scsi_buf_list_get_lock; /* SCSI buf alloc list lock */
977 spinlock_t scsi_buf_list_put_lock; /* SCSI buf free list lock */
978 struct list_head lpfc_scsi_buf_list_get;
979 struct list_head lpfc_scsi_buf_list_put;
980 uint32_t total_scsi_bufs;
981 struct list_head lpfc_iocb_list;
982 uint32_t total_iocbq_bufs;
983 struct list_head active_rrq_list;
984 spinlock_t hbalock;
987 struct dma_pool *lpfc_sg_dma_buf_pool;
988 struct dma_pool *lpfc_mbuf_pool;
989 struct dma_pool *lpfc_hrb_pool; /* header receive buffer pool */
990 struct dma_pool *lpfc_drb_pool; /* data receive buffer pool */
991 struct dma_pool *lpfc_nvmet_drb_pool; /* data receive buffer pool */
992 struct dma_pool *lpfc_hbq_pool; /* SLI3 hbq buffer pool */
993 struct dma_pool *txrdy_payload_pool;
994 struct dma_pool *lpfc_cmd_rsp_buf_pool;
995 struct lpfc_dma_pool lpfc_mbuf_safety_pool;
997 mempool_t *mbox_mem_pool;
998 mempool_t *nlp_mem_pool;
999 mempool_t *rrq_pool;
1000 mempool_t *active_rrq_pool;
1002 struct fc_host_statistics link_stats;
1003 enum intr_type_t intr_type;
1004 uint32_t intr_mode;
1006 struct list_head port_list;
1007 spinlock_t port_list_lock; /* lock for port_list mutations */
1008 struct lpfc_vport *pport; /* physical lpfc_vport pointer */
1009 uint16_t max_vpi; /* Maximum virtual nports */
1012 uint16_t max_vports; /*
1018 uint16_t vpi_base;
1019 uint16_t vfi_base;
1020 unsigned long *vpi_bmask; /* vpi allocation table */
1021 uint16_t *vpi_ids;
1022 uint16_t vpi_count;
1023 struct list_head lpfc_vpi_blk_list;
1026 struct list_head fabric_iocb_list;
1027 atomic_t fabric_iocb_count;
1028 struct timer_list fabric_block_timer;
1029 unsigned long bit_flags;
1031 atomic_t num_rsrc_err;
1032 atomic_t num_cmd_success;
1033 unsigned long last_rsrc_error_time;
1034 unsigned long last_ramp_down_time;
1036 struct dentry *hba_debugfs_root;
1037 atomic_t debugfs_vport_count;
1038 struct dentry *debug_multixri_pools;
1039 struct dentry *debug_hbqinfo;
1040 struct dentry *debug_dumpHostSlim;
1041 struct dentry *debug_dumpHBASlim;
1042 struct dentry *debug_InjErrLBA; /* LBA to inject errors at */
1043 struct dentry *debug_InjErrNPortID; /* NPortID to inject errors at */
1044 struct dentry *debug_InjErrWWPN; /* WWPN to inject errors at */
1045 struct dentry *debug_writeGuard; /* inject write guard_tag errors */
1046 struct dentry *debug_writeApp; /* inject write app_tag errors */
1047 struct dentry *debug_writeRef; /* inject write ref_tag errors */
1048 struct dentry *debug_readGuard; /* inject read guard_tag errors */
1049 struct dentry *debug_readApp; /* inject read app_tag errors */
1050 struct dentry *debug_readRef; /* inject read ref_tag errors */
1052 struct dentry *debug_nvmeio_trc;
1053 struct lpfc_debugfs_nvmeio_trc *nvmeio_trc;
1054 struct dentry *debug_hdwqinfo;
1056 struct dentry *debug_lockstat;
1058 atomic_t nvmeio_trc_cnt;
1059 uint32_t nvmeio_trc_size;
1060 uint32_t nvmeio_trc_output_idx;
1063 uint32_t lpfc_injerr_wgrd_cnt;
1064 uint32_t lpfc_injerr_wapp_cnt;
1065 uint32_t lpfc_injerr_wref_cnt;
1066 uint32_t lpfc_injerr_rgrd_cnt;
1067 uint32_t lpfc_injerr_rapp_cnt;
1068 uint32_t lpfc_injerr_rref_cnt;
1069 uint32_t lpfc_injerr_nportid;
1070 struct lpfc_name lpfc_injerr_wwpn;
1071 sector_t lpfc_injerr_lba;
1074 struct dentry *debug_slow_ring_trc;
1075 struct lpfc_debugfs_trc *slow_ring_trc;
1076 atomic_t slow_ring_trc_cnt;
1078 struct dentry *idiag_root;
1079 struct dentry *idiag_pci_cfg;
1080 struct dentry *idiag_bar_acc;
1081 struct dentry *idiag_que_info;
1082 struct dentry *idiag_que_acc;
1083 struct dentry *idiag_drb_acc;
1084 struct dentry *idiag_ctl_acc;
1085 struct dentry *idiag_mbx_acc;
1086 struct dentry *idiag_ext_acc;
1087 uint8_t lpfc_idiag_last_eq;
1089 uint16_t nvmeio_trc_on;
1092 struct list_head elsbuf;
1093 int elsbuf_cnt;
1094 int elsbuf_prev_cnt;
1096 uint8_t temp_sensor_support;
1098 unsigned long last_completion_time;
1099 unsigned long skipped_hb;
1100 struct timer_list hb_tmofunc;
1101 uint8_t hb_outstanding;
1102 struct timer_list rrq_tmr;
1103 enum hba_temp_state over_temp_state;
1105 spinlock_t ndlp_lock;
1111 uint32_t buffer_tag_count;
1112 int wait_4_mlo_maint_flg;
1113 wait_queue_head_t wait_4_mlo_m_q;
1118 uint8_t bucket_type;
1119 uint32_t bucket_base;
1120 uint32_t bucket_step;
1124 atomic_t fast_event_count;
1125 uint32_t fcoe_eventtag;
1126 uint32_t fcoe_eventtag_at_fcf_scan;
1127 uint32_t fcoe_cvl_eventtag;
1128 uint32_t fcoe_cvl_eventtag_attn;
1129 struct lpfc_fcf fcf;
1130 uint8_t fc_map[3];
1131 uint8_t valid_vlan;
1132 uint16_t vlan_id;
1133 struct list_head fcf_conn_rec_list;
1135 bool defer_flogi_acc_flag;
1136 uint16_t defer_flogi_acc_rx_id;
1137 uint16_t defer_flogi_acc_ox_id;
1139 spinlock_t ct_ev_lock; /* synchronize access to ct_ev_waiters */
1140 struct list_head ct_ev_waiters;
1141 struct unsol_rcv_ct_ctx ct_ctx[LPFC_CT_CTX_MAX];
1142 uint32_t ctx_idx;
1145 struct lpfc_ras_fwlog ras_fwlog;
1147 uint8_t menlo_flag; /* menlo generic flags */
1149 uint32_t iocb_cnt;
1150 uint32_t iocb_max;
1151 atomic_t sdev_cnt;
1152 uint8_t fips_spec_rev;
1153 uint8_t fips_level;
1154 spinlock_t devicelock; /* lock for luns list */
1155 mempool_t *device_data_mem_pool;
1156 struct list_head luns;
1167 uint16_t sfp_alarm;
1168 uint16_t sfp_warning;
1171 uint16_t cpucheck_on;
1177 uint16_t ktime_on;
1178 uint64_t ktime_data_samples;
1179 uint64_t ktime_status_samples;
1180 uint64_t ktime_last_cmd;
1181 uint64_t ktime_seg1_total;
1182 uint64_t ktime_seg1_min;
1183 uint64_t ktime_seg1_max;
1184 uint64_t ktime_seg2_total;
1185 uint64_t ktime_seg2_min;
1186 uint64_t ktime_seg2_max;
1187 uint64_t ktime_seg3_total;
1188 uint64_t ktime_seg3_min;
1189 uint64_t ktime_seg3_max;
1190 uint64_t ktime_seg4_total;
1191 uint64_t ktime_seg4_min;
1192 uint64_t ktime_seg4_max;
1193 uint64_t ktime_seg5_total;
1194 uint64_t ktime_seg5_min;
1195 uint64_t ktime_seg5_max;
1196 uint64_t ktime_seg6_total;
1197 uint64_t ktime_seg6_min;
1221 lpfc_set_loopback_flag(struct lpfc_hba *phba) in lpfc_set_loopback_flag() argument