Lines Matching refs:bytes_read
564 int bytes_read = -1; in mixer_get_bytes_from_file() local
579 bytes_read = fread(buf, 1, max_bytes, file); in mixer_get_bytes_from_file()
580 if (bytes_read < 0) { in mixer_get_bytes_from_file()
581 ALOGE("failed to read data from file, rc: %d", bytes_read); in mixer_get_bytes_from_file()
585 values = calloc(bytes_read, sizeof(long)); in mixer_get_bytes_from_file()
588 bytes_read = -1; in mixer_get_bytes_from_file()
592 for (i = 0; i < bytes_read; i++) { in mixer_get_bytes_from_file()
600 return bytes_read; in mixer_get_bytes_from_file()
684 int bytes_read = mixer_get_bytes_from_file(&value_array, attr_bin, num_values); in start_tag() local
685 if (bytes_read <= 0) { in start_tag()
689 if (bytes_read < num_values && mixer_ctl_is_access_tlv_rw(ctl) == 0) { in start_tag()
691 num_values, bytes_read, attr_name); in start_tag()
694 num_values_in_array = bytes_read; in start_tag()
1121 int bytes_read; in audio_route_init() local
1170 bytes_read = fread(buf, 1, BUF_SIZE, file); in audio_route_init()
1171 if (bytes_read < 0) in audio_route_init()
1174 if (XML_ParseBuffer(parser, bytes_read, in audio_route_init()
1175 bytes_read == 0) == XML_STATUS_ERROR) { in audio_route_init()
1180 if (bytes_read == 0) in audio_route_init()