Lines Matching +full:wait +full:- +full:on +full:- +full:read
1 // SPDX-License-Identifier: GPL-2.0
9 * Based on:
27 * Wait for the ULPI request to complete
29 * @ulpi_viewport - the address of the viewport
30 * @mask - expected value to wait for
32 * returns 0 on mask match, ULPI_ERROR on time out.
38 /* Wait for the bits in mask to become zero. */ in ulpi_wait()
39 while (--timeout) { in ulpi_wait()
40 if ((readl(ulpi_vp->viewport_addr) & mask) == 0) in ulpi_wait()
52 * returns 0 on success.
58 if (readl(ulpi_vp->viewport_addr) & ULPI_SS) in ulpi_wakeup()
61 writel(ULPI_WU, ulpi_vp->viewport_addr); in ulpi_wakeup()
71 * Issue a ULPI read/write request
73 * @value - the ULPI request
83 writel(value, ulpi_vp->viewport_addr); in ulpi_request()
97 val |= (ulpi_vp->port_num & 0x7) << 24; in ulpi_write()
106 val |= (ulpi_vp->port_num & 0x7) << 24; in ulpi_read()
111 return (readl(ulpi_vp->viewport_addr) >> 8) & 0xff; in ulpi_read()