/external/fio/ |
H A D | io_u_queue.c | 19 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 D | io_u_queue.h | 46 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 D | u_ringbuffer.c | 26 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 D | u_ringbuffer.h | 19 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 D | freedreno_ringbuffer.c | 42 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 D | freedreno_ringbuffer.h | 54 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 D | freedreno_priv.h | 114 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 D | ring.c | 16 * 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 D | tun.h | 24 #include "ring.h" 29 struct packet_ring ring; member in struct:tun_data
|
H A D | ring.h | 16 * ring.c - packet ring buffer functions 53 void ring_read(struct packet_ring *ring, int write_fd, int to_ipv6);
|
H A D | Android.mk | 4 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
|
H A D | clatd.c | 54 #include "ring.h" 396 ring_read(&tunnel->ring, tunnel->fd4, 0 /* to_ipv6 */);
|
/external/libdrm/freedreno/kgsl/ |
H A D | kgsl_ringbuffer.c | 110 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 D | msm_ringbuffer.c | 82 static uint32_t bo2idx(struct fd_ringbuffer *ring, struct fd_bo *bo, uint32_t flags) argument 84 struct msm_ringbuffer *msm_ring = to_msm_ringbuffer(ring); 86 int id = ring->pipe->id; 109 static int check_cmd_bo(struct fd_ringbuffer *ring, argument 112 struct msm_ringbuffer *msm_ring = to_msm_ringbuffer(ring); 121 static struct drm_msm_gem_submit_cmd * get_cmd(struct fd_ringbuffer *ring, argument 125 struct msm_ringbuffer *msm_ring = to_msm_ringbuffer(ring); 135 check_cmd_bo(ring, cmd, target_bo)) 147 cmd->submit_idx = bo2idx(ring, target_bo, FD_RELOC_READ); 156 static void * msm_ringbuffer_hostptr(struct fd_ringbuffer *ring) argument 177 flush_reset(struct fd_ringbuffer *ring) argument 193 msm_ringbuffer_flush(struct fd_ringbuffer *ring, uint32_t *last_start) argument 252 msm_ringbuffer_reset(struct fd_ringbuffer *ring) argument 257 msm_ringbuffer_emit_reloc(struct fd_ringbuffer *ring, const struct fd_reloc *r) argument 283 msm_ringbuffer_emit_reloc_ring(struct fd_ringbuffer *ring, struct fd_ringmarker *target, struct fd_ringmarker *end) argument 304 msm_ringbuffer_destroy(struct fd_ringbuffer *ring) argument 325 struct fd_ringbuffer *ring = NULL; local [all...] |
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
H A D | lp_scene_queue.c | 53 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 D | virtio_ring.h | 56 * at the end of the avail ring. Host should ignore the avail->flags field. */ 58 * at the end of the used ring. Guest should ignore the used->flags field. */ 61 /* Virtio ring descriptors: 16 bytes. These can chain together via "next". */ 76 __u16 ring[]; member in struct:vring_avail 90 struct vring_used_elem ring[]; member in struct:vring_used 103 /* The standard layout for the ring is a continuous chunk of memory which looks 111 * // A ring of available descriptor heads with free-running index. 120 * // A ring of used descriptor heads with free-running index. 127 /* We publish the used event index at the end of the available ring, and vice 129 #define vring_used_event(vr) ((vr)->avail->ring[(v [all...] |
/external/speex/libspeex/ |
H A D | scal.c | 73 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/fio/engines/ |
H A D | libaio.c | 25 * 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 D | genwqe_card.h | 52 #define IO_EXTENDED_DIAG_MAP(ring) (0x00000500 | ((ring) << 3)) 54 #define GENWQE_EXTENDED_DIAG_SELECTOR(ring, trace) (((ring) << 8) | (trace))
|
/external/skia/src/gpu/ |
H A D | GrAAConvexTessellator.cpp | 140 // next ring. 152 // the bisectors are only needed for the computation of the outer ring 170 // the depth of all points in the final ring to 'fTargetDepth' and 207 // the start point was one of the original ring points 234 // Outer ring: 3*numPts 235 // Middle ring: numPts 236 // Presumptive inner ring: numPts 238 // Outer ring: 12*numPts 239 // Middle ring: 0 240 // Presumptive inner ring 371 Ring* ring = *fRings.push() = SkNEW(Ring); local 384 fanRing(const Ring& ring) argument 468 terminate(const Ring& ring) argument [all...] |
H A D | GrAAConvexTessellator.h | 59 // CandidateVerts holds the vertices for the next ring while they are 194 void fanRing(const Ring& ring); 218 // needed for exterior ring creation and then handed off to the initial ring.
|
/external/libpcap/msdos/ |
H A D | pkt_rx1.s | 30 _rxOutOfs dw offset _pktRxBuf ; ring buffer offsets
|
H A D | pkt_rx0.asm | 55 _rxOutOfs dw offset _pktRxBuf ; ring buffer offsets
|
/external/valgrind/memcheck/tests/x86-linux/ |
H A D | scalar.c | 1102 } ring = { 0, 0 }; local 1103 struct fake_aio_ring* ringptr = ˚
|
/external/valgrind/memcheck/tests/darwin/ |
H A D | scalar.c | 1686 } ring = { 0, 0 }; 1687 struct fake_aio_ring* ringptr = ˚
|