| /drivers/net/ |
| A D | mdio_mux_meson_g12a.c | 53 phys_addr_t phys; member 59 writel(0x29c0040a, priv->phys + ETH_PLL_CTL0); in meson_g12a_ephy_pll_init() 60 writel(0x927e0000, priv->phys + ETH_PLL_CTL1); in meson_g12a_ephy_pll_init() 61 writel(0xac5f49e5, priv->phys + ETH_PLL_CTL2); in meson_g12a_ephy_pll_init() 62 writel(0x00000000, priv->phys + ETH_PLL_CTL3); in meson_g12a_ephy_pll_init() 63 writel(0x00000000, priv->phys + ETH_PLL_CTL4); in meson_g12a_ephy_pll_init() 64 writel(0x20200000, priv->phys + ETH_PLL_CTL5); in meson_g12a_ephy_pll_init() 83 priv->phys + ETH_PHY_CNTL1); in meson_g12a_enable_internal_mdio() 87 priv->phys + ETH_PHY_CNTL2); in meson_g12a_enable_internal_mdio() 95 writel(0x0, priv->phys + ETH_PHY_CNTL2); in meson_g12a_enable_external_mdio() [all …]
|
| A D | mdio_mux_mmioreg.c | 18 phys_addr_t phys; member 37 x = ioread8((void *)priv->phys); in mdio_mux_mmioreg_select() 40 iowrite8((x & ~priv->mask) | sel, (void *)priv->phys); in mdio_mux_mmioreg_select() 49 x = ioread16((void *)priv->phys); in mdio_mux_mmioreg_select() 52 iowrite16((x & ~priv->mask) | sel, (void *)priv->phys); in mdio_mux_mmioreg_select() 61 x = ioread32((void *)priv->phys); in mdio_mux_mmioreg_select() 64 iowrite32((x & ~priv->mask) | sel, (void *)priv->phys); in mdio_mux_mmioreg_select() 108 priv->phys = reg_base; in mdio_mux_mmioreg_probe()
|
| /drivers/pci/ |
| A D | pcie_layerscape_ep.c | 73 u64 phys = 0; in ls_pcie_ep_setup_atu() local 77 phys = ALIGN(phys, PCIE_BAR0_SIZE); in ls_pcie_ep_setup_atu() 80 0 + pf * BAR_NUM, 0, phys); in ls_pcie_ep_setup_atu() 82 phys = ALIGN(phys + PCIE_BAR0_SIZE, PCIE_BAR1_SIZE); in ls_pcie_ep_setup_atu() 84 1 + pf * BAR_NUM, 1, phys); in ls_pcie_ep_setup_atu() 86 phys = ALIGN(phys + PCIE_BAR1_SIZE, PCIE_BAR2_SIZE); in ls_pcie_ep_setup_atu() 90 phys = ALIGN(phys + PCIE_BAR2_SIZE, PCIE_BAR4_SIZE); in ls_pcie_ep_setup_atu() 97 phys = ALIGN(phys + PCIE_BAR4_SIZE, PCIE_BAR0_SIZE); in ls_pcie_ep_setup_atu() 101 phys = ALIGN(phys + PCIE_BAR0_SIZE * PCIE_VF_NUM, in ls_pcie_ep_setup_atu() 106 phys = ALIGN(phys + PCIE_BAR1_SIZE * PCIE_VF_NUM, in ls_pcie_ep_setup_atu() [all …]
|
| A D | pcie_layerscape.c | 98 u64 phys, u64 bus_addr, u64 size) in ls_pcie_atu_outbound_set() argument 101 dbi_writel(pcie, (u32)phys, PCIE_ATU_LOWER_BASE); in ls_pcie_atu_outbound_set() 102 dbi_writel(pcie, phys >> 32, PCIE_ATU_UPPER_BASE); in ls_pcie_atu_outbound_set() 103 dbi_writel(pcie, (u32)phys + size - 1, PCIE_ATU_LIMIT); in ls_pcie_atu_outbound_set() 112 int type, int idx, int bar, u64 phys) in ls_pcie_atu_inbound_set() argument 115 dbi_writel(pcie, (u32)phys, PCIE_ATU_LOWER_TARGET); in ls_pcie_atu_inbound_set() 116 dbi_writel(pcie, phys >> 32, PCIE_ATU_UPPER_TARGET); in ls_pcie_atu_inbound_set()
|
| A D | pcie_layerscape_gen4.c | 65 int type, u64 phys, u64 bus_addr, in ls_pcie_g4_outbound_win_set() argument 87 ccsr_writel(pcie, PAB_AXI_AMAP_AXI_WIN(idx), lower_32_bits(phys)); in ls_pcie_g4_outbound_win_set() 97 int type, u64 phys, u64 bus_addr, in ls_pcie_g4_rc_inbound_win_set() argument 114 ccsr_writel(pcie, PAB_PEX_AMAP_AXI_WIN(idx), lower_32_bits(phys)); in ls_pcie_g4_rc_inbound_win_set() 311 int bar, u64 phys) in ls_pcie_g4_ep_inbound_win_set() argument 321 val = upper_32_bits(phys); in ls_pcie_g4_ep_inbound_win_set() 323 val = lower_32_bits(phys) | BAR_AMAP_EN; in ls_pcie_g4_ep_inbound_win_set() 329 u64 phys; in ls_pcie_g4_ep_setup_wins() local 336 phys = CFG_SYS_PCI_EP_MEMORY_BASE + PCIE_BAR_SIZE * 4 * pf; in ls_pcie_g4_ep_setup_wins() 338 ls_pcie_g4_ep_inbound_win_set(pcie, pf, bar, phys); in ls_pcie_g4_ep_setup_wins() [all …]
|
| A D | pcie_layerscape.h | 184 u64 phys, u64 bus_addr, u64 size); 186 int type, int idx, int bar, u64 phys);
|
| A D | pcie_fsl.c | 270 int type, u64 phys, u64 bus_addr, in fsl_pcie_setup_outbound_win() argument 280 out_be32(&po->powbar, phys >> 12); in fsl_pcie_setup_outbound_win() 302 bool pf, u64 phys, u64 bus_addr, in fsl_pcie_setup_inbound_win() argument 313 out_be32(&pi->pitar, phys >> 12); in fsl_pcie_setup_inbound_win()
|
| /drivers/usb/dwc3/ |
| A D | dwc3-meson-gxl.c | 113 struct phy phys[PHY_COUNT]; member 157 if (!priv->phys[i].dev) in dwc3_meson_gxl_usb2_init() 205 if (!priv->phys[USB2_OTG_PHY].dev) in dwc3_meson_gxl_force_mode() 241 &priv->phys[i]); in dwc3_meson_gxl_get_phys() 243 priv->phys[i].dev = NULL; in dwc3_meson_gxl_get_phys() 347 if (!priv->phys[i].dev) in dwc3_meson_gxl_probe() 356 if (!priv->phys[i].dev) in dwc3_meson_gxl_probe() 364 if (priv->phys[USB2_OTG_PHY].dev) in dwc3_meson_gxl_probe() 375 if (!priv->phys[i].dev) in dwc3_meson_gxl_probe() 394 if (!priv->phys[i].dev) in dwc3_meson_gxl_remove() [all …]
|
| A D | dwc3-meson-g12a.c | 127 struct phy phys[PHY_COUNT]; member 170 if (!priv->phys[i].dev) in dwc3_meson_g12a_usb2_init() 283 if (!priv->phys[USB2_OTG_PHY].dev) in dwc3_meson_g12a_force_mode() 315 &priv->phys[i]); in dwc3_meson_g12a_get_phys() 433 if (!priv->phys[i].dev) in dwc3_meson_g12a_probe() 442 if (!priv->phys[i].dev) in dwc3_meson_g12a_probe() 454 if (!priv->phys[i].dev) in dwc3_meson_g12a_probe() 457 generic_phy_exit(&priv->phys[i]); in dwc3_meson_g12a_probe() 474 if (!priv->phys[i].dev) in dwc3_meson_g12a_remove() 481 if (!priv->phys[i].dev) in dwc3_meson_g12a_remove() [all …]
|
| A D | dwc3-layerscape.c | 30 struct phy_bulk phys; member 51 rc = dwc3_setup_phy(dev, &priv->phys); in dwc3_layerscape_probe() 73 dwc3_shutdown_phy(dev, &priv->phys); in dwc3_layerscape_remove()
|
| A D | core.c | 1021 int dwc3_setup_phy(struct udevice *dev, struct phy_bulk *phys) in dwc3_setup_phy() argument 1025 ret = generic_phy_get_bulk(dev, phys); in dwc3_setup_phy() 1029 ret = generic_phy_init_bulk(phys); in dwc3_setup_phy() 1033 ret = generic_phy_power_on_bulk(phys); in dwc3_setup_phy() 1035 generic_phy_exit_bulk(phys); in dwc3_setup_phy() 1040 int dwc3_shutdown_phy(struct udevice *dev, struct phy_bulk *phys) in dwc3_shutdown_phy() argument 1044 ret = generic_phy_power_off_bulk(phys); in dwc3_shutdown_phy() 1045 ret |= generic_phy_exit_bulk(phys); in dwc3_shutdown_phy()
|
| /drivers/rng/ |
| A D | turris_rwtm_rng.c | 45 phys_addr_t phys; in turris_rwtm_rng_random_read() local 49 phys = priv->buffer; in turris_rwtm_rng_random_read() 54 ret = turris_rwtm_rng_fill_entropy(phys, size); in turris_rwtm_rng_random_read() 58 memcpy(data, (void *)phys, size); in turris_rwtm_rng_random_read() 94 phys_addr_t phys = priv->buffer; in turris_rwtm_rng_remove() local 96 dma_free_coherent((void *)phys); in turris_rwtm_rng_remove()
|
| /drivers/phy/ |
| A D | phy-uclass.c | 430 if (!bulk->phys) in generic_phy_get_bulk() 447 struct phy *phys = bulk->phys; in generic_phy_init_bulk() local 451 ret = generic_phy_init(&phys[i]); in generic_phy_init_bulk() 462 generic_phy_exit(&phys[i - 1]); in generic_phy_init_bulk() 469 struct phy *phys = bulk->phys; in generic_phy_exit_bulk() local 473 ret |= generic_phy_exit(&phys[i]); in generic_phy_exit_bulk() 480 struct phy *phys = bulk->phys; in generic_phy_power_on_bulk() local 484 ret = generic_phy_power_on(&phys[i]); in generic_phy_power_on_bulk() 495 generic_phy_power_off(&phys[i - 1]); in generic_phy_power_on_bulk() 502 struct phy *phys = bulk->phys; in generic_phy_power_off_bulk() local [all …]
|
| A D | phy-mtk-tphy.c | 284 struct mtk_phy_instance **phys; member 697 struct mtk_phy_instance *instance = tphy->phys[phy->id]; in mtk_phy_init() 738 struct mtk_phy_instance *instance = tphy->phys[phy->id]; in mtk_phy_power_on() 751 struct mtk_phy_instance *instance = tphy->phys[phy->id]; in mtk_phy_power_off() 764 struct mtk_phy_instance *instance = tphy->phys[phy->id]; in mtk_phy_exit() 791 if (phy_np == tphy->phys[index]->np) { in mtk_phy_xlate() 792 instance = tphy->phys[index]; in mtk_phy_xlate() 845 tphy->phys = devm_kcalloc(dev, tphy->nphys, sizeof(*tphy->phys), in mtk_tphy_probe() 847 if (!tphy->phys) in mtk_tphy_probe() 874 tphy->phys[index] = instance; in mtk_tphy_probe()
|
| A D | phy-stm32-usbphyc.c | 153 } phys[MAX_PHYS]; member 219 if (usbphyc->phys[i].powered) in stm32_usbphyc_is_powered() 311 struct stm32_usbphyc_phy *usbphyc_phy = usbphyc->phys + phy->id; in stm32_usbphyc_phy_init() 330 struct stm32_usbphyc_phy *usbphyc_phy = usbphyc->phys + phy->id; in stm32_usbphyc_phy_exit() 347 struct stm32_usbphyc_phy *usbphyc_phy = usbphyc->phys + phy->id; in stm32_usbphyc_phy_power_on() 370 struct stm32_usbphyc_phy *usbphyc_phy = usbphyc->phys + phy->id; in stm32_usbphyc_phy_power_off() 596 usbphyc_phy = usbphyc->phys + phy_id; in stm32_usbphyc_probe()
|
| A D | phy-zynqmp.c | 223 struct xpsgtr_phy phys[NUM_LANES]; member 438 gtr_phy = >r_dev->phys[phy_lane]; in xpsgtr_init() 477 gtr_phy = >r_dev->phys[phy_lane]; in xpsgtr_wait_pll_lock() 512 gtr_phy = >r_dev->phys[phy_lane]; in xpsgtr_power_on() 651 gtr_phy = >r_dev->phys[phy_lane]; in xpsgtr_of_xlate()
|
| /drivers/remoteproc/ |
| A D | ipu_rproc.c | 175 if (min_align > __ffs(phys)) in find_pagesz() 176 min_align = __ffs(phys); in find_pagesz() 233 config_l2_pagetable(unsigned int virt, unsigned int phys, in config_l2_pagetable() argument 249 (phys & PGT_L2_DESC_LARGEPAGE_MASK) | PGT_L2_DESC_LARGEPAGE; in config_l2_pagetable() 283 pg_sz = find_pagesz(virt, phys, l); in ipu_config_pagetable() 294 (phys & PGT_L1_DESC_SUPERSECTION_MASK) | in ipu_config_pagetable() 299 phys += PGT_SUPERSECTION_SIZE; in ipu_config_pagetable() 307 (phys & PGT_L1_DESC_SECTION_MASK) | in ipu_config_pagetable() 311 phys += PGT_SECTION_SIZE; in ipu_config_pagetable() 331 config_l2_pagetable(virt, phys, pg_sz, in ipu_config_pagetable() [all …]
|
| /drivers/usb/host/ |
| A D | xhci-mtk.c | 80 struct phy_bulk phys; member 273 struct phy_bulk *phys = &mtk->phys; in xhci_mtk_phy_setup() local 276 ret = generic_phy_get_bulk(dev, phys); in xhci_mtk_phy_setup() 280 ret = generic_phy_init_bulk(phys); in xhci_mtk_phy_setup() 284 ret = generic_phy_power_on_bulk(phys); in xhci_mtk_phy_setup() 286 generic_phy_exit_bulk(phys); in xhci_mtk_phy_setup() 293 generic_phy_power_off_bulk(&mtk->phys); in xhci_mtk_phy_shutdown() 294 generic_phy_exit_bulk(&mtk->phys); in xhci_mtk_phy_shutdown()
|
| A D | xhci-dwc3.c | 26 struct phy_bulk phys; member 181 ret = dwc3_setup_phy(dev, &plat->phys); in xhci_dwc3_probe() 230 dwc3_shutdown_phy(dev, &plat->phys); in xhci_dwc3_remove()
|
| /drivers/usb/mtu3/ |
| A D | mtu3_plat.c | 67 struct phy_bulk *phys = &ssusb->phys; in ssusb_phy_setup() local 70 ret = generic_phy_get_bulk(dev, phys); in ssusb_phy_setup() 74 ret = generic_phy_init_bulk(phys); in ssusb_phy_setup() 78 ret = generic_phy_power_on_bulk(phys); in ssusb_phy_setup() 80 generic_phy_exit_bulk(phys); in ssusb_phy_setup() 87 generic_phy_power_off_bulk(&ssusb->phys); in ssusb_phy_shutdown() 88 generic_phy_exit_bulk(&ssusb->phys); in ssusb_phy_shutdown()
|
| /drivers/usb/common/ |
| A D | fsl-dt-fixup.c | 133 static const char * const phys[] = { "ulpi", "utmi", "utmi_dual" }; in fsl_fdt_fixup_dr_usb() local 160 for (j = 0; j < ARRAY_SIZE(phys); j++) { in fsl_fdt_fixup_dr_usb() 162 phys[j])) { in fsl_fdt_fixup_dr_usb() 177 dr_phy_type = phys[phy_idx]; in fsl_fdt_fixup_dr_usb() 181 dr_phy_type = phys[2]; in fsl_fdt_fixup_dr_usb()
|
| /drivers/phy/cadence/ |
| A D | phy-cadence-torrent.c | 298 if (phy->id == sp->phys[index].mlane) in phy_get_drvdata() 299 return &sp->phys[index]; in phy_get_drvdata() 447 phy_t1 = cdns_phy->phys[0].phy_type; in cdns_torrent_phy_configure_multilink() 448 phy_t2 = cdns_phy->phys[1].phy_type; in cdns_torrent_phy_configure_multilink() 491 mlane = cdns_phy->phys[node].mlane; in cdns_torrent_phy_configure_multilink() 492 ssc = cdns_phy->phys[node].ssc_mode; in cdns_torrent_phy_configure_multilink() 654 cdns_phy->phys[node].lnk_rst = in cdns_torrent_phy_probe() 664 &cdns_phy->phys[node].mlane)) { in cdns_torrent_phy_probe() 683 cdns_phy->phys[node].phy_type = TYPE_DP; in cdns_torrent_phy_probe() 701 &cdns_phy->phys[node].num_lanes)) { in cdns_torrent_phy_probe() [all …]
|
| A D | phy-cadence-sierra.c | 316 struct cdns_sierra_inst *phys[SIERRA_MAX_LANES]; member 838 phy_t1 = sp->phys[0]->phy_type; in cdns_sierra_phy_configure_multilink() 839 phy_t2 = sp->phys[1]->phy_type; in cdns_sierra_phy_configure_multilink() 857 mlane = sp->phys[node]->mlane; in cdns_sierra_phy_configure_multilink() 858 ssc = sp->phys[node]->ssc_mode; in cdns_sierra_phy_configure_multilink() 859 num_lanes = sp->phys[node]->num_lanes; in cdns_sierra_phy_configure_multilink() 906 reset_deassert_bulk(sp->phys[node]->lnk_rst); in cdns_sierra_phy_configure_multilink() 1040 sp->phys[node] = inst; in cdns_sierra_link_probe() 1143 reset_assert_bulk(phy->phys[i]->lnk_rst); in cdns_sierra_phy_remove()
|
| /drivers/usb/gadget/ |
| A D | dwc2_udc_otg.c | 942 struct phy_bulk phys; member 946 static int dwc2_phy_setup(struct udevice *dev, struct phy_bulk *phys) in dwc2_phy_setup() argument 950 ret = generic_phy_get_bulk(dev, phys); in dwc2_phy_setup() 954 ret = generic_phy_init_bulk(phys); in dwc2_phy_setup() 958 ret = generic_phy_power_on_bulk(phys); in dwc2_phy_setup() 960 generic_phy_exit_bulk(phys); in dwc2_phy_setup() 965 static void dwc2_phy_shutdown(struct udevice *dev, struct phy_bulk *phys) in dwc2_phy_shutdown() argument 967 generic_phy_power_off_bulk(phys); in dwc2_phy_shutdown() 968 generic_phy_exit_bulk(phys); in dwc2_phy_shutdown() 1096 ret = dwc2_phy_setup(dev, &priv->phys); in dwc2_udc_otg_probe() [all …]
|
| /drivers/usb/musb-new/ |
| A D | ti-musb.c | 86 int phys; in ti_musb_of_to_plat() local 93 phys = fdtdec_lookup_phandle(fdt, node, "phys"); in ti_musb_of_to_plat() 94 ctrl_mod = fdtdec_lookup_phandle(fdt, phys, "ti,ctrl_mod"); in ti_musb_of_to_plat()
|