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 spin_lock_init(&ret_buf->ses_lock); in sesInfoAlloc()
73 ret_buf->ses_status = SES_NEW; in sesInfoAlloc()
74 ++ret_buf->ses_count; in sesInfoAlloc()
75 INIT_LIST_HEAD(&ret_buf->smb_ses_list); in sesInfoAlloc()
76 INIT_LIST_HEAD(&ret_buf->tcon_list); in sesInfoAlloc()
77 mutex_init(&ret_buf->session_mutex); in sesInfoAlloc()
78 spin_lock_init(&ret_buf->iface_lock); in sesInfoAlloc()
79 INIT_LIST_HEAD(&ret_buf->iface_list); in sesInfoAlloc()
80 spin_lock_init(&ret_buf->chan_lock); in sesInfoAlloc()
82 return ret_buf; in sesInfoAlloc()
116 struct cifs_tcon *ret_buf; in tcon_info_alloc() local
119 ret_buf = kzalloc(sizeof(*ret_buf), GFP_KERNEL); in tcon_info_alloc()
120 if (!ret_buf) in tcon_info_alloc()
124 ret_buf->cfids = init_cached_dirs(); in tcon_info_alloc()
125 if (!ret_buf->cfids) { in tcon_info_alloc()
126 kfree(ret_buf); in tcon_info_alloc()
133 ret_buf->status = TID_NEW; in tcon_info_alloc()
134 ret_buf->debug_id = atomic_inc_return(&tcon_debug_id); in tcon_info_alloc()
135 ret_buf->tc_count = 1; 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()
143 ret_buf->stats_from_time = ktime_get_real_seconds(); in tcon_info_alloc()
145 mutex_init(&ret_buf->fscache_lock); in tcon_info_alloc()
147 trace_smb3_tcon_ref(ret_buf->debug_id, ret_buf->tc_count, trace); in tcon_info_alloc()
149 INIT_LIST_HEAD(&ret_buf->dfs_ses_list); in tcon_info_alloc()
152 return ret_buf; in tcon_info_alloc()
174 struct smb_hdr *ret_buf = NULL; in cifs_buf_get() local
187 ret_buf = mempool_alloc(cifs_req_poolp, GFP_NOFS); in cifs_buf_get()
191 memset(ret_buf, 0, buf_size + 3); in cifs_buf_get()
197 return ret_buf; in cifs_buf_get()
216 struct smb_hdr *ret_buf = NULL; in cifs_small_buf_get() local
222 ret_buf = mempool_alloc(cifs_sm_req_poolp, GFP_NOFS); in cifs_small_buf_get()
230 return ret_buf; in cifs_small_buf_get()