Lines Matching refs:cfile

722 	struct cifsFileInfo *cfile = file->private_data;  in find_cifs_entry()  local
730 if ((cfile == NULL) || (current_entry == NULL) || (num_to_ret == NULL)) in find_cifs_entry()
734 first_entry_in_buffer = cfile->srch_inf.index_of_last_entry - in find_cifs_entry()
735 cfile->srch_inf.entries_in_buffer; in find_cifs_entry()
746 if (((index_to_find < cfile->srch_inf.index_of_last_entry) && in find_cifs_entry()
750 spin_lock(&cfile->file_info_lock); in find_cifs_entry()
751 if (server->ops->dir_needs_close(cfile)) { in find_cifs_entry()
752 cfile->invalidHandle = true; in find_cifs_entry()
753 spin_unlock(&cfile->file_info_lock); in find_cifs_entry()
755 server->ops->close_dir(xid, tcon, &cfile->fid); in find_cifs_entry()
757 spin_unlock(&cfile->file_info_lock); in find_cifs_entry()
758 if (cfile->srch_inf.ntwrk_buf_start) { in find_cifs_entry()
760 if (cfile->srch_inf.smallBuf) in find_cifs_entry()
761 cifs_small_buf_release(cfile->srch_inf. in find_cifs_entry()
764 cifs_buf_release(cfile->srch_inf. in find_cifs_entry()
766 cfile->srch_inf.ntwrk_buf_start = NULL; in find_cifs_entry()
775 if (cfile->srch_inf.last_entry) in find_cifs_entry()
776 cifs_save_resume_key(cfile->srch_inf.last_entry, cfile); in find_cifs_entry()
783 while ((index_to_find >= cfile->srch_inf.index_of_last_entry) && in find_cifs_entry()
784 (rc == 0) && !cfile->srch_inf.endOfSearch) { in find_cifs_entry()
786 rc = server->ops->query_dir_next(xid, tcon, &cfile->fid, in find_cifs_entry()
788 &cfile->srch_inf); in find_cifs_entry()
790 if (cfile->srch_inf.last_entry) in find_cifs_entry()
791 cifs_save_resume_key(cfile->srch_inf.last_entry, cfile); in find_cifs_entry()
795 if (index_to_find < cfile->srch_inf.index_of_last_entry) { in find_cifs_entry()
802 if (cfile->srch_inf.ntwrk_buf_start == NULL) { in find_cifs_entry()
807 end_of_smb = cfile->srch_inf.ntwrk_buf_start + in find_cifs_entry()
809 cfile->srch_inf.ntwrk_buf_start); in find_cifs_entry()
811 cur_ent = cfile->srch_inf.srch_entries_start; in find_cifs_entry()
812 first_entry_in_buffer = cfile->srch_inf.index_of_last_entry in find_cifs_entry()
813 - cfile->srch_inf.entries_in_buffer; in find_cifs_entry()
820 cfile->srch_inf.info_level); in find_cifs_entry()
834 if (pos_in_buf >= cfile->srch_inf.entries_in_buffer) { in find_cifs_entry()
838 *num_to_ret = cfile->srch_inf.entries_in_buffer - pos_in_buf; in find_cifs_entry()