Searched refs:hisi_hba (Results 1 – 4 of 4) sorted by relevance
| /linux/drivers/scsi/hisi_sas/ |
| H A D | hisi_sas_main.c | 26 static void hisi_sas_release_task(struct hisi_hba *hisi_hba, 167 static struct hisi_hba *dev_to_hisi_hba(struct domain_device *device) in dev_to_hisi_hba() 178 void hisi_sas_stop_phys(struct hisi_hba *hisi_hba) in hisi_sas_stop_phys() argument 182 for (phy_no = 0; phy_no < hisi_hba->n_phy; phy_no++) in hisi_sas_stop_phys() 183 hisi_sas_phy_enable(hisi_hba, phy_no, 0); in hisi_sas_stop_phys() 187 static void hisi_sas_slot_index_clear(struct hisi_hba *hisi_hba, int slot_idx) in hisi_sas_slot_index_clear() argument 189 void *bitmap = hisi_hba->slot_index_tags; in hisi_sas_slot_index_clear() 194 static void hisi_sas_slot_index_free(struct hisi_hba *hisi_hba, int slot_idx) in hisi_sas_slot_index_free() argument 196 if (hisi_hba->hw->slot_index_alloc || in hisi_sas_slot_index_free() 198 spin_lock(&hisi_hba->lock); in hisi_sas_slot_index_free() [all …]
|
| H A D | hisi_sas_v3_hw.c | 609 static int debugfs_snapshot_regs_v3_hw(struct hisi_hba *hisi_hba); 611 static u32 hisi_sas_read32(struct hisi_hba *hisi_hba, u32 off) in hisi_sas_read32() argument 613 void __iomem *regs = hisi_hba->regs + off; in hisi_sas_read32() 618 static void hisi_sas_write32(struct hisi_hba *hisi_hba, u32 off, u32 val) in hisi_sas_write32() argument 620 void __iomem *regs = hisi_hba->regs + off; in hisi_sas_write32() 625 static void hisi_sas_phy_write32(struct hisi_hba *hisi_hba, int phy_no, in hisi_sas_phy_write32() argument 628 void __iomem *regs = hisi_hba->regs + (0x400 * phy_no) + off; in hisi_sas_phy_write32() 633 static u32 hisi_sas_phy_read32(struct hisi_hba *hisi_hba, in hisi_sas_phy_read32() argument 636 void __iomem *regs = hisi_hba->regs + (0x400 * phy_no) + off; in hisi_sas_phy_read32() 644 void __iomem *regs = hisi_hba->regs + off; \ [all …]
|
| H A D | hisi_sas_v1_hw.c | 412 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 D | hisi_sas.h | 105 struct hisi_hba; 139 struct hisi_hba *hisi_hba; member 146 { .hisi_hba = hisi_hba, \ 183 struct hisi_hba *hisi_hba; member 215 struct hisi_hba *hisi_hba; member 224 struct hisi_hba *hisi_hba; member 232 struct hisi_hba *hisi_hba; member 319 int (*hw_init)(struct hisi_hba *hisi_hba); 320 int (*fw_info_check)(struct hisi_hba *hisi_hba); 321 int (*interrupt_preinit)(struct hisi_hba *hisi_hba); [all …]
|