Lines Matching refs:count

167 	int actual, count;  in sp_encaps()  local
194 count = encode_sixpack(p, sp->xbuff, len, sp->tx_delay); in sp_encaps()
223 actual = sp->tty->ops->write(sp->tty, sp->xbuff, count); in sp_encaps()
224 sp->xleft = count - actual; in sp_encaps()
229 sp->xleft = count; in sp_encaps()
231 sp->status2 = count; in sp_encaps()
340 int count; in sp_bump() local
343 count = sp->rcount + 1; in sp_bump()
345 sp->dev->stats.rx_bytes += count; in sp_bump()
347 if ((skb = dev_alloc_skb(count)) == NULL) in sp_bump()
350 ptr = skb_put(skb, count); in sp_bump()
353 memcpy(ptr, sp->cooked_buf + 1, count); in sp_bump()
436 const unsigned char *cp, char *fp, int count) in sixpack_receive_buf() argument
442 if (!count) in sixpack_receive_buf()
449 memcpy(buf, cp, count < sizeof(buf) ? count : sizeof(buf)); in sixpack_receive_buf()
453 count1 = count; in sixpack_receive_buf()
454 while (count) { in sixpack_receive_buf()
455 count--; in sixpack_receive_buf()
826 int count = 0; in encode_sixpack() local
834 for (count = 1; count < length; count++) in encode_sixpack()
835 buf[count] = tx_buf[count]; in encode_sixpack()
837 for (count = 0; count < length; count++) in encode_sixpack()
838 checksum += buf[count]; in encode_sixpack()
841 for (count = 0; count <= length; count++) { in encode_sixpack()
842 if ((count % 3) == 0) { in encode_sixpack()
843 tx_buf_raw[raw_count++] = (buf[count] & 0x3f); in encode_sixpack()
844 tx_buf_raw[raw_count] = ((buf[count] >> 2) & 0x30); in encode_sixpack()
845 } else if ((count % 3) == 1) { in encode_sixpack()
846 tx_buf_raw[raw_count++] |= (buf[count] & 0x0f); in encode_sixpack()
847 tx_buf_raw[raw_count] = ((buf[count] >> 2) & 0x3c); in encode_sixpack()
849 tx_buf_raw[raw_count++] |= (buf[count] & 0x03); in encode_sixpack()
850 tx_buf_raw[raw_count++] = (buf[count] >> 2); in encode_sixpack()
989 sixpack_decode(struct sixpack *sp, unsigned char *pre_rbuff, int count) in sixpack_decode() argument
994 for (count1 = 0; count1 < count; count1++) { in sixpack_decode()