Lines Matching refs:orb
235 #define idal_is_2k(_cp) (!(_cp)->orb.cmd.c64 || (_cp)->orb.cmd.i2k)
433 if (!cp->orb.cmd.fmt)
530 if (cp->orb.cmd.c64) {
565 int size = cp->orb.cmd.c64 ? sizeof(u64) : sizeof(u32);
583 if (!cp->orb.cmd.c64)
590 if (!cp->orb.cmd.c64)
594 if (cp->orb.cmd.i2k)
641 if (cp->orb.cmd.c64)
692 * @orb: control block for the channel program from the guest
695 * the target channel program from @orb->cmd.iova to the new ccwchain(s).
704 int cp_init(struct channel_program *cp, union orb *orb)
723 if (!orb->cmd.pfch && __ratelimit(&ratelimit_state))
729 memcpy(&cp->orb, orb, sizeof(*orb));
732 ret = ccwchain_handle_ccw(orb->cmd.cpa, cp);
840 * cp_get_orb() - get the orb of the channel program
844 * This function returns the address of the updated orb of the channel
845 * program. Channel I/O device drivers could use this orb to issue a
848 union orb *cp_get_orb(struct channel_program *cp, struct subchannel *sch)
850 union orb *orb;
858 orb = &cp->orb;
860 orb->cmd.intparm = (u32)virt_to_phys(sch);
861 orb->cmd.fmt = 1;
868 if (!orb->cmd.c64)
869 orb->cmd.i2k = 1;
870 orb->cmd.c64 = 1;
872 if (orb->cmd.lpm == 0)
873 orb->cmd.lpm = sch->lpm;
877 orb->cmd.cpa = (__u32)virt_to_phys(cpa);
879 return orb;