Searched refs:total_read_len (Results 1 – 2 of 2) sorted by relevance
/linux/drivers/net/ethernet/emulex/benet/ |
H A D | be_ethtool.c | 266 u32 read_len = 0, total_read_len = 0, chunk_size; in lancer_cmd_read_file() local 281 while ((total_read_len < buf_len) && !eof) { in lancer_cmd_read_file() 282 chunk_size = min_t(u32, (buf_len - total_read_len), in lancer_cmd_read_file() 286 total_read_len, file_name, in lancer_cmd_read_file() 289 memcpy(buf + total_read_len, read_cmd.va, read_len); in lancer_cmd_read_file() 290 total_read_len += read_len; in lancer_cmd_read_file()
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | bpf_iter.c | 652 __u32 map_info_len, total_read_len, expected_read_len; in test_overflow() local 724 total_read_len = 0; in test_overflow() 727 total_read_len += len; in test_overflow() 734 total_read_len += len; in test_overflow() 742 total_read_len += len; in test_overflow() 749 if (!ASSERT_EQ(total_read_len, expected_read_len, "read")) in test_overflow()
|