Lines Matching refs:size

41 #define DBGDATA(info, buf, size, label) if (debug_level >= DEBUG_LEVEL_DATA) trace_block((info), (buf), (size), (label))
133 MODULE_PARM_DESC(maxframe, "Maximum frame size used by device (4096 to 65535)");
519 #define DBGDATA(info, buf, size, label)
1530 const size_t size = sizeof(sync_serial_settings);
1551 if (ifr->ifr_settings.size < size) {
1552 ifr->ifr_settings.size = size; /* data size wanted */
1572 if (copy_to_user(line, &new_line, size))
1580 if (copy_from_user(&new_line, line, size))
1660 * @size: count of data bytes in buf
1664 static void hdlcdev_rx(struct slgt_info *info, char *buf, int size)
1666 struct sk_buff *skb = dev_alloc_skb(size);
1677 skb_put_data(skb, buf, size);
1682 dev->stats.rx_bytes += size;
2468 /* byte size and parity */
2622 * fill level must be multiple of 4 and <= buffer size
3253 * note: add 5 bytes to max frame size to allow appending
4410 /* if preamble enabled (tcr[6] == 1) then tx idle size = 8 bits
4411 * else tcr[5:4] = tx idle size: 00 = 8 bits, 01 = 16 bits
4415 /* disable preamble, set idle size to 16 bits */
4420 /* preamble is disabled, set idle size to 8 bits */
4640 DBGBH(("%s rx frame status=%04X size=%d\n",
4712 DBGINFO(("rx_get_buf size=%d\n", count));
4808 static bool tx_load(struct slgt_info *info, const char *buf, unsigned int size)
4815 if (DIV_ROUND_UP(size, DMABUFSIZE) > free_tbuf_count(info))
4818 DBGDATA(info, buf, size, "tx");
4833 while (size) {
4836 count = (unsigned short)((size > DMABUFSIZE) ? DMABUFSIZE : size);
4839 size -= count;
4846 if ((!size && info->params.mode == MGSL_MODE_HDLC) ||