/drivers/net/wireless/brcm80211/brcmutil/ |
D | utils.c | 58 struct sk_buff *brcmu_pktq_penq(struct pktq *pq, int prec, in brcmu_pktq_penq() argument 63 if (pktq_full(pq) || pktq_pfull(pq, prec)) in brcmu_pktq_penq() 66 q = &pq->q[prec].skblist; in brcmu_pktq_penq() 68 pq->len++; in brcmu_pktq_penq() 70 if (pq->hi_prec < prec) in brcmu_pktq_penq() 71 pq->hi_prec = (u8) prec; in brcmu_pktq_penq() 77 struct sk_buff *brcmu_pktq_penq_head(struct pktq *pq, int prec, in brcmu_pktq_penq_head() argument 82 if (pktq_full(pq) || pktq_pfull(pq, prec)) in brcmu_pktq_penq_head() 85 q = &pq->q[prec].skblist; in brcmu_pktq_penq_head() 87 pq->len++; in brcmu_pktq_penq_head() [all …]
|
/drivers/net/wireless/brcm80211/include/ |
D | brcmu_utils.h | 87 static inline int pktq_plen(struct pktq *pq, int prec) in pktq_plen() argument 89 return pq->q[prec].skblist.qlen; in pktq_plen() 92 static inline int pktq_pavail(struct pktq *pq, int prec) in pktq_pavail() argument 94 return pq->q[prec].max - pq->q[prec].skblist.qlen; in pktq_pavail() 97 static inline bool pktq_pfull(struct pktq *pq, int prec) in pktq_pfull() argument 99 return pq->q[prec].skblist.qlen >= pq->q[prec].max; in pktq_pfull() 102 static inline bool pktq_pempty(struct pktq *pq, int prec) in pktq_pempty() argument 104 return skb_queue_empty(&pq->q[prec].skblist); in pktq_pempty() 107 static inline struct sk_buff *pktq_ppeek(struct pktq *pq, int prec) in pktq_ppeek() argument 109 return skb_peek(&pq->q[prec].skblist); in pktq_ppeek() [all …]
|
/drivers/infiniband/hw/qib/ |
D | qib_user_sdma.c | 81 struct qib_user_sdma_queue *pq; /* which pq this pkt belongs to */ member 185 struct qib_user_sdma_queue *pq = in qib_user_sdma_queue_create() local 189 if (!pq) in qib_user_sdma_queue_create() 192 pq->counter = 0; in qib_user_sdma_queue_create() 193 pq->sent_counter = 0; in qib_user_sdma_queue_create() 194 pq->num_pending = 0; in qib_user_sdma_queue_create() 195 pq->num_sending = 0; in qib_user_sdma_queue_create() 196 pq->added = 0; in qib_user_sdma_queue_create() 197 pq->sdma_rb_node = NULL; in qib_user_sdma_queue_create() 199 INIT_LIST_HEAD(&pq->sent); in qib_user_sdma_queue_create() [all …]
|
D | qib_user_sdma.h | 38 void qib_user_sdma_queue_destroy(struct qib_user_sdma_queue *pq); 41 struct qib_user_sdma_queue *pq, 46 struct qib_user_sdma_queue *pq); 49 struct qib_user_sdma_queue *pq); 51 u32 qib_user_sdma_complete_counter(const struct qib_user_sdma_queue *pq); 52 u32 qib_user_sdma_inflight_counter(struct qib_user_sdma_queue *pq);
|
D | qib_file_ops.c | 1585 fd->pq = qib_user_sdma_queue_create(&dd->pcidev->dev, in do_qib_user_sdma_queue_create() 1589 if (!fd->pq) in do_qib_user_sdma_queue_create() 1832 if (fd->pq) { in qib_close() 1833 qib_user_sdma_queue_drain(rcd->ppd, fd->pq); in qib_close() 1834 qib_user_sdma_queue_destroy(fd->pq); in qib_close() 1928 static int qib_sdma_get_inflight(struct qib_user_sdma_queue *pq, in qib_sdma_get_inflight() argument 1931 const u32 val = qib_user_sdma_inflight_counter(pq); in qib_sdma_get_inflight() 1940 struct qib_user_sdma_queue *pq, in qib_sdma_get_complete() argument 1946 if (!pq) in qib_sdma_get_complete() 1949 err = qib_user_sdma_make_progress(ppd, pq); in qib_sdma_get_complete() [all …]
|
D | qib.h | 1129 struct qib_user_sdma_queue *pq; member 1207 (((struct qib_filedata *)(fp)->private_data)->pq)
|
/drivers/infiniband/hw/ipath/ |
D | ipath_user_sdma.c | 103 struct ipath_user_sdma_queue *pq = in ipath_user_sdma_queue_create() local 106 if (!pq) in ipath_user_sdma_queue_create() 109 pq->counter = 0; in ipath_user_sdma_queue_create() 110 pq->sent_counter = 0; in ipath_user_sdma_queue_create() 111 INIT_LIST_HEAD(&pq->sent); in ipath_user_sdma_queue_create() 113 mutex_init(&pq->lock); in ipath_user_sdma_queue_create() 115 snprintf(pq->pkt_slab_name, sizeof(pq->pkt_slab_name), in ipath_user_sdma_queue_create() 117 pq->pkt_slab = kmem_cache_create(pq->pkt_slab_name, in ipath_user_sdma_queue_create() 121 if (!pq->pkt_slab) in ipath_user_sdma_queue_create() 124 snprintf(pq->header_cache_name, sizeof(pq->header_cache_name), in ipath_user_sdma_queue_create() [all …]
|
D | ipath_user_sdma.h | 38 void ipath_user_sdma_queue_destroy(struct ipath_user_sdma_queue *pq); 41 struct ipath_user_sdma_queue *pq, 46 struct ipath_user_sdma_queue *pq); 49 struct ipath_user_sdma_queue *pq); 51 u32 ipath_user_sdma_complete_counter(const struct ipath_user_sdma_queue *pq); 52 u32 ipath_user_sdma_inflight_counter(struct ipath_user_sdma_queue *pq);
|
D | ipath_file_ops.c | 1883 fd->pq = ipath_user_sdma_queue_create(&dd->pcidev->dev, in ipath_assign_port() 1888 if (!fd->pq) in ipath_assign_port() 2069 ipath_user_sdma_queue_drain(dd, fd->pq); in ipath_close() 2070 ipath_user_sdma_queue_destroy(fd->pq); in ipath_close() 2203 static int ipath_sdma_get_inflight(struct ipath_user_sdma_queue *pq, in ipath_sdma_get_inflight() argument 2206 const u32 val = ipath_user_sdma_inflight_counter(pq); in ipath_sdma_get_inflight() 2215 struct ipath_user_sdma_queue *pq, in ipath_sdma_get_complete() argument 2221 err = ipath_user_sdma_make_progress(dd, pq); in ipath_sdma_get_complete() 2225 val = ipath_user_sdma_complete_counter(pq); in ipath_sdma_get_complete() 2423 struct ipath_user_sdma_queue *pq = fp->pq; in ipath_writev() local [all …]
|
D | ipath_kernel.h | 868 struct ipath_user_sdma_queue *pq; member 949 ((struct ipath_filedata *)(fp)->private_data)->pq
|
/drivers/dma/ioat/ |
D | dma_v3.c | 119 struct ioat_pq_descriptor *pq = (struct ioat_pq_descriptor *) descs[0]; in pq_set_src() local 123 pq->coef[idx] = coef; in pq_set_src() 238 struct ioat_pq_descriptor *pq = (struct ioat_pq_descriptor *)desc[0]; in pq16_set_src() local 246 pq->coef[idx] = coef; in pq16_set_src() 293 struct ioat_pq_descriptor *pq = desc->pq; in desc_has_ext() local 295 if (src_cnt_to_sw(pq->ctl_f.src_cnt) > 3) in desc_has_ext() 338 struct ioat_pq_descriptor *pq = desc->pq; in desc_get_errstat() local 341 if (!pq->dwbes_f.wbes) in desc_get_errstat() 346 if (pq->dwbes_f.p_val_err) in desc_get_errstat() 349 if (pq->dwbes_f.q_val_err) in desc_get_errstat() [all …]
|
D | dma_v2.h | 128 struct ioat_pq_descriptor *pq; member
|
/drivers/zorro/ |
D | gen-devlist.c | 17 pq(FILE *f, const char *c) in pq() function 68 pq(devf, c); in main() 89 pq(devf, c); in main()
|
/drivers/dma/ |
D | iop-adma.c | 687 iop_adma_prep_dma_pq_val(struct dma_chan *chan, dma_addr_t *pq, dma_addr_t *src, in iop_adma_prep_dma_pq_val() argument 1099 struct page *pq[IOP_ADMA_NUM_SRC_TEST+2+2]; in iop_adma_pq_zero_sum_self_test() local 1101 struct page **pq_hw = &pq[IOP_ADMA_NUM_SRC_TEST+2]; in iop_adma_pq_zero_sum_self_test() 1117 for (i = 0; i < ARRAY_SIZE(pq); i++) { in iop_adma_pq_zero_sum_self_test() 1118 pq[i] = alloc_page(GFP_KERNEL); in iop_adma_pq_zero_sum_self_test() 1119 if (!pq[i]) { in iop_adma_pq_zero_sum_self_test() 1121 __free_page(pq[i]); in iop_adma_pq_zero_sum_self_test() 1128 pq_sw[i] = page_address(pq[i]); in iop_adma_pq_zero_sum_self_test() 1131 pq_sw[i] = page_address(pq[i]); in iop_adma_pq_zero_sum_self_test() 1132 pq_sw[i+1] = page_address(pq[i+1]); in iop_adma_pq_zero_sum_self_test() [all …]
|
/drivers/atm/ |
D | firestream.c | 630 static struct FS_QENTRY pq[60]; variable 651 pq[qp].cmd = cmd; in submit_queue() 652 pq[qp].p0 = p1; in submit_queue() 653 pq[qp].p1 = p2; in submit_queue() 654 pq[qp].p2 = p3; in submit_queue() 1950 i, pq[qp].cmd, pq[qp].p0, pq[qp].p1, pq[qp].p2); in firestream_remove_one()
|
/drivers/net/wireless/brcm80211/brcmfmac/ |
D | fwsignal.c | 972 brcmf_fws_flow_control_check(struct brcmf_fws_info *fws, struct pktq *pq, in brcmf_fws_flow_control_check() argument 981 pq->len <= BRCMF_FWS_FLOWCONTROL_LOWATER) in brcmf_fws_flow_control_check() 985 pq->len >= BRCMF_FWS_FLOWCONTROL_HIWATER) { in brcmf_fws_flow_control_check() 1246 struct pktq *pq; in brcmf_fws_enq() local 1266 pq = &entry->psq; in brcmf_fws_enq() 1267 if (pktq_full(pq) || pktq_pfull(pq, prec)) { in brcmf_fws_enq() 1271 queue = &pq->q[prec].skblist; in brcmf_fws_enq() 1308 pq->len++; in brcmf_fws_enq() 1309 if (pq->hi_prec < prec) in brcmf_fws_enq() 1310 pq->hi_prec = (u8) prec; in brcmf_fws_enq()
|
/drivers/mtd/ubi/ |
D | wl.c | 348 list_add_tail(&e->u.list, &ubi->pq[pq_tail]); in prot_queue_add() 814 list_for_each_entry_safe(e, tmp, &ubi->pq[ubi->pq_head], u.list) { in serve_prot_queue() 1902 INIT_LIST_HEAD(&ubi->pq[i]); 2023 list_for_each_entry_safe(e, tmp, &ubi->pq[i], u.list) { 2132 list_for_each_entry(p, &ubi->pq[i], u.list)
|
D | ubi.h | 546 struct list_head pq[UBI_PROT_QUEUE_LEN]; member
|
/drivers/dma/ppc4xx/ |
D | adma.c | 2605 struct dma_chan *chan, dma_addr_t *pq, dma_addr_t *src, in ppc440spe_adma_prep_dma_pqzero_sum() argument 2619 pdest = pq[0]; in ppc440spe_adma_prep_dma_pqzero_sum() 2624 qdest = pq[1]; in ppc440spe_adma_prep_dma_pqzero_sum() 2788 dma_addr_t pq[2]; in ppc440spe_adma_prep_dma_xor_zero_sum() local 2791 pq[0] = src[0]; in ppc440spe_adma_prep_dma_xor_zero_sum() 2792 pq[1] = 0; in ppc440spe_adma_prep_dma_xor_zero_sum() 2795 tx = ppc440spe_adma_prep_dma_pqzero_sum(chan, pq, &src[1], in ppc440spe_adma_prep_dma_xor_zero_sum()
|