Lines Matching refs:cge
739 struct changer_get_element cge; in ch_ioctl() local
745 if (copy_from_user(&cge, argp, sizeof (cge))) in ch_ioctl()
748 if (0 != ch_checkrange(ch, cge.cge_type, cge.cge_unit)) in ch_ioctl()
750 elem = ch->firsts[cge.cge_type] + cge.cge_unit; in ch_ioctl()
771 cge.cge_status = buffer[18]; in ch_ioctl()
772 cge.cge_flags = 0; in ch_ioctl()
774 cge.cge_errno = EIO; in ch_ioctl()
777 cge.cge_flags |= CGE_SRC; in ch_ioctl()
779 cge.cge_flags |= CGE_INVERT; in ch_ioctl()
784 cge.cge_srctype = i; in ch_ioctl()
785 cge.cge_srcunit = elem-ch->firsts[i]; in ch_ioctl()
790 cge.cge_flags |= CGE_IDLUN; in ch_ioctl()
791 cge.cge_id = buffer[23]; in ch_ioctl()
792 cge.cge_lun = buffer[22] & 7; in ch_ioctl()
795 cge.cge_flags |= CGE_PVOLTAG; in ch_ioctl()
796 memcpy(cge.cge_pvoltag,buffer+28,36); in ch_ioctl()
799 cge.cge_flags |= CGE_AVOLTAG; in ch_ioctl()
800 memcpy(cge.cge_avoltag,buffer+64,36); in ch_ioctl()
810 if (copy_to_user(argp, &cge, sizeof (cge))) in ch_ioctl()