Lines Matching refs:psrch_inf
4432 struct cifs_search_info *psrch_inf, bool msearch) in CIFSFindFirst() argument
4512 pSMB->InformationLevel = cpu_to_le16(psrch_inf->info_level); in CIFSFindFirst()
4541 psrch_inf->unicode = true; in CIFSFindFirst()
4543 psrch_inf->unicode = false; in CIFSFindFirst()
4545 psrch_inf->ntwrk_buf_start = (char *)pSMBr; in CIFSFindFirst()
4546 psrch_inf->smallBuf = false; in CIFSFindFirst()
4547 psrch_inf->srch_entries_start = in CIFSFindFirst()
4554 psrch_inf->endOfSearch = true; in CIFSFindFirst()
4556 psrch_inf->endOfSearch = false; in CIFSFindFirst()
4558 psrch_inf->entries_in_buffer = in CIFSFindFirst()
4560 psrch_inf->index_of_last_entry = 2 /* skip . and .. */ + in CIFSFindFirst()
4561 psrch_inf->entries_in_buffer; in CIFSFindFirst()
4565 psrch_inf->last_entry = NULL; in CIFSFindFirst()
4569 psrch_inf->last_entry = psrch_inf->srch_entries_start + in CIFSFindFirst()
4584 struct cifs_search_info *psrch_inf) in CIFSFindNext() argument
4597 if (psrch_inf->endOfSearch) in CIFSFindNext()
4625 pSMB->InformationLevel = cpu_to_le16(psrch_inf->info_level); in CIFSFindNext()
4626 pSMB->ResumeKey = psrch_inf->resume_key; in CIFSFindNext()
4629 name_len = psrch_inf->resume_name_len; in CIFSFindNext()
4632 memcpy(pSMB->ResumeFileName, psrch_inf->presume_name, name_len); in CIFSFindNext()
4652 psrch_inf->endOfSearch = true; in CIFSFindNext()
4665 psrch_inf->unicode = true; in CIFSFindNext()
4667 psrch_inf->unicode = false; in CIFSFindNext()
4673 if (psrch_inf->smallBuf) in CIFSFindNext()
4675 psrch_inf->ntwrk_buf_start); in CIFSFindNext()
4677 cifs_buf_release(psrch_inf->ntwrk_buf_start); in CIFSFindNext()
4678 psrch_inf->srch_entries_start = response_data; in CIFSFindNext()
4679 psrch_inf->ntwrk_buf_start = (char *)pSMB; in CIFSFindNext()
4680 psrch_inf->smallBuf = false; in CIFSFindNext()
4682 psrch_inf->endOfSearch = true; in CIFSFindNext()
4684 psrch_inf->endOfSearch = false; in CIFSFindNext()
4685 psrch_inf->entries_in_buffer = in CIFSFindNext()
4687 psrch_inf->index_of_last_entry += in CIFSFindNext()
4688 psrch_inf->entries_in_buffer; in CIFSFindNext()
4692 psrch_inf->last_entry = NULL; in CIFSFindNext()
4695 psrch_inf->last_entry = in CIFSFindNext()
4696 psrch_inf->srch_entries_start + lnoff; in CIFSFindNext()