Lines Matching refs:sve_vl
38 extern void do_syscall(int sve_vl, int sme_vl);
66 static void setup_gpr(struct syscall_cfg *cfg, int sve_vl, int sme_vl, in setup_gpr() argument
74 static int check_gpr(struct syscall_cfg *cfg, int sve_vl, int sme_vl, uint64_t svcr) in check_gpr() argument
85 cfg->name, sve_vl, i, in check_gpr()
99 static void setup_fpr(struct syscall_cfg *cfg, int sve_vl, int sme_vl, in setup_fpr() argument
106 static int check_fpr(struct syscall_cfg *cfg, int sve_vl, int sme_vl, in check_fpr() argument
112 if (!sve_vl && !(svcr & SVCR_SM_MASK)) { in check_fpr()
145 static void setup_z(struct syscall_cfg *cfg, int sve_vl, int sme_vl, in setup_z() argument
152 static int check_z(struct syscall_cfg *cfg, int sve_vl, int sme_vl, in check_z() argument
155 size_t reg_size = sve_vl; in check_z()
159 if (!sve_vl) in check_z()
174 cfg->name, sve_vl, i); in check_z()
184 cfg->name, sve_vl, i); in check_z()
192 cfg->name, sve_vl, i); in check_z()
204 static void setup_p(struct syscall_cfg *cfg, int sve_vl, int sme_vl, in setup_p() argument
211 static int check_p(struct syscall_cfg *cfg, int sve_vl, int sme_vl, in check_p() argument
214 size_t reg_size = sve_vq_from_vl(sve_vl) * 2; /* 1 bit per VL byte */ in check_p()
219 if (!sve_vl) in check_p()
228 cfg->name, sve_vl); in check_p()
236 static void setup_ffr(struct syscall_cfg *cfg, int sve_vl, int sme_vl, in setup_ffr() argument
258 static int check_ffr(struct syscall_cfg *cfg, int sve_vl, int sme_vl, in check_ffr() argument
261 size_t reg_size = sve_vq_from_vl(sve_vl) * 2; /* 1 bit per VL byte */ in check_ffr()
265 if (!sve_vl) in check_ffr()
278 cfg->name, sve_vl); in check_ffr()
285 static void setup_svcr(struct syscall_cfg *cfg, int sve_vl, int sme_vl, in setup_svcr() argument
291 static int check_svcr(struct syscall_cfg *cfg, int sve_vl, int sme_vl, in check_svcr() argument
314 static void setup_za(struct syscall_cfg *cfg, int sve_vl, int sme_vl, in setup_za() argument
321 static int check_za(struct syscall_cfg *cfg, int sve_vl, int sme_vl, in check_za() argument
341 static void setup_zt(struct syscall_cfg *cfg, int sve_vl, int sme_vl, in setup_zt() argument
348 static int check_zt(struct syscall_cfg *cfg, int sve_vl, int sme_vl, in check_zt() argument
367 typedef void (*setup_fn)(struct syscall_cfg *cfg, int sve_vl, int sme_vl,
369 typedef int (*check_fn)(struct syscall_cfg *cfg, int sve_vl, int sme_vl,
393 static bool do_test(struct syscall_cfg *cfg, int sve_vl, int sme_vl, in do_test() argument
400 regset[i].setup(cfg, sve_vl, sme_vl, svcr); in do_test()
402 do_syscall(sve_vl, sme_vl); in do_test()
405 errors += regset[i].check(cfg, sve_vl, sme_vl, svcr); in do_test()