Lines Matching refs:debugf
86 #define debugf(sc, fmt, args...) if ((sc)->debug) \ macro
102 debugf(sc, "read %x from %lx\n", val, off); in TWSI_READ()
111 debugf(sc, "Writing %x to %lx\n", val, off); in TWSI_WRITE()
121 debugf(sc, "read val=%x\n", val); in twsi_control_clear()
124 debugf(sc, "write val=%x\n", val); in twsi_control_clear()
134 debugf(sc, "read val=%x\n", val); in twsi_control_set()
137 debugf(sc, "write val=%x\n", val); in twsi_control_set()
166 debugf(sc, "Waiting for ctrl reg to match mask %x\n", mask); in twsi_poll_ctrl()
172 debugf(sc, "done\n"); in twsi_poll_ctrl()
196 debugf(sc, "send start\n"); in twsi_locked_start()
200 debugf(sc, "IFLG set, clearing (mask=%x)\n", mask); in twsi_locked_start()
211 debugf(sc, "timeout sending %sSTART condition\n", in twsi_locked_start()
217 debugf(sc, "status=%x\n", status); in twsi_locked_start()
220 debugf(sc, "wrong status (%02x) after sending %sSTART condition\n", in twsi_locked_start()
230 debugf(sc, "timeout sending slave address (timeout=%d)\n", timeout); in twsi_locked_start()
238 debugf(sc, "no ACK (status: %02x) after sending slave address\n", in twsi_locked_start()
263 debugf(sc, "Bus clock is at %ju\n", clk); in twsi_calc_baud_rate()
300 debugf(sc, "Using IIC_FAST mode with speed param=%x\n", param); in twsi_reset()
306 debugf(sc, "Using IIC_FASTEST/UNKNOWN mode with speed param=%x\n", param); in twsi_reset()
311 debugf(sc, "Using clock param=%x\n", param); in twsi_reset()
330 debugf(sc, "%s\n", __func__); in twsi_stop()
352 debugf(sc, "%s: slave=%x\n", __func__, slave); in twsi_repeated_start()
376 debugf(sc, "%s: slave=%x\n", __func__, slave); in twsi_start()
414 debugf(sc, "timeout reading data (delay=%d)\n", delay); in twsi_read()
422 debugf(sc, "wrong status (%02x) while reading\n", status); in twsi_read()
453 debugf(sc, "timeout writing data (timeout=%d)\n", timeout); in twsi_write()
460 debugf(sc, "wrong status (%02x) while writing\n", status); in twsi_write()
478 debugf(sc, "Sending STOP condition for error %d\n", err); in twsi_error()
501 debugf(sc, "transmitting %d messages\n", nmsgs); in twsi_transfer()
503 debugf(sc, "status=0x%x\n", status); in twsi_transfer()
505 debugf(sc, "Bad status at start of transfer\n"); in twsi_transfer()
518 debugf(sc, "msg %d is %d bytes long\n", i, msgs[i].len); in twsi_transfer()
525 debugf(sc, "pause finish\n"); in twsi_transfer()
533 debugf(sc, "Error: %d\n", sc->error); in twsi_transfer()
537 debugf(sc, "status=0x%x\n", TWSI_READ(sc, sc->reg_status)); in twsi_transfer()
539 debugf(sc, "status=0x%x\n", TWSI_READ(sc, sc->reg_status)); in twsi_transfer()
558 debugf(sc, "Got interrupt, current msg=%u\n", sc->msg_idx); in twsi_intr()
561 debugf(sc, "reg control = 0x%x, status = 0x%x\n", in twsi_intr()
579 debugf(sc, "Send address 0x%x\n", in twsi_intr()
591 debugf(sc, "Address ACK-ed (write)\n"); in twsi_intr()
596 debugf(sc, "Sending byte 0 (of %d) = %x\n", in twsi_intr()
602 debugf(sc, "Zero-length write, sending STOP\n"); in twsi_intr()
609 debugf(sc, "Address ACK-ed (read)\n"); in twsi_intr()
613 debugf(sc, "Zero-length read, sending STOP\n"); in twsi_intr()
625 debugf(sc, "Address NACK-ed\n"); in twsi_intr()
629 debugf(sc, "Data byte NACK-ed\n"); in twsi_intr()
635 debugf(sc, "ACK received after transmitting data\n"); in twsi_intr()
637 debugf(sc, "Done TX data\n"); in twsi_intr()
644 debugf(sc, "NOSTOP flag\n"); in twsi_intr()
650 debugf(sc, "Sending byte %d (of %d) = 0x%x\n", in twsi_intr()
660 debugf(sc, "Received and ACK-ed data\n"); in twsi_intr()
666 debugf(sc, "Received byte %d (of %d) = 0x%x\n", in twsi_intr()
680 debugf(sc, "RX all but asked for more?\n"); in twsi_intr()
686 debugf(sc, "Received and NACK-ed data\n"); in twsi_intr()
691 debugf(sc, "Received byte %d (of %d) = 0x%x\n", in twsi_intr()
698 debugf(sc, "Done RX data\n"); in twsi_intr()
700 debugf(sc, "Send STOP\n"); in twsi_intr()
710 debugf(sc, "NACK-ed before receving all bytes?\n"); in twsi_intr()
716 debugf(sc, "Bus error\n"); in twsi_intr()
720 debugf(sc, "Arbitration lost\n"); in twsi_intr()
724 debugf(sc, "unexpected status 0x%x\n", status); in twsi_intr()
732 debugf(sc, "All messages transmitted\n"); in twsi_intr()
736 debugf(sc, "Send (repeated) start\n"); in twsi_intr()
745 debugf(sc, "NOSTART message after NOSTOP\n"); in twsi_intr()
752 debugf(sc, "Read+NOSTART unsupported\n"); in twsi_intr()
761 debugf(sc, "Refresh reg_control\n"); in twsi_intr()
766 debugf(sc, "Done with interrupt, transfer = %d\n", sc->transfer); in twsi_intr()