Lines Matching defs:ret_buf
73 struct cifsSesInfo *ret_buf;
75 ret_buf = kzalloc(sizeof(struct cifsSesInfo), GFP_KERNEL);
76 if (ret_buf) {
78 ret_buf->status = CifsNew;
79 ++ret_buf->ses_count;
80 INIT_LIST_HEAD(&ret_buf->smb_ses_list);
81 INIT_LIST_HEAD(&ret_buf->tcon_list);
82 mutex_init(&ret_buf->session_mutex);
84 return ret_buf;
110 struct cifsTconInfo *ret_buf;
111 ret_buf = kzalloc(sizeof(struct cifsTconInfo), GFP_KERNEL);
112 if (ret_buf) {
114 ret_buf->tidStatus = CifsNew;
115 ++ret_buf->tc_count;
116 INIT_LIST_HEAD(&ret_buf->openFileList);
117 INIT_LIST_HEAD(&ret_buf->tcon_list);
119 spin_lock_init(&ret_buf->stat_lock);
122 return ret_buf;
144 struct smb_hdr *ret_buf = NULL;
150 ret_buf = mempool_alloc(cifs_req_poolp, GFP_NOFS);
154 if (ret_buf) {
155 memset(ret_buf, 0, sizeof(struct smb_hdr) + 3);
162 return ret_buf;
181 struct smb_hdr *ret_buf = NULL;
187 ret_buf = mempool_alloc(cifs_sm_req_poolp, GFP_NOFS);
188 if (ret_buf) {
190 /* memset(ret_buf, 0, sizeof(struct smb_hdr) + 27);*/
197 return ret_buf;