Lines Matching refs:ret_buf
67 struct cifs_ses *ret_buf; in sesInfoAlloc() local
69 ret_buf = kzalloc(sizeof(struct cifs_ses), GFP_KERNEL); in sesInfoAlloc()
70 if (ret_buf) { in sesInfoAlloc()
72 ret_buf->status = CifsNew; in sesInfoAlloc()
73 ++ret_buf->ses_count; in sesInfoAlloc()
74 INIT_LIST_HEAD(&ret_buf->smb_ses_list); in sesInfoAlloc()
75 INIT_LIST_HEAD(&ret_buf->tcon_list); in sesInfoAlloc()
76 mutex_init(&ret_buf->session_mutex); in sesInfoAlloc()
77 spin_lock_init(&ret_buf->iface_lock); in sesInfoAlloc()
78 spin_lock_init(&ret_buf->chan_lock); in sesInfoAlloc()
80 return ret_buf; in sesInfoAlloc()
107 struct cifs_tcon *ret_buf; in tconInfoAlloc() local
109 ret_buf = kzalloc(sizeof(*ret_buf), GFP_KERNEL); in tconInfoAlloc()
110 if (!ret_buf) in tconInfoAlloc()
112 ret_buf->crfid.fid = kzalloc(sizeof(*ret_buf->crfid.fid), GFP_KERNEL); in tconInfoAlloc()
113 if (!ret_buf->crfid.fid) { in tconInfoAlloc()
114 kfree(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()
123 spin_lock_init(&ret_buf->open_file_lock); in tconInfoAlloc()
124 mutex_init(&ret_buf->crfid.fid_mutex); in tconInfoAlloc()
125 spin_lock_init(&ret_buf->stat_lock); in tconInfoAlloc()
126 atomic_set(&ret_buf->num_local_opens, 0); in tconInfoAlloc()
127 atomic_set(&ret_buf->num_remote_opens, 0); in tconInfoAlloc()
129 return ret_buf; in tconInfoAlloc()
149 struct smb_hdr *ret_buf = NULL; in cifs_buf_get() local
162 ret_buf = mempool_alloc(cifs_req_poolp, GFP_NOFS); in cifs_buf_get()
166 memset(ret_buf, 0, buf_size + 3); in cifs_buf_get()
172 return ret_buf; in cifs_buf_get()
191 struct smb_hdr *ret_buf = NULL; in cifs_small_buf_get() local
197 ret_buf = mempool_alloc(cifs_sm_req_poolp, GFP_NOFS); in cifs_small_buf_get()
205 return ret_buf; in cifs_small_buf_get()