Lines Matching defs:cpa
293 * @cpa: channel program address being questioned
302 static inline int is_cpa_within_range(u32 cpa, u32 head, int len)
306 return (head <= cpa && cpa <= tail);
732 ret = ccwchain_handle_ccw(orb->cmd.cpa, cp);
852 struct ccw1 *cpa;
876 cpa = chain->ch_ccw;
877 orb->cmd.cpa = (__u32)virt_to_phys(cpa);
889 * to by @cp. However what @scsw->cpa stores is a host physical
893 * This function updates @scsw->cpa to its coressponding guest physical
899 u32 cpa = scsw->cmd.cpa;
907 * For now, only update the cmd.cpa part. We may need to deal with
914 * On successful execution, cpa points just beyond the end
917 if (is_cpa_within_range(cpa, ccw_head, chain->ch_len + 1)) {
919 * (cpa - ccw_head) is the offset value of the host
922 * head gets us the guest cpa.
924 cpa = chain->ch_iova + (cpa - ccw_head);
929 scsw->cmd.cpa = cpa;