Lines Matching refs:view
43 static int ulpi_poll(void __iomem *view, u32 bit) in ulpi_poll() argument
48 u32 data = __raw_readl(view); in ulpi_poll()
64 void __iomem *view = otg->io_priv; in ulpi_read() local
67 if (!(__raw_readl(view) & ULPIVW_SS)) { in ulpi_read()
68 __raw_writel(ULPIVW_WU, view); in ulpi_read()
71 ret = ulpi_poll(view, ULPIVW_WU); in ulpi_read()
77 __raw_writel((ULPIVW_RUN | (reg << ULPIVW_ADDR_SHIFT)), view); in ulpi_read()
80 ret = ulpi_poll(view, ULPIVW_RUN); in ulpi_read()
84 return (__raw_readl(view) >> ULPIVW_RDATA_SHIFT) & ULPIVW_RDATA_MASK; in ulpi_read()
90 void __iomem *view = otg->io_priv; in ulpi_write() local
93 if (!(__raw_readl(view) & ULPIVW_SS)) { in ulpi_write()
94 __raw_writel(ULPIVW_WU, view); in ulpi_write()
96 ret = ulpi_poll(view, ULPIVW_WU); in ulpi_write()
103 ((val & ULPIVW_WDATA_MASK) << ULPIVW_WDATA_SHIFT)), view); in ulpi_write()
106 return ulpi_poll(view, ULPIVW_RUN); in ulpi_write()