Lines Matching refs:orb
235 #define idal_is_2k(_cp) (!(_cp)->orb.cmd.c64 || (_cp)->orb.cmd.i2k)
436 if (!cp->orb.cmd.fmt)
531 if (cp->orb.cmd.c64) {
570 int size = cp->orb.cmd.c64 ? sizeof(u64) : sizeof(u32);
588 if (!cp->orb.cmd.c64)
595 if (!cp->orb.cmd.c64)
599 if (cp->orb.cmd.i2k)
646 if (cp->orb.cmd.c64)
697 * @orb: control block for the channel program from the guest
700 * the target channel program from @orb->cmd.iova to the new ccwchain(s).
709 int cp_init(struct channel_program *cp, union orb *orb)
728 if (!orb->cmd.pfch && __ratelimit(&ratelimit_state))
734 memcpy(&cp->orb, orb, sizeof(*orb));
737 ret = ccwchain_handle_ccw(orb->cmd.cpa, cp);
845 * cp_get_orb() - get the orb of the channel program
849 * This function returns the address of the updated orb of the channel
850 * program. Channel I/O device drivers could use this orb to issue a
853 union orb *cp_get_orb(struct channel_program *cp, struct subchannel *sch)
855 union orb *orb;
863 orb = &cp->orb;
865 orb->cmd.intparm = (u32)virt_to_phys(sch);
866 orb->cmd.fmt = 1;
873 if (!orb->cmd.c64)
874 orb->cmd.i2k = 1;
875 orb->cmd.c64 = 1;
877 if (orb->cmd.lpm == 0)
878 orb->cmd.lpm = sch->lpm;
882 orb->cmd.cpa = virt_to_dma32(cpa);
884 return orb;