Lines Matching full:dwords
24 struct util_ringbuffer *util_ringbuffer_create( unsigned dwords )
30 assert(util_is_power_of_two(dwords));
32 ring->buf = MALLOC( dwords * sizeof(unsigned) );
36 ring->mask = dwords - 1;
83 assert(packet->dwords <= ring->mask);
87 while (util_ringbuffer_space(ring) < packet->dwords)
92 for (i = 0; i < packet->dwords; i++) {
94 /* Copy all dwords of the packet. Note we're abusing the
139 if (ring_packet->dwords > ring->mask + 1 - util_ringbuffer_space(ring) ||
140 ring_packet->dwords > max_dwords) {
148 for (i = 0; i < ring_packet->dwords; i++) {