Searched refs:busy_index (Results 1 – 2 of 2) sorted by relevance
/external/mesa3d/src/gallium/drivers/r600/ |
D | r600_gpu_load.c | 156 unsigned busy_index) in r600_read_mmio_counter() argument 168 unsigned busy = p_atomic_read(&rscreen->mmio_counters.array[busy_index]); in r600_read_mmio_counter() 169 unsigned idle = p_atomic_read(&rscreen->mmio_counters.array[busy_index + 1]); in r600_read_mmio_counter() 175 uint64_t begin, unsigned busy_index) in r600_end_mmio_counter() argument 177 uint64_t end = r600_read_mmio_counter(rscreen, busy_index); in r600_end_mmio_counter() 194 return counters.array[busy_index] ? 100 : 0; in r600_end_mmio_counter() 254 unsigned busy_index = busy_index_from_type(rscreen, type); in r600_begin_counter() local 255 return r600_read_mmio_counter(rscreen, busy_index); in r600_begin_counter() 261 unsigned busy_index = busy_index_from_type(rscreen, type); in r600_end_counter() local 262 return r600_end_mmio_counter(rscreen, begin, busy_index); in r600_end_counter()
|
/external/mesa3d/src/gallium/drivers/radeonsi/ |
D | si_gpu_load.c | 170 static uint64_t si_read_mmio_counter(struct si_screen *sscreen, unsigned busy_index) in si_read_mmio_counter() argument 181 unsigned busy = p_atomic_read(&sscreen->mmio_counters.array[busy_index]); in si_read_mmio_counter() 182 unsigned idle = p_atomic_read(&sscreen->mmio_counters.array[busy_index + 1]); in si_read_mmio_counter() 187 static unsigned si_end_mmio_counter(struct si_screen *sscreen, uint64_t begin, unsigned busy_index) in si_end_mmio_counter() argument 189 uint64_t end = si_read_mmio_counter(sscreen, busy_index); in si_end_mmio_counter() 206 return counters.array[busy_index] ? 100 : 0; in si_end_mmio_counter() 265 unsigned busy_index = busy_index_from_type(sscreen, type); in si_begin_counter() local 266 return si_read_mmio_counter(sscreen, busy_index); in si_begin_counter() 271 unsigned busy_index = busy_index_from_type(sscreen, type); in si_end_counter() local 272 return si_end_mmio_counter(sscreen, begin, busy_index); in si_end_counter()
|