Home
last modified time | relevance | path

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

/Linux-v5.15/fs/ksmbd/
Dtransport_tcp.c293 int total_read; in ksmbd_tcp_readv() local
306 for (total_read = 0; to_read; total_read += length, to_read -= length) { in ksmbd_tcp_readv()
310 total_read = -ESHUTDOWN; in ksmbd_tcp_readv()
313 segs = kvec_array_init(iov, iov_orig, nr_segs, total_read); in ksmbd_tcp_readv()
319 total_read = -ESHUTDOWN; in ksmbd_tcp_readv()
322 total_read = -EAGAIN; in ksmbd_tcp_readv()
329 total_read = -EAGAIN; in ksmbd_tcp_readv()
333 return total_read; in ksmbd_tcp_readv()
/Linux-v5.15/drivers/net/ethernet/cavium/liquidio/
Docteon_console.c481 s32 bytes_read, tries, total_read; in check_console() local
491 total_read = 0; in check_console()
501 total_read += bytes_read; in check_console()
519 if (console->print && (total_read == 0) && in check_console()
579 s32 bytes_read, tries, total_read; in octeon_get_uboot_version() local
603 total_read = 0; in octeon_get_uboot_version()
611 console_num, buf + total_read, in octeon_get_uboot_version()
613 total_read); in octeon_get_uboot_version()
617 total_read += bytes_read; in octeon_get_uboot_version()
631 if ((total_read == 0) && (console->leftover[0])) { in octeon_get_uboot_version()
/Linux-v5.15/drivers/infiniband/hw/hfi1/
Ddebugfs.c788 int total_read; in __i2c_debugfs_read() local
804 total_read = i2c_read(ppd, target, i2c_addr, offset, buff, count); in __i2c_debugfs_read()
805 if (total_read < 0) { in __i2c_debugfs_read()
806 ret = total_read; in __i2c_debugfs_read()
810 *ppos += total_read; in __i2c_debugfs_read()
812 ret = copy_to_user(buf, buff, total_read); in __i2c_debugfs_read()
818 ret = total_read; in __i2c_debugfs_read()
893 int total_read; in __qsfp_debugfs_read() local
908 total_read = qsfp_read(ppd, target, *ppos, buff, count); in __qsfp_debugfs_read()
909 if (total_read < 0) { in __qsfp_debugfs_read()
[all …]
/Linux-v5.15/fs/cifs/
Dmisc.c308 checkSMB(char *buf, unsigned int total_read, struct TCP_Server_Info *server) in checkSMB() argument
314 total_read, rfclen); in checkSMB()
317 if (total_read < 2 + sizeof(struct smb_hdr)) { in checkSMB()
318 if ((total_read >= sizeof(struct smb_hdr) - 1) in checkSMB()
324 } else if ((total_read == sizeof(struct smb_hdr) + 1) && in checkSMB()
352 if (4 + rfclen != total_read) { in checkSMB()
409 size_t len = srv->total_read - sizeof(pSMBr->hdr.smb_buf_length); in is_valid_oplock_break()
Dconnect.c520 int total_read; in cifs_readv_from_socket() local
525 for (total_read = 0; msg_data_left(smb_msg); total_read += length) { in cifs_readv_from_socket()
568 return total_read; in cifs_readv_from_socket()
823 memcpy(server->bigbuf, buf, server->total_read); in standard_receive3()
834 server->total_read += length; in standard_receive3()
836 dump_smb(buf, server->total_read); in standard_receive3()
856 length = server->ops->check_message(buf, server->total_read, server); in cifs_handle_standard()
859 min_t(unsigned int, server->total_read, 48)); in cifs_handle_standard()
946 server->total_read = 0; in cifs_demultiplex_thread()
948 server->total_read = length; in cifs_demultiplex_thread()
[all …]
Dfile.c3933 ssize_t rc, total_read = 0; in __cifs_readv() local
4012 total_read = ctx->total_len; in __cifs_readv()
4016 total_read = ctx->total_len; in __cifs_readv()
4021 if (total_read) { in __cifs_readv()
4022 iocb->ki_pos += total_read; in __cifs_readv()
4023 return total_read; in __cifs_readv()
4083 unsigned int total_read; in cifs_read() local
4124 for (total_read = 0, cur_offset = read_data; read_size > total_read; in cifs_read()
4125 total_read += bytes_read, cur_offset += bytes_read) { in cifs_read()
4127 current_read_size = min_t(uint, read_size - total_read, in cifs_read()
[all …]
Dcifssmb.c1336 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 …]
Dsmb2ops.c4717 server->total_read = buf_data_size + page_data_size; in decrypt_raw_data()
4745 server->total_read += length; in read_data_into_pages()
5026 server->total_read += rc; in receive_encrypted_read()
5132 memcpy(server->bigbuf, buf, server->total_read); in receive_encrypted_standard()
5141 server->total_read += length; in receive_encrypted_standard()
Dcifsglob.h653 unsigned int total_read; /* total amount of data read in this pass */ member
/Linux-v5.15/kernel/trace/
Dring_buffer.c5961 unsigned long total_read = 0; in test_ringbuffer() local
6005 total_read++; in test_ringbuffer()
6012 pr_info(" read events: %ld\n", total_read); in test_ringbuffer()
6014 pr_info(" total events: %ld\n", total_lost + total_read); in test_ringbuffer()
6025 if (RB_WARN_ON(buffer, total_lost + total_read != total_events)) in test_ringbuffer()