Home
last modified time | relevance | path

Searched refs:dq (Results 1 – 25 of 30) sorted by relevance

12

/drivers/staging/fsl-mc/include/
Ddpaa2-global.h45 struct dq { struct
58 } dq; member
93 static inline u32 dpaa2_dq_flags(const struct dpaa2_dq *dq) in dpaa2_dq_flags() argument
95 return dq->dq.stat; in dpaa2_dq_flags()
105 static inline int dpaa2_dq_is_pull(const struct dpaa2_dq *dq) in dpaa2_dq_is_pull() argument
107 return (int)(dpaa2_dq_flags(dq) & DPAA2_DQ_STAT_VOLATILE); in dpaa2_dq_is_pull()
116 static inline bool dpaa2_dq_is_pull_complete(const struct dpaa2_dq *dq) in dpaa2_dq_is_pull_complete() argument
118 return !!(dpaa2_dq_flags(dq) & DPAA2_DQ_STAT_EXPIRED); in dpaa2_dq_is_pull_complete()
129 static inline u16 dpaa2_dq_seqnum(const struct dpaa2_dq *dq) in dpaa2_dq_seqnum() argument
131 return le16_to_cpu(dq->dq.seqnum); in dpaa2_dq_seqnum()
[all …]
/drivers/staging/fsl-mc/bus/dpio/
Dqbman-portal.h184 void qbman_swp_dqrr_consume(struct qbman_swp *s, const struct dpaa2_dq *dq);
186 int qbman_result_has_new_result(struct qbman_swp *p, const struct dpaa2_dq *dq);
222 static inline int qbman_result_is_DQ(const struct dpaa2_dq *dq) in qbman_result_is_DQ() argument
224 return ((dq->dq.verb & QBMAN_RESULT_MASK) == QBMAN_RESULT_DQ); in qbman_result_is_DQ()
232 static inline int qbman_result_is_SCN(const struct dpaa2_dq *dq) in qbman_result_is_SCN() argument
234 return !qbman_result_is_DQ(dq); in qbman_result_is_SCN()
238 static inline int qbman_result_is_FQDAN(const struct dpaa2_dq *dq) in qbman_result_is_FQDAN() argument
240 return ((dq->dq.verb & QBMAN_RESULT_MASK) == QBMAN_RESULT_FQDAN); in qbman_result_is_FQDAN()
244 static inline int qbman_result_is_CDAN(const struct dpaa2_dq *dq) in qbman_result_is_CDAN() argument
246 return ((dq->dq.verb & QBMAN_RESULT_MASK) == QBMAN_RESULT_CDAN); in qbman_result_is_CDAN()
[all …]
Dqbman-portal.c688 verb = p->dq.verb; in qbman_swp_dqrr_next()
716 flags = p->dq.stat; in qbman_swp_dqrr_next()
734 void qbman_swp_dqrr_consume(struct qbman_swp *s, const struct dpaa2_dq *dq) in qbman_swp_dqrr_consume() argument
736 qbman_write_register(s, QBMAN_CINH_SWP_DCAP, QBMAN_IDX_FROM_DQRR(dq)); in qbman_swp_dqrr_consume()
756 int qbman_result_has_new_result(struct qbman_swp *s, const struct dpaa2_dq *dq) in qbman_result_has_new_result() argument
758 if (dq->dq.tok != QMAN_DQ_TOKEN_VALID) in qbman_result_has_new_result()
766 ((struct dpaa2_dq *)dq)->dq.tok = 0; in qbman_result_has_new_result()
773 if (s->vdq.storage == dq) { in qbman_result_has_new_result()
Ddpio-service.c192 const struct dpaa2_dq *dq; in dpaa2_io_irq() local
202 dq = qbman_swp_dqrr_next(swp); in dpaa2_io_irq()
203 while (dq) { in dpaa2_io_irq()
204 if (qbman_result_is_SCN(dq)) { in dpaa2_io_irq()
208 q64 = qbman_result_SCN_ctx(dq); in dpaa2_io_irq()
214 qbman_swp_dqrr_consume(swp, dq); in dpaa2_io_irq()
218 dq = qbman_swp_dqrr_next(swp); in dpaa2_io_irq()
/drivers/net/ethernet/cavium/liquidio/
Dcn66xx_regs.h311 #define CN6XXX_DMA_CNT(dq) \ argument
312 (CN6XXX_DMA_CNT_START + ((dq) * CN6XXX_DMA_OFFSET))
314 #define CN6XXX_DMA_INT_LEVEL(dq) \ argument
315 (CN6XXX_DMA_INT_LEVEL_START + ((dq) * CN6XXX_DMA_OFFSET))
317 #define CN6XXX_DMA_PKT_INT_LEVEL(dq) \ argument
318 (CN6XXX_DMA_INT_LEVEL_START + ((dq) * CN6XXX_DMA_OFFSET))
320 #define CN6XXX_DMA_TIME_INT_LEVEL(dq) \ argument
321 (CN6XXX_DMA_INT_LEVEL_START + 4 + ((dq) * CN6XXX_DMA_OFFSET))
323 #define CN6XXX_DMA_TIM(dq) \ argument
324 (CN6XXX_DMA_TIM_START + ((dq) * CN6XXX_DMA_OFFSET))
Dcn23xx_pf_regs.h366 #define CN23XX_DMA_CNT(dq) \ argument
367 (CN23XX_DMA_CNT_START + ((dq) * CN23XX_DMA_OFFSET))
369 #define CN23XX_DMA_INT_LEVEL(dq) \ argument
370 (CN23XX_DMA_INT_LEVEL_START + ((dq) * CN23XX_DMA_OFFSET))
372 #define CN23XX_DMA_PKT_INT_LEVEL(dq) \ argument
373 (CN23XX_DMA_INT_LEVEL_START + ((dq) * CN23XX_DMA_OFFSET))
375 #define CN23XX_DMA_TIME_INT_LEVEL(dq) \ argument
376 (CN23XX_DMA_INT_LEVEL_START + 4 + ((dq) * CN23XX_DMA_OFFSET))
378 #define CN23XX_DMA_TIM(dq) \ argument
379 (CN23XX_DMA_TIM_START + ((dq) * CN23XX_DMA_OFFSET))
/drivers/s390/crypto/
Dzcrypt_msgtype50.c122 unsigned char dq[64]; member
135 unsigned char dq[128]; member
148 unsigned char dq[256]; member
277 unsigned char *p, *q, *dp, *dq, *u, *inp; in ICACRT_msg_to_type50CRT_msg() local
298 dq = crb1->dq + sizeof(crb1->dq) - short_len; in ICACRT_msg_to_type50CRT_msg()
311 dq = crb2->dq + sizeof(crb2->dq) - short_len; in ICACRT_msg_to_type50CRT_msg()
325 dq = crb3->dq + sizeof(crb3->dq) - short_len; in ICACRT_msg_to_type50CRT_msg()
338 copy_from_user(dq, crt->bq_key, short_len) || in ICACRT_msg_to_type50CRT_msg()
Dzcrypt_cex2a.h95 unsigned char dq[64]; member
108 unsigned char dq[128]; member
121 unsigned char dq[256]; member
/drivers/scsi/hisi_sas/
Dhisi_sas_main.c281 *dq, int is_tmf, struct hisi_sas_tmf_task *tmf, in hisi_sas_task_prep()
284 struct hisi_hba *hisi_hba = dq->hisi_hba; in hisi_sas_task_prep()
354 rc = hisi_hba->hw->get_free_slot(hisi_hba, dq); in hisi_sas_task_prep()
358 dlvry_queue = dq->id; in hisi_sas_task_prep()
359 dlvry_queue_slot = dq->wr_point; in hisi_sas_task_prep()
413 dq->slot_prep = slot; in hisi_sas_task_prep()
449 struct hisi_sas_dq *dq = sas_dev->dq; in hisi_sas_task_exec() local
455 spin_lock_irqsave(&dq->lock, flags); in hisi_sas_task_exec()
456 rc = hisi_sas_task_prep(task, dq, is_tmf, tmf, &pass); in hisi_sas_task_exec()
461 hisi_hba->hw->start_delivery(dq); in hisi_sas_task_exec()
[all …]
Dhisi_sas.h144 struct hisi_sas_dq *dq; member
186 int (*get_free_slot)(struct hisi_hba *hisi_hba, struct hisi_sas_dq *dq);
187 void (*start_delivery)(struct hisi_sas_dq *dq);
250 struct hisi_sas_dq dq[HISI_SAS_MAX_QUEUES]; member
Dhisi_sas_v3_hw.c772 get_free_slot_v3_hw(struct hisi_hba *hisi_hba, struct hisi_sas_dq *dq) in get_free_slot_v3_hw() argument
775 int queue = dq->id; in get_free_slot_v3_hw()
778 w = dq->wr_point; in get_free_slot_v3_hw()
790 static void start_delivery_v3_hw(struct hisi_sas_dq *dq) in start_delivery_v3_hw() argument
792 struct hisi_hba *hisi_hba = dq->hisi_hba; in start_delivery_v3_hw()
793 int dlvry_queue = dq->slot_prep->dlvry_queue; in start_delivery_v3_hw()
794 int dlvry_queue_slot = dq->slot_prep->dlvry_queue_slot; in start_delivery_v3_hw()
796 dq->wr_point = ++dlvry_queue_slot % HISI_SAS_QUEUE_SLOTS; in start_delivery_v3_hw()
798 dq->wr_point); in start_delivery_v3_hw()
1530 struct hisi_sas_dq *dq = &hisi_hba->dq[queue]; in cq_tasklet_v3_hw() local
[all …]
Dhisi_sas_v2_hw.c861 struct hisi_sas_dq *dq = &hisi_hba->dq[queue]; in alloc_dev_quirk_v2_hw() local
870 sas_dev->dq = dq; in alloc_dev_quirk_v2_hw()
1622 get_free_slot_v2_hw(struct hisi_hba *hisi_hba, struct hisi_sas_dq *dq) in get_free_slot_v2_hw() argument
1625 int queue = dq->id; in get_free_slot_v2_hw()
1628 w = dq->wr_point; in get_free_slot_v2_hw()
1640 static void start_delivery_v2_hw(struct hisi_sas_dq *dq) in start_delivery_v2_hw() argument
1642 struct hisi_hba *hisi_hba = dq->hisi_hba; in start_delivery_v2_hw()
1643 int dlvry_queue = dq->slot_prep->dlvry_queue; in start_delivery_v2_hw()
1644 int dlvry_queue_slot = dq->slot_prep->dlvry_queue_slot; in start_delivery_v2_hw()
1646 dq->wr_point = ++dlvry_queue_slot % HISI_SAS_QUEUE_SLOTS; in start_delivery_v2_hw()
[all …]
Dhisi_sas_v1_hw.c908 get_free_slot_v1_hw(struct hisi_hba *hisi_hba, struct hisi_sas_dq *dq) in get_free_slot_v1_hw() argument
911 int queue = dq->id; in get_free_slot_v1_hw()
914 w = dq->wr_point; in get_free_slot_v1_hw()
925 static void start_delivery_v1_hw(struct hisi_sas_dq *dq) in start_delivery_v1_hw() argument
927 struct hisi_hba *hisi_hba = dq->hisi_hba; in start_delivery_v1_hw()
928 int dlvry_queue = dq->slot_prep->dlvry_queue; in start_delivery_v1_hw()
929 int dlvry_queue_slot = dq->slot_prep->dlvry_queue_slot; in start_delivery_v1_hw()
931 dq->wr_point = ++dlvry_queue_slot % HISI_SAS_QUEUE_SLOTS; in start_delivery_v1_hw()
933 dq->wr_point); in start_delivery_v1_hw()
/drivers/soc/fsl/qbman/
Dqman_test_api.c211 const struct qm_dqrr_entry *dq) in cb_dqrr() argument
213 if (WARN_ON(fd_neq(&fd_dq, &dq->fd))) { in cb_dqrr()
218 if (!(dq->stat & QM_DQRR_STAT_UNSCHEDULED) && !fd_neq(&fd_dq, &fd)) { in cb_dqrr()
Dqman.c662 const struct qm_dqrr_entry *dq, in qm_dqrr_cdc_consume_1ptr() argument
666 int idx = dqrr_ptr2idx(dq); in qm_dqrr_cdc_consume_1ptr()
669 DPAA_ASSERT((dqrr->ring + idx) == dq); in qm_dqrr_cdc_consume_1ptr()
1490 const struct qm_dqrr_entry *dq; in __poll_portal_fast() local
1497 dq = qm_dqrr_current(&p->p); in __poll_portal_fast()
1498 if (!dq) in __poll_portal_fast()
1501 if (dq->stat & QM_DQRR_STAT_UNSCHEDULED) { in __poll_portal_fast()
1514 if (dq->stat & QM_DQRR_STAT_FQ_EMPTY) in __poll_portal_fast()
1522 res = fq->cb.dqrr(p, fq, dq); in __poll_portal_fast()
1526 if (dq->stat & QM_DQRR_STAT_DQCR_EXPIRED) in __poll_portal_fast()
[all …]
/drivers/crypto/qat/qat_common/
Dqat_asym_algs.c84 dma_addr_t dq; member
110 char *dq; member
861 qat_req->in.rsa.dec_crt.dq = ctx->dma_dq; in qat_rsa_dec()
1108 ptr = rsa_key->dq; in qat_rsa_setkey_crt()
1113 ctx->dq = dma_zalloc_coherent(dev, half_key_sz, &ctx->dma_dq, in qat_rsa_setkey_crt()
1115 if (!ctx->dq) in qat_rsa_setkey_crt()
1117 memcpy(ctx->dq + (half_key_sz - len), ptr, len); in qat_rsa_setkey_crt()
1135 memset(ctx->dq, '\0', half_key_sz); in qat_rsa_setkey_crt()
1136 dma_free_coherent(dev, half_key_sz, ctx->dq, ctx->dma_dq); in qat_rsa_setkey_crt()
1137 ctx->dq = NULL; in qat_rsa_setkey_crt()
[all …]
/drivers/ata/
Dsata_nv.c1729 struct defer_queue *dq = &pp->defer_queue; in nv_swncq_qc_to_dq() local
1732 WARN_ON(dq->tail - dq->head == ATA_MAX_QUEUE); in nv_swncq_qc_to_dq()
1733 dq->defer_bits |= (1 << qc->tag); in nv_swncq_qc_to_dq()
1734 dq->tag[dq->tail++ & (ATA_MAX_QUEUE - 1)] = qc->tag; in nv_swncq_qc_to_dq()
1740 struct defer_queue *dq = &pp->defer_queue; in nv_swncq_qc_from_dq() local
1743 if (dq->head == dq->tail) /* null queue */ in nv_swncq_qc_from_dq()
1746 tag = dq->tag[dq->head & (ATA_MAX_QUEUE - 1)]; in nv_swncq_qc_from_dq()
1747 dq->tag[dq->head++ & (ATA_MAX_QUEUE - 1)] = ATA_TAG_POISON; in nv_swncq_qc_from_dq()
1748 WARN_ON(!(dq->defer_bits & (1 << tag))); in nv_swncq_qc_from_dq()
1749 dq->defer_bits &= ~(1 << tag); in nv_swncq_qc_from_dq()
[all …]
/drivers/atm/
Dfirestream.c637 static struct FS_BPENTRY dq[60]; variable
1209 dq[qd].flags = td->flags; in fs_send()
1210 dq[qd].next = td->next; in fs_send()
1211 dq[qd].bsa = td->bsa; in fs_send()
1212 dq[qd].skb = td->skb; in fs_send()
1213 dq[qd].dev = td->dev; in fs_send()
1965 i, da[qd], dq[qd].flags, dq[qd].bsa, dq[qd].skb, dq[qd].dev); in firestream_remove_one()
/drivers/s390/block/
Ddasd.c2849 struct dasd_queue *dq; in dasd_block_tasklet() local
2861 dq = cqr->dq; in dasd_block_tasklet()
2862 spin_lock_irq(&dq->lock); in dasd_block_tasklet()
2865 spin_unlock_irq(&dq->lock); in dasd_block_tasklet()
2894 spin_lock_irq(&cqr->dq->lock); in _dasd_requeue_request()
2897 spin_unlock_irq(&cqr->dq->lock); in _dasd_requeue_request()
2951 spin_lock_irqsave(&cqr->dq->lock, flags); in dasd_flush_block_queue()
2955 spin_unlock_irqrestore(&cqr->dq->lock, flags); in dasd_flush_block_queue()
2987 struct dasd_queue *dq = hctx->driver_data; in do_dasd_request() local
2994 spin_lock_irq(&dq->lock); in do_dasd_request()
[all …]
/drivers/net/ethernet/freescale/dpaa/
Ddpaa_eth.c2203 const struct qm_dqrr_entry *dq) in rx_error_dqrr() argument
2213 dpaa_bp = dpaa_bpid2pool(dq->fd.bpid); in rx_error_dqrr()
2227 dpaa_fd_release(net_dev, &dq->fd); in rx_error_dqrr()
2229 dpaa_rx_error(net_dev, priv, percpu_priv, &dq->fd, fq->fqid); in rx_error_dqrr()
2236 const struct qm_dqrr_entry *dq) in rx_default_dqrr() argument
2240 const struct qm_fd *fd = &dq->fd; in rx_default_dqrr()
2256 dpaa_bp = dpaa_bpid2pool(dq->fd.bpid); in rx_default_dqrr()
2261 trace_dpaa_rx_fd(net_dev, fq, &dq->fd); in rx_default_dqrr()
2275 dpaa_fd_release(net_dev, &dq->fd); in rx_default_dqrr()
2344 const struct qm_dqrr_entry *dq) in conf_error_dqrr() argument
[all …]
/drivers/scsi/
Dqlogicpti.c1196 struct scsi_cmnd *dq; in qpti_intr() local
1199 dq = qlogicpti_intr_handler(qpti); in qpti_intr()
1201 if (dq != NULL) { in qpti_intr()
1205 next = (struct scsi_cmnd *) dq->host_scribble; in qpti_intr()
1206 dq->scsi_done(dq); in qpti_intr()
1207 dq = next; in qpti_intr()
1208 } while (dq != NULL); in qpti_intr()
/drivers/crypto/caam/
Dcaampkc.h76 u8 *dq; member
Dcaampkc.c495 pdb->dq_dma = dma_map_single(dev, key->dq, q_sz, DMA_TO_DEVICE); in set_rsa_priv_f3_pdb()
730 kzfree(key->dq); in caam_rsa_free_key()
885 rsa_key->dq = caam_read_rsa_crt(raw_key->dq, raw_key->dq_sz, q_sz); in caam_rsa_set_priv_key_form()
886 if (!rsa_key->dq) in caam_rsa_set_priv_key_form()
899 kzfree(rsa_key->dq); in caam_rsa_set_priv_key_form()
/drivers/scsi/be2iscsi/
Dbe_cmds.c982 struct be_queue_info *dq, int length, in be_cmd_create_default_pdu_queue() argument
988 struct be_dma_mem *q_mem = &dq->dma_mem; in be_cmd_create_default_pdu_queue()
1047 dq->id = le16_to_cpu(resp->id); in be_cmd_create_default_pdu_queue()
1048 dq->created = true; in be_cmd_create_default_pdu_queue()
1055 defq_ring->id = dq->id; in be_cmd_create_default_pdu_queue()
/drivers/staging/fsl-dpaa2/ethernet/
Ddpaa2-eth.c301 struct dpaa2_dq *dq; in consume_frames() local
307 dq = dpaa2_io_store_next(ch->store, &is_last); in consume_frames()
308 if (unlikely(!dq)) { in consume_frames()
317 fd = dpaa2_dq_fd(dq); in consume_frames()
318 fq = (struct dpaa2_eth_fq *)(uintptr_t)dpaa2_dq_fqd_ctx(dq); in consume_frames()

12