Lines Matching refs:num_devs
27 int num_devs; member
38 static void fscrypt_get_devices(struct super_block *sb, int num_devs, in fscrypt_get_devices() argument
41 if (num_devs == 1) in fscrypt_get_devices()
75 int num_devs; in fscrypt_select_encryption_impl() local
112 num_devs = fscrypt_get_num_devices(sb); in fscrypt_select_encryption_impl()
113 devs = kmalloc_array(num_devs, sizeof(*devs), GFP_KERNEL); in fscrypt_select_encryption_impl()
116 fscrypt_get_devices(sb, num_devs, devs); in fscrypt_select_encryption_impl()
118 for (i = 0; i < num_devs; i++) { in fscrypt_select_encryption_impl()
139 int num_devs = fscrypt_get_num_devices(sb); in fscrypt_prepare_inline_crypt_key() local
145 blk_key = kzalloc(struct_size(blk_key, devs, num_devs), GFP_KERNEL); in fscrypt_prepare_inline_crypt_key()
149 blk_key->num_devs = num_devs; in fscrypt_prepare_inline_crypt_key()
150 fscrypt_get_devices(sb, num_devs, blk_key->devs); in fscrypt_prepare_inline_crypt_key()
170 for (i = 0; i < num_devs; i++) { in fscrypt_prepare_inline_crypt_key()
208 for (i = 0; i < blk_key->num_devs; i++) { in fscrypt_destroy_inline_crypt_key()