Searched refs:total_read (Results 1 – 7 of 7) sorted by relevance
/fs/ksmbd/ |
D | transport_tcp.c | 309 int total_read; in ksmbd_tcp_readv() local 322 for (total_read = 0; to_read; total_read += length, to_read -= length) { in ksmbd_tcp_readv() 326 total_read = -ESHUTDOWN; in ksmbd_tcp_readv() 329 segs = kvec_array_init(iov, iov_orig, nr_segs, total_read); in ksmbd_tcp_readv() 335 total_read = -ESHUTDOWN; in ksmbd_tcp_readv() 338 total_read = -EAGAIN; in ksmbd_tcp_readv() 346 total_read = length; in ksmbd_tcp_readv() 356 total_read = length; in ksmbd_tcp_readv() 360 return total_read; in ksmbd_tcp_readv()
|
/fs/cifs/ |
D | misc.c | 306 checkSMB(char *buf, unsigned int total_read, struct TCP_Server_Info *server) in checkSMB() argument 312 total_read, rfclen); in checkSMB() 315 if (total_read < 2 + sizeof(struct smb_hdr)) { in checkSMB() 316 if ((total_read >= sizeof(struct smb_hdr) - 1) in checkSMB() 322 } else if ((total_read == sizeof(struct smb_hdr) + 1) && in checkSMB() 343 } else if (total_read < sizeof(*smb) + 2 * smb->WordCount) { in checkSMB() 354 if (4 + rfclen != total_read) { in checkSMB() 411 size_t len = srv->total_read - sizeof(pSMBr->hdr.smb_buf_length); in is_valid_oplock_break()
|
D | connect.c | 570 int total_read; in cifs_readv_from_socket() local 572 for (total_read = 0; msg_data_left(smb_msg); total_read += length) { in cifs_readv_from_socket() 615 return total_read; in cifs_readv_from_socket() 871 memcpy(server->bigbuf, buf, server->total_read); in standard_receive3() 882 server->total_read += length; in standard_receive3() 884 dump_smb(buf, server->total_read); in standard_receive3() 904 length = server->ops->check_message(buf, server->total_read, server); in cifs_handle_standard() 907 min_t(unsigned int, server->total_read, 48)); in cifs_handle_standard() 994 server->total_read = 0; in cifs_demultiplex_thread() 996 server->total_read = length; in cifs_demultiplex_thread() [all …]
|
D | file.c | 3967 ssize_t rc, total_read = 0; in __cifs_readv() local 4055 total_read = ctx->total_len; in __cifs_readv() 4059 total_read = ctx->total_len; in __cifs_readv() 4064 if (total_read) { in __cifs_readv() 4065 iocb->ki_pos += total_read; in __cifs_readv() 4066 return total_read; in __cifs_readv() 4126 unsigned int total_read; in cifs_read() local 4167 for (total_read = 0, cur_offset = read_data; read_size > total_read; in cifs_read() 4168 total_read += bytes_read, cur_offset += bytes_read) { in cifs_read() 4170 current_read_size = min_t(uint, read_size - total_read, in cifs_read() [all …]
|
D | cifssmb.c | 1336 server->total_read; in cifs_discard_remaining_data() 1346 server->total_read += length; in cifs_discard_remaining_data() 1400 server->total_read += length; in cifs_readv_receive() 1419 server->total_read - server->vals->header_preamble_size; in cifs_readv_receive() 1435 if (server->total_read < server->vals->read_rsp_size) { in cifs_readv_receive() 1437 __func__, server->total_read, in cifs_readv_receive() 1445 if (data_offset < server->total_read) { in cifs_readv_receive() 1453 data_offset = server->total_read; in cifs_readv_receive() 1463 __func__, server->total_read, data_offset); in cifs_readv_receive() 1465 len = data_offset - server->total_read; in cifs_readv_receive() [all …]
|
D | smb2ops.c | 4750 server->total_read = buf_data_size + page_data_size; in decrypt_raw_data() 4778 server->total_read += length; in read_data_into_pages() 5059 server->total_read += rc; in receive_encrypted_read() 5165 memcpy(server->bigbuf, buf, server->total_read); in receive_encrypted_standard() 5174 server->total_read += length; in receive_encrypted_standard()
|
D | cifsglob.h | 658 unsigned int total_read; /* total amount of data read in this pass */ member
|