• Home
  • Raw
  • Download

Lines Matching refs:pq

56 	struct ioat_pq_descriptor *pq = (struct ioat_pq_descriptor *) descs[0];  in pq_set_src()  local
60 pq->coef[idx] = coef; in pq_set_src()
66 struct ioat_pq_descriptor *pq = (struct ioat_pq_descriptor *)desc[0]; in pq16_set_src() local
74 pq->coef[idx] = coef; in pq16_set_src()
280 struct ioat_pq_descriptor *pq = desc->pq; in dump_pq_desc_dbg() local
282 struct ioat_raw_descriptor *descs[] = { (void *) pq, (void *) pq_ex }; in dump_pq_desc_dbg()
283 int src_cnt = src_cnt_to_sw(pq->ctl_f.src_cnt); in dump_pq_desc_dbg()
290 (unsigned long long) (pq_ex ? pq_ex->next : pq->next), in dump_pq_desc_dbg()
291 desc->txd.flags, pq->size, pq->ctl, pq->ctl_f.op, in dump_pq_desc_dbg()
292 pq->ctl_f.int_en, pq->ctl_f.compl_write, in dump_pq_desc_dbg()
293 pq->ctl_f.p_disable ? "" : "p", pq->ctl_f.q_disable ? "" : "q", in dump_pq_desc_dbg()
294 pq->ctl_f.src_cnt); in dump_pq_desc_dbg()
297 (unsigned long long) pq_get_src(descs, i), pq->coef[i]); in dump_pq_desc_dbg()
298 dev_dbg(dev, "\tP: %#llx\n", pq->p_addr); in dump_pq_desc_dbg()
299 dev_dbg(dev, "\tQ: %#llx\n", pq->q_addr); in dump_pq_desc_dbg()
300 dev_dbg(dev, "\tNEXT: %#llx\n", pq->next); in dump_pq_desc_dbg()
307 struct ioat_pq_descriptor *pq = desc->pq; in dump_pq16_desc_dbg() local
308 struct ioat_raw_descriptor *descs[] = { (void *)pq, in dump_pq16_desc_dbg()
309 (void *)pq, in dump_pq16_desc_dbg()
310 (void *)pq }; in dump_pq16_desc_dbg()
311 int src_cnt = src16_cnt_to_sw(pq->ctl_f.src_cnt); in dump_pq16_desc_dbg()
323 (unsigned long long) pq->next, in dump_pq16_desc_dbg()
324 desc->txd.flags, pq->size, pq->ctl, in dump_pq16_desc_dbg()
325 pq->ctl_f.op, pq->ctl_f.int_en, in dump_pq16_desc_dbg()
326 pq->ctl_f.compl_write, in dump_pq16_desc_dbg()
327 pq->ctl_f.p_disable ? "" : "p", pq->ctl_f.q_disable ? "" : "q", in dump_pq16_desc_dbg()
328 pq->ctl_f.src_cnt); in dump_pq16_desc_dbg()
332 pq->coef[i]); in dump_pq16_desc_dbg()
334 dev_dbg(dev, "\tP: %#llx\n", pq->p_addr); in dump_pq16_desc_dbg()
335 dev_dbg(dev, "\tQ: %#llx\n", pq->q_addr); in dump_pq16_desc_dbg()
350 struct ioat_pq_descriptor *pq; in __ioat_prep_pq_lock() local
393 pq = desc->pq; in __ioat_prep_pq_lock()
402 descs[0] = (struct ioat_raw_descriptor *) pq; in __ioat_prep_pq_lock()
416 pq->size = xfer_size; in __ioat_prep_pq_lock()
417 pq->p_addr = dst[0] + offset; in __ioat_prep_pq_lock()
418 pq->q_addr = dst[1] + offset; in __ioat_prep_pq_lock()
419 pq->ctl = 0; in __ioat_prep_pq_lock()
420 pq->ctl_f.op = op; in __ioat_prep_pq_lock()
423 pq->ctl_f.wb_en = result ? 1 : 0; in __ioat_prep_pq_lock()
424 pq->ctl_f.src_cnt = src_cnt_to_hw(s); in __ioat_prep_pq_lock()
425 pq->ctl_f.p_disable = !!(flags & DMA_PREP_PQ_DISABLE_P); in __ioat_prep_pq_lock()
426 pq->ctl_f.q_disable = !!(flags & DMA_PREP_PQ_DISABLE_Q); in __ioat_prep_pq_lock()
437 pq->ctl_f.fence = !!(flags & DMA_PREP_FENCE); in __ioat_prep_pq_lock()
441 pq->ctl_f.int_en = !!(flags & DMA_PREP_INTERRUPT); in __ioat_prep_pq_lock()
442 pq->ctl_f.compl_write = 1; in __ioat_prep_pq_lock()
472 struct ioat_pq_descriptor *pq; in __ioat_prep_pq16_lock() local
501 pq = desc->pq; in __ioat_prep_pq16_lock()
503 descs[0] = (struct ioat_raw_descriptor *) pq; in __ioat_prep_pq16_lock()
512 pq->sed_addr = desc->sed->dma; in __ioat_prep_pq16_lock()
530 pq->size = xfer_size; in __ioat_prep_pq16_lock()
531 pq->p_addr = dst[0] + offset; in __ioat_prep_pq16_lock()
532 pq->q_addr = dst[1] + offset; in __ioat_prep_pq16_lock()
533 pq->ctl = 0; in __ioat_prep_pq16_lock()
534 pq->ctl_f.op = op; in __ioat_prep_pq16_lock()
535 pq->ctl_f.src_cnt = src16_cnt_to_hw(s); in __ioat_prep_pq16_lock()
538 pq->ctl_f.wb_en = result ? 1 : 0; in __ioat_prep_pq16_lock()
539 pq->ctl_f.p_disable = !!(flags & DMA_PREP_PQ_DISABLE_P); in __ioat_prep_pq16_lock()
540 pq->ctl_f.q_disable = !!(flags & DMA_PREP_PQ_DISABLE_Q); in __ioat_prep_pq16_lock()
551 pq->ctl_f.fence = !!(flags & DMA_PREP_FENCE); in __ioat_prep_pq16_lock()
554 pq->ctl_f.int_en = !!(flags & DMA_PREP_INTERRUPT); in __ioat_prep_pq16_lock()
555 pq->ctl_f.compl_write = 1; in __ioat_prep_pq16_lock()
619 ioat_prep_pq_val(struct dma_chan *chan, dma_addr_t *pq, dma_addr_t *src, in ioat_prep_pq_val() argument
630 pq[0] = pq[1]; in ioat_prep_pq_val()
632 pq[1] = pq[0]; in ioat_prep_pq_val()
640 __ioat_prep_pq16_lock(chan, pqres, pq, src, src_cnt, scf, len, in ioat_prep_pq_val()
642 __ioat_prep_pq_lock(chan, pqres, pq, src, src_cnt, scf, len, in ioat_prep_pq_val()
651 dma_addr_t pq[2]; in ioat_prep_pqxor() local
661 pq[0] = dst; in ioat_prep_pqxor()
663 pq[1] = dst; /* specify valid address for disabled result */ in ioat_prep_pqxor()
666 __ioat_prep_pq16_lock(chan, NULL, pq, src, src_cnt, scf, len, in ioat_prep_pqxor()
668 __ioat_prep_pq_lock(chan, NULL, pq, src, src_cnt, scf, len, in ioat_prep_pqxor()
678 dma_addr_t pq[2]; in ioat_prep_pqxor_val() local
693 pq[0] = src[0]; in ioat_prep_pqxor_val()
695 pq[1] = pq[0]; /* specify valid address for disabled result */ in ioat_prep_pqxor_val()
698 __ioat_prep_pq16_lock(chan, result, pq, &src[1], src_cnt - 1, in ioat_prep_pqxor_val()
700 __ioat_prep_pq_lock(chan, result, pq, &src[1], src_cnt - 1, in ioat_prep_pqxor_val()