Lines Matching refs:cifsFile
377 struct cifsFileInfo *cifsFile; in _initiate_cifs_search() local
388 cifsFile = kzalloc(sizeof(struct cifsFileInfo), GFP_KERNEL); in _initiate_cifs_search()
389 if (cifsFile == NULL) { in _initiate_cifs_search()
393 spin_lock_init(&cifsFile->file_info_lock); in _initiate_cifs_search()
394 file->private_data = cifsFile; in _initiate_cifs_search()
395 cifsFile->tlink = cifs_get_tlink(tlink); in _initiate_cifs_search()
398 cifsFile = file->private_data; in _initiate_cifs_search()
399 tcon = tlink_tcon(cifsFile->tlink); in _initiate_cifs_search()
409 cifsFile->invalidHandle = true; in _initiate_cifs_search()
410 cifsFile->srch_inf.endOfSearch = false; in _initiate_cifs_search()
419 cifsFile->srch_inf.info_level = SMB_FIND_FILE_UNIX; in _initiate_cifs_search()
421 cifsFile->srch_inf.info_level = SMB_FIND_FILE_POSIX_INFO; in _initiate_cifs_search()
424 cifsFile->srch_inf.info_level = SMB_FIND_FILE_INFO_STANDARD; in _initiate_cifs_search()
426 cifsFile->srch_inf.info_level = SMB_FIND_FILE_ID_FULL_DIR_INFO; in _initiate_cifs_search()
428 cifsFile->srch_inf.info_level = SMB_FIND_FILE_DIRECTORY_INFO; in _initiate_cifs_search()
436 &cifsFile->fid, search_flags, in _initiate_cifs_search()
437 &cifsFile->srch_inf); in _initiate_cifs_search()
440 cifsFile->invalidHandle = false; in _initiate_cifs_search()
1064 struct cifsFileInfo *cifsFile; in cifs_readdir() local
1089 cifsFile = file->private_data; in cifs_readdir()
1090 tcon = tlink_tcon(cifsFile->tlink); in cifs_readdir()
1149 cifsFile = file->private_data; in cifs_readdir()
1150 if (cifsFile->srch_inf.endOfSearch) { in cifs_readdir()
1151 if (cifsFile->srch_inf.emptyDir) { in cifs_readdir()
1161 tcon = tlink_tcon(cifsFile->tlink); in cifs_readdir()
1180 num_to_fill, cifsFile->srch_inf.ntwrk_buf_start); in cifs_readdir()
1182 cifsFile->srch_inf.ntwrk_buf_start); in cifs_readdir()
1183 end_of_smb = cifsFile->srch_inf.ntwrk_buf_start + max_len; in cifs_readdir()
1219 cifsFile->srch_inf.index_of_last_entry) { in cifs_readdir()
1222 cifs_save_resume_key(current_entry, cifsFile); in cifs_readdir()
1227 cifsFile->srch_inf.info_level); in cifs_readdir()