Lines Matching defs:length
472 word length;
488 length = skb->len;
490 if (length < ETH_ZLEN) {
495 length = ETH_ZLEN;
502 ** Pkt size for allocating is data length +6 (for additional status words,
503 ** length and ctl!) If odd size last byte is included in this header.
505 numPages = ((length & 0xfffe) + 6) / 256;
570 . Set the length word in the chip's memory
572 . Check if a last byte is needed ( odd length packet )
583 word length;
593 length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN;
613 PRINTK3((CARDNAME": Trying to xmit packet of length %x\n", length));
615 print_packet( buf, length );
618 /* send the packet length ( +6 for status, length and ctl byte )
621 outl( (length +6 ) << 16 , ioaddr + DATA_1 );
624 /* send the packet length ( +6 for status words, length, and ctl*/
625 outb( (length+6) & 0xFF,ioaddr + DATA_1 );
626 outb( (length+6) >> 8 , ioaddr + DATA_1 );
637 if ( length & 0x2 ) {
638 outsl(ioaddr + DATA_1, buf, length >> 2 );
639 outw( *((word *)(buf + (length & 0xFFFFFFFC))),ioaddr +DATA_1);
642 outsl(ioaddr + DATA_1, buf, length >> 2 );
644 outsw(ioaddr + DATA_1 , buf, (length ) >> 1);
648 if ( (length & 1) == 0 ) {
651 outb( buf[length -1 ], ioaddr + DATA_1 );
661 PRINTK2((CARDNAME": Sent packet of length %d\n", length));
1032 static void print_packet( byte * buf, int length )
1036 buf, length, true);
1155 . the packet length contains 3 extra words :
1156 . status, length, and an extra word with an odd byte .