Lines Matching defs:buf
386 static void hdlcdev_rx(MGSLPC_INFO *info, char *buf, int size);
834 RXBUF *buf = (RXBUF*)(info->rx_buf + (info->rx_put * info->rx_buf_size));
869 buf->status = data[--read_count];
872 if (buf->count >= info->max_frame_size) {
875 buf->count = 0;
878 *(buf->data + buf->count) = data[i];
879 buf->count++;
1549 * buf pointer to buffer containing send data
1555 const unsigned char *buf, int count)
1587 memcpy(info->tx_buf + info->tx_put, buf, c);
1594 buf += c;
3616 RXBUF *buf;
3623 buf = (RXBUF*)(info->rx_buf + (i * info->rx_buf_size));
3624 buf->status = buf->count = 0;
3636 RXBUF *buf;
3644 buf = (RXBUF*)(info->rx_buf + (info->rx_get * info->rx_buf_size));
3646 status = buf->status;
3674 framesize = buf->count;
3681 trace_block(info, buf->data, framesize, 0);
3693 *(buf->data + framesize) = status & BIT5 ? RX_OK:RX_CRC_ERROR;
3699 hdlcdev_rx(info, buf->data, framesize);
3702 ldisc_receive_buf(tty, buf->data, info->flag_buf, framesize);
3707 buf->status = buf->count = 0;
4207 * buf pointer to buffer contianing frame data
4208 * size count of data bytes in buf
4210 static void hdlcdev_rx(MGSLPC_INFO *info, char *buf, int size)
4224 skb_put_data(skb, buf, size);