Lines Matching refs:daccess
512 prev_fp->saccess, curr_fp->daccess); in smb_shared_mode_error()
540 curr_fp->daccess & FILE_DELETE_LE) { in ksmbd_smb_check_shared_mode()
556 curr_fp->daccess & (FILE_EXECUTE_LE | FILE_READ_DATA_LE)) { in ksmbd_smb_check_shared_mode()
565 curr_fp->daccess & (FILE_WRITE_DATA_LE | FILE_APPEND_DATA_LE)) { in ksmbd_smb_check_shared_mode()
573 if (prev_fp->daccess & (FILE_EXECUTE_LE | FILE_READ_DATA_LE) && in ksmbd_smb_check_shared_mode()
582 if (prev_fp->daccess & (FILE_WRITE_DATA_LE | FILE_APPEND_DATA_LE) && in ksmbd_smb_check_shared_mode()
591 if (prev_fp->daccess & FILE_DELETE_LE && in ksmbd_smb_check_shared_mode()
665 __le32 smb_map_generic_desired_access(__le32 daccess) in smb_map_generic_desired_access() argument
667 if (daccess & FILE_GENERIC_READ_LE) { in smb_map_generic_desired_access()
668 daccess |= cpu_to_le32(GENERIC_READ_FLAGS); in smb_map_generic_desired_access()
669 daccess &= ~FILE_GENERIC_READ_LE; in smb_map_generic_desired_access()
672 if (daccess & FILE_GENERIC_WRITE_LE) { in smb_map_generic_desired_access()
673 daccess |= cpu_to_le32(GENERIC_WRITE_FLAGS); in smb_map_generic_desired_access()
674 daccess &= ~FILE_GENERIC_WRITE_LE; in smb_map_generic_desired_access()
677 if (daccess & FILE_GENERIC_EXECUTE_LE) { in smb_map_generic_desired_access()
678 daccess |= cpu_to_le32(GENERIC_EXECUTE_FLAGS); in smb_map_generic_desired_access()
679 daccess &= ~FILE_GENERIC_EXECUTE_LE; in smb_map_generic_desired_access()
682 if (daccess & FILE_GENERIC_ALL_LE) { in smb_map_generic_desired_access()
683 daccess |= cpu_to_le32(GENERIC_ALL_FLAGS); in smb_map_generic_desired_access()
684 daccess &= ~FILE_GENERIC_ALL_LE; in smb_map_generic_desired_access()
687 return daccess; in smb_map_generic_desired_access()