Lines Matching refs:control
57 u32 control; member
68 u32 control; member
265 int control, status; in twsi_wait() local
269 control = readl(&twsi->control); in twsi_wait()
270 if (control & MVTWSI_CONTROL_IFLG) { in twsi_wait()
277 control, status, expected_status); in twsi_wait()
282 return mvtwsi_error(MVTWSI_ERROR_TIMEOUT, control, status, in twsi_wait()
304 MVTWSI_CONTROL_CLEAR_IFLG, &twsi->control); in twsi_start()
329 &twsi->control); in twsi_send()
350 int expected_status, status, control; in twsi_recv() local
356 control = MVTWSI_CONTROL_TWSIEN; in twsi_recv()
357 control |= ack_flag == MVTWSI_READ_ACK ? MVTWSI_CONTROL_ACK : 0; in twsi_recv()
358 writel(control | MVTWSI_CONTROL_CLEAR_IFLG, &twsi->control); in twsi_recv()
380 int control, stop_status; in twsi_stop() local
385 control = MVTWSI_CONTROL_TWSIEN | MVTWSI_CONTROL_STOP; in twsi_stop()
386 writel(control | MVTWSI_CONTROL_CLEAR_IFLG, &twsi->control); in twsi_stop()
394 control = readl(&twsi->control); in twsi_stop()
397 control, status, MVTWSI_STATUS_IDLE); in twsi_stop()