Lines Matching refs:ulpi_vp
21 static int ulpi_wait(struct ulpi_viewport *ulpi_vp, u32 mask) in ulpi_wait() argument
26 if (!(readl(ulpi_vp->viewport_addr) & mask)) in ulpi_wait()
38 static int ulpi_request(struct ulpi_viewport *ulpi_vp, u32 value) in ulpi_request() argument
42 writel(value, ulpi_vp->viewport_addr); in ulpi_request()
44 err = ulpi_wait(ulpi_vp, OMAP_ULPI_START); in ulpi_request()
51 int ulpi_write(struct ulpi_viewport *ulpi_vp, u8 *reg, u32 value) in ulpi_write() argument
53 u32 val = OMAP_ULPI_START | (((ulpi_vp->port_num + 1) & 0xf) << 24) | in ulpi_write()
56 return ulpi_request(ulpi_vp, val); in ulpi_write()
59 u32 ulpi_read(struct ulpi_viewport *ulpi_vp, u8 *reg) in ulpi_read() argument
62 u32 val = OMAP_ULPI_START | (((ulpi_vp->port_num + 1) & 0xf) << 24) | in ulpi_read()
65 err = ulpi_request(ulpi_vp, val); in ulpi_read()
69 return readl(ulpi_vp->viewport_addr) & 0xff; in ulpi_read()