Lines Matching refs:frame_bytes

27 	uint32_t frame_bytes;  member
236 return (write_offset - read_offset) / shm->config.frame_bytes; in cras_shm_get_curr_read_frames()
263 const unsigned frame_bytes = shm->config.frame_bytes; in cras_shm_get_writeable_frames() local
267 written = write_offset / frame_bytes; in cras_shm_get_writeable_frames()
293 final_offset = read_offset + offset * shm->config.frame_bytes; in cras_shm_get_readable_frames()
305 *frames = (write_offset - final_offset) / shm->config.frame_bytes; in cras_shm_get_readable_frames()
334 if (bytes % shm->config.frame_bytes != 0) in cras_shm_get_frames()
336 return bytes / shm->config.frame_bytes; in cras_shm_get_frames()
353 return (write_offset - read_offset) / shm->config.frame_bytes; in cras_shm_get_frames_in_curr_buffer()
372 return shm->config.used_size / shm->config.frame_bytes; in cras_shm_get_num_writeable()
408 shm->header->write_offset[buf_idx] += frames * shm->config.frame_bytes; in cras_shm_buffer_written()
418 return shm->header->write_offset[buf_idx] / shm->config.frame_bytes; in cras_shm_frames_written()
439 shm->header->write_offset[buf_idx] = frames * shm->config.frame_bytes; in cras_shm_buffer_written_start()
457 header->read_offset[buf_idx] += frames * config->frame_bytes; in cras_shm_buffer_read()
485 header->read_offset[buf_idx] += frames * config->frame_bytes; in cras_shm_buffer_read_current()
523 unsigned frame_bytes) in cras_shm_set_frame_bytes() argument
525 shm->config.frame_bytes = frame_bytes; in cras_shm_set_frame_bytes()
527 shm->header->config.frame_bytes = frame_bytes; in cras_shm_set_frame_bytes()
533 return shm->config.frame_bytes; in cras_shm_frame_bytes()
584 return shm->config.used_size / shm->config.frame_bytes; in cras_shm_used_frames()