Lines Matching refs:cge
753 struct changer_get_element cge; in ch_ioctl() local
759 if (copy_from_user(&cge, argp, sizeof (cge))) in ch_ioctl()
762 if (0 != ch_checkrange(ch, cge.cge_type, cge.cge_unit)) in ch_ioctl()
764 elem = ch->firsts[cge.cge_type] + cge.cge_unit; in ch_ioctl()
785 cge.cge_status = buffer[18]; in ch_ioctl()
786 cge.cge_flags = 0; in ch_ioctl()
788 cge.cge_errno = EIO; in ch_ioctl()
791 cge.cge_flags |= CGE_SRC; in ch_ioctl()
793 cge.cge_flags |= CGE_INVERT; in ch_ioctl()
798 cge.cge_srctype = i; in ch_ioctl()
799 cge.cge_srcunit = elem-ch->firsts[i]; in ch_ioctl()
804 cge.cge_flags |= CGE_IDLUN; in ch_ioctl()
805 cge.cge_id = buffer[23]; in ch_ioctl()
806 cge.cge_lun = buffer[22] & 7; in ch_ioctl()
809 cge.cge_flags |= CGE_PVOLTAG; in ch_ioctl()
810 memcpy(cge.cge_pvoltag,buffer+28,36); in ch_ioctl()
813 cge.cge_flags |= CGE_AVOLTAG; in ch_ioctl()
814 memcpy(cge.cge_avoltag,buffer+64,36); in ch_ioctl()
824 if (copy_to_user(argp, &cge, sizeof (cge))) in ch_ioctl()