Lines Matching refs:orb
383 if ((!cp->orb.cmd.c64 || cp->orb.cmd.i2k) && ccw_is_idal(ccw)) in ccwchain_calc_length()
435 if (!cp->orb.cmd.fmt) in ccwchain_handle_ccw()
635 int cp_init(struct channel_program *cp, struct device *mdev, union orb *orb) in cp_init() argument
643 if (!orb->cmd.pfch) in cp_init()
647 memcpy(&cp->orb, orb, sizeof(*orb)); in cp_init()
651 ret = ccwchain_handle_ccw(orb->cmd.cpa, cp); in cp_init()
659 cp->orb.cmd.c64 = 1; in cp_init()
767 union orb *cp_get_orb(struct channel_program *cp, u32 intparm, u8 lpm) in cp_get_orb()
769 union orb *orb; in cp_get_orb() local
777 orb = &cp->orb; in cp_get_orb()
779 orb->cmd.intparm = intparm; in cp_get_orb()
780 orb->cmd.fmt = 1; in cp_get_orb()
781 orb->cmd.key = PAGE_DEFAULT_KEY >> 4; in cp_get_orb()
783 if (orb->cmd.lpm == 0) in cp_get_orb()
784 orb->cmd.lpm = lpm; in cp_get_orb()
788 orb->cmd.cpa = (__u32) __pa(cpa); in cp_get_orb()
790 return orb; in cp_get_orb()