Lines Matching refs:size
210 #error "Invalid default buffer size"
214 size_t size;
362 /* a and b should both be in [0,size] and a == b == size should not hold */
363 static inline u32 grcan_ring_add(u32 a, u32 b, u32 size)
367 if (sum < size)
370 return sum - size;
373 /* a and b should both be in [0,size) */
374 static inline u32 grcan_ring_sub(u32 a, u32 b, u32 size)
376 return grcan_ring_add(a, size - b, size);
528 dma->tx.size);
559 txrd = grcan_ring_add(txrd, GRCAN_MSG_SIZE, dma->tx.size);
696 if (grcan_txspace(dma->tx.size, txwr,
861 /* Start queue if there is size and listen-onle mode is not
864 if (grcan_txspace(priv->dma.tx.size, txwr, priv->eskbp) &&
961 dma->tx.size = tsize;
962 dma->rx.size = rsize;
984 grcan_write_reg(®s->txsize, priv->dma.tx.size);
988 grcan_write_reg(®s->rxsize, priv->dma.rx.size);
1057 priv->echo_skb = kcalloc(dma->tx.size, sizeof(*priv->echo_skb),
1063 priv->can.echo_skb_max = dma->tx.size;
1066 priv->txdlc = kcalloc(dma->tx.size, sizeof(*priv->txdlc), GFP_KERNEL);
1222 rd = grcan_ring_add(rd, GRCAN_MSG_SIZE, dma->rx.size);
1302 if (grcan_txspace(dma->tx.size, txwr, priv->eskbp))
1374 space = grcan_txspace(dma->tx.size, txwr, priv->eskbp);
1429 if (unlikely(grcan_ring_sub(txwr, txrd, dma->tx.size) == 1)) {
1455 grcan_ring_add(txwr, GRCAN_MSG_SIZE, dma->tx.size));
1530 /* The tx and rx buffer size configuration options are only available via module
1534 "Sets the size of the tx buffer.\n" \
1538 "Sets the size of the rx buffer.\n" \
1539 "Format: <unsigned int> where (size & ~0x1fffc0) == 0\n" \