Lines Matching refs:frame_bytes

51   shm_.header->write_offset[0] = 100 * shm_.header->config.frame_bytes;  in TEST_F()
56 EXPECT_EQ((frames_ - 9) * shm_.config.frame_bytes, in TEST_F()
65 shm_.header->write_offset[0] = 100 * shm_.config.frame_bytes; in TEST_F()
66 shm_.header->read_offset[0] = 50 * shm_.config.frame_bytes; in TEST_F()
71 EXPECT_EQ(shm_.header->write_offset[0] - 10 * shm_.config.frame_bytes, in TEST_F()
79 shm_.header->write_offset[0] = 100 * shm_.config.frame_bytes; in TEST_F()
80 shm_.header->read_offset[0] = 50 * shm_.config.frame_bytes; in TEST_F()
84 25 * shm_.header->config.frame_bytes, in TEST_F()
104 EXPECT_EQ(((used_frames / 2) - 10) * shm_.config.frame_bytes, in TEST_F()
150 EXPECT_EQ(((used_frames / 2) - 10) * shm_.config.frame_bytes, in TEST_F()
159 shm_.header->write_offset[0] = 100 * shm_.config.frame_bytes; in TEST_F()
160 shm_.header->read_offset[0] = 50 * shm_.config.frame_bytes; in TEST_F()
169 shm_.config.used_size = 480 * shm_.config.frame_bytes; in TEST_F()
180 shm_.config.used_size = 480 * shm_.config.frame_bytes; in TEST_F()
181 shm_.header->write_offset[0] = 200 * shm_.config.frame_bytes; in TEST_F()
192 shm_.header->write_offset[0] = 128 * shm_.config.frame_bytes; in TEST_F()
193 shm_.header->write_offset[1] = 128 * shm_.config.frame_bytes; in TEST_F()
229 EXPECT_EQ(shm_.header->write_offset[0] / shm_.config.frame_bytes, frames_); in TEST_F()
273 shm_.config.used_size = buffer_size * shm_.config.frame_bytes; in TEST_F()
274 shm_.header->write_offset[0] = written * shm_.config.frame_bytes; in TEST_F()
286 shm_.config.used_size = buffer_size * shm_.config.frame_bytes; in TEST_F()
287 shm_.header->write_offset[0] = written * shm_.config.frame_bytes; in TEST_F()
295 uint32_t frame_bytes = cras_shm_frame_bytes(&shm_); in TEST_F() local
297 uint32_t used_size = used_frames * frame_bytes; in TEST_F()
302 shm_.header->read_offset[0] = (used_frames / 4) * shm_.config.frame_bytes; in TEST_F()
303 shm_.header->write_offset[0] = (used_frames / 2) * shm_.config.frame_bytes; in TEST_F()
305 shm_.header->write_offset[1] = (used_frames / 3) * shm_.config.frame_bytes; in TEST_F()
316 EXPECT_EQ(((used_frames / 3) - 5) * shm_.config.frame_bytes, in TEST_F()
321 uint32_t frame_bytes = cras_shm_frame_bytes(&shm_); in TEST_F() local
323 uint32_t used_size = used_frames * frame_bytes; in TEST_F()