Home
last modified time | relevance | path

Searched refs:sess_data (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/fs/smb/client/
H A Dsess.c1327 struct sess_data { struct
1332 void (*func)(struct sess_data *); argument
1348 sess_alloc_buffer(struct sess_data *sess_data, int wct) in sess_alloc_buffer() argument
1351 struct cifs_ses *ses = sess_data->ses; in sess_alloc_buffer()
1360 sess_data->iov[0].iov_base = (char *)smb_buf; in sess_alloc_buffer()
1361 sess_data->iov[0].iov_len = be32_to_cpu(smb_buf->smb_buf_length) + 4; in sess_alloc_buffer()
1366 sess_data->buf0_type = CIFS_SMALL_BUFFER; in sess_alloc_buffer()
1369 sess_data->iov[2].iov_base = kmalloc(2000, GFP_KERNEL); in sess_alloc_buffer()
1370 if (!sess_data->iov[2].iov_base) { in sess_alloc_buffer()
1379 sess_data->iov[0].iov_base = NULL; in sess_alloc_buffer()
[all …]
H A Dsmb2pdu.c1461 SMB2_sess_alloc_buffer(struct SMB2_sess_data *sess_data) in SMB2_sess_alloc_buffer() argument
1464 struct cifs_ses *ses = sess_data->ses; in SMB2_sess_alloc_buffer()
1465 struct TCP_Server_Info *server = sess_data->server; in SMB2_sess_alloc_buffer()
1493 req->PreviousSessionId = cpu_to_le64(sess_data->previous_session); in SMB2_sess_alloc_buffer()
1496 sess_data->previous_session); in SMB2_sess_alloc_buffer()
1523 sess_data->iov[0].iov_base = (char *)req; in SMB2_sess_alloc_buffer()
1525 sess_data->iov[0].iov_len = total_len - 1; in SMB2_sess_alloc_buffer()
1530 sess_data->buf0_type = CIFS_SMALL_BUFFER; in SMB2_sess_alloc_buffer()
1536 SMB2_sess_free_buffer(struct SMB2_sess_data *sess_data) in SMB2_sess_free_buffer() argument
1538 struct kvec *iov = sess_data->iov; in SMB2_sess_free_buffer()
[all …]
/openbmc/linux/drivers/platform/chrome/wilco_ec/
H A Dtelemetry.c241 struct telem_session_data *sess_data; in telem_open() local
250 sess_data = kzalloc(sizeof(*sess_data), GFP_KERNEL); in telem_open()
251 if (!sess_data) { in telem_open()
255 sess_data->dev_data = dev_data; in telem_open()
256 sess_data->has_msg = false; in telem_open()
259 filp->private_data = sess_data; in telem_open()
267 struct telem_session_data *sess_data = filp->private_data; in telem_write() local
271 if (count > sizeof(sess_data->request)) in telem_write()
273 memset(&sess_data->request, 0, sizeof(sess_data->request)); in telem_write()
274 if (copy_from_user(&sess_data->request, buf, count)) in telem_write()
[all …]