Lines Matching refs:tcode
207 static inline void packet_swab(quadlet_t *data, int tcode) in packet_swab() argument
209 size_t size = hdr_sizes[tcode]; in packet_swab()
211 if (tcode > TCODE_LOCK_RESPONSE || hdr_sizes[tcode] == 0) in packet_swab()
636 packet->tcode, packet->speed_code); in insert_packet()
666 if (packet->tcode == TCODE_ISO_DATA) { in insert_packet()
677 packet_swab(d->prg_cpu[idx]->data, packet->tcode); in insert_packet()
681 if (packet->tcode == TCODE_STREAM_DATA){ in insert_packet()
748 packet_swab(d->prg_cpu[idx]->data, packet->tcode); in insert_packet()
858 else if ((packet->tcode == TCODE_ISO_DATA) && (packet->type == hpsb_iso)) { in ohci_transmit()
884 } else if ((packet->tcode & 0x02) && (packet->tcode != TCODE_ISO_DATA)) in ohci_transmit()
2521 int offset, unsigned char tcode, int noswap) in packet_length() argument
2526 length = TCODE_SIZE[tcode]; in packet_length()
2553 unsigned char tcode; in dma_rcv_tasklet() local
2570 tcode = (cond_le32_to_cpu(buf_ptr[0], ohci->no_swap_incoming) >> 4) & 0xf; in dma_rcv_tasklet()
2573 length = packet_length(d, idx, buf_ptr, offset, tcode, ohci->no_swap_incoming); in dma_rcv_tasklet()
2577 tcode, cond_le32_to_cpu(buf_ptr[0], ohci->no_swap_incoming), in dma_rcv_tasklet()
2650 if (tcode != OHCI1394_TCODE_PHY) { in dma_rcv_tasklet()
2652 packet_swab(d->spb, tcode); in dma_rcv_tasklet()
2659 tcode, length, d->ctx, in dma_rcv_tasklet()