• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/net/arcnet/

Lines Matching refs:soft

94 	struct arc_rfc1201 *soft = &pkt->soft.rfc1201;
110 switch (soft->proto) {
140 struct arc_rfc1201 *soft = &pkthdr->soft.rfc1201;
151 if (soft->split_flag == 0xFF) { /* Exception Packet */
164 soft, sizeof(pkt->soft));
166 if (!soft->split_flag) { /* not split */
168 soft->split_flag);
172 in->sequence, soft->split_flag, soft->sequence);
173 lp->rfc1201.aborted_seq = soft->sequence;
179 in->sequence = soft->sequence;
191 soft = &pkt->soft.rfc1201;
193 /* up to sizeof(pkt->soft) has already been copied from the card */
195 if (length > sizeof(pkt->soft))
196 lp->hw.copy_from_card(dev, bufnum, ofs + sizeof(pkt->soft),
197 pkt->soft.raw + sizeof(pkt->soft),
198 length - sizeof(pkt->soft));
205 if (soft->proto == ARC_P_ARP) {
206 struct arphdr *arp = (struct arphdr *) soft->payload;
253 soft->split_flag, in->sequence);
255 if (in->skb && in->sequence != soft->sequence) {
257 saddr, in->sequence, soft->sequence,
258 soft->split_flag);
265 if (soft->split_flag & 1) { /* first packet in split */
267 soft->split_flag);
271 in->sequence, soft->split_flag,
272 soft->sequence);
277 in->sequence = soft->sequence;
278 in->numpackets = ((unsigned) soft->split_flag >> 1) + 2;
283 soft->split_flag);
284 lp->rfc1201.aborted_seq = soft->sequence;
293 lp->rfc1201.aborted_seq = soft->sequence;
299 soft = &pkt->soft.rfc1201;
304 soft->split_flag = 0; /* end result won't be split */
306 int packetnum = ((unsigned) soft->split_flag >> 1) + 1;
313 if (lp->rfc1201.aborted_seq != soft->sequence) {
316 soft->split_flag, soft->sequence,
328 soft->split_flag);
336 in->sequence, soft->split_flag, soft->sequence);
337 lp->rfc1201.aborted_seq = soft->sequence;
346 soft = &pkt->soft.rfc1201;
375 /* Create the ARCnet hard/soft headers for RFC1201. */
382 struct arc_rfc1201 *soft = &pkt->soft.rfc1201;
387 soft->proto = ARC_P_IP;
390 soft->proto = ARC_P_IPV6;
393 soft->proto = ARC_P_ARP;
396 soft->proto = ARC_P_RARP;
401 soft->proto = ARC_P_IPX;
404 soft->proto = ARC_P_ATALK;
423 soft->sequence = htons(lp->rfc1201.sequence++);
424 soft->split_flag = 0; /* split packets are done elsewhere */
439 struct arc_rfc1201 *soft, int softlen, int bufnum)
452 excsoft.proto = soft->proto;
465 lp->hw.copy_to_card(dev, bufnum, ofs, soft, softlen);
483 pkt->soft.rfc1201.split_flag = 0;
496 pkt->soft.rfc1201.sequence);
501 load_pkt(dev, &pkt->hard, &pkt->soft.rfc1201, length, bufnum);
512 struct arc_rfc1201 *soft = &out->pkt->soft.rfc1201, *newsoft;
518 out->segnum, out->numsegs, soft->sequence);
520 /* the "new" soft header comes right before the data chunk */
522 (out->pkt->soft.raw + out->length - out->dataleft);
524 if (!out->segnum) /* first packet; newsoft == soft */
528 newsoft->proto = soft->proto;
529 newsoft->sequence = soft->sequence;