Lines Matching refs:regs
35 struct pt_regs regs; in meson_init_shmem() local
40 regs.regs[0] = FN_GET_SHARE_MEM_INPUT_BASE; in meson_init_shmem()
41 smc_call(®s); in meson_init_shmem()
42 shmem_input = (void *)regs.regs[0]; in meson_init_shmem()
44 regs.regs[0] = FN_GET_SHARE_MEM_OUTPUT_BASE; in meson_init_shmem()
45 smc_call(®s); in meson_init_shmem()
46 shmem_output = (void *)regs.regs[0]; in meson_init_shmem()
53 struct pt_regs regs; in meson_sm_read_efuse() local
57 regs.regs[0] = FN_EFUSE_READ; in meson_sm_read_efuse()
58 regs.regs[1] = offset; in meson_sm_read_efuse()
59 regs.regs[2] = size; in meson_sm_read_efuse()
61 smc_call(®s); in meson_sm_read_efuse()
63 if (regs.regs[0] == 0) in meson_sm_read_efuse()
66 memcpy(buffer, shmem_output, min(size, regs.regs[0])); in meson_sm_read_efuse()
68 return regs.regs[0]; in meson_sm_read_efuse()
77 struct pt_regs regs; in meson_sm_get_serial() local
81 regs.regs[0] = FN_CHIP_ID; in meson_sm_get_serial()
82 regs.regs[1] = 0; in meson_sm_get_serial()
83 regs.regs[2] = 0; in meson_sm_get_serial()
85 smc_call(®s); in meson_sm_get_serial()