Lines Matching refs:PacketP
99 struct PKT __iomem *PacketP;
121 while (can_add_transmit(&PacketP, PortP)) {
141 rio_memcpy_toio(PortP->HostP->Caddr, PacketP->data, PortP->gs.xmit_buf + PortP->gs.xmit_tail, c);
144 writeb(c, &(PacketP->len));
211 struct PKT __iomem *PacketP;
253 if (can_remove_receive(&PacketP, PortP))
261 if (!can_remove_receive(&PacketP, PortP) && (readw(&PortP->PhbP->handshake) == PHB_HANDSHAKE_SET)) {
290 struct PKT __iomem *PacketP;
327 if (!can_add_transmit(&PacketP, PortP)) {
416 while (PortP->WflushFlag && can_add_transmit(&PacketP, PortP) && (PortP->InUse == NOT_INUSE)) {
424 PktCmdP = (struct PktCmd __iomem *) &PacketP->data[0];
442 writeb('W', &PacketP->data[2]);
443 writeb('F', &PacketP->data[3]);
444 writeb('L', &PacketP->data[4]);
445 writeb('U', &PacketP->data[5]);
446 writeb('S', &PacketP->data[6]);
447 writeb('H', &PacketP->data[7]);
448 writeb(' ', &PacketP->data[8]);
449 writeb('0' + PortP->WflushFlag, &PacketP->data[9]);
450 writeb(' ', &PacketP->data[10]);
451 writeb(' ', &PacketP->data[11]);
452 writeb('\0', &PacketP->data[12]);
457 writeb(PKT_CMD_BIT | 2, &PacketP->len);
481 if (!can_add_transmit(&PacketP, PortP)) {
498 if (!can_add_transmit(&PacketP, PortP)) {
516 struct PKT __iomem *PacketP;
556 while (can_remove_receive(&PacketP, PortP)) {
558 put_free_end(PortP->HostP, PacketP);
569 while (can_remove_receive(&PacketP, PortP)
576 if (readb(&PacketP->len) & PKT_CMD_BIT) {
579 rio_dprintk(RIO_DEBUG_INTR, " dest_unit = %d\n", readb(&PacketP->dest_unit));
580 rio_dprintk(RIO_DEBUG_INTR, " dest_port = %d\n", readb(&PacketP->dest_port));
581 rio_dprintk(RIO_DEBUG_INTR, " src_unit = %d\n", readb(&PacketP->src_unit));
582 rio_dprintk(RIO_DEBUG_INTR, " src_port = %d\n", readb(&PacketP->src_port));
583 rio_dprintk(RIO_DEBUG_INTR, " len = %d\n", readb(&PacketP->len));
584 rio_dprintk(RIO_DEBUG_INTR, " control = %d\n", readb(&PacketP->control));
585 rio_dprintk(RIO_DEBUG_INTR, " csum = %d\n", readw(&PacketP->csum));
588 rio_dprintk(RIO_DEBUG_INTR, "%d\n", readb(&PacketP->data[DataCnt]));
590 put_free_end(PortP->HostP, PacketP);
609 transCount = tty_buffer_request_room(TtyP, readb(&PacketP->len) & PKT_LEN_MASK);
616 ptr = (unsigned char __iomem *) PacketP->data + PortP->RxDataStart;
621 writeb(readb(&PacketP->len)-transCount, &PacketP->len);
626 if (readb(&PacketP->len) == 0) {
633 put_free_end(PortP->HostP, PacketP);