Lines Matching refs:ret_buf
76 struct cifs_ses *ret_buf; in sesInfoAlloc() local
78 ret_buf = kzalloc(sizeof(struct cifs_ses), GFP_KERNEL); in sesInfoAlloc()
79 if (ret_buf) { in sesInfoAlloc()
81 ret_buf->status = CifsNew; in sesInfoAlloc()
82 ++ret_buf->ses_count; in sesInfoAlloc()
83 INIT_LIST_HEAD(&ret_buf->smb_ses_list); in sesInfoAlloc()
84 INIT_LIST_HEAD(&ret_buf->tcon_list); in sesInfoAlloc()
85 mutex_init(&ret_buf->session_mutex); in sesInfoAlloc()
87 return ret_buf; in sesInfoAlloc()
115 struct cifs_tcon *ret_buf; in tconInfoAlloc() local
116 ret_buf = kzalloc(sizeof(struct cifs_tcon), GFP_KERNEL); in tconInfoAlloc()
117 if (ret_buf) { in tconInfoAlloc()
119 ret_buf->tidStatus = CifsNew; in tconInfoAlloc()
120 ++ret_buf->tc_count; in tconInfoAlloc()
121 INIT_LIST_HEAD(&ret_buf->openFileList); in tconInfoAlloc()
122 INIT_LIST_HEAD(&ret_buf->tcon_list); in tconInfoAlloc()
124 spin_lock_init(&ret_buf->stat_lock); in tconInfoAlloc()
127 return ret_buf; in tconInfoAlloc()
149 struct smb_hdr *ret_buf = NULL; in cifs_buf_get() local
165 ret_buf = mempool_alloc(cifs_req_poolp, GFP_NOFS); in cifs_buf_get()
169 if (ret_buf) { in cifs_buf_get()
170 memset(ret_buf, 0, buf_size + 3); in cifs_buf_get()
177 return ret_buf; in cifs_buf_get()
196 struct smb_hdr *ret_buf = NULL; in cifs_small_buf_get() local
202 ret_buf = mempool_alloc(cifs_sm_req_poolp, GFP_NOFS); in cifs_small_buf_get()
203 if (ret_buf) { in cifs_small_buf_get()
212 return ret_buf; in cifs_small_buf_get()