Home
last modified time | relevance | path

Searched refs:pq (Results 1 – 25 of 147) sorted by relevance

123456

/third_party/nghttp2/lib/
Dnghttp2_pq.c32 void nghttp2_pq_init(nghttp2_pq *pq, nghttp2_less less, nghttp2_mem *mem) { in nghttp2_pq_init() argument
33 pq->mem = mem; in nghttp2_pq_init()
34 pq->capacity = 0; in nghttp2_pq_init()
35 pq->q = NULL; in nghttp2_pq_init()
36 pq->length = 0; in nghttp2_pq_init()
37 pq->less = less; in nghttp2_pq_init()
40 void nghttp2_pq_free(nghttp2_pq *pq) { in nghttp2_pq_free() argument
41 nghttp2_mem_free(pq->mem, pq->q); in nghttp2_pq_free()
42 pq->q = NULL; in nghttp2_pq_free()
45 static void swap(nghttp2_pq *pq, size_t i, size_t j) { in swap() argument
[all …]
Dnghttp2_pq.h59 void nghttp2_pq_init(nghttp2_pq *pq, nghttp2_less less, nghttp2_mem *mem);
65 void nghttp2_pq_free(nghttp2_pq *pq);
76 int nghttp2_pq_push(nghttp2_pq *pq, nghttp2_pq_entry *item);
82 nghttp2_pq_entry *nghttp2_pq_top(nghttp2_pq *pq);
88 void nghttp2_pq_pop(nghttp2_pq *pq);
93 int nghttp2_pq_empty(nghttp2_pq *pq);
98 size_t nghttp2_pq_size(nghttp2_pq *pq);
108 void nghttp2_pq_update(nghttp2_pq *pq, nghttp2_pq_item_cb fun, void *arg);
117 int nghttp2_pq_each(nghttp2_pq *pq, nghttp2_pq_item_cb fun, void *arg);
122 void nghttp2_pq_remove(nghttp2_pq *pq, nghttp2_pq_entry *item);
/third_party/node/deps/nghttp2/lib/
Dnghttp2_pq.c32 void nghttp2_pq_init(nghttp2_pq *pq, nghttp2_less less, nghttp2_mem *mem) { in nghttp2_pq_init() argument
33 pq->mem = mem; in nghttp2_pq_init()
34 pq->capacity = 0; in nghttp2_pq_init()
35 pq->q = NULL; in nghttp2_pq_init()
36 pq->length = 0; in nghttp2_pq_init()
37 pq->less = less; in nghttp2_pq_init()
40 void nghttp2_pq_free(nghttp2_pq *pq) { in nghttp2_pq_free() argument
41 nghttp2_mem_free(pq->mem, pq->q); in nghttp2_pq_free()
42 pq->q = NULL; in nghttp2_pq_free()
45 static void swap(nghttp2_pq *pq, size_t i, size_t j) { in swap() argument
[all …]
Dnghttp2_pq.h59 void nghttp2_pq_init(nghttp2_pq *pq, nghttp2_less less, nghttp2_mem *mem);
65 void nghttp2_pq_free(nghttp2_pq *pq);
76 int nghttp2_pq_push(nghttp2_pq *pq, nghttp2_pq_entry *item);
82 nghttp2_pq_entry *nghttp2_pq_top(nghttp2_pq *pq);
88 void nghttp2_pq_pop(nghttp2_pq *pq);
93 int nghttp2_pq_empty(nghttp2_pq *pq);
98 size_t nghttp2_pq_size(nghttp2_pq *pq);
108 void nghttp2_pq_update(nghttp2_pq *pq, nghttp2_pq_item_cb fun, void *arg);
117 int nghttp2_pq_each(nghttp2_pq *pq, nghttp2_pq_item_cb fun, void *arg);
122 void nghttp2_pq_remove(nghttp2_pq *pq, nghttp2_pq_entry *item);
/third_party/node/deps/ngtcp2/nghttp3/lib/
Dnghttp3_pq.c33 void nghttp3_pq_init(nghttp3_pq *pq, nghttp3_less less, in nghttp3_pq_init() argument
35 pq->mem = mem; in nghttp3_pq_init()
36 pq->capacity = 0; in nghttp3_pq_init()
37 pq->q = NULL; in nghttp3_pq_init()
38 pq->length = 0; in nghttp3_pq_init()
39 pq->less = less; in nghttp3_pq_init()
42 void nghttp3_pq_free(nghttp3_pq *pq) { in nghttp3_pq_free() argument
43 nghttp3_mem_free(pq->mem, pq->q); in nghttp3_pq_free()
44 pq->q = NULL; in nghttp3_pq_free()
47 static void swap(nghttp3_pq *pq, size_t i, size_t j) { in swap() argument
[all …]
Dnghttp3_pq.h70 void nghttp3_pq_init(nghttp3_pq *pq, nghttp3_less less, const nghttp3_mem *mem);
76 void nghttp3_pq_free(nghttp3_pq *pq);
87 int nghttp3_pq_push(nghttp3_pq *pq, nghttp3_pq_entry *item);
93 nghttp3_pq_entry *nghttp3_pq_top(const nghttp3_pq *pq);
99 void nghttp3_pq_pop(nghttp3_pq *pq);
104 int nghttp3_pq_empty(const nghttp3_pq *pq);
109 size_t nghttp3_pq_size(const nghttp3_pq *pq);
120 int nghttp3_pq_each(const nghttp3_pq *pq, nghttp3_pq_item_cb fun, void *arg);
125 void nghttp3_pq_remove(nghttp3_pq *pq, nghttp3_pq_entry *item);
127 void nghttp3_pq_clear(nghttp3_pq *pq);
Dnghttp3_tnode.c58 static void tnode_unschedule(nghttp3_tnode *tnode, nghttp3_pq *pq) { in tnode_unschedule() argument
61 nghttp3_pq_remove(pq, &tnode->pe); in tnode_unschedule()
65 void nghttp3_tnode_unschedule(nghttp3_tnode *tnode, nghttp3_pq *pq) { in nghttp3_tnode_unschedule() argument
70 tnode_unschedule(tnode, pq); in nghttp3_tnode_unschedule()
73 static uint64_t pq_get_first_cycle(nghttp3_pq *pq) { in pq_get_first_cycle() argument
76 if (nghttp3_pq_empty(pq)) { in pq_get_first_cycle()
80 top = nghttp3_struct_of(nghttp3_pq_top(pq), nghttp3_tnode, pe); in pq_get_first_cycle()
84 int nghttp3_tnode_schedule(nghttp3_tnode *tnode, nghttp3_pq *pq, in nghttp3_tnode_schedule() argument
89 tnode->cycle = pq_get_first_cycle(pq) + in nghttp3_tnode_schedule()
94 if (!nghttp3_pri_uint8_inc(tnode->pri) || nghttp3_pq_size(pq) == 1) { in nghttp3_tnode_schedule()
[all …]
/third_party/node/deps/ngtcp2/ngtcp2/lib/
Dngtcp2_pq.c32 void ngtcp2_pq_init(ngtcp2_pq *pq, ngtcp2_less less, const ngtcp2_mem *mem) { in ngtcp2_pq_init() argument
33 pq->mem = mem; in ngtcp2_pq_init()
34 pq->capacity = 0; in ngtcp2_pq_init()
35 pq->q = NULL; in ngtcp2_pq_init()
36 pq->length = 0; in ngtcp2_pq_init()
37 pq->less = less; in ngtcp2_pq_init()
40 void ngtcp2_pq_free(ngtcp2_pq *pq) { in ngtcp2_pq_free() argument
41 ngtcp2_mem_free(pq->mem, pq->q); in ngtcp2_pq_free()
42 pq->q = NULL; in ngtcp2_pq_free()
45 static void swap(ngtcp2_pq *pq, size_t i, size_t j) { in swap() argument
[all …]
Dngtcp2_pq.h69 void ngtcp2_pq_init(ngtcp2_pq *pq, ngtcp2_less less, const ngtcp2_mem *mem);
75 void ngtcp2_pq_free(ngtcp2_pq *pq);
86 int ngtcp2_pq_push(ngtcp2_pq *pq, ngtcp2_pq_entry *item);
92 ngtcp2_pq_entry *ngtcp2_pq_top(ngtcp2_pq *pq);
98 void ngtcp2_pq_pop(ngtcp2_pq *pq);
103 int ngtcp2_pq_empty(ngtcp2_pq *pq);
108 size_t ngtcp2_pq_size(ngtcp2_pq *pq);
119 int ngtcp2_pq_each(ngtcp2_pq *pq, ngtcp2_pq_item_cb fun, void *arg);
124 void ngtcp2_pq_remove(ngtcp2_pq *pq, ngtcp2_pq_entry *item);
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_query.c56 struct llvmpipe_query *pq; in llvmpipe_create_query() local
60 pq = CALLOC_STRUCT( llvmpipe_query ); in llvmpipe_create_query()
62 if (pq) { in llvmpipe_create_query()
63 pq->type = type; in llvmpipe_create_query()
64 pq->index = index; in llvmpipe_create_query()
67 return (struct pipe_query *) pq; in llvmpipe_create_query()
74 struct llvmpipe_query *pq = llvmpipe_query(q); in llvmpipe_destroy_query() local
79 if (pq->fence) { in llvmpipe_destroy_query()
80 if (!lp_fence_issued(pq->fence)) in llvmpipe_destroy_query()
83 if (!lp_fence_signalled(pq->fence)) in llvmpipe_destroy_query()
[all …]
/third_party/nghttp2/tests/
Dnghttp2_pq_test.c58 nghttp2_pq pq; in test_nghttp2_pq() local
61 nghttp2_pq_init(&pq, pq_less, nghttp2_mem_default()); in test_nghttp2_pq()
62 CU_ASSERT(nghttp2_pq_empty(&pq)); in test_nghttp2_pq()
63 CU_ASSERT(0 == nghttp2_pq_size(&pq)); in test_nghttp2_pq()
64 CU_ASSERT(0 == nghttp2_pq_push(&pq, &string_entry_new("foo")->ent)); in test_nghttp2_pq()
65 CU_ASSERT(0 == nghttp2_pq_empty(&pq)); in test_nghttp2_pq()
66 CU_ASSERT(1 == nghttp2_pq_size(&pq)); in test_nghttp2_pq()
67 top = (string_entry *)nghttp2_pq_top(&pq); in test_nghttp2_pq()
69 CU_ASSERT(0 == nghttp2_pq_push(&pq, &string_entry_new("bar")->ent)); in test_nghttp2_pq()
70 top = (string_entry *)nghttp2_pq_top(&pq); in test_nghttp2_pq()
[all …]
/third_party/mesa3d/src/gallium/frontends/vdpau/
Dpresentation.c44 vlVdpPresentationQueue *pq = NULL; in vlVdpPresentationQueueCreate() local
61 pq = CALLOC(1, sizeof(vlVdpPresentationQueue)); in vlVdpPresentationQueueCreate()
62 if (!pq) in vlVdpPresentationQueueCreate()
65 DeviceReference(&pq->device, dev); in vlVdpPresentationQueueCreate()
66 pq->drawable = pqt->drawable; in vlVdpPresentationQueueCreate()
69 if (!vl_compositor_init_state(&pq->cstate, dev->context)) { in vlVdpPresentationQueueCreate()
76 *presentation_queue = vlAddDataHTAB(pq); in vlVdpPresentationQueueCreate()
86 DeviceReference(&pq->device, NULL); in vlVdpPresentationQueueCreate()
87 FREE(pq); in vlVdpPresentationQueueCreate()
97 vlVdpPresentationQueue *pq; in vlVdpPresentationQueueDestroy() local
[all …]
/third_party/node/deps/openssl/openssl/ssl/
Dpqueue.c40 pqueue *pq = OPENSSL_zalloc(sizeof(*pq)); in pqueue_new() local
42 if (pq == NULL) in pqueue_new()
45 return pq; in pqueue_new()
48 void pqueue_free(pqueue *pq) in pqueue_free() argument
50 OPENSSL_free(pq); in pqueue_free()
53 pitem *pqueue_insert(pqueue *pq, pitem *item) in pqueue_insert() argument
57 if (pq->items == NULL) { in pqueue_insert()
58 pq->items = item; in pqueue_insert()
62 for (curr = NULL, next = pq->items; in pqueue_insert()
72 pq->items = item; in pqueue_insert()
[all …]
/third_party/openssl/ssl/
Dpqueue.c40 pqueue *pq = OPENSSL_zalloc(sizeof(*pq)); in pqueue_new() local
42 if (pq == NULL) in pqueue_new()
45 return pq; in pqueue_new()
48 void pqueue_free(pqueue *pq) in pqueue_free() argument
50 OPENSSL_free(pq); in pqueue_free()
53 pitem *pqueue_insert(pqueue *pq, pitem *item) in pqueue_insert() argument
57 if (pq->items == NULL) { in pqueue_insert()
58 pq->items = item; in pqueue_insert()
62 for (curr = NULL, next = pq->items; in pqueue_insert()
72 pq->items = item; in pqueue_insert()
[all …]
/third_party/ffmpeg/libavcodec/
Dxfaceenc.c82 static inline int pq_push(ProbRangesQueue *pq, const ProbRange *p) in pq_push() argument
84 if (pq->prob_ranges_idx >= XFACE_PIXELS * 2 - 1) in pq_push()
86 pq->prob_ranges[pq->prob_ranges_idx++] = *p; in pq_push()
90 static void push_greys(ProbRangesQueue *pq, char *bitmap, int w, int h) in push_greys() argument
95 push_greys(pq, bitmap, w, h); in push_greys()
96 push_greys(pq, bitmap + w, w, h); in push_greys()
97 push_greys(pq, bitmap + XFACE_WIDTH * h, w, h); in push_greys()
98 push_greys(pq, bitmap + XFACE_WIDTH * h + w, w, h); in push_greys()
105 pq_push(pq, p); in push_greys()
109 static void encode_block(char *bitmap, int w, int h, int level, ProbRangesQueue *pq) in encode_block() argument
[all …]
Dvc1_loopfilter.c130 if (v->pq >= 9 || (v->profile == PROFILE_ADVANCED && in ff_vc1_i_overlap_filter()
147 (v->pq >= 9 || (v->profile == PROFILE_ADVANCED && in ff_vc1_i_overlap_filter()
153 (v->pq >= 9 || (v->profile == PROFILE_ADVANCED && in ff_vc1_i_overlap_filter()
210 int pq = v->pq; in vc1_i_h_loop_filter() local
224 v->vc1dsp.vc1_h_loop_filter4(dst, 2 * s->uvlinesize, pq); in vc1_i_h_loop_filter()
225 v->vc1dsp.vc1_h_loop_filter4(dst + s->uvlinesize, 2 * s->uvlinesize, pq); in vc1_i_h_loop_filter()
227 v->vc1dsp.vc1_h_loop_filter8(dst, 2 * s->linesize, pq); in vc1_i_h_loop_filter()
228 v->vc1dsp.vc1_h_loop_filter8(dst + s->linesize, 2 * s->linesize, pq); in vc1_i_h_loop_filter()
232 v->vc1dsp.vc1_h_loop_filter8(dst, s->uvlinesize, pq); in vc1_i_h_loop_filter()
234 v->vc1dsp.vc1_h_loop_filter16(dst, s->linesize, pq); in vc1_i_h_loop_filter()
[all …]
/third_party/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_query_acc_perfmon.c52 pm_add_signal(struct etna_pm_query *pq, struct etna_perfmon *perfmon, in pm_add_signal() argument
57 pq->signal = signal; in pm_add_signal()
64 struct etna_pm_query *pq = etna_pm_query(aq); in pm_query() local
76 pq->sequence++; in pm_query()
79 pq->sequence = MAX2(pq->sequence, 1); in pm_query()
83 .sequence = pq->sequence, in pm_query()
85 .signal = pq->signal, in pm_query()
105 struct etna_pm_query *pq; in perfmon_allocate() local
115 pq = CALLOC_STRUCT(etna_pm_query); in perfmon_allocate()
116 if (!pq) in perfmon_allocate()
[all …]
Detnaviv_query.c52 etna_destroy_query(struct pipe_context *pctx, struct pipe_query *pq) in etna_destroy_query() argument
54 struct etna_query *q = etna_query(pq); in etna_destroy_query()
60 etna_begin_query(struct pipe_context *pctx, struct pipe_query *pq) in etna_begin_query() argument
62 struct etna_query *q = etna_query(pq); in etna_begin_query()
70 etna_end_query(struct pipe_context *pctx, struct pipe_query *pq) in etna_end_query() argument
72 struct etna_query *q = etna_query(pq); in etna_end_query()
80 etna_get_query_result(struct pipe_context *pctx, struct pipe_query *pq, in etna_get_query_result() argument
83 struct etna_query *q = etna_query(pq); in etna_get_query_result()
/third_party/ffmpeg/libavcodec/x86/
Dvc1dsp_init.c37 void ff_vc1_v_loop_filter4_ ## EXT(uint8_t *src, ptrdiff_t stride, int pq); \
38 void ff_vc1_h_loop_filter4_ ## EXT(uint8_t *src, ptrdiff_t stride, int pq);
40 void ff_vc1_v_loop_filter8_ ## EXT(uint8_t *src, ptrdiff_t stride, int pq); \
41 void ff_vc1_h_loop_filter8_ ## EXT(uint8_t *src, ptrdiff_t stride, int pq); \
43 static void vc1_v_loop_filter16_ ## EXT(uint8_t *src, ptrdiff_t stride, int pq) \
45 ff_vc1_v_loop_filter8_ ## EXT(src, stride, pq); \
46 ff_vc1_v_loop_filter8_ ## EXT(src+8, stride, pq); \
49 static void vc1_h_loop_filter16_ ## EXT(uint8_t *src, ptrdiff_t stride, int pq) \
51 ff_vc1_h_loop_filter8_ ## EXT(src, stride, pq); \
52 ff_vc1_h_loop_filter8_ ## EXT(src+8*stride, stride, pq); \
[all …]
/third_party/mesa3d/src/gallium/drivers/nouveau/nvc0/
Dnvc0_query.c48 nvc0_destroy_query(struct pipe_context *pipe, struct pipe_query *pq) in nvc0_destroy_query() argument
50 struct nvc0_query *q = nvc0_query(pq); in nvc0_destroy_query()
55 nvc0_begin_query(struct pipe_context *pipe, struct pipe_query *pq) in nvc0_begin_query() argument
57 struct nvc0_query *q = nvc0_query(pq); in nvc0_begin_query()
62 nvc0_end_query(struct pipe_context *pipe, struct pipe_query *pq) in nvc0_end_query() argument
64 struct nvc0_query *q = nvc0_query(pq); in nvc0_end_query()
70 nvc0_get_query_result(struct pipe_context *pipe, struct pipe_query *pq, in nvc0_get_query_result() argument
73 struct nvc0_query *q = nvc0_query(pq); in nvc0_get_query_result()
79 struct pipe_query *pq, in nvc0_get_query_result_resource() argument
86 struct nvc0_query *q = nvc0_query(pq); in nvc0_get_query_result_resource()
[all …]
/third_party/mesa3d/src/gallium/drivers/nouveau/nv50/
Dnv50_query.c44 nv50_destroy_query(struct pipe_context *pipe, struct pipe_query *pq) in nv50_destroy_query() argument
46 struct nv50_query *q = nv50_query(pq); in nv50_destroy_query()
51 nv50_begin_query(struct pipe_context *pipe, struct pipe_query *pq) in nv50_begin_query() argument
53 struct nv50_query *q = nv50_query(pq); in nv50_begin_query()
58 nv50_end_query(struct pipe_context *pipe, struct pipe_query *pq) in nv50_end_query() argument
60 struct nv50_query *q = nv50_query(pq); in nv50_end_query()
66 nv50_get_query_result(struct pipe_context *pipe, struct pipe_query *pq, in nv50_get_query_result() argument
69 struct nv50_query *q = nv50_query(pq); in nv50_get_query_result()
75 struct pipe_query *pq, in nv50_render_condition() argument
80 struct nv50_query *q = nv50_query(pq); in nv50_render_condition()
[all …]
/third_party/mesa3d/src/gallium/drivers/nouveau/nv30/
Dnv30_query.c141 nv30_query_destroy(struct pipe_context *pipe, struct pipe_query *pq) in nv30_query_destroy() argument
143 FREE(pq); in nv30_query_destroy()
147 nv30_query_begin(struct pipe_context *pipe, struct pipe_query *pq) in nv30_query_begin() argument
150 struct nv30_query *q = nv30_query(pq); in nv30_query_begin()
177 nv30_query_end(struct pipe_context *pipe, struct pipe_query *pq) in nv30_query_end() argument
181 struct nv30_query *q = nv30_query(pq); in nv30_query_end()
199 nv30_query_result(struct pipe_context *pipe, struct pipe_query *pq, in nv30_query_result() argument
203 struct nv30_query *q = nv30_query(pq); in nv30_query_result()
239 struct pipe_query *pq, in nv40_query_render_condition() argument
243 struct nv30_query *q = nv30_query(pq); in nv40_query_render_condition()
[all …]
/third_party/mesa3d/src/gallium/drivers/freedreno/
Dfreedreno_query.c55 fd_destroy_query(struct pipe_context *pctx, struct pipe_query *pq) in_dt in fd_destroy_query() argument
57 struct fd_query *q = fd_query(pq); in fd_destroy_query()
62 fd_begin_query(struct pipe_context *pctx, struct pipe_query *pq) in_dt in fd_begin_query() argument
64 struct fd_query *q = fd_query(pq); in fd_begin_query()
72 fd_end_query(struct pipe_context *pctx, struct pipe_query *pq) in_dt in fd_end_query() argument
74 struct fd_query *q = fd_query(pq); in fd_end_query()
80 fd_begin_query(pctx, pq); in fd_end_query()
88 fd_get_query_result(struct pipe_context *pctx, struct pipe_query *pq, bool wait, in fd_get_query_result() argument
91 struct fd_query *q = fd_query(pq); in fd_get_query_result()
99 fd_render_condition(struct pipe_context *pctx, struct pipe_query *pq, in fd_render_condition() argument
[all …]
/third_party/mesa3d/src/gallium/frontends/nine/
Dquery9.c113 This->pq = nine_context_create_query(device, ptype); in NineQuery9_ctor()
114 if (!This->pq) in NineQuery9_ctor()
140 if (This->pq) { in NineQuery9_dtor()
142 nine_context_end_query(device, &This->counter, This->pq); in NineQuery9_dtor()
143 nine_context_destroy_query(device, This->pq); in NineQuery9_dtor()
180 nine_context_end_query(device, &This->counter, This->pq); in NineQuery9_Issue()
181 nine_context_begin_query(device, &This->counter, This->pq); in NineQuery9_Issue()
187 nine_context_begin_query(device, &This->counter, This->pq); in NineQuery9_Issue()
188 nine_context_end_query(device, &This->counter, This->pq); in NineQuery9_Issue()
243 ok = nine_context_get_query_result(device, This->pq, &This->counter, in NineQuery9_GetData()
/third_party/skia/tests/
DTDPQueueTest.cpp102 SkTDPQueue<Mock*, Mock::LessP, Mock::PQIndex> pq; in random_test() local
104 pq.insert(&array[j]); in random_test()
106 REPORTER_ASSERT(reporter, pq.count() == array.count()); in random_test()
113 while (pq.count()) { in random_test()
115 Mock* top = pq.peek(); in random_test()
124 top = pq.peek(); in random_test()
126 pq.pop(); in random_test()
135 pq.remove(&array[item]); in random_test()
145 pq.priorityDidChange(&array[item]); in random_test()

123456