Lines Matching full:cap
2 * Linux ARCnet driver - "cap mode" packet encapsulation.
51 arc_printk(D_DURING, dev, "it's a raw(cap) packet (length=%d)\n", in rx()
71 * squeeze in an int for the cap encapsulation in rx()
77 memcpy(pktbuf, pkthdrbuf, ARC_HDR_SIZE + sizeof(pkt->soft.cap.proto)); in rx()
78 memcpy(pktbuf + ARC_HDR_SIZE + sizeof(pkt->soft.cap.proto) + sizeof(int), in rx()
79 pkthdrbuf + ARC_HDR_SIZE + sizeof(pkt->soft.cap.proto), in rx()
80 sizeof(struct archdr) - ARC_HDR_SIZE - sizeof(pkt->soft.cap.proto)); in rx()
95 /* Create the ARCnet hard/soft headers for cap mode.
96 * There aren't any soft headers in cap mode - not even the protocol id.
106 arc_printk(D_PROTO, dev, "Preparing header for cap packet %x.\n", in build_header()
107 *((int *)&pkt->soft.cap.cookie[0])); in build_header()
147 arc_printk(D_PROTO, dev, "Sending for cap packet %x.\n", in prepare_tx()
148 *((int *)&pkt->soft.cap.cookie[0])); in prepare_tx()
171 lp->hw.copy_to_card(dev, bufnum, ofs, &pkt->soft.cap.proto, in prepare_tx()
172 sizeof(pkt->soft.cap.proto)); in prepare_tx()
178 ((unsigned char *)&pkt->soft.cap.mes), length - 1); in prepare_tx()
212 ackpkt->soft.cap.proto = 0; /* using protocol 0 for acknowledge */ in ack_tx()
213 ackpkt->soft.cap.mes.ack = acked; in ack_tx()
215 arc_printk(D_PROTO, dev, "Acknowledge for cap packet %x.\n", in ack_tx()
216 *((int *)&ackpkt->soft.cap.cookie[0])); in ack_tx()
245 pr_info("cap mode (`c') encapsulation support loaded\n"); in capmode_module_init()
251 /* for cap mode, we only set the bcast proto if there's no better one */ in capmode_module_init()