Lines Matching refs:cda
230 pccw1->cda = ccw0.cda;
314 return is_cpa_within_range(ccw->cda, head, len);
351 /* Free resource for a ccw that allocated memory for its cda. */
359 kfree(phys_to_virt(ccw->cda));
410 if (is_cpa_within_range(tic->cda, ccw_head, chain->ch_len))
420 static int ccwchain_handle_ccw(u32 cda, struct channel_program *cp)
428 ret = vfio_dma_rw(vdev, cda, cp->guest_cp, CCWCHAIN_LEN_MAX * sizeof(struct ccw1), false);
437 len = ccwchain_calc_length(cda, cp);
447 chain->ch_iova = cda;
478 ret = ccwchain_handle_ccw(tic->cda, cp);
494 if (is_cpa_within_range(ccw->cda, ccw_head, iter->ch_len)) {
495 ccw->cda = (__u32) (addr_t) (((char *)iter->ch_ccw) +
496 (ccw->cda - ccw_head));
523 ret = vfio_dma_rw(vdev, ccw->cda, idaws, idal_len, false);
531 idaws[0] = ccw->cda;
536 idaws_f1[0] = ccw->cda;
575 ret = vfio_dma_rw(vdev, ccw->cda, &iova, size, false);
586 iova = ccw->cda;
655 ccw->cda = (__u32) virt_to_phys(idaws);
668 ccw->cda = 0;
674 * To reduce memory copy, we'll pin the cda page in memory,
675 * and to get rid of the cda 2G limitation of ccw1, we'll translate