Searched refs:pq (Results 1 - 25 of 42) sorted by relevance

12

/freebsd-10.1-release/crypto/openssl/crypto/pqueue/
H A Dpq_test.c65 pqueue pq; local
67 pq = pqueue_new();
70 pqueue_insert(pq, item);
73 pqueue_insert(pq, item);
76 pqueue_insert(pq, item);
78 item = pqueue_find(pq, 1);
81 item = pqueue_find(pq, 2);
84 item = pqueue_find(pq, 3);
87 pqueue_print(pq);
89 for (item = pqueue_pop(pq); ite
[all...]
H A Dpqueue.h84 void pqueue_free(pqueue pq);
86 pitem *pqueue_insert(pqueue pq, pitem *item);
87 pitem *pqueue_peek(pqueue pq);
88 pitem *pqueue_pop(pqueue pq);
89 pitem *pqueue_find(pqueue pq, unsigned char *prio64be);
90 pitem *pqueue_iterator(pqueue pq);
93 void pqueue_print(pqueue pq);
94 int pqueue_size(pqueue pq);
H A Dpqueue.c93 pqueue_s *pq = (pqueue_s *)OPENSSL_malloc(sizeof(pqueue_s)); local
94 if (pq == NULL)
97 memset(pq, 0x00, sizeof(pqueue_s));
98 return pq;
101 void pqueue_free(pqueue_s *pq) argument
103 if (pq == NULL)
106 OPENSSL_free(pq);
109 pitem *pqueue_insert(pqueue_s *pq, pitem *item) argument
113 if (pq->items == NULL) {
114 pq
145 pqueue_peek(pqueue_s *pq) argument
150 pqueue_pop(pqueue_s *pq) argument
160 pqueue_find(pqueue_s *pq, unsigned char *prio64be) argument
192 pqueue_print(pqueue_s *pq) argument
206 pqueue_iterator(pqueue_s *pq) argument
225 pqueue_size(pqueue_s *pq) argument
[all...]
/freebsd-10.1-release/lib/libkse/thread/
H A Dthr_priority_queue.c44 static void pq_insert_prio_list(pq_queue_t *pq, int prio);
50 #define PQ_SET_ACTIVE(pq) (pq)->pq_flags |= PQF_ACTIVE
51 #define PQ_CLEAR_ACTIVE(pq) (pq)->pq_flags &= ~PQF_ACTIVE
52 #define PQ_ASSERT_ACTIVE(pq, msg) do { \
53 if (((pq)->pq_flags & PQF_ACTIVE) == 0) \
56 #define PQ_ASSERT_INACTIVE(pq, msg) do { \
57 if (((pq)->pq_flags & PQF_ACTIVE) != 0) \
75 #define PQ_SET_ACTIVE(pq)
86 _pq_alloc(pq_queue_t *pq, int minprio, int maxprio) argument
108 _pq_free(pq_queue_t *pq) argument
115 _pq_init(pq_queue_t *pq) argument
138 _pq_remove(pq_queue_t *pq, pthread_t pthread) argument
167 _pq_insert_head(pq_queue_t *pq, pthread_t pthread) argument
193 _pq_insert_tail(pq_queue_t *pq, pthread_t pthread) argument
219 _pq_first(pq_queue_t *pq) argument
254 _pq_first_debug(pq_queue_t *pq) argument
301 pq_insert_prio_list(pq_queue_t *pq, int prio) argument
[all...]
/freebsd-10.1-release/sys/dev/iscsi_initiator/
H A Discsivar.h228 int isc_sendPDU(isc_session_t *sp, pduq_t *pq);
229 int isc_qout(isc_session_t *sp, pduq_t *pq);
230 int i_prepPDU(isc_session_t *sp, pduq_t *pq);
243 void ism_recv(isc_session_t *sp, pduq_t *pq);
249 int scsi_decap(isc_session_t *sp, pduq_t *opq, pduq_t *pq);
250 void iscsi_r2t(isc_session_t *sp, pduq_t *opq, pduq_t *pq);
251 void iscsi_done(isc_session_t *sp, pduq_t *opq, pduq_t *pq);
252 void iscsi_reject(isc_session_t *sp, pduq_t *opq, pduq_t *pq);
253 void iscsi_async(isc_session_t *sp, pduq_t *pq);
302 pduq_t *pq; local
322 pdu_free(struct isc_softc *isc, pduq_t *pq) argument
339 i_nqueue_rsp(isc_session_t *sp, pduq_t *pq) argument
351 pduq_t *pq; local
364 i_nqueue_rsv(isc_session_t *sp, pduq_t *pq) argument
376 pduq_t *pq; local
389 i_nqueue_csnd(isc_session_t *sp, pduq_t *pq) argument
401 pduq_t *pq; local
414 i_nqueue_isnd(isc_session_t *sp, pduq_t *pq) argument
426 pduq_t *pq; local
439 i_nqueue_wsnd(isc_session_t *sp, pduq_t *pq) argument
451 pduq_t *pq; local
466 pduq_t *pq; local
491 i_rqueue_pdu(isc_session_t *sp, pduq_t *pq) argument
503 i_nqueue_hld(isc_session_t *sp, pduq_t *pq) argument
515 i_remove_hld(isc_session_t *sp, pduq_t *pq) argument
526 pduq_t *pq; local
541 pduq_t *pq, *tmp; local
563 pduq_t *pq, *tmp; local
[all...]
H A Discsi_subr.c63 iscsi_r2t(isc_session_t *sp, pduq_t *opq, pduq_t *pq) argument
69 r2t_t *r2t = &pq->pdu.ipdu.r2t;
148 getSenseData(u_int status, union ccb *ccb, pduq_t *pq) argument
150 pdu_t *pp = &pq->pdu;
153 struct mbuf *m = pq->mp;
159 bp = mtod(pq->mp, caddr_t);
170 i_mbufcopy(pq->mp, bp, sense_len);
197 _scsi_done(isc_session_t *sp, u_int response, u_int status, union ccb *ccb, pduq_t *pq) argument
204 sdebug(3, "response=%x status=%x ccb=%p pq=%p", response, status, ccb, pq);
261 pduq_t *pq; local
286 pduq_t *pq; local
319 pduq_t *pq, *pqtmp; local
349 iscsi_done(isc_session_t *sp, pduq_t *opq, pduq_t *pq) argument
371 iscsi_async(isc_session_t *sp, pduq_t *pq) argument
404 iscsi_reject(isc_session_t *sp, pduq_t *opq, pduq_t *pq) argument
457 pduq_t *pq; local
536 scsi_decap(isc_session_t *sp, pduq_t *opq, pduq_t *pq) argument
[all...]
H A Disc_sm.c69 _async(isc_session_t *sp, pduq_t *pq) argument
73 iscsi_async(sp, pq);
75 pdu_free(sp->isc, pq);
79 _reject(isc_session_t *sp, pduq_t *pq) argument
87 pdu = mtod(pq->mp, pdu_t *);
89 reject = &pq->pdu.ipdu.reject;
93 iscsi_reject(sp, opq, pq);
95 switch(pq->pdu.ipdu.bhs.opcode) {
101 sp->sid, ntohl(pq->pdu.ipdu.bhs.itt));
104 pdu_free(sp->isc, pq);
108 _r2t(isc_session_t *sp, pduq_t *pq) argument
128 _scsi_rsp(isc_session_t *sp, pduq_t *pq) argument
146 _read_data(isc_session_t *sp, pduq_t *pq) argument
170 pduq_t *pq; local
197 _nop_in(isc_session_t *sp, pduq_t *pq) argument
262 i_prepPDU(isc_session_t *sp, pduq_t *pq) argument
305 isc_qout(isc_session_t *sp, pduq_t *pq) argument
358 ism_recv(isc_session_t *sp, pduq_t *pq) argument
427 pduq_t *pq; local
[all...]
H A Discsi.c277 pduq_t *pq; local
299 #define pukeit(i, pq) do {\
301 i, ntohl(pq->pdu.ipdu.bhs.CmdSN),\
302 pq->pdu.ipdu.bhs.opcode, ntohl(pq->pdu.ipdu.bhs.itt),\
303 ntohl(pq->pdu.ipdu.bhs.ExpStSN),\
304 (intmax_t)pq->ts.sec);\
309 TAILQ_FOREACH(pq, &sp->hld, pq_link) {
312 pukeit(i, pq); i++;
318 TAILQ_FOREACH(pq,
414 pduq_t *pq; local
484 pduq_t *pq; local
648 pduq_t *pq; local
[all...]
H A Disc_soc.c74 pduq_t *pq = b; local
76 if(pq->buf != NULL) {
77 debug(3, "ou_refcnt=%d a=%p b=%p", ou_refcnt, a, pq->buf);
78 free(pq->buf, M_ISCSIBUF);
79 pq->buf = NULL;
85 isc_sendPDU(isc_session_t *sp, pduq_t *pq) argument
88 pdu_t *pp = &pq->pdu;
128 if(pp->ds_len && pq->pdu.ds_addr) {
139 debug(4, "setting ext_free(arg=%p len/l=%d/%d)", pq->buf, len, l);
144 pq,
186 isc_sendPDU(isc_session_t *sp, pduq_t *pq) argument
369 so_recv(isc_session_t *sp, pduq_t *pq) argument
556 pduq_t *pq; local
[all...]
/freebsd-10.1-release/contrib/llvm/include/llvm/CodeGen/
H A DLatencyPriorityQueue.h27 explicit latency_sort(LatencyPriorityQueue *pq) : PQ(pq) {} argument
H A DResourcePriorityQueue.h33 explicit resource_sort(ResourcePriorityQueue *pq) : PQ(pq) {} argument
/freebsd-10.1-release/contrib/ntp/sntp/libopts/
H A Dcook.c34 contiguous_quote(char ** pps, char * pq, int * lnct_p);
145 contiguous_quote(char ** pps, char * pq, int * lnct_p) argument
161 *pq = *(ps++); /* assign new quote character and return */
/freebsd-10.1-release/sys/vm/
H A Dvm_page.h235 #define vm_pagequeue_assert_locked(pq) mtx_assert(&(pq)->pq_mutex, MA_OWNED)
236 #define vm_pagequeue_lock(pq) mtx_lock(&(pq)->pq_mutex)
237 #define vm_pagequeue_unlock(pq) mtx_unlock(&(pq)->pq_mutex)
241 vm_pagequeue_cnt_add(struct vm_pagequeue *pq, int addend) argument
245 vm_pagequeue_assert_locked(pq);
247 pq->pq_cnt += addend;
248 atomic_add_int(pq
[all...]
H A Dvm_pageout.c217 static boolean_t vm_pageout_launder(struct vm_pagequeue *pq, int, vm_paddr_t,
261 struct vm_pagequeue *pq; local
268 pq = vm_page_pagequeue(m);
271 TAILQ_INSERT_AFTER(&pq->pq_pl, m, &marker, plinks.q);
272 vm_pagequeue_unlock(pq);
276 vm_pagequeue_lock(pq);
283 TAILQ_REMOVE(&pq->pq_pl, &marker, plinks.q);
300 struct vm_pagequeue *pq; local
310 pq = vm_page_pagequeue(m);
312 TAILQ_INSERT_AFTER(&pq
565 vm_pageout_launder(struct vm_pagequeue *pq, int tries, vm_paddr_t low, vm_paddr_t high) argument
911 struct vm_pagequeue *pq; local
[all...]
H A Dvm_page.c251 struct vm_pagequeue *pq; local
268 pq = &vmd->vmd_pagequeues[i];
269 TAILQ_INIT(&pq->pq_pl);
270 mtx_init(&pq->pq_mutex, pq->pq_name, "vm pagequeue",
2039 struct vm_pagequeue *pq; local
2044 pq = vm_page_pagequeue(m);
2045 vm_pagequeue_lock(pq);
2047 TAILQ_REMOVE(&pq->pq_pl, m, plinks.q);
2048 vm_pagequeue_cnt_dec(pq);
2062 struct vm_pagequeue *pq; local
2082 struct vm_pagequeue *pq; local
2103 struct vm_pagequeue *pq; local
2125 struct vm_pagequeue *pq; local
2407 struct vm_pagequeue *pq; local
[all...]
/freebsd-10.1-release/sys/dev/usb/
H A Dusb_transfer.h232 void usb_command_wrapper(struct usb_xfer_queue *pq,
235 void usbd_pipe_start(struct usb_xfer_queue *pq);
238 void usbd_transfer_enqueue(struct usb_xfer_queue *pq,
H A Dusb_transfer.c1933 struct usb_xfer_queue *pq; local
1952 pq = &info->done_q;
1954 if (pq->curr == xfer) {
2217 struct usb_xfer_queue *pq = &info->done_q; local
2221 if (pq->curr != xfer) {
2222 usbd_transfer_enqueue(pq, xfer);
2224 if (!pq->recurse_1) {
2237 pq->recurse_2 = 0;
2252 usbd_callback_wrapper(struct usb_xfer_queue *pq) argument
2254 struct usb_xfer *xfer = pq
2404 struct usb_xfer_queue *pq; local
2422 usbd_transfer_enqueue(struct usb_xfer_queue *pq, struct usb_xfer *xfer) argument
2480 struct usb_xfer_queue *pq; local
2598 usbd_pipe_start(struct usb_xfer_queue *pq) argument
2948 usb_command_wrapper(struct usb_xfer_queue *pq, struct usb_xfer *xfer) argument
[all...]
H A Dusb_busdma.h153 void usb_bdma_work_loop(struct usb_xfer_queue *pq);
/freebsd-10.1-release/contrib/ntp/include/
H A Dlibssl_compat.h52 const BIGNUM **pq);
61 const BIGNUM **pq, const BIGNUM **pg);
/freebsd-10.1-release/contrib/ntp/libntp/
H A Dlibssl_compat.c164 const BIGNUM ** pq
171 if (pq)
172 *pq = prsa->q;
255 const BIGNUM ** pq,
263 if (pq != NULL)
264 *pq = pdsa->q;
252 sslshim_DSA_get0_pqg( const DSA * pdsa, const BIGNUM ** pp, const BIGNUM ** pq, const BIGNUM ** pg ) argument
/freebsd-10.1-release/lib/libusb/
H A Dlibusb20_ugen20.c964 uint16_t quirk_index, struct libusb20_quirk *pq)
980 pq->vid = q.vid;
981 pq->pid = q.pid;
982 pq->bcdDeviceLow = q.bcdDeviceLow;
983 pq->bcdDeviceHigh = q.bcdDeviceHigh;
984 strlcpy(pq->quirkname, q.quirkname, sizeof(pq->quirkname));
991 struct libusb20_quirk *pq)
1007 strlcpy(pq->quirkname, q.quirkname, sizeof(pq
963 ugen20_root_get_dev_quirk(struct libusb20_backend *pbe, uint16_t quirk_index, struct libusb20_quirk *pq) argument
990 ugen20_root_get_quirk_name(struct libusb20_backend *pbe, uint16_t quirk_index, struct libusb20_quirk *pq) argument
1013 ugen20_root_add_dev_quirk(struct libusb20_backend *pbe, struct libusb20_quirk *pq) argument
1037 ugen20_root_remove_dev_quirk(struct libusb20_backend *pbe, struct libusb20_quirk *pq) argument
[all...]
H A Dlibusb20.h276 int libusb20_be_get_dev_quirk(struct libusb20_backend *pbe, uint16_t index, struct libusb20_quirk *pq);
277 int libusb20_be_get_quirk_name(struct libusb20_backend *pbe, uint16_t index, struct libusb20_quirk *pq);
278 int libusb20_be_add_dev_quirk(struct libusb20_backend *pbe, struct libusb20_quirk *pq);
279 int libusb20_be_remove_dev_quirk(struct libusb20_backend *pbe, struct libusb20_quirk *pq);
H A Dlibusb20_int.h53 typedef int (libusb20_root_get_dev_quirk_t)(struct libusb20_backend *pbe, uint16_t index, struct libusb20_quirk *pq);
54 typedef int (libusb20_root_get_quirk_name_t)(struct libusb20_backend *pbe, uint16_t index, struct libusb20_quirk *pq);
55 typedef int (libusb20_root_add_dev_quirk_t)(struct libusb20_backend *pbe, struct libusb20_quirk *pq);
56 typedef int (libusb20_root_remove_dev_quirk_t)(struct libusb20_backend *pbe, struct libusb20_quirk *pq);
/freebsd-10.1-release/sbin/pfctl/
H A Dpfctl_qstats.c137 struct pfioc_qstats pq; local
143 memset(&pq, 0, sizeof(pq));
170 pq.nr = nr;
171 pq.ticket = pa.ticket;
172 pq.buf = &qstats.data;
173 pq.nbytes = sizeof(qstats.data);
174 if (ioctl(dev, DIOCGETQSTATS, &pq)) {
/freebsd-10.1-release/contrib/sendmail/src/
H A Drecipient.c391 ADDRESS **pq; local
404 for (pq = sendq; (q = *pq) != NULL; pq = &q->q_next)
460 ADDRESS **pq; local
717 for (pq = sendq; (q = *pq) != NULL; pq = &q->q_next)
780 prev = pq;
783 /* pq shoul
[all...]

Completed in 165 milliseconds

12