Lines Matching refs:zcr
689 unsigned long zcr; in sve_probe_vqs() local
693 zcr = ZCR_ELx_LEN_MASK; in sve_probe_vqs()
694 zcr = read_sysreg_s(SYS_ZCR_EL1) & ~zcr; in sve_probe_vqs()
697 write_sysreg_s(zcr | (vq - 1), SYS_ZCR_EL1); /* self-syncing */ in sve_probe_vqs()
821 u64 zcr; in read_zcr_features() local
831 zcr = read_sysreg_s(SYS_ZCR_EL1); in read_zcr_features()
832 zcr &= ~(u64)ZCR_ELx_LEN_MASK; /* find sticky 1s outside LEN field */ in read_zcr_features()
834 zcr |= vq_max - 1; /* set LEN field to maximum effective value */ in read_zcr_features()
836 return zcr; in read_zcr_features()
841 u64 zcr; in sve_setup() local
856 zcr = read_sanitised_ftr_reg(SYS_ZCR_EL1); in sve_setup()
857 sve_max_vl = sve_vl_from_vq((zcr & ZCR_ELx_LEN_MASK) + 1); in sve_setup()