Lines Matching defs:hisi_hba

131 	struct hisi_hba *hisi_hba;  member
172 struct hisi_hba *hisi_hba; member
204 struct hisi_hba *hisi_hba; member
212 struct hisi_hba *hisi_hba; member
220 struct hisi_hba *hisi_hba; member
370 struct hisi_hba *hisi_hba; member
395 struct hisi_hba { struct
397 struct sas_ha_struct *p;
399 struct platform_device *platform_dev;
400 struct pci_dev *pci_dev;
401 struct device *dev;
403 int prot_mask;
405 void __iomem *regs;
406 void __iomem *sgpio_regs;
407 struct regmap *ctrl;
408 u32 ctrl_reset_reg;
409 u32 ctrl_reset_sts_reg;
410 u32 ctrl_clock_ena_reg;
411 u32 refclk_frequency_mhz;
412 u8 sas_addr[SAS_ADDR_SIZE];
414 int *irq_map; /* v2 hw */
416 int n_phy;
417 spinlock_t lock;
418 struct semaphore sem;
420 struct timer_list timer;
421 struct workqueue_struct *wq;
423 int slot_index_count;
424 int last_slot_index;
425 int last_dev_id;
426 unsigned long *slot_index_tags;
427 unsigned long reject_stp_links_msk;
430 struct sas_ha_struct sha;
431 struct Scsi_Host *shost;
433 struct hisi_sas_cq cq[HISI_SAS_MAX_QUEUES];
434 struct hisi_sas_dq dq[HISI_SAS_MAX_QUEUES];
435 struct hisi_sas_phy phy[HISI_SAS_MAX_PHYS];
436 struct hisi_sas_port port[HISI_SAS_MAX_PHYS];
438 int queue_count;
440 struct hisi_sas_device devices[HISI_SAS_MAX_DEVICES];
441 struct hisi_sas_cmd_hdr *cmd_hdr[HISI_SAS_MAX_QUEUES];
442 dma_addr_t cmd_hdr_dma[HISI_SAS_MAX_QUEUES];
443 void *complete_hdr[HISI_SAS_MAX_QUEUES];
444 dma_addr_t complete_hdr_dma[HISI_SAS_MAX_QUEUES];
445 struct hisi_sas_initial_fis *initial_fis;
446 dma_addr_t initial_fis_dma;
447 struct hisi_sas_itct *itct;
448 dma_addr_t itct_dma;
449 struct hisi_sas_iost *iost;
450 dma_addr_t iost_dma;
451 struct hisi_sas_breakpoint *breakpoint;
452 dma_addr_t breakpoint_dma;
453 struct hisi_sas_breakpoint *sata_breakpoint;
454 dma_addr_t sata_breakpoint_dma;
455 struct hisi_sas_slot *slot_info;
456 unsigned long flags;
457 const struct hisi_sas_hw *hw; /* Low level hw interface */
458 unsigned long sata_dev_bitmap[BITS_TO_LONGS(HISI_SAS_MAX_DEVICES)];
459 struct work_struct rst_work;
460 struct work_struct debugfs_work;
461 u32 phy_state;
462 u32 intr_coal_ticks; /* Time of interrupt coalesce in us */
463 u32 intr_coal_count; /* Interrupt count to coalesce */
465 int cq_nvecs;
468 enum sas_linkrate debugfs_bist_linkrate;
469 int debugfs_bist_code_mode;
470 int debugfs_bist_phy_no;
471 int debugfs_bist_mode;
472 u32 debugfs_bist_cnt;
473 int debugfs_bist_enable;
474 u32 debugfs_bist_ffe[HISI_SAS_MAX_PHYS][FFE_CFG_MAX];
475 u32 debugfs_bist_fixed_code[FIXED_CODE_MAX];
479 struct hisi_sas_debugfs_regs debugfs_regs[HISI_SAS_MAX_DEBUGFS_DUMP][DEBUGFS_REGS_NUM];
480 struct hisi_sas_debugfs_port debugfs_port_reg[HISI_SAS_MAX_DEBUGFS_DUMP][HISI_SAS_MAX_PHYS];
481 struct hisi_sas_debugfs_cq debugfs_cq[HISI_SAS_MAX_DEBUGFS_DUMP][HISI_SAS_MAX_QUEUES];
482 struct hisi_sas_debugfs_dq debugfs_dq[HISI_SAS_MAX_DEBUGFS_DUMP][HISI_SAS_MAX_QUEUES];
483 struct hisi_sas_debugfs_iost debugfs_iost[HISI_SAS_MAX_DEBUGFS_DUMP];
484 struct hisi_sas_debugfs_itct debugfs_itct[HISI_SAS_MAX_DEBUGFS_DUMP];
485 struct hisi_sas_debugfs_iost_cache debugfs_iost_cache[HISI_SAS_MAX_DEBUGFS_DUMP];
486 struct hisi_sas_debugfs_itct_cache debugfs_itct_cache[HISI_SAS_MAX_DEBUGFS_DUMP];
488 u64 debugfs_timestamp[HISI_SAS_MAX_DEBUGFS_DUMP];
489 int debugfs_dump_index;
490 struct dentry *debugfs_dir;
491 struct dentry *debugfs_dump_dentry;
492 struct dentry *debugfs_bist_dentry;
493 struct dentry *debugfs_fifo_dentry;