Lines Matching defs:size
177 return ((ring->head + 1) % ring->size) == ring->tail;
203 descriptor->length = frame->size;
207 ring->head = (ring->head + 1) % ring->size;
250 frame->size = ring->descriptors[ring->tail].length;
255 ring->tail = (ring->tail + 1) % ring->size;
317 frame->size = ring->descriptors[ring->tail].length;
323 ring->tail = (ring->tail + 1) % ring->size;
495 static struct tb_ring *tb_ring_alloc(struct tb_nhi *nhi, u32 hop, int size,
503 dev_dbg(&nhi->pdev->dev, "allocating %s ring %d of size %d\n",
504 transmit ? "TX" : "RX", hop, size);
518 ring->size = size;
529 size * sizeof(*ring->descriptors),
546 ring->size * sizeof(*ring->descriptors),
558 * @size: Number of entries in the ring
561 struct tb_ring *tb_ring_alloc_tx(struct tb_nhi *nhi, int hop, int size,
564 return tb_ring_alloc(nhi, hop, size, true, flags, 0, 0, NULL, NULL);
572 * @size: Number of entries in the ring
581 struct tb_ring *tb_ring_alloc_rx(struct tb_nhi *nhi, int hop, int size,
585 return tb_ring_alloc(nhi, hop, size, false, flags, sof_mask, eof_mask,
622 ring_iowrite32desc(ring, ring->size, 12);
628 ring_iowrite32desc(ring, (frame_size << 16) | ring->size, 12);
719 ring->size * sizeof(*ring->descriptors),