• Home
  • Raw
  • Download

Lines Matching refs:frame_bytes

26 	uint32_t frame_bytes;  member
124 return (write_offset - read_offset) / shm->config.frame_bytes; in cras_shm_get_curr_read_frames()
152 const unsigned frame_bytes = shm->config.frame_bytes; in cras_shm_get_writeable_frames() local
157 written = write_offset / frame_bytes; in cras_shm_get_writeable_frames()
188 final_offset = read_offset + offset * shm->config.frame_bytes; in cras_shm_get_readable_frames()
201 *frames = (write_offset - final_offset) / shm->config.frame_bytes; in cras_shm_get_readable_frames()
230 if (bytes % shm->config.frame_bytes != 0) in cras_shm_get_frames()
232 return bytes / shm->config.frame_bytes; in cras_shm_get_frames()
249 return (write_offset - read_offset) / shm->config.frame_bytes; in cras_shm_get_frames_in_curr_buffer()
268 return shm->config.used_size / shm->config.frame_bytes; in cras_shm_get_num_writeable()
303 shm->area->write_offset[buf_idx] += frames * shm->config.frame_bytes; in cras_shm_buffer_written()
313 return shm->area->write_offset[buf_idx] / shm->config.frame_bytes; in cras_shm_frames_written()
334 shm->area->write_offset[buf_idx] = frames * shm->config.frame_bytes; in cras_shm_buffer_written_start()
352 area->read_offset[buf_idx] += frames * config->frame_bytes; in cras_shm_buffer_read()
380 area->read_offset[buf_idx] += frames * config->frame_bytes; in cras_shm_buffer_read_current()
418 unsigned frame_bytes) in cras_shm_set_frame_bytes() argument
420 shm->config.frame_bytes = frame_bytes; in cras_shm_set_frame_bytes()
422 shm->area->config.frame_bytes = frame_bytes; in cras_shm_set_frame_bytes()
428 return shm->config.frame_bytes; in cras_shm_frame_bytes()
464 return shm->config.used_size / shm->config.frame_bytes; in cras_shm_used_frames()