Searched refs:ring (Results 1 - 25 of 36) sorted by relevance

12

/external/fio/
H A Dio_u_queue.c19 int io_u_rinit(struct io_u_ring *ring, unsigned int nr) argument
21 ring->max = nr + 1;
22 if (ring->max & (ring->max - 1)) {
23 ring->max--;
24 ring->max |= ring->max >> 1;
25 ring->max |= ring->max >> 2;
26 ring
40 io_u_rexit(struct io_u_ring *ring) argument
[all...]
H A Dio_u_queue.h46 struct io_u **ring; member in struct:io_u_ring
49 int io_u_rinit(struct io_u_ring *ring, unsigned int nr);
50 void io_u_rexit(struct io_u_ring *ring);
55 r->ring[r->head] = io_u;
66 struct io_u *io_u = r->ring[r->tail];
75 static inline int io_u_rempty(struct io_u_ring *ring) argument
77 return ring->head == ring->tail;
/external/mesa3d/src/gallium/auxiliary/util/
H A Du_ringbuffer.c26 struct util_ringbuffer *ring = CALLOC_STRUCT(util_ringbuffer); local
27 if (ring == NULL)
32 ring->buf = MALLOC( dwords * sizeof(unsigned) );
33 if (ring->buf == NULL)
36 ring->mask = dwords - 1;
38 pipe_condvar_init(ring->change);
39 pipe_mutex_init(ring->mutex);
40 return ring;
43 FREE(ring->buf);
44 FREE(ring);
72 util_ringbuffer_enqueue( struct util_ringbuffer *ring, const struct util_packet *packet ) argument
109 util_ringbuffer_dequeue( struct util_ringbuffer *ring, struct util_packet *packet, unsigned max_dwords, boolean wait ) argument
[all...]
H A Du_ringbuffer.h19 void util_ringbuffer_destroy( struct util_ringbuffer *ring );
21 void util_ringbuffer_enqueue( struct util_ringbuffer *ring,
24 enum pipe_error util_ringbuffer_dequeue( struct util_ringbuffer *ring,
/external/libdrm/freedreno/
H A Dfreedreno_ringbuffer.c42 struct fd_ringbuffer *ring; local
44 ring = pipe->funcs->ringbuffer_new(pipe, size);
45 if (!ring)
48 ring->size = size;
49 ring->pipe = pipe;
50 ring->start = ring->funcs->hostptr(ring);
51 ring->end = &(ring
58 fd_ringbuffer_del(struct fd_ringbuffer *ring) argument
67 fd_ringbuffer_set_parent(struct fd_ringbuffer *ring, struct fd_ringbuffer *parent) argument
73 fd_ringbuffer_reset(struct fd_ringbuffer *ring) argument
84 fd_ringbuffer_flush(struct fd_ringbuffer *ring) argument
89 fd_ringbuffer_timestamp(struct fd_ringbuffer *ring) argument
94 fd_ringbuffer_reloc(struct fd_ringbuffer *ring, const struct fd_reloc *reloc) argument
101 fd_ringbuffer_emit_reloc_ring(struct fd_ringbuffer *ring, struct fd_ringmarker *target, struct fd_ringmarker *end) argument
109 fd_ringmarker_new(struct fd_ringbuffer *ring) argument
144 struct fd_ringbuffer *ring = marker->ring; local
[all...]
H A Dfreedreno_ringbuffer.h54 void fd_ringbuffer_del(struct fd_ringbuffer *ring);
55 void fd_ringbuffer_set_parent(struct fd_ringbuffer *ring,
57 void fd_ringbuffer_reset(struct fd_ringbuffer *ring);
58 int fd_ringbuffer_flush(struct fd_ringbuffer *ring);
59 uint32_t fd_ringbuffer_timestamp(struct fd_ringbuffer *ring);
61 static inline void fd_ringbuffer_emit(struct fd_ringbuffer *ring, argument
64 (*ring->cur++) = data;
77 void fd_ringbuffer_reloc(struct fd_ringbuffer *ring, const struct fd_reloc *reloc);
78 void fd_ringbuffer_emit_reloc_ring(struct fd_ringbuffer *ring,
81 struct fd_ringmarker * fd_ringmarker_new(struct fd_ringbuffer *ring);
[all...]
H A Dfreedreno_priv.h114 struct fd_ringbuffer *ring; member in struct:fd_ringmarker
119 void * (*hostptr)(struct fd_ringbuffer *ring);
120 int (*flush)(struct fd_ringbuffer *ring, uint32_t *last_start);
121 void (*reset)(struct fd_ringbuffer *ring);
122 void (*emit_reloc)(struct fd_ringbuffer *ring,
124 void (*emit_reloc_ring)(struct fd_ringbuffer *ring,
126 void (*destroy)(struct fd_ringbuffer *ring);
/external/android-clat/
H A Dring.c16 * ring.c - packet ring buffer functions
28 #include "ring.h"
50 struct packet_ring *ring = &tunnel->ring; local
51 ring->numblocks = TP_NUM_BLOCKS;
53 int total_frames = TP_FRAMES * ring->numblocks;
58 .tp_block_nr = ring->numblocks, // Number of blocks.
67 size_t buflen = TP_BLOCK_SIZE * ring->numblocks;
68 ring
90 ring_advance(struct packet_ring *ring) argument
118 ring_read(struct packet_ring *ring, int write_fd, int to_ipv6) argument
[all...]
H A Dtun.h24 #include "ring.h"
29 struct packet_ring ring; member in struct:tun_data
H A Dring.h16 * ring.c - packet ring buffer functions
53 void ring_read(struct packet_ring *ring, int write_fd, int to_ipv6);
H A DAndroid.mk4 LOCAL_SRC_FILES:=clatd.c dump.c checksum.c translate.c icmp.c ipv4.c ipv6.c config.c dns64.c logging.c getaddr.c netlink_callbacks.c netlink_msg.c setif.c mtu.c tun.c ring.c
/external/libdrm/freedreno/kgsl/
H A Dkgsl_ringbuffer.c110 static void * kgsl_ringbuffer_hostptr(struct fd_ringbuffer *ring) argument
112 struct kgsl_ringbuffer *kgsl_ring = to_kgsl_ringbuffer(ring);
116 static int kgsl_ringbuffer_flush(struct fd_ringbuffer *ring, uint32_t *last_start) argument
118 struct kgsl_ringbuffer *kgsl_ring = to_kgsl_ringbuffer(ring);
119 struct kgsl_pipe *kgsl_pipe = to_kgsl_pipe(ring->pipe);
120 uint32_t offset = (uint8_t *)last_start - (uint8_t *)ring->start;
124 .sizedwords = ring->cur - last_start,
137 if (ring->pipe->id == FD_PIPE_2D) {
139 uint32_t last_size = (uint32_t)(ring->cur - last_start);
154 ring
162 kgsl_ringbuffer_emit_reloc(struct fd_ringbuffer *ring, const struct fd_reloc *r) argument
176 kgsl_ringbuffer_emit_reloc_ring(struct fd_ringbuffer *ring, struct fd_ringmarker *target, struct fd_ringmarker *end) argument
184 kgsl_ringbuffer_destroy(struct fd_ringbuffer *ring) argument
206 struct fd_ringbuffer *ring = NULL; local
[all...]
/external/libdrm/freedreno/msm/
H A Dmsm_ringbuffer.c91 static uint32_t append_bo(struct fd_ringbuffer *ring, struct fd_bo *bo) argument
93 struct msm_ringbuffer *msm_ring = to_msm_ringbuffer(ring);
109 static uint32_t bo2idx(struct fd_ringbuffer *ring, struct fd_bo *bo, uint32_t flags) argument
111 struct msm_ringbuffer *msm_ring = to_msm_ringbuffer(ring);
116 idx = append_bo(ring, bo);
117 msm_bo->current_ring = ring;
119 } else if (msm_bo->current_ring == ring) {
128 idx = append_bo(ring, bo);
139 static int check_cmd_bo(struct fd_ringbuffer *ring, argument
142 struct msm_ringbuffer *msm_ring = to_msm_ringbuffer(ring);
151 get_cmd(struct fd_ringbuffer *ring, struct fd_ringbuffer *target_ring, struct fd_bo *target_bo, uint32_t submit_offset, uint32_t size, uint32_t type) argument
186 msm_ringbuffer_hostptr(struct fd_ringbuffer *ring) argument
207 flush_reset(struct fd_ringbuffer *ring) argument
225 msm_ringbuffer_flush(struct fd_ringbuffer *ring, uint32_t *last_start) argument
299 msm_ringbuffer_reset(struct fd_ringbuffer *ring) argument
304 msm_ringbuffer_emit_reloc(struct fd_ringbuffer *ring, const struct fd_reloc *r) argument
330 msm_ringbuffer_emit_reloc_ring(struct fd_ringbuffer *ring, struct fd_ringmarker *target, struct fd_ringmarker *end) argument
351 msm_ringbuffer_destroy(struct fd_ringbuffer *ring) argument
372 struct fd_ringbuffer *ring = NULL; local
[all...]
/external/mesa3d/src/gallium/drivers/llvmpipe/
H A Dlp_scene_queue.c53 struct util_ringbuffer *ring; member in struct:lp_scene_queue
66 queue->ring = util_ringbuffer_create( MAX_SCENE_QUEUE *
68 if (queue->ring == NULL)
83 util_ringbuffer_destroy(queue->ring);
97 ret = util_ringbuffer_dequeue(queue->ring,
118 util_ringbuffer_enqueue(queue->ring, &packet.header);
/external/kernel-headers/original/uapi/linux/
H A Dvirtio_ring.h60 * at the end of the avail ring. Host should ignore the avail->flags field. */
62 * at the end of the used ring. Guest should ignore the used->flags field. */
65 /* Virtio ring descriptors: 16 bytes. These can chain together via "next". */
80 __virtio16 ring[]; member in struct:vring_avail
94 struct vring_used_elem ring[]; member in struct:vring_used
114 /* The standard layout for the ring is a continuous chunk of memory which looks
122 * // A ring of available descriptor heads with free-running index.
131 * // A ring of used descriptor heads with free-running index.
138 /* We publish the used event index at the end of the available ring, and vice
140 #define vring_used_event(vr) ((vr)->avail->ring[(v
[all...]
/external/autotest/client/tests/aio_dio_bugs/src/
H A DMakefile6 aio-free-ring-with-bogus-nr-pages \
17 aio-free-ring-with-bogus-nr-pages: aio-free-ring-with-bogus-nr-pages.c
/external/speex/libspeex/
H A Dscal.c73 float (*ring)[ALLPASS_ORDER]; member in struct:SpeexDecorrState_
100 st->ring = speex_alloc(channels*ALLPASS_ORDER*sizeof(float));
111 st->ring[ch][i] = 0;
157 float *ring; local
163 ring = st->ring[ch];
187 - alpha*(ring[ringID]
188 - beta*ring[ringID+1>=order?0:ringID+1]);
189 ring[ringID++]=st->y[i];
210 ring[
[all...]
/external/libdrm/amdgpu/
H A Damdgpu_cs.c159 if (ibs_request->ring >= AMDGPU_CS_MAX_RINGS)
195 chunk_data[i].ib_data.ring = ibs_request->ring;
228 dep->ring = info->ring;
311 uint32_t ring,
325 args.in.ring = ring;
357 if (fence->ring >= AMDGPU_CS_MAX_RINGS)
363 fence->ip_instance, fence->ring,
308 amdgpu_ioctl_wait_cs(amdgpu_context_handle context, unsigned ip, unsigned ip_instance, uint32_t ring, uint64_t handle, uint64_t timeout_ns, uint64_t flags, bool *busy) argument
[all...]
H A Damdgpu.h263 uint32_t ring; member in struct:amdgpu_cs_fence
322 * Specify ring index of the IP. We could have several rings
325 uint32_t ring; member in struct:amdgpu_cs_request
845 * from the same GPU context to the same ip:ip_instance:ring will be executed in
/external/fio/engines/
H A Dlibaio.c25 * Basic ring buffer. 'head' is incremented in _queue(), and
27 * that we know if the ring is full or empty, when
28 * 'head' == 'tail'. 'entries' is the ring size, and
30 * modulus to get the remainder on ring increment.
123 struct aio_ring *ring = (struct aio_ring*) aio_ctx; local
126 head = ring->head;
128 if (head == ring->tail) {
133 events[i] = ring->events[head];
135 ring->head = (head + 1) % ring
[all...]
/external/kernel-headers/original/uapi/linux/genwqe/
H A Dgenwqe_card.h52 #define IO_EXTENDED_DIAG_MAP(ring) (0x00000500 | ((ring) << 3))
54 #define GENWQE_EXTENDED_DIAG_SELECTOR(ring, trace) (((ring) << 8) | (trace))
/external/kernel-headers/original/uapi/drm/
H A Damdgpu_drm.h286 uint32_t ring; member in struct:drm_amdgpu_wait_cs_in
403 uint32_t ring; member in struct:drm_amdgpu_cs_chunk_ib
409 uint32_t ring; member in struct:drm_amdgpu_cs_chunk_dep
631 /** Bitmask of available rings. Bit 0 means ring 0, etc. */
/external/libdrm/include/drm/
H A Damdgpu_drm.h286 uint32_t ring; member in struct:drm_amdgpu_wait_cs_in
403 uint32_t ring; member in struct:drm_amdgpu_cs_chunk_ib
409 uint32_t ring; member in struct:drm_amdgpu_cs_chunk_dep
631 /** Bitmask of available rings. Bit 0 means ring 0, etc. */
/external/skia/src/gpu/batches/
H A DGrAAConvexTessellator.cpp155 // depth. If we are in fill mode, the final ring will automatically be fanned.
197 // next ring.
220 // the bisectors are only needed for the computation of the outer ring
263 // the start point was one of the original ring points
287 // Outer ring: 3*numPts
288 // Middle ring: numPts
289 // Presumptive inner ring: numPts
291 // Outer ring: 12*numPts
292 // Middle ring: 0
293 // Presumptive inner ring
[all...]
/external/libdrm/tests/amdgpu/
H A Dbasic_tests.c375 ibs_request.ring = instance;
387 fence_status.ring = instance;
442 /* copy PM4 packet to ring from caller */
450 ibs_request->ring = instance;
472 fence_status.ring = ibs_request->ring;

Completed in 780 milliseconds

12