/external/android-clat/ |
H A D | tun.h | 24 #include "ring.h" 29 struct packet_ring ring; member in struct:tun_data
|
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...] |
/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/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/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...] |
/external/valgrind/memcheck/tests/x86-linux/ |
H A D | scalar.c | 1102 } ring = { 0, 0 }; local 1103 struct fake_aio_ring* ringptr = ˚
|
/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/kernel-headers/original/uapi/linux/ |
H A D | virtio_ring.h | 60 * 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/libdrm/amdgpu/ |
H A D | amdgpu_cs.c | 159 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 D | amdgpu.h | 263 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/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/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/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/libdrm/freedreno/msm/ |
H A D | msm_ringbuffer.c | 91 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/kernel-headers/original/uapi/drm/ |
H A D | amdgpu_drm.h | 286 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 D | amdgpu_drm.h | 286 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/iproute2/misc/ |
H A D | ss.c | 2895 static void packet_show_ring(struct packet_diag_ring *ring) argument 2897 printf("blk_size:%d", ring->pdr_block_size); 2898 printf(",blk_nr:%d", ring->pdr_block_nr); 2899 printf(",frm_size:%d", ring->pdr_frame_size); 2900 printf(",frm_nr:%d", ring->pdr_frame_nr); 2901 printf(",tmo:%d", ring->pdr_retire_tmo); 2902 printf(",features:0x%x", ring->pdr_features);
|
/external/v8/test/cctest/ |
H A D | test-api.cc | 17544 v8::Local<v8::String> ring = local 17548 USE(ring); 17565 CompileRun("var ring = 'One string to test them all';"); 17569 v8::Local<v8::String> ring = local 17570 CompileRun("ring")->ToString(env.local()).ToLocalChecked(); 17571 CHECK(v8::Utils::OpenHandle(*ring)->IsInternalizedString()); 17572 ring->MakeExternal(inscription); 17575 USE(ring); 17588 CompileRun("var ring = 'One string to test them all';"); 17592 v8::Local<v8::String> ring local [all...] |