safe.c (895c98cc294f2a87ae0af3cb404264443b17d305) | safe.c (76681661be2859622872c3a8a1bd68260403ddd0) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 2003 Sam Leffler, Errno Consulting 5 * Copyright (c) 2003 Global Technology Associates, Inc. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 371 unchanged lines hidden (view full) --- 380 if (sc->sc_devinfo & SAFE_DEVINFO_RNG) { 381 sc->sc_flags |= SAFE_FLAGS_RNG; 382 printf(" rng"); 383 } 384 if (sc->sc_devinfo & SAFE_DEVINFO_PKEY) { 385#if 0 386 printf(" key"); 387 sc->sc_flags |= SAFE_FLAGS_KEY; | 1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 2003 Sam Leffler, Errno Consulting 5 * Copyright (c) 2003 Global Technology Associates, Inc. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 371 unchanged lines hidden (view full) --- 380 if (sc->sc_devinfo & SAFE_DEVINFO_RNG) { 381 sc->sc_flags |= SAFE_FLAGS_RNG; 382 printf(" rng"); 383 } 384 if (sc->sc_devinfo & SAFE_DEVINFO_PKEY) { 385#if 0 386 printf(" key"); 387 sc->sc_flags |= SAFE_FLAGS_KEY; |
388 crypto_kregister(sc->sc_cid, CRK_MOD_EXP, 0); 389 crypto_kregister(sc->sc_cid, CRK_MOD_EXP_CRT, 0); | |
390#endif 391 } 392 if (sc->sc_devinfo & SAFE_DEVINFO_DES) { 393 printf(" des/3des"); 394 } 395 if (sc->sc_devinfo & SAFE_DEVINFO_AES) { 396 printf(" aes"); 397 } --- 181 unchanged lines hidden (view full) --- 579 safestats.st_dmaerr++; 580 safe_totalreset(sc); 581#if 0 582 safe_feed(sc); 583#endif 584 } 585 586 if (sc->sc_needwakeup) { /* XXX check high watermark */ | 388#endif 389 } 390 if (sc->sc_devinfo & SAFE_DEVINFO_DES) { 391 printf(" des/3des"); 392 } 393 if (sc->sc_devinfo & SAFE_DEVINFO_AES) { 394 printf(" aes"); 395 } --- 181 unchanged lines hidden (view full) --- 577 safestats.st_dmaerr++; 578 safe_totalreset(sc); 579#if 0 580 safe_feed(sc); 581#endif 582 } 583 584 if (sc->sc_needwakeup) { /* XXX check high watermark */ |
587 int wakeup = sc->sc_needwakeup & (CRYPTO_SYMQ|CRYPTO_ASYMQ); | 585 int wakeup = sc->sc_needwakeup & CRYPTO_SYMQ; |
588 DPRINTF(("%s: wakeup crypto %x\n", __func__, 589 sc->sc_needwakeup)); 590 sc->sc_needwakeup &= ~wakeup; 591 crypto_unblock(sc->sc_cid, wakeup); 592 } 593} 594 595/* --- 1386 unchanged lines hidden --- | 586 DPRINTF(("%s: wakeup crypto %x\n", __func__, 587 sc->sc_needwakeup)); 588 sc->sc_needwakeup &= ~wakeup; 589 crypto_unblock(sc->sc_cid, wakeup); 590 } 591} 592 593/* --- 1386 unchanged lines hidden --- |