Lines Matching defs:cpa
290 * @cpa: channel program address being questioned
299 static inline int is_cpa_within_range(u32 cpa, u32 head, int len)
303 return (head <= cpa && cpa <= tail);
660 ret = ccwchain_handle_ccw(orb->cmd.cpa, cp);
780 struct ccw1 *cpa;
796 cpa = chain->ch_ccw;
797 orb->cmd.cpa = (__u32) __pa(cpa);
809 * to by @cp. However what @scsw->cpa stores is a host physical
813 * This function updates @scsw->cpa to its coressponding guest physical
819 u32 cpa = scsw->cmd.cpa;
827 * For now, only update the cmd.cpa part. We may need to deal with
834 * On successful execution, cpa points just beyond the end
837 if (is_cpa_within_range(cpa, ccw_head, chain->ch_len + 1)) {
839 * (cpa - ccw_head) is the offset value of the host
842 * head gets us the guest cpa.
844 cpa = chain->ch_iova + (cpa - ccw_head);
849 scsw->cmd.cpa = cpa;