Lines Matching refs:size

41 #define DBGDATA(info, buf, size, label) if (debug_level >= DEBUG_LEVEL_DATA) trace_block((info), (buf), (size), (label))
131 MODULE_PARM_DESC(maxframe, "Maximum frame size used by device (4096 to 65535)");
514 #define DBGDATA(info, buf, size, label)
1522 const size_t size = sizeof(sync_serial_settings);
1540 if (ifs->size < size) {
1541 ifs->size = size; /* data size wanted */
1561 if (copy_to_user(line, &new_line, size))
1569 if (copy_from_user(&new_line, line, size))
1650 * @size: count of data bytes in buf
1654 static void hdlcdev_rx(struct slgt_info *info, char *buf, int size)
1656 struct sk_buff *skb = dev_alloc_skb(size);
1667 skb_put_data(skb, buf, size);
1672 dev->stats.rx_bytes += size;
2458 /* byte size and parity */
2605 * fill level must be multiple of 4 and <= buffer size
3237 * note: add 5 bytes to max frame size to allow appending
4370 /* if preamble enabled (tcr[6] == 1) then tx idle size = 8 bits
4371 * else tcr[5:4] = tx idle size: 00 = 8 bits, 01 = 16 bits
4375 /* disable preamble, set idle size to 16 bits */
4380 /* preamble is disabled, set idle size to 8 bits */
4600 DBGBH(("%s rx frame status=%04X size=%d\n",
4673 DBGINFO(("rx_get_buf size=%d\n", count));
4769 static bool tx_load(struct slgt_info *info, const u8 *buf, unsigned int size)
4776 if (DIV_ROUND_UP(size, DMABUFSIZE) > free_tbuf_count(info))
4779 DBGDATA(info, buf, size, "tx");
4794 while (size) {
4797 count = (unsigned short)((size > DMABUFSIZE) ? DMABUFSIZE : size);
4800 size -= count;
4807 if ((!size && info->params.mode == MGSL_MODE_HDLC) ||