Lines Matching refs:next_packet
437 int next_packet;
446 next_packet = ntohs(inw(SEEQ_BUFFER));
450 printk("%s: 0x%04x recv next=0x%04x, hdr=0x%04x\n",dev->name,lp->receive_ptr,next_packet,pkt_hdr);
453 if ((next_packet == 0) || ((pkt_hdr & SEEQPKTH_CHAIN)==0)) { /* Read all the frames? */
460 if (next_packet < lp->receive_ptr) {
461 pkt_len = (next_packet + 0x10000 - ((DEFAULT_TEA+1)<<8)) - lp->receive_ptr - 4;
463 pkt_len = next_packet - lp->receive_ptr - 4;
466 if (next_packet < ((DEFAULT_TEA+1)<<8)) { /* is the next_packet address sane? */
472 lp->receive_ptr = next_packet;