Lines Matching refs:framelen
78 unsigned int framelen; /* current frame length */ member
599 unsigned framelen = 0, frameno, ack; in recv_frame() local
602 if( check_fhdr( ioaddr, &framelen, &frameno, &ack, &is_first, &crc ) ) { in recv_frame()
603 frame_ok = framelen > 4 in recv_frame()
604 ? upload_data( dev, framelen, frameno, is_first, crc ) in recv_frame()
605 : skip_tail( ioaddr, framelen, crc ); in recv_frame()
613 if( framelen > 4 ) in recv_frame()
621 return !frame_ok || framelen > 4; in recv_frame()
637 if( nl->framelen != 0 ) in send_frame()
659 if( nl->framelen ) { in send_frame()
688 unsigned len = min_t(unsigned int, skb->len - nl->outpos, nl->framelen); in download_data()
694 for( len = nl->framelen - len; len--; ) in download_data()
701 upload_data( struct net_device *dev, unsigned framelen, unsigned frameno, in upload_data() argument
714 if( nl->inppos + framelen <= ETHER_MAX_LEN ) in upload_data()
715 frame_ok = append_frame_to_pkt( dev, framelen, crc ); in upload_data()
721 else if( (frame_ok = skip_tail( dev->base_addr, framelen, crc )) in upload_data()
734 frame_ok = skip_tail( dev->base_addr, framelen, crc ); in upload_data()
772 nl->framelen = 0; in send_complete()
785 nl->outpos += nl->framelen; in interpret_ack()
788 nl->framelen = min_t(unsigned int, in interpret_ack()
811 append_frame_to_pkt( struct net_device *dev, unsigned framelen, u32 crc ) in append_frame_to_pkt() argument
817 if( nl->inppos + framelen > ETHER_MAX_LEN ) in append_frame_to_pkt()
824 insb( dev->base_addr + DAT, p, framelen ); in append_frame_to_pkt()
825 if( calc_crc32( crc, p, framelen ) != CRC32_REMAINDER ) in append_frame_to_pkt()
828 nl->inppos += framelen - 4; in append_frame_to_pkt()
861 nl->framelen = len < nl->maxframe ? len : nl->maxframe; in prepare_to_send()
889 nl->framelen = 0; in drop_xmit_queue()
908 u32 len_field = nl->framelen + 6; /* CRC + frameno + reserved */ in send_frame_header()
956 check_fhdr( u32 ioaddr, u32 *framelen, u32 *frameno, u32 *ack, in check_fhdr() argument
966 *framelen = (u32)value; in check_fhdr()
969 *framelen |= ((u32)value) << 8; in check_fhdr()
972 *ack = *framelen & FRAME_ACK_MASK; in check_fhdr()
973 *is_first = (*framelen & FRAME_FIRST) != 0; in check_fhdr()
975 if( (*framelen &= FRAME_LEN_MASK) < 6 || in check_fhdr()
976 *framelen > SBNI_MAX_FRAME - 3 ) in check_fhdr()
984 *framelen -= 2; in check_fhdr()
1100 nl->framelen = 0; in card_start()