Lines Matching refs:bytes_left
1010 unsigned int bytes_left; in bluetooth_a2dp_write() local
1022 bytes_left = size * frame_size; in bluetooth_a2dp_write()
1058 if (additional_bytes_needed > bytes_left) in bluetooth_a2dp_write()
1091 bytes_left -= additional_bytes_needed; in bluetooth_a2dp_write()
1099 while (bytes_left >= a2dp->codesize) { in bluetooth_a2dp_write()
1113 bytes_left -= a2dp->codesize; in bluetooth_a2dp_write()
1132 if (bytes_left > 0) { in bluetooth_a2dp_write()
1133 memcpy(data->buffer + data->count, buff, bytes_left); in bluetooth_a2dp_write()
1134 data->count += bytes_left; in bluetooth_a2dp_write()
1135 bytes_left = 0; in bluetooth_a2dp_write()
1139 DBG("returning %ld", size - bytes_left / frame_size); in bluetooth_a2dp_write()
1141 return size - bytes_left / frame_size; in bluetooth_a2dp_write()
1623 int bytes_left = rsp->h.length - sizeof(*rsp); in bluetooth_parse_capabilities() local
1631 while (bytes_left > 0) { in bluetooth_parse_capabilities()
1636 bytes_left -= codec->length; in bluetooth_parse_capabilities()
1640 if (bytes_left <= 0 || in bluetooth_parse_capabilities()