Lines Matching refs:ulpi_vp

31 static int ulpi_integrity_check(struct ulpi_viewport *ulpi_vp)  in ulpi_integrity_check()  argument
38 err = ulpi_write(ulpi_vp, &ulpi->scratch, tval); in ulpi_integrity_check()
42 val = ulpi_read(ulpi_vp, &ulpi->scratch); in ulpi_integrity_check()
52 int ulpi_init(struct ulpi_viewport *ulpi_vp) in ulpi_init() argument
60 val = ulpi_read(ulpi_vp, reg - i); in ulpi_init()
70 return ulpi_integrity_check(ulpi_vp); in ulpi_init()
73 int ulpi_select_transceiver(struct ulpi_viewport *ulpi_vp, unsigned speed) in ulpi_select_transceiver() argument
90 val = ulpi_read(ulpi_vp, &ulpi->function_ctrl); in ulpi_select_transceiver()
97 return ulpi_write(ulpi_vp, &ulpi->function_ctrl, val); in ulpi_select_transceiver()
100 int ulpi_set_vbus(struct ulpi_viewport *ulpi_vp, int on, int ext_power) in ulpi_set_vbus() argument
108 return ulpi_write(ulpi_vp, reg, flags); in ulpi_set_vbus()
111 int ulpi_set_vbus_indicator(struct ulpi_viewport *ulpi_vp, int external, in ulpi_set_vbus_indicator() argument
118 val = ulpi_write(ulpi_vp, reg, ULPI_OTG_EXTVBUSIND); in ulpi_set_vbus_indicator()
125 val = ulpi_read(ulpi_vp, &ulpi->iface_ctrl); in ulpi_set_vbus_indicator()
131 val = ulpi_write(ulpi_vp, &ulpi->iface_ctrl, val); in ulpi_set_vbus_indicator()
138 int ulpi_set_pd(struct ulpi_viewport *ulpi_vp, int enable) in ulpi_set_pd() argument
143 return ulpi_write(ulpi_vp, reg, val); in ulpi_set_pd()
146 int ulpi_opmode_sel(struct ulpi_viewport *ulpi_vp, unsigned opmode) in ulpi_opmode_sel() argument
163 val = ulpi_read(ulpi_vp, &ulpi->function_ctrl); in ulpi_opmode_sel()
170 return ulpi_write(ulpi_vp, &ulpi->function_ctrl, val); in ulpi_opmode_sel()
173 int ulpi_serial_mode_enable(struct ulpi_viewport *ulpi_vp, unsigned smode) in ulpi_serial_mode_enable() argument
185 return ulpi_write(ulpi_vp, &ulpi->iface_ctrl_set, smode); in ulpi_serial_mode_enable()
188 int ulpi_suspend(struct ulpi_viewport *ulpi_vp) in ulpi_suspend() argument
192 err = ulpi_write(ulpi_vp, &ulpi->function_ctrl_clear, in ulpi_suspend()
205 static int __ulpi_reset_wait(struct ulpi_viewport *ulpi_vp) in __ulpi_reset_wait() argument
218 val = ulpi_read(ulpi_vp, &ulpi->function_ctrl); in __ulpi_reset_wait()
229 int ulpi_reset_wait(struct ulpi_viewport *ulpi_vp)
232 int ulpi_reset(struct ulpi_viewport *ulpi_vp) in ulpi_reset() argument
236 err = ulpi_write(ulpi_vp, in ulpi_reset()
243 return ulpi_reset_wait(ulpi_vp); in ulpi_reset()