• Home
  • Raw
  • Download

Lines Matching refs:ret_buf

69 	struct cifs_ses *ret_buf;  in sesInfoAlloc()  local
71 ret_buf = kzalloc(sizeof(struct cifs_ses), GFP_KERNEL); in sesInfoAlloc()
72 if (ret_buf) { in sesInfoAlloc()
74 spin_lock_init(&ret_buf->ses_lock); in sesInfoAlloc()
75 ret_buf->ses_status = SES_NEW; in sesInfoAlloc()
76 ++ret_buf->ses_count; in sesInfoAlloc()
77 INIT_LIST_HEAD(&ret_buf->smb_ses_list); in sesInfoAlloc()
78 INIT_LIST_HEAD(&ret_buf->tcon_list); in sesInfoAlloc()
79 mutex_init(&ret_buf->session_mutex); in sesInfoAlloc()
80 spin_lock_init(&ret_buf->iface_lock); in sesInfoAlloc()
81 INIT_LIST_HEAD(&ret_buf->iface_list); in sesInfoAlloc()
82 spin_lock_init(&ret_buf->chan_lock); in sesInfoAlloc()
84 return ret_buf; in sesInfoAlloc()
116 struct cifs_tcon *ret_buf; in tconInfoAlloc() local
118 ret_buf = kzalloc(sizeof(*ret_buf), GFP_KERNEL); in tconInfoAlloc()
119 if (!ret_buf) in tconInfoAlloc()
121 ret_buf->cfids = init_cached_dirs(); in tconInfoAlloc()
122 if (!ret_buf->cfids) { in tconInfoAlloc()
123 kfree(ret_buf); in tconInfoAlloc()
128 ret_buf->status = TID_NEW; in tconInfoAlloc()
129 ++ret_buf->tc_count; in tconInfoAlloc()
130 spin_lock_init(&ret_buf->tc_lock); in tconInfoAlloc()
131 INIT_LIST_HEAD(&ret_buf->openFileList); in tconInfoAlloc()
132 INIT_LIST_HEAD(&ret_buf->tcon_list); in tconInfoAlloc()
133 spin_lock_init(&ret_buf->open_file_lock); in tconInfoAlloc()
134 spin_lock_init(&ret_buf->stat_lock); in tconInfoAlloc()
135 atomic_set(&ret_buf->num_local_opens, 0); in tconInfoAlloc()
136 atomic_set(&ret_buf->num_remote_opens, 0); in tconInfoAlloc()
138 return ret_buf; in tconInfoAlloc()
158 struct smb_hdr *ret_buf = NULL; in cifs_buf_get() local
171 ret_buf = mempool_alloc(cifs_req_poolp, GFP_NOFS); in cifs_buf_get()
175 memset(ret_buf, 0, buf_size + 3); in cifs_buf_get()
181 return ret_buf; in cifs_buf_get()
200 struct smb_hdr *ret_buf = NULL; in cifs_small_buf_get() local
206 ret_buf = mempool_alloc(cifs_sm_req_poolp, GFP_NOFS); in cifs_small_buf_get()
214 return ret_buf; in cifs_small_buf_get()