Lines Matching refs:filename
1498 ecryptfs_encrypt_filename(struct ecryptfs_filename *filename, in ecryptfs_encrypt_filename() argument
1503 filename->encrypted_filename = NULL; in ecryptfs_encrypt_filename()
1504 filename->encrypted_filename_size = 0; in ecryptfs_encrypt_filename()
1512 &filename->encrypted_filename_size, in ecryptfs_encrypt_filename()
1514 filename->filename_size); in ecryptfs_encrypt_filename()
1519 filename->encrypted_filename_size = 0; in ecryptfs_encrypt_filename()
1522 filename->encrypted_filename = in ecryptfs_encrypt_filename()
1523 kmalloc(filename->encrypted_filename_size, GFP_KERNEL); in ecryptfs_encrypt_filename()
1524 if (!filename->encrypted_filename) { in ecryptfs_encrypt_filename()
1527 filename->encrypted_filename_size); in ecryptfs_encrypt_filename()
1531 remaining_bytes = filename->encrypted_filename_size; in ecryptfs_encrypt_filename()
1532 rc = ecryptfs_write_tag_70_packet(filename->encrypted_filename, in ecryptfs_encrypt_filename()
1536 filename->filename, in ecryptfs_encrypt_filename()
1537 filename->filename_size); in ecryptfs_encrypt_filename()
1542 kfree(filename->encrypted_filename); in ecryptfs_encrypt_filename()
1543 filename->encrypted_filename = NULL; in ecryptfs_encrypt_filename()
1544 filename->encrypted_filename_size = 0; in ecryptfs_encrypt_filename()
1547 filename->encrypted_filename_size = packet_size; in ecryptfs_encrypt_filename()
1948 struct ecryptfs_filename *filename; in ecryptfs_encrypt_and_encode_filename() local
1950 filename = kzalloc(sizeof(*filename), GFP_KERNEL); in ecryptfs_encrypt_and_encode_filename()
1951 if (!filename) { in ecryptfs_encrypt_and_encode_filename()
1954 sizeof(*filename)); in ecryptfs_encrypt_and_encode_filename()
1958 filename->filename = (char *)name; in ecryptfs_encrypt_and_encode_filename()
1959 filename->filename_size = name_size; in ecryptfs_encrypt_and_encode_filename()
1960 rc = ecryptfs_encrypt_filename(filename, mount_crypt_stat); in ecryptfs_encrypt_and_encode_filename()
1964 kfree(filename); in ecryptfs_encrypt_and_encode_filename()
1969 filename->encrypted_filename, in ecryptfs_encrypt_and_encode_filename()
1970 filename->encrypted_filename_size); in ecryptfs_encrypt_and_encode_filename()
1987 kfree(filename->encrypted_filename); in ecryptfs_encrypt_and_encode_filename()
1988 kfree(filename); in ecryptfs_encrypt_and_encode_filename()
2001 filename->encrypted_filename, in ecryptfs_encrypt_and_encode_filename()
2002 filename->encrypted_filename_size); in ecryptfs_encrypt_and_encode_filename()
2018 kfree(filename->encrypted_filename); in ecryptfs_encrypt_and_encode_filename()
2019 kfree(filename); in ecryptfs_encrypt_and_encode_filename()