Home
last modified time | relevance | path

Searched refs:phy_no (Results 1 – 8 of 8) sorted by relevance

/linux/drivers/scsi/hisi_sas/
H A Dhisi_sas_v2_hw.c750 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()
759 int phy_no, u32 off) in hisi_sas_phy_read32() argument
761 void __iomem *regs = hisi_hba->regs + (0x400 * phy_no) + off; in hisi_sas_phy_read32()
882 static void config_phy_opt_mode_v2_hw(struct hisi_hba *hisi_hba, int phy_no) in config_phy_opt_mode_v2_hw() argument
884 u32 cfg = hisi_sas_phy_read32(hisi_hba, phy_no, PHY_CFG); in config_phy_opt_mode_v2_hw()
888 hisi_sas_phy_write32(hisi_hba, phy_no, PHY_CFG, cfg); in config_phy_opt_mode_v2_hw()
891 static void config_id_frame_v2_hw(struct hisi_hba *hisi_hba, int phy_no) in config_id_frame_v2_hw() argument
904 identify_frame.phy_id = phy_no; in config_id_frame_v2_hw()
907 hisi_sas_phy_write32(hisi_hba, phy_no, TX_ID_DWORD0, in config_id_frame_v2_hw()
[all …]
H A Dhisi_sas_v3_hw.c577 static void hisi_sas_phy_write32(struct hisi_hba *hisi_hba, int phy_no, in hisi_sas_phy_write32() argument
580 void __iomem *regs = hisi_hba->regs + (0x400 * phy_no) + off; in hisi_sas_phy_write32()
586 int phy_no, u32 off) in hisi_sas_phy_read32() argument
588 void __iomem *regs = hisi_hba->regs + (0x400 * phy_no) + off; in hisi_sas_phy_read32()
780 static void config_phy_opt_mode_v3_hw(struct hisi_hba *hisi_hba, int phy_no) in config_phy_opt_mode_v3_hw() argument
782 u32 cfg = hisi_sas_phy_read32(hisi_hba, phy_no, PHY_CFG); in config_phy_opt_mode_v3_hw()
786 hisi_sas_phy_write32(hisi_hba, phy_no, PHY_CFG, cfg); in config_phy_opt_mode_v3_hw()
789 static void config_id_frame_v3_hw(struct hisi_hba *hisi_hba, int phy_no) in config_id_frame_v3_hw() argument
802 identify_frame.phy_id = phy_no; in config_id_frame_v3_hw()
805 hisi_sas_phy_write32(hisi_hba, phy_no, TX_ID_DWORD0, in config_id_frame_v3_hw()
[all …]
H A Dhisi_sas_v1_hw.c428 int phy_no, u32 off, u32 val) in hisi_sas_phy_write32() argument
430 void __iomem *regs = hisi_hba->regs + (0x400 * phy_no) + off; in hisi_sas_phy_write32()
436 int phy_no, u32 off) 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()
449 hisi_sas_phy_write32(hisi_hba, phy_no, PHY_CFG, cfg); in config_phy_opt_mode_v1_hw()
452 static void config_tx_tfe_autoneg_v1_hw(struct hisi_hba *hisi_hba, int phy_no) in config_tx_tfe_autoneg_v1_hw() argument
454 u32 cfg = hisi_sas_phy_read32(hisi_hba, phy_no, PHY_CONFIG2); in config_tx_tfe_autoneg_v1_hw()
457 hisi_sas_phy_write32(hisi_hba, phy_no, PHY_CONFIG2, cfg); in config_tx_tfe_autoneg_v1_hw()
[all …]
H A Dhisi_sas_main.c148 int phy_no; in hisi_sas_stop_phys() local
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()
617 static void hisi_sas_bytes_dmaed(struct hisi_hba *hisi_hba, int phy_no, in hisi_sas_bytes_dmaed() argument
620 struct hisi_sas_phy *phy = &hisi_hba->phy[phy_no]; in hisi_sas_bytes_dmaed()
848 int phy_no; in hisi_sas_dev_found() local
850 phy_no = sas_find_attached_phy_id(&parent_dev->ex_dev, device); in hisi_sas_dev_found()
851 if (phy_no < 0) { in hisi_sas_dev_found()
856 rc = phy_no; in hisi_sas_dev_found()
915 int phy_no = sas_phy->id; in hisi_sas_phyup_work_common() local
[all …]
H A Dhisi_sas.h316 void (*sl_notify_ssp)(struct hisi_hba *hisi_hba, int phy_no);
327 void (*phy_start)(struct hisi_hba *hisi_hba, int phy_no);
328 void (*phy_disable)(struct hisi_hba *hisi_hba, int phy_no);
329 void (*phy_hard_reset)(struct hisi_hba *hisi_hba, int phy_no);
330 void (*get_events)(struct hisi_hba *hisi_hba, int phy_no);
331 void (*phy_set_linkrate)(struct hisi_hba *hisi_hba, int phy_no,
652 extern void hisi_sas_phy_enable(struct hisi_hba *hisi_hba, int phy_no,
654 extern void hisi_sas_phy_down(struct hisi_hba *hisi_hba, int phy_no, int rdy,
664 extern void hisi_sas_phy_oob_ready(struct hisi_hba *hisi_hba, int phy_no);
/linux/drivers/scsi/mvsas/
H A Dmv_sas.c907 static void mvs_update_wideport(struct mvs_info *mvi, int phy_no) in mvs_update_wideport() argument
909 struct mvs_phy *phy = &mvi->phy[phy_no]; in mvs_update_wideport()
1115 int phy_no = 0; in mvs_port_notify_deformed() local
1117 while (phy != &mvi->phy[phy_no]) { in mvs_port_notify_deformed()
1118 phy_no++; in mvs_port_notify_deformed()
1119 if (phy_no >= MVS_MAX_PHYS) in mvs_port_notify_deformed()
1123 mvs_do_release_task(phy->mvi, phy_no, dev); in mvs_port_notify_deformed()
1656 int phy_no, struct domain_device *dev) in mvs_do_release_task() argument
1663 phy = &mvi->phy[phy_no]; in mvs_do_release_task()
1710 u32 phy_no = (unsigned long) mwq->data; in mvs_work_queue() local
[all …]
H A Dmv_sas.h447 void mvs_do_release_task(struct mvs_info *mvi, int phy_no,
449 void mvs_int_port(struct mvs_info *mvi, int phy_no, u32 events);
/linux/drivers/clk/renesas/
H A Dclk-sh73a0.c116 u32 phy_no = name[3] - '0'; in sh73a0_cpg_register_clock() local
118 (phy_no ? CPG_DSI1PHYCR : CPG_DSI0PHYCR); in sh73a0_cpg_register_clock()
120 parent_name = phy_no ? "dsi1pck" : "dsi0pck"; in sh73a0_cpg_register_clock()