Lines Matching refs:devs
28 struct request_queue *devs[]; member
39 struct request_queue **devs) in fscrypt_get_devices() argument
42 devs[0] = bdev_get_queue(sb->s_bdev); in fscrypt_get_devices()
44 sb->s_cop->get_devices(sb, devs); in fscrypt_get_devices()
76 struct request_queue **devs; in fscrypt_select_encryption_impl() local
113 devs = kmalloc_array(num_devs, sizeof(*devs), GFP_KERNEL); in fscrypt_select_encryption_impl()
114 if (!devs) in fscrypt_select_encryption_impl()
116 fscrypt_get_devices(sb, num_devs, devs); in fscrypt_select_encryption_impl()
119 if (!blk_crypto_config_supported(devs[i], &crypto_cfg)) in fscrypt_select_encryption_impl()
125 kfree(devs); in fscrypt_select_encryption_impl()
145 blk_key = kzalloc(struct_size(blk_key, devs, num_devs), GFP_KERNEL); in fscrypt_prepare_inline_crypt_key()
150 fscrypt_get_devices(sb, num_devs, blk_key->devs); in fscrypt_prepare_inline_crypt_key()
171 if (!blk_get_queue(blk_key->devs[i])) { in fscrypt_prepare_inline_crypt_key()
179 blk_key->devs[i]); in fscrypt_prepare_inline_crypt_key()
197 blk_put_queue(blk_key->devs[i]); in fscrypt_prepare_inline_crypt_key()
209 blk_crypto_evict_key(blk_key->devs[i], &blk_key->base); in fscrypt_destroy_inline_crypt_key()
210 blk_put_queue(blk_key->devs[i]); in fscrypt_destroy_inline_crypt_key()