Lines Matching refs:ret_buf

70 	struct cifs_ses *ret_buf;  in sesInfoAlloc()  local
72 ret_buf = kzalloc(sizeof(struct cifs_ses), GFP_KERNEL); in sesInfoAlloc()
73 if (ret_buf) { in sesInfoAlloc()
75 spin_lock_init(&ret_buf->ses_lock); in sesInfoAlloc()
76 ret_buf->ses_status = SES_NEW; in sesInfoAlloc()
77 ++ret_buf->ses_count; in sesInfoAlloc()
78 INIT_LIST_HEAD(&ret_buf->smb_ses_list); in sesInfoAlloc()
79 INIT_LIST_HEAD(&ret_buf->tcon_list); in sesInfoAlloc()
80 mutex_init(&ret_buf->session_mutex); in sesInfoAlloc()
81 spin_lock_init(&ret_buf->iface_lock); in sesInfoAlloc()
82 INIT_LIST_HEAD(&ret_buf->iface_list); in sesInfoAlloc()
83 spin_lock_init(&ret_buf->chan_lock); in sesInfoAlloc()
85 return ret_buf; in sesInfoAlloc()
118 struct cifs_tcon *ret_buf; in tcon_info_alloc() local
120 ret_buf = kzalloc(sizeof(*ret_buf), GFP_KERNEL); in tcon_info_alloc()
121 if (!ret_buf) in tcon_info_alloc()
125 ret_buf->cfids = init_cached_dirs(); in tcon_info_alloc()
126 if (!ret_buf->cfids) { in tcon_info_alloc()
127 kfree(ret_buf); in tcon_info_alloc()
134 ret_buf->status = TID_NEW; in tcon_info_alloc()
135 ++ret_buf->tc_count; in tcon_info_alloc()
136 spin_lock_init(&ret_buf->tc_lock); in tcon_info_alloc()
137 INIT_LIST_HEAD(&ret_buf->openFileList); in tcon_info_alloc()
138 INIT_LIST_HEAD(&ret_buf->tcon_list); in tcon_info_alloc()
139 spin_lock_init(&ret_buf->open_file_lock); in tcon_info_alloc()
140 spin_lock_init(&ret_buf->stat_lock); in tcon_info_alloc()
141 atomic_set(&ret_buf->num_local_opens, 0); in tcon_info_alloc()
142 atomic_set(&ret_buf->num_remote_opens, 0); in tcon_info_alloc()
144 INIT_LIST_HEAD(&ret_buf->dfs_ses_list); in tcon_info_alloc()
147 return ret_buf; in tcon_info_alloc()
171 struct smb_hdr *ret_buf = NULL; in cifs_buf_get() local
184 ret_buf = mempool_alloc(cifs_req_poolp, GFP_NOFS); in cifs_buf_get()
188 memset(ret_buf, 0, buf_size + 3); in cifs_buf_get()
194 return ret_buf; in cifs_buf_get()
213 struct smb_hdr *ret_buf = NULL; in cifs_small_buf_get() local
219 ret_buf = mempool_alloc(cifs_sm_req_poolp, GFP_NOFS); in cifs_small_buf_get()
227 return ret_buf; in cifs_small_buf_get()