Lines Matching refs:size
212 #error "Invalid default buffer size"
216 size_t size;
363 /* a and b should both be in [0,size] and a == b == size should not hold */
364 static inline u32 grcan_ring_add(u32 a, u32 b, u32 size)
368 if (sum < size)
371 return sum - size;
374 /* a and b should both be in [0,size) */
375 static inline u32 grcan_ring_sub(u32 a, u32 b, u32 size)
377 return grcan_ring_add(a, size - b, size);
527 dma->tx.size);
558 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;
1213 rd = grcan_ring_add(rd, GRCAN_MSG_SIZE, dma->rx.size);
1293 if (grcan_txspace(dma->tx.size, txwr, priv->eskbp))
1365 space = grcan_txspace(dma->tx.size, txwr, priv->eskbp);
1420 if (unlikely(grcan_ring_sub(txwr, txrd, dma->tx.size) == 1)) {
1445 grcan_ring_add(txwr, GRCAN_MSG_SIZE, dma->tx.size));
1520 /* The tx and rx buffer size configuration options are only available via module
1524 "Sets the size of the tx buffer.\n" \
1528 "Sets the size of the rx buffer.\n" \
1529 "Format: <unsigned int> where (size & ~0x1fffc0) == 0\n" \