Lines Matching refs:chunk

1560 	struct uath_chunk *chunk;  in uath_data_rxeof()  local
1597 chunk = (struct uath_chunk *)rxbuf; in uath_data_rxeof()
1598 if (chunk->seqnum == 0 && chunk->flags == 0 && chunk->length == 0) { in uath_data_rxeof()
1606 if (chunk->seqnum != sc->sc_intrx_nextnum) { in uath_data_rxeof()
1609 chunk->seqnum, sc->sc_intrx_nextnum); in uath_data_rxeof()
1617 if ((chunk->seqnum == 0 && !(chunk->flags & UATH_CFLAGS_FINAL)) || in uath_data_rxeof()
1618 (chunk->seqnum != 0 && (chunk->flags & UATH_CFLAGS_FINAL)) || in uath_data_rxeof()
1619 chunk->flags & UATH_CFLAGS_RXMSG) { in uath_data_rxeof()
1623 chunk->seqnum, chunk->flags, BE_16(chunk->length)); in uath_data_rxeof()
1629 if (!(chunk->flags & UATH_CFLAGS_FINAL)) in uath_data_rxeof()
1636 desc = (chunk->flags & UATH_CFLAGS_RXMSG) ? in uath_data_rxeof()
1637 (struct uath_rx_desc *)(chunk + 1) : in uath_data_rxeof()
1638 (struct uath_rx_desc *)(((uint8_t *)chunk) + in uath_data_rxeof()
1639 sizeof (struct uath_chunk) + BE_16(chunk->length) - in uath_data_rxeof()
1989 struct uath_chunk *chunk; in uath_send() local
2070 chunk = (struct uath_chunk *)m->b_rptr; in uath_send()
2071 desc = (struct uath_tx_desc *)(chunk + 1); in uath_send()
2074 chunk->seqnum = 0; in uath_send()
2075 chunk->flags = UATH_CFLAGS_FINAL; in uath_send()
2076 chunk->length = BE_16(msglen); in uath_send()
2324 struct uath_chunk *chunk; in uath_dataflush() local
2336 chunk = (struct uath_chunk *)buf; in uath_dataflush()
2337 desc = (struct uath_tx_desc *)(chunk + 1); in uath_dataflush()
2340 chunk->seqnum = 0; in uath_dataflush()
2341 chunk->flags = UATH_CFLAGS_FINAL; in uath_dataflush()
2342 chunk->length = BE_16(sizeof (struct uath_tx_desc)); in uath_dataflush()