Lines Matching defs:hisi_hba
131 struct hisi_hba *hisi_hba; member
173 struct hisi_hba *hisi_hba; member
205 struct hisi_hba *hisi_hba; member
214 struct hisi_hba *hisi_hba; member
222 struct hisi_hba *hisi_hba; member
364 struct hisi_hba *hisi_hba; member
389 struct hisi_hba { struct
391 struct sas_ha_struct *p;
393 struct platform_device *platform_dev;
394 struct pci_dev *pci_dev;
395 struct device *dev;
397 int prot_mask;
399 void __iomem *regs;
400 void __iomem *sgpio_regs;
401 struct regmap *ctrl;
402 u32 ctrl_reset_reg;
403 u32 ctrl_reset_sts_reg;
404 u32 ctrl_clock_ena_reg;
405 u32 refclk_frequency_mhz;
406 u8 sas_addr[SAS_ADDR_SIZE];
408 int *irq_map; /* v2 hw */
410 int n_phy;
411 spinlock_t lock;
412 struct semaphore sem;
414 struct timer_list timer;
415 struct workqueue_struct *wq;
417 int slot_index_count;
418 int last_slot_index;
419 int last_dev_id;
420 unsigned long *slot_index_tags;
421 unsigned long reject_stp_links_msk;
424 struct sas_ha_struct sha;
425 struct Scsi_Host *shost;
427 struct hisi_sas_cq cq[HISI_SAS_MAX_QUEUES];
428 struct hisi_sas_dq dq[HISI_SAS_MAX_QUEUES];
429 struct hisi_sas_phy phy[HISI_SAS_MAX_PHYS];
430 struct hisi_sas_port port[HISI_SAS_MAX_PHYS];
432 int queue_count;
434 struct hisi_sas_device devices[HISI_SAS_MAX_DEVICES];
435 struct hisi_sas_cmd_hdr *cmd_hdr[HISI_SAS_MAX_QUEUES];
436 dma_addr_t cmd_hdr_dma[HISI_SAS_MAX_QUEUES];
437 void *complete_hdr[HISI_SAS_MAX_QUEUES];
438 dma_addr_t complete_hdr_dma[HISI_SAS_MAX_QUEUES];
439 struct hisi_sas_initial_fis *initial_fis;
440 dma_addr_t initial_fis_dma;
441 struct hisi_sas_itct *itct;
442 dma_addr_t itct_dma;
443 struct hisi_sas_iost *iost;
444 dma_addr_t iost_dma;
445 struct hisi_sas_breakpoint *breakpoint;
446 dma_addr_t breakpoint_dma;
447 struct hisi_sas_breakpoint *sata_breakpoint;
448 dma_addr_t sata_breakpoint_dma;
449 struct hisi_sas_slot *slot_info;
450 unsigned long flags;
451 const struct hisi_sas_hw *hw; /* Low level hw interface */
452 unsigned long sata_dev_bitmap[BITS_TO_LONGS(HISI_SAS_MAX_DEVICES)];
453 struct work_struct rst_work;
454 u32 phy_state;
455 u32 intr_coal_ticks; /* Time of interrupt coalesce in us */
456 u32 intr_coal_count; /* Interrupt count to coalesce */
458 int cq_nvecs;
461 enum sas_linkrate debugfs_bist_linkrate;
462 int debugfs_bist_code_mode;
463 int debugfs_bist_phy_no;
464 int debugfs_bist_mode;
465 u32 debugfs_bist_cnt;
466 int debugfs_bist_enable;
467 u32 debugfs_bist_ffe[HISI_SAS_MAX_PHYS][FFE_CFG_MAX];
468 u32 debugfs_bist_fixed_code[FIXED_CODE_MAX];
472 struct hisi_sas_debugfs_regs debugfs_regs[HISI_SAS_MAX_DEBUGFS_DUMP][DEBUGFS_REGS_NUM];
473 struct hisi_sas_debugfs_port debugfs_port_reg[HISI_SAS_MAX_DEBUGFS_DUMP][HISI_SAS_MAX_PHYS];
474 struct hisi_sas_debugfs_cq debugfs_cq[HISI_SAS_MAX_DEBUGFS_DUMP][HISI_SAS_MAX_QUEUES];
475 struct hisi_sas_debugfs_dq debugfs_dq[HISI_SAS_MAX_DEBUGFS_DUMP][HISI_SAS_MAX_QUEUES];
476 struct hisi_sas_debugfs_iost debugfs_iost[HISI_SAS_MAX_DEBUGFS_DUMP];
477 struct hisi_sas_debugfs_itct debugfs_itct[HISI_SAS_MAX_DEBUGFS_DUMP];
478 struct hisi_sas_debugfs_iost_cache debugfs_iost_cache[HISI_SAS_MAX_DEBUGFS_DUMP];
479 struct hisi_sas_debugfs_itct_cache debugfs_itct_cache[HISI_SAS_MAX_DEBUGFS_DUMP];
481 u64 debugfs_timestamp[HISI_SAS_MAX_DEBUGFS_DUMP];
482 int debugfs_dump_index;
483 struct dentry *debugfs_dir;
484 struct dentry *debugfs_dump_dentry;
485 struct dentry *debugfs_bist_dentry;
486 struct dentry *debugfs_fifo_dentry;
488 int iopoll_q_cnt;