Home
last modified time | relevance | path

Searched refs:hisi_hba (Results 1 – 5 of 5) sorted by relevance

/Linux-v6.6/drivers/scsi/hisi_sas/
Dhisi_sas_main.c16 static void hisi_sas_release_task(struct hisi_hba *hisi_hba,
135 static struct hisi_hba *dev_to_hisi_hba(struct domain_device *device) in dev_to_hisi_hba()
146 void hisi_sas_stop_phys(struct hisi_hba *hisi_hba) in hisi_sas_stop_phys() argument
150 for (phy_no = 0; phy_no < hisi_hba->n_phy; phy_no++) in hisi_sas_stop_phys()
151 hisi_sas_phy_enable(hisi_hba, phy_no, 0); in hisi_sas_stop_phys()
155 static void hisi_sas_slot_index_clear(struct hisi_hba *hisi_hba, int slot_idx) in hisi_sas_slot_index_clear() argument
157 void *bitmap = hisi_hba->slot_index_tags; in hisi_sas_slot_index_clear()
162 static void hisi_sas_slot_index_free(struct hisi_hba *hisi_hba, int slot_idx) in hisi_sas_slot_index_free() argument
164 if (hisi_hba->hw->slot_index_alloc || in hisi_sas_slot_index_free()
166 spin_lock(&hisi_hba->lock); in hisi_sas_slot_index_free()
[all …]
Dhisi_sas_v3_hw.c562 static void debugfs_snapshot_regs_v3_hw(struct hisi_hba *hisi_hba);
564 static u32 hisi_sas_read32(struct hisi_hba *hisi_hba, u32 off) in hisi_sas_read32() argument
566 void __iomem *regs = hisi_hba->regs + off; in hisi_sas_read32()
571 static void hisi_sas_write32(struct hisi_hba *hisi_hba, u32 off, u32 val) in hisi_sas_write32() argument
573 void __iomem *regs = hisi_hba->regs + off; in hisi_sas_write32()
578 static void hisi_sas_phy_write32(struct hisi_hba *hisi_hba, int phy_no, in hisi_sas_phy_write32() argument
581 void __iomem *regs = hisi_hba->regs + (0x400 * phy_no) + off; in hisi_sas_phy_write32()
586 static u32 hisi_sas_phy_read32(struct hisi_hba *hisi_hba, in hisi_sas_phy_read32() argument
589 void __iomem *regs = hisi_hba->regs + (0x400 * phy_no) + off; in hisi_sas_phy_read32()
597 void __iomem *regs = hisi_hba->regs + off; \
[all …]
Dhisi_sas_v1_hw.c412 static u32 hisi_sas_read32(struct hisi_hba *hisi_hba, u32 off) in hisi_sas_read32() argument
414 void __iomem *regs = hisi_hba->regs + off; in hisi_sas_read32()
419 static void hisi_sas_write32(struct hisi_hba *hisi_hba, in hisi_sas_write32() argument
422 void __iomem *regs = hisi_hba->regs + off; in hisi_sas_write32()
427 static void hisi_sas_phy_write32(struct hisi_hba *hisi_hba, in hisi_sas_phy_write32() argument
430 void __iomem *regs = hisi_hba->regs + (0x400 * phy_no) + off; in hisi_sas_phy_write32()
435 static u32 hisi_sas_phy_read32(struct hisi_hba *hisi_hba, in hisi_sas_phy_read32() argument
438 void __iomem *regs = hisi_hba->regs + (0x400 * phy_no) + off; in hisi_sas_phy_read32()
443 static void config_phy_opt_mode_v1_hw(struct hisi_hba *hisi_hba, int phy_no) in config_phy_opt_mode_v1_hw() argument
445 u32 cfg = hisi_sas_phy_read32(hisi_hba, phy_no, PHY_CFG); in config_phy_opt_mode_v1_hw()
[all …]
Dhisi_sas_v2_hw.c729 static u32 hisi_sas_read32(struct hisi_hba *hisi_hba, u32 off) in hisi_sas_read32() argument
731 void __iomem *regs = hisi_hba->regs + off; in hisi_sas_read32()
736 static u32 hisi_sas_read32_relaxed(struct hisi_hba *hisi_hba, u32 off) in hisi_sas_read32_relaxed() argument
738 void __iomem *regs = hisi_hba->regs + off; in hisi_sas_read32_relaxed()
743 static void hisi_sas_write32(struct hisi_hba *hisi_hba, u32 off, u32 val) in hisi_sas_write32() argument
745 void __iomem *regs = hisi_hba->regs + off; in hisi_sas_write32()
750 static void hisi_sas_phy_write32(struct hisi_hba *hisi_hba, int phy_no, in hisi_sas_phy_write32() argument
753 void __iomem *regs = hisi_hba->regs + (0x400 * phy_no) + off; in hisi_sas_phy_write32()
758 static u32 hisi_sas_phy_read32(struct hisi_hba *hisi_hba, in hisi_sas_phy_read32() argument
761 void __iomem *regs = hisi_hba->regs + (0x400 * phy_no) + off; in hisi_sas_phy_read32()
[all …]
Dhisi_sas.h97 struct hisi_hba;
131 struct hisi_hba *hisi_hba; member
138 { .hisi_hba = hisi_hba, \
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
309 int (*hw_init)(struct hisi_hba *hisi_hba);
310 int (*interrupt_preinit)(struct hisi_hba *hisi_hba);
311 void (*setup_itct)(struct hisi_hba *hisi_hba,
[all …]