Lines Matching refs:regs
23 struct pt_regs regs; in meson_init_shmem() local
28 regs.regs[0] = FN_GET_SHARE_MEM_INPUT_BASE; in meson_init_shmem()
29 smc_call(®s); in meson_init_shmem()
30 shmem_input = (void *)regs.regs[0]; in meson_init_shmem()
32 regs.regs[0] = FN_GET_SHARE_MEM_OUTPUT_BASE; in meson_init_shmem()
33 smc_call(®s); in meson_init_shmem()
34 shmem_output = (void *)regs.regs[0]; in meson_init_shmem()
41 struct pt_regs regs; in meson_sm_read_efuse() local
45 regs.regs[0] = FN_EFUSE_READ; in meson_sm_read_efuse()
46 regs.regs[1] = offset; in meson_sm_read_efuse()
47 regs.regs[2] = size; in meson_sm_read_efuse()
49 smc_call(®s); in meson_sm_read_efuse()
51 if (regs.regs[0] == 0) in meson_sm_read_efuse()
54 memcpy(buffer, shmem_output, min(size, regs.regs[0])); in meson_sm_read_efuse()
56 return regs.regs[0]; in meson_sm_read_efuse()