Lines Matching refs:cge
773 struct changer_get_element cge; in ch_ioctl() local
779 if (copy_from_user(&cge, argp, sizeof (cge))) in ch_ioctl()
782 if (0 != ch_checkrange(ch, cge.cge_type, cge.cge_unit)) in ch_ioctl()
784 elem = ch->firsts[cge.cge_type] + cge.cge_unit; in ch_ioctl()
805 cge.cge_status = buffer[18]; in ch_ioctl()
806 cge.cge_flags = 0; in ch_ioctl()
808 cge.cge_errno = EIO; in ch_ioctl()
811 cge.cge_flags |= CGE_SRC; in ch_ioctl()
813 cge.cge_flags |= CGE_INVERT; in ch_ioctl()
818 cge.cge_srctype = i; in ch_ioctl()
819 cge.cge_srcunit = elem-ch->firsts[i]; in ch_ioctl()
824 cge.cge_flags |= CGE_IDLUN; in ch_ioctl()
825 cge.cge_id = buffer[23]; in ch_ioctl()
826 cge.cge_lun = buffer[22] & 7; in ch_ioctl()
829 cge.cge_flags |= CGE_PVOLTAG; in ch_ioctl()
830 memcpy(cge.cge_pvoltag,buffer+28,36); in ch_ioctl()
833 cge.cge_flags |= CGE_AVOLTAG; in ch_ioctl()
834 memcpy(cge.cge_avoltag,buffer+64,36); in ch_ioctl()
844 if (copy_to_user(argp, &cge, sizeof (cge))) in ch_ioctl()