Lines Matching defs:sun8i_crypto_softc
105 struct sun8i_crypto_softc {
175 void (*ct_callback)(struct sun8i_crypto_softc *,
196 sun8i_crypto_task_get(struct sun8i_crypto_softc *,
197 void (*)(struct sun8i_crypto_softc *,
200 static void sun8i_crypto_task_put(struct sun8i_crypto_softc *,
203 static int sun8i_crypto_task_load(struct sun8i_crypto_softc *,
209 static int sun8i_crypto_task_load_trng(struct sun8i_crypto_softc *,
211 static int sun8i_crypto_task_load_aesecb(struct sun8i_crypto_softc *,
214 static int sun8i_crypto_submit(struct sun8i_crypto_softc *,
219 static void sun8i_crypto_schedule_worker(struct sun8i_crypto_softc *);
222 static bool sun8i_crypto_poll(struct sun8i_crypto_softc *, uint32_t *,
224 static bool sun8i_crypto_done(struct sun8i_crypto_softc *, uint32_t,
226 static bool sun8i_crypto_chan_done(struct sun8i_crypto_softc *, unsigned,
229 static int sun8i_crypto_allocbuf(struct sun8i_crypto_softc *, size_t,
231 static void sun8i_crypto_freebuf(struct sun8i_crypto_softc *, size_t,
234 static void sun8i_crypto_rng_attach(struct sun8i_crypto_softc *);
236 static void sun8i_crypto_rng_done(struct sun8i_crypto_softc *,
239 static bool sun8i_crypto_selftest(struct sun8i_crypto_softc *);
240 static void sun8i_crypto_selftest_done(struct sun8i_crypto_softc *,
243 static void sun8i_crypto_sysctl_attach(struct sun8i_crypto_softc *);
245 static void sun8i_crypto_sysctl_rng_done(struct sun8i_crypto_softc *,
248 static void sun8i_crypto_register(struct sun8i_crypto_softc *);
249 static void sun8i_crypto_register1(struct sun8i_crypto_softc *, uint32_t);
255 static void sun8i_crypto_callback(struct sun8i_crypto_softc *,
296 "struct sun8i_crypto_softc *"/*sc*/,
300 "struct sun8i_crypto_softc *"/*sc*/,
304 "struct sun8i_crypto_softc *"/*sc*/,
308 "struct sun8i_crypto_softc *"/*sc*/,
313 "struct sun8i_crypto_softc *"/*sc*/,
317 "struct sun8i_crypto_softc *"/*sc*/,
321 "struct sun8i_crypto_softc *"/*sc*/,
326 "struct sun8i_crypto_softc *"/*sc*/,
335 sun8i_crypto_read(struct sun8i_crypto_softc *sc, bus_size_t reg)
344 sun8i_crypto_write(struct sun8i_crypto_softc *sc, bus_size_t reg, uint32_t v)
355 CFATTACH_DECL_NEW(sun8i_crypto, sizeof(struct sun8i_crypto_softc),
379 struct sun8i_crypto_softc *const sc = device_private(self);
509 struct sun8i_crypto_softc
591 struct sun8i_crypto_softc *sc = cookie;
620 sun8i_crypto_task_get(struct sun8i_crypto_softc *sc,
621 void (*callback)(struct sun8i_crypto_softc *, struct sun8i_crypto_task *,
647 sun8i_crypto_task_invalid(struct sun8i_crypto_softc *sc,
650 void (*callback)(struct sun8i_crypto_softc *,
662 sun8i_crypto_task_put(struct sun8i_crypto_softc *sc,
684 sun8i_crypto_task_load(struct sun8i_crypto_softc *sc,
814 sun8i_crypto_task_load_trng(struct sun8i_crypto_softc *sc,
834 sun8i_crypto_task_load_aesecb(struct sun8i_crypto_softc *sc,
884 sun8i_crypto_submit(struct sun8i_crypto_softc *sc,
990 struct sun8i_crypto_softc *sc = cookie;
1007 struct sun8i_crypto_softc *sc = cookie;
1030 sun8i_crypto_schedule_worker(struct sun8i_crypto_softc *sc)
1052 struct sun8i_crypto_softc *sc = cookie;
1089 sun8i_crypto_poll(struct sun8i_crypto_softc *sc,
1122 sun8i_crypto_done(struct sun8i_crypto_softc *sc, uint32_t done, uint32_t esr,
1196 sun8i_crypto_chan_done(struct sun8i_crypto_softc *sc, unsigned i, int error)
1266 sun8i_crypto_allocbuf(struct sun8i_crypto_softc *sc, size_t size,
1298 sun8i_crypto_freebuf(struct sun8i_crypto_softc *sc, size_t size,
1312 sun8i_crypto_rng_attach(struct sun8i_crypto_softc *sc)
1389 struct sun8i_crypto_softc *sc = cookie;
1425 sun8i_crypto_rng_done(struct sun8i_crypto_softc *sc,
1479 sun8i_crypto_selftest(struct sun8i_crypto_softc *sc)
1583 sun8i_crypto_selftest_check(struct sun8i_crypto_softc *sc, const char *title,
1606 sun8i_crypto_selftest_done(struct sun8i_crypto_softc *sc,
1663 sun8i_crypto_sysctl_attach(struct sun8i_crypto_softc *sc)
1698 struct sun8i_crypto_softc *sc = node.sysctl_data;
1810 sun8i_crypto_sysctl_rng_done(struct sun8i_crypto_softc *sc,
1849 sun8i_crypto_register(struct sun8i_crypto_softc *sc)
1901 sun8i_crypto_register1(struct sun8i_crypto_softc *sc, uint32_t alg)
2112 struct sun8i_crypto_softc *sc = cookie;
2526 sun8i_crypto_callback(struct sun8i_crypto_softc *sc,