Lines Matching refs:ret_buf
73 struct cifs_ses *ret_buf; in sesInfoAlloc() local
75 ret_buf = kzalloc_obj(struct cifs_ses); in sesInfoAlloc()
76 if (ret_buf) { in sesInfoAlloc()
78 spin_lock_init(&ret_buf->ses_lock); in sesInfoAlloc()
79 ret_buf->ses_status = SES_NEW; 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 mutex_init(&ret_buf->session_mutex); in sesInfoAlloc()
84 spin_lock_init(&ret_buf->iface_lock); in sesInfoAlloc()
85 INIT_LIST_HEAD(&ret_buf->iface_list); in sesInfoAlloc()
86 spin_lock_init(&ret_buf->chan_lock); in sesInfoAlloc()
88 return ret_buf; in sesInfoAlloc()
123 struct cifs_tcon *ret_buf; in tcon_info_alloc() local
126 ret_buf = kzalloc_obj(*ret_buf); in tcon_info_alloc()
127 if (!ret_buf) in tcon_info_alloc()
131 ret_buf->cfids = init_cached_dirs(); in tcon_info_alloc()
132 if (!ret_buf->cfids) { in tcon_info_alloc()
133 kfree(ret_buf); in tcon_info_alloc()
140 ret_buf->status = TID_NEW; in tcon_info_alloc()
141 ret_buf->debug_id = atomic_inc_return(&tcon_debug_id); in tcon_info_alloc()
142 ret_buf->tc_count = 1; in tcon_info_alloc()
143 spin_lock_init(&ret_buf->tc_lock); in tcon_info_alloc()
144 INIT_LIST_HEAD(&ret_buf->openFileList); in tcon_info_alloc()
145 INIT_LIST_HEAD(&ret_buf->tcon_list); in tcon_info_alloc()
146 INIT_LIST_HEAD(&ret_buf->cifs_sb_list); in tcon_info_alloc()
147 spin_lock_init(&ret_buf->open_file_lock); in tcon_info_alloc()
148 spin_lock_init(&ret_buf->stat_lock); in tcon_info_alloc()
149 spin_lock_init(&ret_buf->sb_list_lock); in tcon_info_alloc()
150 atomic_set(&ret_buf->num_local_opens, 0); in tcon_info_alloc()
151 atomic_set(&ret_buf->num_remote_opens, 0); in tcon_info_alloc()
152 ret_buf->stats_from_time = ktime_get_real_seconds(); in tcon_info_alloc()
154 mutex_init(&ret_buf->fscache_lock); in tcon_info_alloc()
156 trace_smb3_tcon_ref(ret_buf->debug_id, ret_buf->tc_count, trace); in tcon_info_alloc()
158 INIT_LIST_HEAD(&ret_buf->dfs_ses_list); in tcon_info_alloc()
160 INIT_LIST_HEAD(&ret_buf->pending_opens); in tcon_info_alloc()
161 INIT_DELAYED_WORK(&ret_buf->query_interfaces, in tcon_info_alloc()
164 INIT_DELAYED_WORK(&ret_buf->dfs_cache_work, dfs_cache_refresh); in tcon_info_alloc()
167 return ret_buf; in tcon_info_alloc()
189 void *ret_buf = NULL; in cifs_buf_get() local
202 ret_buf = mempool_alloc(cifs_req_poolp, GFP_NOFS); in cifs_buf_get()
206 memset(ret_buf, 0, buf_size + 3); in cifs_buf_get()
212 return ret_buf; in cifs_buf_get()
231 void *ret_buf = NULL; in cifs_small_buf_get() local
237 ret_buf = mempool_alloc(cifs_sm_req_poolp, GFP_NOFS); in cifs_small_buf_get()
244 return ret_buf; in cifs_small_buf_get()