Lines Matching defs:pbuf
922 struct pio_buf *pbuf;
947 pbuf = &sc->sr[sc->sr_tail].pbuf;
948 if (pbuf->cb)
949 (*pbuf->cb)(pbuf->arg, PRC_SC_DISABLE);
1454 struct pio_buf *pbuf = NULL;
1512 pbuf = &sc->sr[head].pbuf;
1513 pbuf->sent_at = sc->fill;
1514 pbuf->cb = cb;
1515 pbuf->arg = arg;
1516 pbuf->sc = sc; /* could be filled in at sc->sr init time */
1525 * in pbuf once we move the head
1532 pbuf->start = sc->base_addr + fill_wrap * PIO_BLOCK_SIZE;
1533 pbuf->end = sc->base_addr + sc->size;
1534 pbuf->qw_written = 0;
1535 pbuf->carry_bytes = 0;
1536 pbuf->carry.val64 = 0;
1538 return pbuf;
1700 struct pio_buf *pbuf;
1727 pbuf = &sc->sr[tail].pbuf;
1729 if (sent_before(free, pbuf->sent_at)) {
1733 if (pbuf->cb) {
1736 (*pbuf->cb)(pbuf->arg, code);