Lines Matching +full:hardware +full:- +full:protected
1 /* SPDX-License-Identifier: GPL-2.0 */
10 #include <linux/blk-crypto.h>
15 * struct blk_crypto_ll_ops - functions to control inline encryption hardware
17 * Low-level operations for controlling inline encryption hardware. This
19 * encryption. All functions may sleep, are serialized by profile->lock, and
20 * are never called while profile->dev (if set) is runtime-suspended.
25 * @keyslot_program: Program a key into the inline encryption hardware.
28 * hardware, overwriting any key that the keyslot may already contain.
29 * The keyslot is guaranteed to not be in-use by any I/O.
32 * device is a layered device, or if the device is real hardware that
35 * Must return 0 on success, or -errno on failure.
42 * @keyslot_evict: Evict a key from the inline encryption hardware.
47 * The keyslot is guaranteed to not be in-use by any I/O.
55 * Must return 0 on success, or -errno on failure.
63 * struct blk_crypto_profile - inline encryption profile for a device
66 * the supported crypto algorithms), driver-provided functions to control the
67 * inline encryption hardware (e.g. programming and evicting keys), and optional
68 * device-independent keyslot management data.
75 * @ll_ops: Driver-provided functions to control the inline encryption
76 * hardware, e.g. program and evict keys.
83 * supported DUNs is 0 through (1 << (8 * max_dun_bytes_supported)) - 1.
98 * provides this device, it will be runtime-resumed before any function
124 * Protected by 'lock'.
129 /* Per-keyslot data */