Searched refs:sess_data (Results 1 – 3 of 3) sorted by relevance
843 struct sess_data { struct847 void (*func)(struct sess_data *); argument862 sess_alloc_buffer(struct sess_data *sess_data, int wct) in sess_alloc_buffer() argument865 struct cifs_ses *ses = sess_data->ses; in sess_alloc_buffer()874 sess_data->iov[0].iov_base = (char *)smb_buf; in sess_alloc_buffer()875 sess_data->iov[0].iov_len = be32_to_cpu(smb_buf->smb_buf_length) + 4; in sess_alloc_buffer()880 sess_data->buf0_type = CIFS_SMALL_BUFFER; in sess_alloc_buffer()883 sess_data->iov[2].iov_base = kmalloc(2000, GFP_KERNEL); in sess_alloc_buffer()884 if (!sess_data->iov[2].iov_base) { in sess_alloc_buffer()893 sess_data->iov[0].iov_base = NULL; in sess_alloc_buffer()[all …]
1181 SMB2_sess_alloc_buffer(struct SMB2_sess_data *sess_data) in SMB2_sess_alloc_buffer() argument1184 struct cifs_ses *ses = sess_data->ses; in SMB2_sess_alloc_buffer()1195 if (sess_data->ses->binding) { in SMB2_sess_alloc_buffer()1196 req->sync_hdr.SessionId = sess_data->ses->Suid; in SMB2_sess_alloc_buffer()1207 req->PreviousSessionId = sess_data->previous_session; in SMB2_sess_alloc_buffer()1230 sess_data->iov[0].iov_base = (char *)req; in SMB2_sess_alloc_buffer()1232 sess_data->iov[0].iov_len = total_len - 1; in SMB2_sess_alloc_buffer()1237 sess_data->buf0_type = CIFS_SMALL_BUFFER; in SMB2_sess_alloc_buffer()1243 SMB2_sess_free_buffer(struct SMB2_sess_data *sess_data) in SMB2_sess_free_buffer() argument1245 free_rsp_buf(sess_data->buf0_type, sess_data->iov[0].iov_base); in SMB2_sess_free_buffer()[all …]
242 struct telem_session_data *sess_data; in telem_open() local251 sess_data = kzalloc(sizeof(*sess_data), GFP_KERNEL); in telem_open()252 if (!sess_data) { in telem_open()256 sess_data->dev_data = dev_data; in telem_open()257 sess_data->has_msg = false; in telem_open()260 filp->private_data = sess_data; in telem_open()268 struct telem_session_data *sess_data = filp->private_data; in telem_write() local272 if (count > sizeof(sess_data->request)) in telem_write()274 memset(&sess_data->request, 0, sizeof(sess_data->request)); in telem_write()275 if (copy_from_user(&sess_data->request, buf, count)) in telem_write()[all …]