Lines Matching +full:secure +full:- +full:only
35 {.compatible = "brcm,kona-smc"},
36 {.compatible = "bcm,kona-smc"}, /* deprecated name */
52 return -ENODEV; in bcm_kona_smc_init()
56 return -EINVAL; in bcm_kona_smc_init()
58 /* We assume space for four 32-bit arguments */ in bcm_kona_smc_init()
60 return -EINVAL; in bcm_kona_smc_init()
65 return -EINVAL; in bcm_kona_smc_init()
69 return -ENOMEM; in bcm_kona_smc_init()
72 pr_info("Kona Secure API initialized\n"); in bcm_kona_smc_init()
80 * Only core 0 can run the secure monitor code. If an "smc" request
87 * cache and interrupt handling while the secure monitor executes.
89 * Parameters to the "smc" request are passed in r4-r6 as follows:
96 * First, the secure monitor call itself (regardless of the specific
137 /* __bcm_kona_smc() should only run on CPU 0, with pre-emption disabled */
147 writel_relaxed(data->arg0, args++); in __bcm_kona_smc()
148 writel_relaxed(data->arg1, args++); in __bcm_kona_smc()
149 writel_relaxed(data->arg2, args++); in __bcm_kona_smc()
150 writel(data->arg3, args); in __bcm_kona_smc()
152 /* Flush caches for input data passed to Secure Monitor */ in __bcm_kona_smc()
155 /* Trap into Secure Monitor and record the request result */ in __bcm_kona_smc()
156 data->result = bcm_kona_do_smc(data->service_id, bcm_smc_buffer_phys); in __bcm_kona_smc()
172 * Due to a limitation of the secure monitor, we must use the SMP in bcm_kona_smc()
173 * infrastructure to forward all secure monitor calls to Core 0. in bcm_kona_smc()