Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/drivers/scsi/hisi_sas/
H A Dhisi_sas_main.c16 hisi_sas_internal_task_abort(struct hisi_hba *hisi_hba,
22 static void hisi_sas_release_task(struct hisi_hba *hisi_hba,
137 static struct hisi_hba *dev_to_hisi_hba(struct domain_device *device) in dev_to_hisi_hba()
148 void hisi_sas_stop_phys(struct hisi_hba *hisi_hba) in hisi_sas_stop_phys() argument
152 for (phy_no = 0; phy_no < hisi_hba->n_phy; phy_no++) in hisi_sas_stop_phys()
153 hisi_sas_phy_enable(hisi_hba, phy_no, 0); in hisi_sas_stop_phys()
157 static void hisi_sas_slot_index_clear(struct hisi_hba *hisi_hba, int slot_idx) in hisi_sas_slot_index_clear() argument
159 void *bitmap = hisi_hba->slot_index_tags; in hisi_sas_slot_index_clear()
164 static void hisi_sas_slot_index_free(struct hisi_hba *hisi_hba, int slot_idx) in hisi_sas_slot_index_free() argument
166 if (hisi_hba->hw->slot_index_alloc || in hisi_sas_slot_index_free()
[all …]
H A Dhisi_sas_v3_hw.c525 static u32 hisi_sas_read32(struct hisi_hba *hisi_hba, u32 off) in hisi_sas_read32() argument
527 void __iomem *regs = hisi_hba->regs + off; in hisi_sas_read32()
532 static void hisi_sas_write32(struct hisi_hba *hisi_hba, u32 off, u32 val) in hisi_sas_write32() argument
534 void __iomem *regs = hisi_hba->regs + off; in hisi_sas_write32()
539 static void hisi_sas_phy_write32(struct hisi_hba *hisi_hba, int phy_no, in hisi_sas_phy_write32() argument
542 void __iomem *regs = hisi_hba->regs + (0x400 * phy_no) + off; in hisi_sas_phy_write32()
547 static u32 hisi_sas_phy_read32(struct hisi_hba *hisi_hba, in hisi_sas_phy_read32() argument
550 void __iomem *regs = hisi_hba->regs + (0x400 * phy_no) + off; in hisi_sas_phy_read32()
558 void __iomem *regs = hisi_hba->regs + off; \
565 void __iomem *regs = hisi_hba->regs + off; \
[all …]
H A 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 …]
H A 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 …]
H A Dhisi_sas.h94 struct hisi_hba;
127 struct hisi_hba *hisi_hba; member
134 { .hisi_hba = hisi_hba, \
158 struct hisi_hba *hisi_hba; member
186 struct hisi_hba *hisi_hba; member
194 struct hisi_hba *hisi_hba; member
202 struct hisi_hba *hisi_hba; member
258 u32 (*read_global_reg)(struct hisi_hba *hisi_hba, u32 off);
259 u32 (*read_port_reg)(struct hisi_hba *hisi_hba, int port,
314 int (*hw_init)(struct hisi_hba *hisi_hba);
[all …]