Lines Matching refs:bytes_read
43 bool updateOffsetAndCheckBound(int *offset, const int &bytes_read, const int &data_len) { in updateOffsetAndCheckBound() argument
44 *offset += bytes_read; in updateOffsetAndCheckBound()
57 int bytes_read; in parse_file_contents() local
59 while (sscanf(data + offset, "THERMAL ZONE: %31s\n%n", sensor_name, &bytes_read) == 1) { in parse_file_contents()
64 if (!updateOffsetAndCheckBound(&offset, bytes_read, data_len)) in parse_file_contents()
70 &bytes_read) || in parse_file_contents()
71 !updateOffsetAndCheckBound(&offset, bytes_read, data_len)) in parse_file_contents()
75 &temp_residency_stats.max_temp_timestamp, &bytes_read) || in parse_file_contents()
76 !updateOffsetAndCheckBound(&offset, bytes_read, data_len)) in parse_file_contents()
80 &bytes_read) || in parse_file_contents()
81 !updateOffsetAndCheckBound(&offset, bytes_read, data_len)) in parse_file_contents()
85 &temp_residency_stats.min_temp_timestamp, &bytes_read) || in parse_file_contents()
86 !updateOffsetAndCheckBound(&offset, bytes_read, data_len)) in parse_file_contents()
90 &bytes_read) || in parse_file_contents()
91 !updateOffsetAndCheckBound(&offset, bytes_read, data_len)) in parse_file_contents()
96 &bytes_read) != 1 && in parse_file_contents()
98 &bytes_read) != 1 && in parse_file_contents()
100 &bytes_read) != 1) in parse_file_contents()
106 offset += bytes_read; in parse_file_contents()