/external/openssl/crypto/pqueue/ |
pq_test.c | 66 pqueue pq; local 68 pq = pqueue_new(); 71 pqueue_insert(pq, item); 74 pqueue_insert(pq, item); 77 pqueue_insert(pq, item); 79 item = pqueue_find(pq, 1); 82 item = pqueue_find(pq, 2); 85 item = pqueue_find(pq, 3); 88 pqueue_print(pq); 90 for(item = pqueue_pop(pq); item != NULL; item = pqueue_pop(pq) [all...] |
pqueue.h | 85 void pqueue_free(pqueue pq); 87 pitem *pqueue_insert(pqueue pq, pitem *item); 88 pitem *pqueue_peek(pqueue pq); 89 pitem *pqueue_pop(pqueue pq); 90 pitem *pqueue_find(pqueue pq, unsigned char *prio64be); 91 pitem *pqueue_iterator(pqueue pq); 94 void pqueue_print(pqueue pq); 95 int pqueue_size(pqueue pq);
|
pqueue.c | 95 pqueue_s *pq = (pqueue_s *) OPENSSL_malloc(sizeof(pqueue_s)); local 96 if (pq == NULL) return NULL; 98 memset(pq, 0x00, sizeof(pqueue_s)); 99 return pq; 103 pqueue_free(pqueue_s *pq) 105 if (pq == NULL) return; 107 OPENSSL_free(pq); 111 pqueue_insert(pqueue_s *pq, pitem *item) 115 if (pq->items == NULL) 117 pq->items = item [all...] |
/external/srec/srec/crec/ |
priority_q.c | 43 priority_q *pq; local 45 pq = (priority_q*) CALLOC(1, sizeof(priority_q), "search.srec.priority_q"); 46 pq->max_cost_in_q = MAXcostdata; 47 pq->word_token_list = MAXwordID; 48 pq->max_in_q = (miscdata)max_n; 49 pq->num_in_q = 0; 50 return pq; 53 void free_priority_q(priority_q* pq) 55 FREE(pq); 60 void clear_priority_q(priority_q *pq) [all...] |
/external/chromium_org/third_party/boringssl/src/ssl/pqueue/ |
pqueue.c | 91 pqueue_s *pq = (pqueue_s *)OPENSSL_malloc(sizeof(pqueue_s)); local 92 if (pq == NULL) { 96 memset(pq, 0, sizeof(pqueue_s)); 97 return pq; 100 void pqueue_free(pqueue_s *pq) { 101 if (pq == NULL) { 105 OPENSSL_free(pq); 108 pitem *pqueue_peek(pqueue_s *pq) { return pq->items; } 110 pitem *pqueue_find(pqueue_s *pq, uint8_t *prio64be) [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/llvmpipe/ |
lp_query.c | 52 struct llvmpipe_query *pq; local 56 pq = CALLOC_STRUCT( llvmpipe_query ); 58 return (struct pipe_query *) pq; 65 struct llvmpipe_query *pq = llvmpipe_query(q); local 70 if (pq->fence) { 71 if (!lp_fence_issued(pq->fence)) 74 if (!lp_fence_signalled(pq->fence)) 75 lp_fence_wait(pq->fence); 77 lp_fence_reference(&pq->fence, NULL); 80 FREE(pq); 90 struct llvmpipe_query *pq = llvmpipe_query(q); local 125 struct llvmpipe_query *pq = llvmpipe_query(q); local 148 struct llvmpipe_query *pq = llvmpipe_query(q); local [all...] |
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
lp_query.c | 52 struct llvmpipe_query *pq; local 56 pq = CALLOC_STRUCT( llvmpipe_query ); 58 return (struct pipe_query *) pq; 65 struct llvmpipe_query *pq = llvmpipe_query(q); local 70 if (pq->fence) { 71 if (!lp_fence_issued(pq->fence)) 74 if (!lp_fence_signalled(pq->fence)) 75 lp_fence_wait(pq->fence); 77 lp_fence_reference(&pq->fence, NULL); 80 FREE(pq); 90 struct llvmpipe_query *pq = llvmpipe_query(q); local 125 struct llvmpipe_query *pq = llvmpipe_query(q); local 148 struct llvmpipe_query *pq = llvmpipe_query(q); local [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/vdpau/ |
presentation.c | 44 vlVdpPresentationQueue *pq = NULL; local 61 pq = CALLOC(1, sizeof(vlVdpPresentationQueue)); 62 if (!pq) 65 pq->device = dev; 66 pq->drawable = pqt->drawable; 69 if (!vl_compositor_init_state(&pq->cstate, dev->context)) { 76 *presentation_queue = vlAddDataHTAB(pq); 86 FREE(pq); 96 vlVdpPresentationQueue *pq; local 98 pq = vlGetDataHTAB(presentation_queue) 119 vlVdpPresentationQueue *pq; local 148 vlVdpPresentationQueue *pq; local 177 vlVdpPresentationQueue *pq; local 205 vlVdpPresentationQueue *pq; local 312 vlVdpPresentationQueue *pq; local 346 vlVdpPresentationQueue *pq; local [all...] |
/external/mesa3d/src/gallium/state_trackers/vdpau/ |
presentation.c | 44 vlVdpPresentationQueue *pq = NULL; local 61 pq = CALLOC(1, sizeof(vlVdpPresentationQueue)); 62 if (!pq) 65 pq->device = dev; 66 pq->drawable = pqt->drawable; 69 if (!vl_compositor_init_state(&pq->cstate, dev->context)) { 76 *presentation_queue = vlAddDataHTAB(pq); 86 FREE(pq); 96 vlVdpPresentationQueue *pq; local 98 pq = vlGetDataHTAB(presentation_queue) 119 vlVdpPresentationQueue *pq; local 148 vlVdpPresentationQueue *pq; local 177 vlVdpPresentationQueue *pq; local 205 vlVdpPresentationQueue *pq; local 312 vlVdpPresentationQueue *pq; local 346 vlVdpPresentationQueue *pq; local [all...] |
/external/openssl/include/openssl/ |
pqueue.h | 85 void pqueue_free(pqueue pq); 87 pitem *pqueue_insert(pqueue pq, pitem *item); 88 pitem *pqueue_peek(pqueue pq); 89 pitem *pqueue_pop(pqueue pq); 90 pitem *pqueue_find(pqueue pq, unsigned char *prio64be); 91 pitem *pqueue_iterator(pqueue pq); 94 void pqueue_print(pqueue pq); 95 int pqueue_size(pqueue pq);
|
/external/chromium_org/third_party/boringssl/src/include/openssl/ |
pqueue.h | 89 /* pqueue_free frees |pq| but not any of the items it points to. Thus |pq| must 91 OPENSSL_EXPORT void pqueue_free(pqueue pq); 108 /* pqueue_peek returns the item with the smallest priority from |pq|, or NULL 110 OPENSSL_EXPORT pitem *pqueue_peek(pqueue pq); 114 OPENSSL_EXPORT pitem *pqueue_find(pqueue pq, uint8_t *prio64be); 119 /* pqueue_insert inserts |item| into |pq| and returns item. */ 120 OPENSSL_EXPORT pitem *pqueue_insert(pqueue pq, pitem *item); 122 /* pqueue_pop takes the item with the least priority from |pq| and returns it, 123 * or NULL if |pq| is empty. * [all...] |
/external/chromium_org/third_party/mesa/src/src/mesa/state_tracker/ |
st_cb_queryobj.c | 57 stq->pq = NULL; 72 if (stq->pq) { 73 pipe->destroy_query(pipe, stq->pq); 74 stq->pq = NULL; 111 if (stq->pq && stq->type != type) { 113 pipe->destroy_query(pipe, stq->pq); 114 stq->pq = NULL; 118 if (!stq->pq) { 119 stq->pq = pipe->create_query(pipe, type); 125 pipe->begin_query(pipe, stq->pq); [all...] |
st_cb_queryobj.h | 41 struct pipe_query *pq; member in struct:st_query_object
|
st_cb_condrender.c | 79 st->render_condition = stq->pq; 82 pipe->render_condition(pipe, stq->pq, m);
|
/external/mesa3d/src/mesa/state_tracker/ |
st_cb_queryobj.c | 57 stq->pq = NULL; 72 if (stq->pq) { 73 pipe->destroy_query(pipe, stq->pq); 74 stq->pq = NULL; 111 if (stq->pq && stq->type != type) { 113 pipe->destroy_query(pipe, stq->pq); 114 stq->pq = NULL; 118 if (!stq->pq) { 119 stq->pq = pipe->create_query(pipe, type); 125 pipe->begin_query(pipe, stq->pq); [all...] |
st_cb_queryobj.h | 41 struct pipe_query *pq; member in struct:st_query_object
|
/libcore/benchmarks/src/benchmarks/regression/ |
PriorityQueueBenchmark.java | 31 private PriorityQueue<Integer> pq; field in class:PriorityQueueBenchmark 37 pq = new PriorityQueue<Integer>(); 51 pq.add(allElements.get(i)); 56 pq.add(allElements.get(i)); 62 usepq = new PriorityQueue<Integer>(pq); 78 usepq = new PriorityQueue<Integer>(pq);
|
/hardware/broadcom/wlan/bcmdhd/dhdutil/include/ |
bcmutils.h | 168 #define PKTQ_PREC_ITER(pq, prec) for (prec = (pq)->num_prec - 1; prec >= 0; prec--) 287 #define pktq_psetmax(pq, prec, _max) ((pq)->q[prec].max = (_max)) 288 #define pktq_pmax(pq, prec) ((pq)->q[prec].max) 289 #define pktq_plen(pq, prec) ((pq)->q[prec].len) 290 #define pktq_pavail(pq, prec) ((pq)->q[prec].max - (pq)->q[prec].len [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/nv30/ |
nv30_query.c | 142 nv30_query_destroy(struct pipe_context *pipe, struct pipe_query *pq) 144 FREE(pq); 148 nv30_query_begin(struct pipe_context *pipe, struct pipe_query *pq) 151 struct nv30_query *q = nv30_query(pq); 177 nv30_query_end(struct pipe_context *pipe, struct pipe_query *pq) 181 struct nv30_query *q = nv30_query(pq); 198 nv30_query_result(struct pipe_context *pipe, struct pipe_query *pq, 202 struct nv30_query *q = nv30_query(pq); 235 struct pipe_query *pq, uint mode) 238 struct nv30_query *q = nv30_query(pq); [all...] |
/external/mesa3d/src/gallium/drivers/nv30/ |
nv30_query.c | 142 nv30_query_destroy(struct pipe_context *pipe, struct pipe_query *pq) 144 FREE(pq); 148 nv30_query_begin(struct pipe_context *pipe, struct pipe_query *pq) 151 struct nv30_query *q = nv30_query(pq); 177 nv30_query_end(struct pipe_context *pipe, struct pipe_query *pq) 181 struct nv30_query *q = nv30_query(pq); 198 nv30_query_result(struct pipe_context *pipe, struct pipe_query *pq, 202 struct nv30_query *q = nv30_query(pq); 235 struct pipe_query *pq, uint mode) 238 struct nv30_query *q = nv30_query(pq); [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/nv50/ |
nv50_query.c | 92 nv50_query_destroy(struct pipe_context *pipe, struct pipe_query *pq) 94 nv50_query_allocate(nv50_context(pipe), nv50_query(pq), 0); 95 FREE(nv50_query(pq)); 142 nv50_query_begin(struct pipe_context *pipe, struct pipe_query *pq) 146 struct nv50_query *q = nv50_query(pq); 195 nv50_query_end(struct pipe_context *pipe, struct pipe_query *pq) 199 struct nv50_query *q = nv50_query(pq); 246 nv50_query_result(struct pipe_context *pipe, struct pipe_query *pq, 250 struct nv50_query *q = nv50_query(pq); 308 nv84_query_fifo_wait(struct nouveau_pushbuf *push, struct pipe_query *pq) [all...] |
/external/mesa3d/src/gallium/drivers/nv50/ |
nv50_query.c | 92 nv50_query_destroy(struct pipe_context *pipe, struct pipe_query *pq) 94 nv50_query_allocate(nv50_context(pipe), nv50_query(pq), 0); 95 FREE(nv50_query(pq)); 142 nv50_query_begin(struct pipe_context *pipe, struct pipe_query *pq) 146 struct nv50_query *q = nv50_query(pq); 195 nv50_query_end(struct pipe_context *pipe, struct pipe_query *pq) 199 struct nv50_query *q = nv50_query(pq); 246 nv50_query_result(struct pipe_context *pipe, struct pipe_query *pq, 250 struct nv50_query *q = nv50_query(pq); 308 nv84_query_fifo_wait(struct nouveau_pushbuf *push, struct pipe_query *pq) [all...] |
/external/srec/srec/include/ |
srec.h | 324 void free_priority_q(priority_q* pq); 325 void clear_priority_q(priority_q *pq); 326 wtokenID get_word_token_list(priority_q *pq, word_token *word_token_array); 327 wtokenID add_word_token_to_priority_q(priority_q *pq, wtokenID token_index_to_add, word_token *word_token_array); 328 void remove_non_end_word_from_q(srec *rec, priority_q *pq, word_token *word_token_array, nodeID end_node); 329 costdata get_priority_q_threshold(priority_q *pq, word_token *word_token_array);
|
/hardware/broadcom/wlan/bcmdhd/dhdutil/ |
bcmutils.c | 233 pktq_penq(struct pktq *pq, int prec, void *p) 237 ASSERT(prec >= 0 && prec < pq->num_prec); 240 ASSERT(!pktq_full(pq)); 241 ASSERT(!pktq_pfull(pq, prec)); 243 q = &pq->q[prec]; 253 pq->len++; 255 if (pq->hi_prec < prec) 256 pq->hi_prec = (uint8)prec; 262 pktq_penq_head(struct pktq *pq, int prec, void *p) 266 ASSERT(prec >= 0 && prec < pq->num_prec) [all...] |
/external/llvm/include/llvm/CodeGen/ |
LatencyPriorityQueue.h | 26 LatencyPriorityQueue *PQ; 27 explicit latency_sort(LatencyPriorityQueue *pq) : PQ(pq) {}
|