Lines Matching refs:ucb

40 	struct ucb1x00		*ucb;  member
79 ucb1x00_reg_write(ts->ucb, UCB_TS_CR, in ucb1x00_ts_mode_int()
92 ucb1x00_io_write(ts->ucb, COLLIE_TC35143_GPIO_TBL_CHK, 0); in ucb1x00_ts_read_pressure()
93 ucb1x00_reg_write(ts->ucb, UCB_TS_CR, in ucb1x00_ts_read_pressure()
99 return ucb1x00_adc_read(ts->ucb, UCB_ADC_INP_AD2, ts->adcsync); in ucb1x00_ts_read_pressure()
101 ucb1x00_reg_write(ts->ucb, UCB_TS_CR, in ucb1x00_ts_read_pressure()
106 return ucb1x00_adc_read(ts->ucb, UCB_ADC_INP_TSPY, ts->adcsync); in ucb1x00_ts_read_pressure()
119 ucb1x00_io_write(ts->ucb, 0, COLLIE_TC35143_GPIO_TBL_CHK); in ucb1x00_ts_read_xpos()
121 ucb1x00_reg_write(ts->ucb, UCB_TS_CR, in ucb1x00_ts_read_xpos()
124 ucb1x00_reg_write(ts->ucb, UCB_TS_CR, in ucb1x00_ts_read_xpos()
128 ucb1x00_reg_write(ts->ucb, UCB_TS_CR, in ucb1x00_ts_read_xpos()
134 return ucb1x00_adc_read(ts->ucb, UCB_ADC_INP_TSPY, ts->adcsync); in ucb1x00_ts_read_xpos()
146 ucb1x00_io_write(ts->ucb, 0, COLLIE_TC35143_GPIO_TBL_CHK); in ucb1x00_ts_read_ypos()
148 ucb1x00_reg_write(ts->ucb, UCB_TS_CR, in ucb1x00_ts_read_ypos()
151 ucb1x00_reg_write(ts->ucb, UCB_TS_CR, in ucb1x00_ts_read_ypos()
156 ucb1x00_reg_write(ts->ucb, UCB_TS_CR, in ucb1x00_ts_read_ypos()
162 return ucb1x00_adc_read(ts->ucb, UCB_ADC_INP_TSPX, ts->adcsync); in ucb1x00_ts_read_ypos()
171 ucb1x00_reg_write(ts->ucb, UCB_TS_CR, in ucb1x00_ts_read_xres()
174 return ucb1x00_adc_read(ts->ucb, 0, ts->adcsync); in ucb1x00_ts_read_xres()
183 ucb1x00_reg_write(ts->ucb, UCB_TS_CR, in ucb1x00_ts_read_yres()
186 return ucb1x00_adc_read(ts->ucb, 0, ts->adcsync); in ucb1x00_ts_read_yres()
191 unsigned int val = ucb1x00_reg_read(ts->ucb, UCB_TS_CR); in ucb1x00_ts_pen_down()
220 ucb1x00_adc_enable(ts->ucb); in ucb1x00_thread()
230 ucb1x00_adc_disable(ts->ucb); in ucb1x00_thread()
234 ucb1x00_enable(ts->ucb); in ucb1x00_thread()
243 enable_irq(ts->ucb->irq_base + UCB_IRQ_TSPX); in ucb1x00_thread()
246 ucb1x00_disable(ts->ucb); in ucb1x00_thread()
259 ucb1x00_disable(ts->ucb); in ucb1x00_thread()
294 disable_irq_nosync(ts->ucb->irq_base + UCB_IRQ_TSPX); in ucb1x00_ts_irq()
317 ret = request_irq(ts->ucb->irq_base + UCB_IRQ_TSPX, ucb1x00_ts_irq, in ucb1x00_ts_open()
326 ucb1x00_adc_enable(ts->ucb); in ucb1x00_ts_open()
329 ucb1x00_adc_disable(ts->ucb); in ucb1x00_ts_open()
335 free_irq(ts->ucb->irq_base + UCB_IRQ_TSPX, ts); in ucb1x00_ts_open()
354 ucb1x00_enable(ts->ucb); in ucb1x00_ts_close()
355 free_irq(ts->ucb->irq_base + UCB_IRQ_TSPX, ts); in ucb1x00_ts_close()
356 ucb1x00_reg_write(ts->ucb, UCB_TS_CR, 0); in ucb1x00_ts_close()
357 ucb1x00_disable(ts->ucb); in ucb1x00_ts_close()
377 ts->ucb = dev->ucb; in ucb1x00_ts_add()
383 idev->id.product = ts->ucb->id; in ucb1x00_ts_add()
386 idev->dev.parent = &ts->ucb->dev; in ucb1x00_ts_add()
393 ucb1x00_adc_enable(ts->ucb); in ucb1x00_ts_add()
396 ucb1x00_adc_disable(ts->ucb); in ucb1x00_ts_add()