Lines Matching defs:thread
77 static inline bool thread_sm_enabled(struct thread_struct *thread)
79 return system_supports_sme() && (thread->svcr & SVCR_SM_MASK);
82 static inline bool thread_za_enabled(struct thread_struct *thread)
84 return system_supports_sme() && (thread->svcr & SVCR_ZA_MASK);
96 static inline void *sve_pffr(struct thread_struct *thread)
100 if (system_supports_sme() && thread_sm_enabled(thread))
101 vl = thread_get_sme_vl(thread);
103 vl = thread_get_sve_vl(thread);
105 return (char *)thread->sve_state + sve_ffr_offset(vl);
108 static inline void *thread_zt_state(struct thread_struct *thread)
111 unsigned int sme_vq = sve_vq_from_vl(thread_get_sme_vl(thread));
112 return thread->sme_state + ZA_SIG_REGS_SIZE(sme_vq);