Lines Matching refs:num_devs
25 int num_devs; member
36 static void fscrypt_get_devices(struct super_block *sb, int num_devs, in fscrypt_get_devices() argument
39 if (num_devs == 1) in fscrypt_get_devices()
72 int num_devs; in fscrypt_select_encryption_impl() local
108 num_devs = fscrypt_get_num_devices(sb); in fscrypt_select_encryption_impl()
109 devs = kmalloc_array(num_devs, sizeof(*devs), GFP_KERNEL); in fscrypt_select_encryption_impl()
112 fscrypt_get_devices(sb, num_devs, devs); in fscrypt_select_encryption_impl()
114 for (i = 0; i < num_devs; i++) { in fscrypt_select_encryption_impl()
133 int num_devs = fscrypt_get_num_devices(sb); in fscrypt_prepare_inline_crypt_key() local
139 blk_key = kzalloc(struct_size(blk_key, devs, num_devs), GFP_KERNEL); in fscrypt_prepare_inline_crypt_key()
143 blk_key->num_devs = num_devs; in fscrypt_prepare_inline_crypt_key()
144 fscrypt_get_devices(sb, num_devs, blk_key->devs); in fscrypt_prepare_inline_crypt_key()
160 for (i = 0; i < num_devs; i++) { in fscrypt_prepare_inline_crypt_key()
198 for (i = 0; i < blk_key->num_devs; i++) { in fscrypt_destroy_inline_crypt_key()