Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dsock_iter_batch.c14 int err, i, nread, to_read, total_read, iter_fd = -1; in do_test() local
59 total_read = 0; in do_test()
65 total_read += nread; in do_test()
71 } while (total_read < to_read); in do_test()
73 ASSERT_EQ(total_read, to_read, "total_read"); in do_test()
80 total_read = 0; in do_test()
86 total_read += nread; in do_test()
90 } while (total_read <= to_read); in do_test()
100 ASSERT_EQ(total_read, to_read, "total_read"); in do_test()
/linux/fs/smb/server/
H A 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()
/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/net/ethernet/marvell/prestera/
H A Dprestera_counter.c18 u32 total_read; member
368 counter->total_read = 0; in prestera_counter_stats_work()
374 err = prestera_hw_counters_get(counter->sw, counter->total_read, in prestera_counter_stats_work()
376 &block->stats[counter->total_read]); in prestera_counter_stats_work()
381 counter->total_read += count; in prestera_counter_stats_work()
382 if (!done || counter->total_read < block->num_counters) { in prestera_counter_stats_work()
/linux/drivers/infiniband/hw/hfi1/
H A Ddebugfs.c787 int total_read; in __i2c_debugfs_read() local
803 total_read = i2c_read(ppd, target, i2c_addr, offset, buff, count); in __i2c_debugfs_read()
804 if (total_read < 0) { in __i2c_debugfs_read()
805 ret = total_read; in __i2c_debugfs_read()
809 *ppos += total_read; in __i2c_debugfs_read()
811 ret = copy_to_user(buf, buff, total_read); in __i2c_debugfs_read()
817 ret = total_read; in __i2c_debugfs_read()
892 int total_read; in __qsfp_debugfs_read() local
907 total_read = qsfp_read(ppd, target, *ppos, buff, count); in __qsfp_debugfs_read()
908 if (total_read < 0) { in __qsfp_debugfs_read()
[all …]
/linux/fs/smb/client/
H A Dmisc.c333 checkSMB(char *buf, unsigned int total_read, struct TCP_Server_Info *server) in checkSMB() argument
339 total_read, rfclen); in checkSMB()
342 if (total_read < 2 + sizeof(struct smb_hdr)) { in checkSMB()
343 if ((total_read >= sizeof(struct smb_hdr) - 1) in checkSMB()
349 } else if ((total_read == sizeof(struct smb_hdr) + 1) && in checkSMB()
370 } else if (total_read < sizeof(*smb) + 2 * smb->WordCount) { in checkSMB()
381 if (4 + rfclen != total_read) { in checkSMB()
438 size_t len = srv->total_read - sizeof(pSMBr->hdr.smb_buf_length); in is_valid_oplock_break()
H A Dsmb2ops.c443 if (!server->ops->check_message(buf, server->total_read, server)) { in smb2_dump_detail()
4570 server->total_read = buf_data_size + iter_size; in decrypt_raw_data()
4842 server->total_read += rc; in receive_encrypted_read()
4861 server->total_read += rc; in receive_encrypted_read()
4941 memcpy(server->bigbuf, buf, server->total_read); in receive_encrypted_standard()
4950 server->total_read += length; in receive_encrypted_standard()
H A Dcifs_debug.c46 if (!server->ops->check_message(buf, server->total_read, server)) { in cifs_dump_detail()
H A Dcifsglob.h797 unsigned int total_read; /* total amount of data read in this pass */ member
/linux/kernel/trace/
H A Dring_buffer.c7574 unsigned long total_read = 0; in test_ringbuffer() local
7618 total_read++; in test_ringbuffer()
7625 pr_info(" read events: %ld\n", total_read); in test_ringbuffer()
7627 pr_info(" total events: %ld\n", total_lost + total_read); in test_ringbuffer()
7638 if (RB_WARN_ON(buffer, total_lost + total_read != total_events)) in test_ringbuffer()