Lines Matching refs:kstat

715 static int smb2_get_dos_mode(struct kstat *stat, int attribute)  in smb2_get_dos_mode()
2514 struct kstat stat; in smb2_open()
3426 void *kstat; in smb2_populate_readdir_entry() local
3451 kstat = d_info->wptr; in smb2_populate_readdir_entry()
3453 kstat = ksmbd_vfs_init_kstat(&d_info->wptr, ksmbd_kstat); in smb2_populate_readdir_entry()
3460 ffdinfo = (struct file_full_directory_info *)kstat; in smb2_populate_readdir_entry()
3463 smb2_get_reparse_tag_special_file(ksmbd_kstat->kstat->mode); in smb2_populate_readdir_entry()
3476 fbdinfo = (struct file_both_directory_info *)kstat; in smb2_populate_readdir_entry()
3479 smb2_get_reparse_tag_special_file(ksmbd_kstat->kstat->mode); in smb2_populate_readdir_entry()
3494 fdinfo = (struct file_directory_info *)kstat; in smb2_populate_readdir_entry()
3506 fninfo = (struct file_names_info *)kstat; in smb2_populate_readdir_entry()
3516 dinfo = (struct file_id_full_dir_info *)kstat; in smb2_populate_readdir_entry()
3519 smb2_get_reparse_tag_special_file(ksmbd_kstat->kstat->mode); in smb2_populate_readdir_entry()
3523 dinfo->UniqueId = cpu_to_le64(ksmbd_kstat->kstat->ino); in smb2_populate_readdir_entry()
3534 fibdinfo = (struct file_id_both_directory_info *)kstat; in smb2_populate_readdir_entry()
3537 smb2_get_reparse_tag_special_file(ksmbd_kstat->kstat->mode); in smb2_populate_readdir_entry()
3540 fibdinfo->UniqueId = cpu_to_le64(ksmbd_kstat->kstat->ino); in smb2_populate_readdir_entry()
3555 posix_info = (struct smb2_posix_info *)kstat; in smb2_populate_readdir_entry()
3558 time = ksmbd_UnixTimeToNT(ksmbd_kstat->kstat->ctime); in smb2_populate_readdir_entry()
3560 time = ksmbd_UnixTimeToNT(ksmbd_kstat->kstat->atime); in smb2_populate_readdir_entry()
3562 time = ksmbd_UnixTimeToNT(ksmbd_kstat->kstat->mtime); in smb2_populate_readdir_entry()
3564 posix_info->EndOfFile = cpu_to_le64(ksmbd_kstat->kstat->size); in smb2_populate_readdir_entry()
3565 posix_info->AllocationSize = cpu_to_le64(ksmbd_kstat->kstat->blocks << 9); in smb2_populate_readdir_entry()
3566 posix_info->DeviceId = cpu_to_le32(ksmbd_kstat->kstat->rdev); in smb2_populate_readdir_entry()
3567 posix_info->HardLinks = cpu_to_le32(ksmbd_kstat->kstat->nlink); in smb2_populate_readdir_entry()
3568 posix_info->Mode = cpu_to_le32(ksmbd_kstat->kstat->mode & 0777); in smb2_populate_readdir_entry()
3569 posix_info->Inode = cpu_to_le64(ksmbd_kstat->kstat->ino); in smb2_populate_readdir_entry()
3571 S_ISDIR(ksmbd_kstat->kstat->mode) ? in smb2_populate_readdir_entry()
3580 id_to_sid(from_kuid_munged(&init_user_ns, ksmbd_kstat->kstat->uid), in smb2_populate_readdir_entry()
3582 id_to_sid(from_kgid_munged(&init_user_ns, ksmbd_kstat->kstat->gid), in smb2_populate_readdir_entry()
3633 struct kstat kstat; in process_query_dir_entries() local
3663 ksmbd_kstat.kstat = &kstat; in process_query_dir_entries()
4322 struct kstat stat; in get_file_basic_info()
4350 struct kstat *stat) in get_allocation_size()
4370 struct kstat stat; in get_file_standard_info()
4411 struct kstat stat; in get_file_all_info()
4497 struct kstat stat; in get_file_stream_info()
4593 struct kstat stat; in get_file_internal_info()
4609 struct kstat stat; in get_file_network_open_info()
4680 struct kstat stat; in get_file_compression_info()