Lines Matching refs:devs
26 struct request_queue *devs[]; member
37 struct request_queue **devs) in fscrypt_get_devices() argument
40 devs[0] = bdev_get_queue(sb->s_bdev); in fscrypt_get_devices()
42 sb->s_cop->get_devices(sb, devs); in fscrypt_get_devices()
73 struct request_queue **devs; in fscrypt_select_encryption_impl() local
109 devs = kmalloc_array(num_devs, sizeof(*devs), GFP_KERNEL); in fscrypt_select_encryption_impl()
110 if (!devs) in fscrypt_select_encryption_impl()
112 fscrypt_get_devices(sb, num_devs, devs); in fscrypt_select_encryption_impl()
115 if (!blk_crypto_config_supported(devs[i], &crypto_cfg)) in fscrypt_select_encryption_impl()
121 kfree(devs); in fscrypt_select_encryption_impl()
139 blk_key = kzalloc(struct_size(blk_key, devs, num_devs), GFP_KERNEL); in fscrypt_prepare_inline_crypt_key()
144 fscrypt_get_devices(sb, num_devs, blk_key->devs); in fscrypt_prepare_inline_crypt_key()
161 if (!blk_get_queue(blk_key->devs[i])) { in fscrypt_prepare_inline_crypt_key()
169 blk_key->devs[i]); in fscrypt_prepare_inline_crypt_key()
187 blk_put_queue(blk_key->devs[i]); in fscrypt_prepare_inline_crypt_key()
199 blk_crypto_evict_key(blk_key->devs[i], &blk_key->base); in fscrypt_destroy_inline_crypt_key()
200 blk_put_queue(blk_key->devs[i]); in fscrypt_destroy_inline_crypt_key()