Home
last modified time | relevance | path

Searched refs:total_read (Results 1 – 9 of 9) sorted by relevance

/fs/smb/server/
Dtransport_tcp.c309 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/smb/client/
Dtransport.c1662 server->total_read; in cifs_discard_remaining_data()
1672 server->total_read += length; in cifs_discard_remaining_data()
1725 server->total_read += length; in cifs_readv_receive()
1744 server->total_read - HEADER_PREAMBLE_SIZE(server); in cifs_readv_receive()
1760 if (server->total_read < server->vals->read_rsp_size) { in cifs_readv_receive()
1762 __func__, server->total_read, in cifs_readv_receive()
1770 if (data_offset < server->total_read) { in cifs_readv_receive()
1778 data_offset = server->total_read; in cifs_readv_receive()
1788 __func__, server->total_read, data_offset); in cifs_readv_receive()
1790 len = data_offset - server->total_read; in cifs_readv_receive()
[all …]
Dmisc.c329 checkSMB(char *buf, unsigned int total_read, struct TCP_Server_Info *server) in checkSMB() argument
335 total_read, rfclen); in checkSMB()
338 if (total_read < 2 + sizeof(struct smb_hdr)) { in checkSMB()
339 if ((total_read >= sizeof(struct smb_hdr) - 1) in checkSMB()
345 } else if ((total_read == sizeof(struct smb_hdr) + 1) && in checkSMB()
366 } else if (total_read < sizeof(*smb) + 2 * smb->WordCount) { in checkSMB()
377 if (4 + rfclen != total_read) { in checkSMB()
434 size_t len = srv->total_read - sizeof(pSMBr->hdr.smb_buf_length); in is_valid_oplock_break()
Dconnect.c705 int total_read; in cifs_readv_from_socket() local
707 for (total_read = 0; msg_data_left(smb_msg); total_read += length) { in cifs_readv_from_socket()
755 return total_read; in cifs_readv_from_socket()
1071 memcpy(server->bigbuf, buf, server->total_read); in standard_receive3()
1081 server->total_read += length; in standard_receive3()
1083 dump_smb(buf, server->total_read); in standard_receive3()
1102 rc = server->ops->check_message(buf, server->total_read, server); in cifs_handle_standard()
1105 min_t(unsigned int, server->total_read, 48)); in cifs_handle_standard()
1193 server->total_read = length; in cifs_demultiplex_thread()
1195 server->total_read = 0; in cifs_demultiplex_thread()
[all …]
Dfile.c4234 ssize_t rc, total_read = 0; in __cifs_readv() local
4339 total_read = ctx->total_len; in __cifs_readv()
4343 total_read = ctx->total_len; in __cifs_readv()
4348 if (total_read) { in __cifs_readv()
4349 iocb->ki_pos += total_read; in __cifs_readv()
4350 return total_read; in __cifs_readv()
4410 unsigned int total_read; in cifs_read() local
4451 for (total_read = 0, cur_offset = read_data; read_size > total_read; in cifs_read()
4452 total_read += bytes_read, cur_offset += bytes_read) { in cifs_read()
4454 current_read_size = min_t(uint, read_size - total_read, in cifs_read()
[all …]
Dsmb2ops.c407 if (!server->ops->check_message(buf, server->total_read, server)) { in smb2_dump_detail()
4448 server->total_read = buf_data_size + iter_size; in decrypt_raw_data()
4723 server->total_read += rc; in receive_encrypted_read()
4754 server->total_read += rc; in receive_encrypted_read()
4831 memcpy(server->bigbuf, buf, server->total_read); in receive_encrypted_standard()
4840 server->total_read += length; in receive_encrypted_standard()
Dcifs_debug.c46 if (!server->ops->check_message(buf, server->total_read, server)) { in cifs_dump_detail()
Dcifsglob.h761 unsigned int total_read; /* total amount of data read in this pass */ member
/fs/incfs/
Dvfs.c566 ssize_t total_read = 0; in read_folio() local
594 while (offset + total_read < size) { in read_folio()
596 size - offset - total_read, in read_folio()
600 range(page_start + total_read, bytes_to_read), in read_folio()
605 total_read += result; in read_folio()
610 if (total_read == PAGE_SIZE) in read_folio()
616 total_read = 0; in read_folio()
619 if (total_read < PAGE_SIZE) in read_folio()
620 zero_user(page, total_read, PAGE_SIZE - total_read); in read_folio()