MCPcopy Create free account
hub / github.com/F-Stack/f-stack / cryptocteon_attach

Function cryptocteon_attach

freebsd/mips/cavium/cryptocteon/cryptocteon.c:81–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81static int
82cryptocteon_attach(device_t dev)
83{
84 struct cryptocteon_softc *sc;
85
86 sc = device_get_softc(dev);
87
88 sc->sc_cid = crypto_get_driverid(dev, sizeof(struct octo_sess),
89 CRYPTOCAP_F_SOFTWARE | CRYPTOCAP_F_SYNC |
90 CRYPTOCAP_F_ACCEL_SOFTWARE);
91 if (sc->sc_cid < 0) {
92 device_printf(dev, "crypto_get_driverid ret %d\n", sc->sc_cid);
93 return (ENXIO);
94 }
95
96 return (0);
97}
98
99static bool
100cryptocteon_auth_supported(const struct crypto_session_params *csp)

Callers

nothing calls this directly

Calls 3

device_get_softcFunction · 0.85
crypto_get_driveridFunction · 0.85
device_printfFunction · 0.85

Tested by

no test coverage detected