Lines Matching refs:ret_buf
74 struct cifsSesInfo *ret_buf; in sesInfoAlloc() local
76 ret_buf = kzalloc(sizeof(struct cifsSesInfo), GFP_KERNEL); in sesInfoAlloc()
77 if (ret_buf) { in sesInfoAlloc()
79 ret_buf->status = CifsNew; in sesInfoAlloc()
80 ++ret_buf->ses_count; in sesInfoAlloc()
81 INIT_LIST_HEAD(&ret_buf->smb_ses_list); in sesInfoAlloc()
82 INIT_LIST_HEAD(&ret_buf->tcon_list); in sesInfoAlloc()
83 init_MUTEX(&ret_buf->sesSem); in sesInfoAlloc()
85 return ret_buf; in sesInfoAlloc()
111 struct cifsTconInfo *ret_buf; in tconInfoAlloc() local
112 ret_buf = kzalloc(sizeof(struct cifsTconInfo), GFP_KERNEL); in tconInfoAlloc()
113 if (ret_buf) { in tconInfoAlloc()
115 ret_buf->tidStatus = CifsNew; in tconInfoAlloc()
116 ++ret_buf->tc_count; in tconInfoAlloc()
117 INIT_LIST_HEAD(&ret_buf->openFileList); in tconInfoAlloc()
118 INIT_LIST_HEAD(&ret_buf->tcon_list); in tconInfoAlloc()
120 spin_lock_init(&ret_buf->stat_lock); in tconInfoAlloc()
123 return ret_buf; in tconInfoAlloc()
145 struct smb_hdr *ret_buf = NULL; in cifs_buf_get() local
151 ret_buf = mempool_alloc(cifs_req_poolp, GFP_NOFS); in cifs_buf_get()
155 if (ret_buf) { in cifs_buf_get()
156 memset(ret_buf, 0, sizeof(struct smb_hdr) + 3); in cifs_buf_get()
163 return ret_buf; in cifs_buf_get()
182 struct smb_hdr *ret_buf = NULL; in cifs_small_buf_get() local
188 ret_buf = mempool_alloc(cifs_sm_req_poolp, GFP_NOFS); in cifs_small_buf_get()
189 if (ret_buf) { in cifs_small_buf_get()
198 return ret_buf; in cifs_small_buf_get()