Lines Matching refs:cge
736 struct changer_get_element cge;
742 if (copy_from_user(&cge, argp, sizeof (cge)))
745 if (0 != ch_checkrange(ch, cge.cge_type, cge.cge_unit))
747 elem = ch->firsts[cge.cge_type] + cge.cge_unit;
767 cge.cge_status = buffer[18];
768 cge.cge_flags = 0;
770 cge.cge_errno = EIO;
773 cge.cge_flags |= CGE_SRC;
775 cge.cge_flags |= CGE_INVERT;
780 cge.cge_srctype = i;
781 cge.cge_srcunit = elem-ch->firsts[i];
786 cge.cge_flags |= CGE_IDLUN;
787 cge.cge_id = buffer[23];
788 cge.cge_lun = buffer[22] & 7;
791 cge.cge_flags |= CGE_PVOLTAG;
792 memcpy(cge.cge_pvoltag,buffer+28,36);
795 cge.cge_flags |= CGE_AVOLTAG;
796 memcpy(cge.cge_avoltag,buffer+64,36);
806 if (copy_to_user(argp, &cge, sizeof (cge)))