Home
last modified time | relevance | path

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

/linux/fs/smb/server/
H A Dtransport_tcp.c342 int total_read; in ksmbd_tcp_readv() local
355 for (total_read = 0; to_read; total_read += length, to_read -= length) { in ksmbd_tcp_readv()
359 total_read = -ESHUTDOWN; in ksmbd_tcp_readv()
362 segs = kvec_array_init(iov, iov_orig, nr_segs, total_read); in ksmbd_tcp_readv()
368 total_read = -ESHUTDOWN; in ksmbd_tcp_readv()
371 total_read = -EAGAIN; in ksmbd_tcp_readv()
379 total_read = length; in ksmbd_tcp_readv()
389 total_read = length; in ksmbd_tcp_readv()
393 return total_read; in ksmbd_tcp_readv()
/linux/fs/smb/client/
H A Dtransport.c1121 size_t remaining = rfclen - server->total_read; in cifs_discard_remaining_data()
1131 server->total_read += length; in cifs_discard_remaining_data()
1184 server->total_read += length; in cifs_readv_receive()
1200 rdata->iov[0].iov_len = server->total_read; in cifs_readv_receive()
1214 if (server->total_read < server->vals->read_rsp_size) { in cifs_readv_receive()
1216 __func__, server->total_read, in cifs_readv_receive()
1219 server->total_read, server->vals->read_rsp_size); in cifs_readv_receive()
1224 if (data_offset < server->total_read) { in cifs_readv_receive()
1232 data_offset = server->total_read; in cifs_readv_receive()
1243 __func__, server->total_read, data_offset); in cifs_readv_receive()
[all …]
H A Dmisc.c349 checkSMB(char *buf, unsigned int pdu_len, unsigned int total_read, in checkSMB() argument
356 total_read, rfclen); in checkSMB()
359 if (total_read < 2 + sizeof(struct smb_hdr)) { in checkSMB()
360 if ((total_read >= sizeof(struct smb_hdr) - 1) in checkSMB()
366 } else if ((total_read == sizeof(struct smb_hdr) + 1) && in checkSMB()
387 total_read, smb->WordCount); in checkSMB()
389 } else if (total_read < sizeof(*smb) + 2 * smb->WordCount) { in checkSMB()
393 total_read, 2 + sizeof(struct smb_hdr)); in checkSMB()
401 if (rfclen != total_read) { in checkSMB()
403 rfclen, total_read); in checkSMB()
[all …]
H A Dconnect.c733 int total_read; in cifs_readv_from_socket() local
735 for (total_read = 0; msg_data_left(smb_msg); total_read += length) { in cifs_readv_from_socket()
783 return total_read; in cifs_readv_from_socket()
1167 memcpy(server->bigbuf, buf, server->total_read); in standard_receive3()
1177 server->total_read += length; in standard_receive3()
1179 dump_smb(buf, server->total_read); in standard_receive3()
1199 server->total_read, server); in cifs_handle_standard()
1202 min_t(unsigned int, server->total_read, 48)); in cifs_handle_standard()
1289 server->total_read = 0; in cifs_demultiplex_thread()
1318 server->total_read += length; in cifs_demultiplex_thread()
[all …]
H A Dsmb2ops.c443 if (!server->ops->check_message(buf, buf_len, server->total_read, server)) { in smb2_dump_detail()
4649 server->total_read = buf_data_size + iter_size; in decrypt_raw_data()
4922 server->total_read += rc; in receive_encrypted_read()
4941 server->total_read += rc; in receive_encrypted_read()
5021 memcpy(server->bigbuf, buf, server->total_read); in receive_encrypted_standard()
5030 server->total_read += length; in receive_encrypted_standard()
H A Dcifs_debug.c48 if (!server->ops->check_message(buf, buf_len, server->total_read, server)) { in cifs_dump_detail()
H A Dcifsglob.h769 unsigned int total_read; /* total amount of data read in this pass */ member
/linux/drivers/net/ethernet/cavium/liquidio/
H A Docteon_console.c480 s32 bytes_read, tries, total_read; in check_console() local
490 total_read = 0; in check_console()
500 total_read += bytes_read; in check_console()
518 if (console->print && (total_read == 0) && in check_console()
578 s32 bytes_read, tries, total_read; in octeon_get_uboot_version() local
602 total_read = 0; in octeon_get_uboot_version()
610 console_num, buf + total_read, in octeon_get_uboot_version()
612 total_read); in octeon_get_uboot_version()
616 total_read += bytes_read; in octeon_get_uboot_version()
630 if ((total_read == 0) && (console->leftover[0])) { in octeon_get_uboot_version()
/linux/drivers/infiniband/hw/hfi1/
H A Ddebugfs.c759 int total_read; in __i2c_debugfs_read() local
775 total_read = i2c_read(ppd, target, i2c_addr, offset, buff, count); in __i2c_debugfs_read()
776 if (total_read < 0) { in __i2c_debugfs_read()
777 ret = total_read; in __i2c_debugfs_read()
781 *ppos += total_read; in __i2c_debugfs_read()
783 ret = copy_to_user(buf, buff, total_read); in __i2c_debugfs_read()
789 ret = total_read; in __i2c_debugfs_read()
864 int total_read; in __qsfp_debugfs_read() local
879 total_read = qsfp_read(ppd, target, *ppos, buff, count); in __qsfp_debugfs_read()
880 if (total_read < 0) { in __qsfp_debugfs_read()
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dsock_iter_batch.c868 int err, i, nread, to_read, total_read, iter_fd = -1; in do_test() local
917 total_read = 0; in do_test()
923 total_read += nread; in do_test()
929 } while (total_read < to_read); in do_test()
931 ASSERT_EQ(total_read, to_read, "total_read"); in do_test()
938 total_read = 0; in do_test()
944 total_read += nread; in do_test()
948 } while (total_read <= to_read); in do_test()
958 ASSERT_EQ(total_read, to_read, "total_read"); in do_test()
/linux/kernel/trace/
H A Dring_buffer.c7708 unsigned long total_read = 0; in test_ringbuffer() local
7752 total_read++; in test_ringbuffer()
7759 pr_info(" read events: %ld\n", total_read); in test_ringbuffer()
7761 pr_info(" total events: %ld\n", total_lost + total_read); in test_ringbuffer()
7772 if (RB_WARN_ON(buffer, total_lost + total_read != total_events)) in test_ringbuffer()