Lines Matching refs:name_size
1514 const char *name, size_t name_size) in ecryptfs_copy_filename() argument
1518 (*copied_name) = kmalloc((name_size + 1), GFP_KERNEL); in ecryptfs_copy_filename()
1523 memcpy((void *)(*copied_name), (void *)name, name_size); in ecryptfs_copy_filename()
1524 (*copied_name)[(name_size)] = '\0'; /* Only for convenience in ecryptfs_copy_filename()
1528 (*copied_name_size) = name_size; in ecryptfs_copy_filename()
1892 const char *name, size_t name_size) in ecryptfs_encrypt_and_encode_filename() argument
1909 filename->filename_size = name_size; in ecryptfs_encrypt_and_encode_filename()
1970 name, name_size); in ecryptfs_encrypt_and_encode_filename()
1976 static bool is_dot_dotdot(const char *name, size_t name_size) in is_dot_dotdot() argument
1978 if (name_size == 1 && name[0] == '.') in is_dot_dotdot()
1980 else if (name_size == 2 && name[0] == '.' && name[1] == '.') in is_dot_dotdot()
2001 const char *name, size_t name_size) in ecryptfs_decode_and_decrypt_filename() argument
2012 if (is_dot_dotdot(name, name_size)) { in ecryptfs_decode_and_decrypt_filename()
2015 name, name_size); in ecryptfs_decode_and_decrypt_filename()
2019 if (name_size <= ECRYPTFS_FNEK_ENCRYPTED_FILENAME_PREFIX_SIZE || in ecryptfs_decode_and_decrypt_filename()
2027 name_size -= ECRYPTFS_FNEK_ENCRYPTED_FILENAME_PREFIX_SIZE; in ecryptfs_decode_and_decrypt_filename()
2029 name, name_size); in ecryptfs_decode_and_decrypt_filename()
2036 name, name_size); in ecryptfs_decode_and_decrypt_filename()
2052 name, name_size); in ecryptfs_decode_and_decrypt_filename()