Home
last modified time | relevance | path

Searched refs:phy_base (Results 1 – 25 of 25) sorted by relevance

/drivers/phy/rockchip/
Dphy-rockchip-inno-csidphy.c122 void __iomem *phy_base; member
171 val = readl(priv->phy_base + drv_data->ths_settle_offset + offset); in rockchip_inno_csidphy_ths_settle()
174 writel(val, priv->phy_base + drv_data->ths_settle_offset + offset); in rockchip_inno_csidphy_ths_settle()
233 priv->phy_base + drv_data->pwrctl_offset); in rockchip_inno_csidphy_power_on()
239 writel(val, priv->phy_base + CSIDPHY_CTRL_LANE_ENABLE); in rockchip_inno_csidphy_power_on()
244 priv->phy_base + drv_data->pwrctl_offset); in rockchip_inno_csidphy_power_on()
249 priv->phy_base + CSIDPHY_CTRL_DIG_RST); in rockchip_inno_csidphy_power_on()
251 priv->phy_base + CSIDPHY_CTRL_DIG_RST); in rockchip_inno_csidphy_power_on()
259 priv->phy_base + drv_data->calib_offset + in rockchip_inno_csidphy_power_on()
263 priv->phy_base + drv_data->calib_offset + in rockchip_inno_csidphy_power_on()
[all …]
Dphy-rockchip-usb.c459 struct rockchip_usb_phy_base *phy_base; in rockchip_usb_phy_probe() local
465 phy_base = devm_kzalloc(dev, sizeof(*phy_base), GFP_KERNEL); in rockchip_usb_phy_probe()
466 if (!phy_base) in rockchip_usb_phy_probe()
475 phy_base->pdata = match->data; in rockchip_usb_phy_probe()
477 phy_base->dev = dev; in rockchip_usb_phy_probe()
478 phy_base->reg_base = ERR_PTR(-ENODEV); in rockchip_usb_phy_probe()
480 phy_base->reg_base = syscon_node_to_regmap( in rockchip_usb_phy_probe()
482 if (IS_ERR(phy_base->reg_base)) in rockchip_usb_phy_probe()
483 phy_base->reg_base = syscon_regmap_lookup_by_phandle( in rockchip_usb_phy_probe()
485 if (IS_ERR(phy_base->reg_base)) { in rockchip_usb_phy_probe()
[all …]
Dphy-rockchip-inno-dsidphy.c177 void __iomem *phy_base; member
214 orig = readl(inno->phy_base + reg); in phy_update_bits()
217 writel(tmp, inno->phy_base + reg); in phy_update_bits()
610 inno->phy_base = devm_platform_ioremap_resource(pdev, 0); in inno_dsidphy_probe()
611 if (IS_ERR(inno->phy_base)) in inno_dsidphy_probe()
612 return PTR_ERR(inno->phy_base); in inno_dsidphy_probe()
/drivers/phy/marvell/
Dphy-berlin-sata.c62 u32 phy_base; member
66 u32 phy_base, u32 reg, u32 mask, u32 val) in phy_berlin_sata_reg_setbits() argument
71 writel(phy_base + reg, ctrl_reg + PORT_VSR_ADDR); in phy_berlin_sata_reg_setbits()
104 phy_berlin_sata_reg_setbits(ctrl_reg, priv->phy_base, 0x01, in phy_berlin_sata_power_on()
109 phy_berlin_sata_reg_setbits(ctrl_reg, priv->phy_base, 0x25, in phy_berlin_sata_power_on()
113 phy_berlin_sata_reg_setbits(ctrl_reg, priv->phy_base, 0x23, in phy_berlin_sata_power_on()
117 phy_berlin_sata_reg_setbits(ctrl_reg, priv->phy_base, 0x02, in phy_berlin_sata_power_on()
224 priv->phy_base = BG2_PHY_BASE; in phy_berlin_sata_probe()
226 priv->phy_base = BG2Q_PHY_BASE; in phy_berlin_sata_probe()
/drivers/clk/ux500/
Dclk-prcc.c95 resource_size_t phy_base, in clk_reg_prcc() argument
113 clk->base = ioremap(phy_base, SZ_4K); in clk_reg_prcc()
143 resource_size_t phy_base, in clk_reg_prcc_pclk() argument
147 return clk_reg_prcc(name, parent_name, phy_base, cg_sel, flags, in clk_reg_prcc_pclk()
153 resource_size_t phy_base, in clk_reg_prcc_kclk() argument
157 return clk_reg_prcc(name, parent_name, phy_base, cg_sel, flags, in clk_reg_prcc_kclk()
Dclk.h19 resource_size_t phy_base,
25 resource_size_t phy_base,
/drivers/phy/ti/
Dphy-omap-usb2.c57 void __iomem *phy_base; member
240 val = omap_usb_readl(phy->phy_base, USB2PHY_ANA_CONFIG1); in omap_usb_init()
242 omap_usb_writel(phy->phy_base, USB2PHY_ANA_CONFIG1, val); in omap_usb_init()
246 val = omap_usb_readl(phy->phy_base, USB2PHY_CHRG_DET); in omap_usb_init()
249 omap_usb_writel(phy->phy_base, USB2PHY_CHRG_DET, val); in omap_usb_init()
405 phy->phy_base = devm_platform_ioremap_resource(pdev, 0); in omap_usb2_probe()
406 if (IS_ERR(phy->phy_base)) in omap_usb2_probe()
407 return PTR_ERR(phy->phy_base); in omap_usb2_probe()
/drivers/pci/controller/dwc/
Dpcie-artpec6.c35 void __iomem *phy_base; /* DT phy */ member
162 val = readl(artpec6_pcie->phy_base + PHY_STATUS); in artpec6_pcie_wait_for_phy_a6()
190 phy_status_tx = readw(artpec6_pcie->phy_base + PHY_TX_ASIC_OUT); in artpec6_pcie_wait_for_phy_a7()
191 phy_status_rx = readw(artpec6_pcie->phy_base + PHY_RX_ASIC_OUT); in artpec6_pcie_wait_for_phy_a7()
412 artpec6_pcie->phy_base = in artpec6_pcie_probe()
414 if (IS_ERR(artpec6_pcie->phy_base)) in artpec6_pcie_probe()
415 return PTR_ERR(artpec6_pcie->phy_base); in artpec6_pcie_probe()
Dpcie-kirin.c84 void __iomem *phy_base; member
111 writel(val, kirin_pcie->phy_base + reg); in kirin_apb_phy_writel()
116 return readl(kirin_pcie->phy_base + reg); in kirin_apb_phy_readl()
155 kirin_pcie->phy_base = in kirin_pcie_get_resource()
157 if (IS_ERR(kirin_pcie->phy_base)) in kirin_pcie_get_resource()
158 return PTR_ERR(kirin_pcie->phy_base); in kirin_pcie_get_resource()
Dpci-imx6.c85 void __iomem *phy_base; member
544 if (likely(imx6_pcie->phy_base)) { in imx6_pcie_deassert_core_reset()
547 imx6_pcie->phy_base + PCIE_PHY_CMN_REG4); in imx6_pcie_deassert_core_reset()
551 imx6_pcie->phy_base + PCIE_PHY_CMN_REG24); in imx6_pcie_deassert_core_reset()
554 imx6_pcie->phy_base + PCIE_PHY_CMN_REG26); in imx6_pcie_deassert_core_reset()
1016 imx6_pcie->phy_base = devm_ioremap_resource(dev, &res); in imx6_pcie_probe()
1017 if (IS_ERR(imx6_pcie->phy_base)) in imx6_pcie_probe()
1018 return PTR_ERR(imx6_pcie->phy_base); in imx6_pcie_probe()
/drivers/ata/
Dsata_highbank.c57 void __iomem *phy_base; member
219 writel(CPHY_MAP(dev, addr), port_data[sata_port].phy_base + 0x800); in __combo_phy_reg_read()
220 data = readl(port_data[sata_port].phy_base + CPHY_ADDR(addr)); in __combo_phy_reg_read()
229 writel(CPHY_MAP(dev, addr), port_data[sata_port].phy_base + 0x800); in __combo_phy_reg_write()
230 writel(data, port_data[sata_port].phy_base + CPHY_ADDR(addr)); in __combo_phy_reg_write()
261 if (unlikely(port_data[sata_port].phy_base == NULL)) in highbank_cphy_disable_overrides()
316 if (unlikely(port_data[sata_port].phy_base == NULL)) in highbank_cphy_override_lane()
358 port_data[port].phy_base = cphy_base[phy]; in highbank_initialize_phys()
Dahci_imx.c102 void __iomem *phy_base; member
609 writeb(imxpriv->imped_ratio, imxpriv->phy_base + in imx8_sata_enable()
611 writeb(imxpriv->imped_ratio, imxpriv->phy_base + in imx8_sata_enable()
613 reg = readb(imxpriv->phy_base + in imx8_sata_enable()
617 reg = readb(imxpriv->phy_base + in imx8_sata_enable()
991 imxpriv->phy_base = devm_ioremap(dev, phy_res->start, in imx8_sata_probe()
993 if (!imxpriv->phy_base) { in imx8_sata_probe()
/drivers/phy/broadcom/
Dphy-brcm-sata.c73 void __iomem *phy_base; member
215 void __iomem *pcb_base = priv->phy_base; in brcm_sata_phy_wr()
232 void __iomem *pcb_base = priv->phy_base; in brcm_sata_phy_rd()
769 priv->phy_base = devm_platform_ioremap_resource_byname(pdev, "phy"); in brcm_sata_phy_probe()
770 if (IS_ERR(priv->phy_base)) in brcm_sata_phy_probe()
771 return PTR_ERR(priv->phy_base); in brcm_sata_phy_probe()
/drivers/gpu/drm/msm/dsi/phy/
Ddsi_phy_10nm.c473 void __iomem *phy_base = pll_10nm->phy->base; in dsi_10nm_pll_save_state() local
480 cmn_clk_cfg0 = dsi_phy_read(phy_base + REG_DSI_10nm_PHY_CMN_CLK_CFG0); in dsi_10nm_pll_save_state()
484 cmn_clk_cfg1 = dsi_phy_read(phy_base + REG_DSI_10nm_PHY_CMN_CLK_CFG1); in dsi_10nm_pll_save_state()
496 void __iomem *phy_base = pll_10nm->phy->base; in dsi_10nm_pll_restore_state() local
505 dsi_phy_write(phy_base + REG_DSI_10nm_PHY_CMN_CLK_CFG0, in dsi_10nm_pll_restore_state()
508 val = dsi_phy_read(phy_base + REG_DSI_10nm_PHY_CMN_CLK_CFG1); in dsi_10nm_pll_restore_state()
511 dsi_phy_write(phy_base + REG_DSI_10nm_PHY_CMN_CLK_CFG1, val); in dsi_10nm_pll_restore_state()
Ddsi_phy_7nm.c501 void __iomem *phy_base = pll_7nm->phy->base; in dsi_7nm_pll_save_state() local
508 cmn_clk_cfg0 = dsi_phy_read(phy_base + REG_DSI_7nm_PHY_CMN_CLK_CFG0); in dsi_7nm_pll_save_state()
512 cmn_clk_cfg1 = dsi_phy_read(phy_base + REG_DSI_7nm_PHY_CMN_CLK_CFG1); in dsi_7nm_pll_save_state()
524 void __iomem *phy_base = pll_7nm->phy->base; in dsi_7nm_pll_restore_state() local
533 dsi_phy_write(phy_base + REG_DSI_7nm_PHY_CMN_CLK_CFG0, in dsi_7nm_pll_restore_state()
536 val = dsi_phy_read(phy_base + REG_DSI_7nm_PHY_CMN_CLK_CFG1); in dsi_7nm_pll_restore_state()
539 dsi_phy_write(phy_base + REG_DSI_7nm_PHY_CMN_CLK_CFG1, val); in dsi_7nm_pll_restore_state()
/drivers/usb/musb/
Dux500_dma.c47 dma_addr_t phy_base; member
84 ux500_channel->controller->phy_base); in ux500_configure_channel()
378 controller->phy_base = (dma_addr_t) iomem->start; in ux500_dma_controller_create()
/drivers/infiniband/hw/hns/
Dhns_roce_hem.c1262 u64 phy_base, const struct hns_roce_buf_region *r, in alloc_fake_root_bt() argument
1273 hem_list_assign_bt(hr_dev, hem, cpu_base, phy_base); in alloc_fake_root_bt()
1311 u64 phy_base; in setup_root_hem() local
1328 phy_base = root_hem->dma_addr + total * BA_BYTE_LEN; in setup_root_hem()
1334 ret = alloc_fake_root_bt(hr_dev, cpu_base, phy_base, r, in setup_root_hem()
1478 u64 phy_base = 0; in hns_roce_hem_list_find_mtt() local
1485 phy_base = hem->dma_addr + nr * BA_BYTE_LEN; in hns_roce_hem_list_find_mtt()
1495 *phy_addr = phy_base; in hns_roce_hem_list_find_mtt()
/drivers/net/dsa/
Dlan9303-core.c1026 int phy_base = chip->phy_addr_base; in lan9303_phy_read() local
1028 if (phy == phy_base) in lan9303_phy_read()
1030 if (phy > phy_base + 2) in lan9303_phy_read()
1040 int phy_base = chip->phy_addr_base; in lan9303_phy_write() local
1042 if (phy == phy_base) in lan9303_phy_write()
1044 if (phy > phy_base + 2) in lan9303_phy_write()
/drivers/spi/
Dspi-sprd.c153 phys_addr_t phy_base; member
521 .src_addr = ss->phy_base, in sprd_spi_dma_rx_config()
539 .dst_addr = ss->phy_base, in sprd_spi_dma_tx_config()
939 ss->phy_base = res->start; in sprd_spi_probe()
/drivers/net/ethernet/hisilicon/hns/
Dhns_dsaf_rcb.h102 phys_addr_t phy_base; member
Dhns_dsaf_rcb.c544 ring_pair_cb->q.phy_base = in hns_rcb_get_cfg()
545 RCB_COMM_BASE_TO_RING_BASE(rcb_common->phy_base, i); in hns_rcb_get_cfg()
806 rcb_common->phy_base = hns_rcb_common_get_paddr(rcb_common); in hns_rcb_common_get_cfg()
Dhnae.h354 phys_addr_t phy_base; member
/drivers/gpu/drm/omapdrm/dss/
Ddsi.h342 void __iomem *phy_base; member
Ddsi.c93 case DSI_PHY: base = dsi->phy_base; break; in dsi_write_reg()
107 case DSI_PHY: base = dsi->phy_base; break; in dsi_read_reg()
4931 dsi->phy_base = devm_ioremap_resource(dev, res); in dsi_probe()
4932 if (IS_ERR(dsi->phy_base)) in dsi_probe()
4933 return PTR_ERR(dsi->phy_base); in dsi_probe()
/drivers/video/fbdev/omap2/omapfb/dss/
Ddsi.c293 void __iomem *phy_base; member
439 case DSI_PHY: base = dsi->phy_base; break; in dsi_write_reg()
455 case DSI_PHY: base = dsi->phy_base; break; in dsi_read_reg()
5331 dsi->phy_base = devm_ioremap(&dsidev->dev, res->start, in dsi_bind()
5333 if (!dsi->phy_base) { in dsi_bind()