• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/sys/dev/iicbus/twsi/

Lines Matching defs:debugf

90 #define	debugf(dev, fmt, args...) device_printf(dev, "%s: " fmt, __func__, ##args)
92 #define debugf(dev, fmt, args...)
107 debugf(sc->dev, "read %x from %lx\n", val, off);
115 debugf(sc->dev, "Writing %x to %lx\n", val, off);
125 debugf(sc->dev, "read val=%x\n", val);
128 debugf(sc->dev, "write val=%x\n", val);
138 debugf(sc->dev, "read val=%x\n", val);
141 debugf(sc->dev, "write val=%x\n", val);
170 debugf(sc->dev, "Waiting for ctrl reg to match mask %x\n", mask);
176 debugf(sc->dev, "done\n");
200 debugf(dev, "send start\n");
204 debugf(dev, "IFLG set, clearing (mask=%x)\n", mask);
215 debugf(dev, "timeout sending %sSTART condition\n",
221 debugf(dev, "status=%x\n", status);
224 debugf(dev, "wrong status (%02x) after sending %sSTART condition\n",
234 debugf(dev, "timeout sending slave address (timeout=%d)\n", timeout);
242 debugf(dev, "no ACK (status: %02x) after sending slave address\n",
268 debugf(sc->dev, "Bus clock is at %ju\n", clk);
310 debugf(dev, "Using IIC_FAST mode with speed param=%x\n", param);
316 debugf(dev, "Using IIC_FASTEST/UNKNOWN mode with speed param=%x\n", param);
323 debugf(dev, "Using clock param=%x\n", param);
342 debugf(dev, "%s\n", __func__);
364 debugf(dev, "%s: slave=%x\n", __func__, slave);
388 debugf(dev, "%s: slave=%x\n", __func__, slave);
426 debugf(dev, "timeout reading data (delay=%d)\n", delay);
434 debugf(dev, "wrong status (%02x) while reading\n", status);
465 debugf(dev, "timeout writing data (timeout=%d)\n", timeout);
472 debugf(dev, "wrong status (%02x) while writing\n", status);
499 debugf(dev, "transmitting %d messages\n", nmsgs);
500 debugf(sc->dev, "status=%x\n", TWSI_READ(sc, sc->reg_status));
508 debugf(sc->dev, "msg %d is %d bytes long\n", i, msgs[i].len);
519 debugf(sc->dev, "pause finish\n");
522 debugf(sc->dev, "Error, aborting (%d)\n", sc->error);
527 debugf(sc->dev, "status=%x\n", TWSI_READ(sc, sc->reg_status));
529 debugf(sc->dev, "status=%x\n", TWSI_READ(sc, sc->reg_status));
543 debugf(sc->dev, "Got interrupt Current msg=%x\n", sc->msg_idx);
546 debugf(sc->dev, "reg control=%x\n", TWSI_READ(sc, sc->reg_control));
552 debugf(sc->dev, "Send the address (%x)", sc->msgs[sc->msg_idx].slave);
564 debugf(sc->dev, "Ack received after transmitting the address (write)\n");
567 debugf(sc->dev, "Sending byte 0 (of %d) = %x\n",
576 debugf(sc->dev, "Ack received after transmitting the address (read)\n");
584 debugf(sc->dev, "No ack received after transmitting the address\n");
592 debugf(sc->dev, "Ack received after transmitting data\n");
594 debugf(sc->dev, "Done sending all the bytes for msg %d\n", sc->msg_idx);
597 debugf(sc->dev, "Done TX data, send stop\n");
601 debugf(sc->dev, "Done TX data with NO_STOP\n");
606 debugf(sc->dev, "transfer_done=1\n");
610 debugf(sc->dev, "Send repeated start\n");
614 debugf(sc->dev, "Sending byte %d (of %d) = %x\n",
627 debugf(sc->dev, "Ack received after receiving data\n");
629 debugf(sc->dev, "msg_len=%d recv_bytes=%d\n", sc->msgs[sc->msg_idx].len, sc->recv_bytes);
635 debugf(sc->dev, "Done with msg %d\n", sc->msg_idx);
638 debugf(sc->dev, "No more msgs\n");
649 debugf(sc->dev, "Done RX data, send stop (2)\n");
654 debugf(sc->dev, "No ack when receiving data, sending stop anyway\n");
665 debugf(sc->dev, "status=%x hot handled\n", status);
672 debugf(sc->dev, "Refresh reg_control\n");
680 debugf(sc->dev, "Done with interrupts\n\n");