Lines Matching refs:tmu
171 u32 qm_read_drop_stat(u32 tmu, u32 queue, u32 *total_drops, int do_reset) in qm_read_drop_stat() argument
176 writel((tmu << 8) | queue, TMU_TEQ_CTRL); in qm_read_drop_stat()
177 writel((tmu << 8) | queue, TMU_LLM_CTRL); in qm_read_drop_stat()
179 qtotal[tmu][queue] += val; in qm_read_drop_stat()
181 *total_drops = qtotal[tmu][queue]; in qm_read_drop_stat()
183 qtotal[tmu][queue] = 0; in qm_read_drop_stat()
187 static ssize_t tmu_queue_stats(char *buf, int tmu, int queue) in tmu_queue_stats() argument
192 printf("%d-%02d, ", tmu, queue); in tmu_queue_stats()
194 drops = qm_read_drop_stat(tmu, queue, NULL, 0); in tmu_queue_stats()
197 writel((tmu << 8) | queue, TMU_TEQ_CTRL); in tmu_queue_stats()
198 writel((tmu << 8) | queue, TMU_LLM_CTRL); in tmu_queue_stats()
208 static ssize_t tmu_queues(char *buf, int tmu) in tmu_queues() argument
214 len += tmu_queue_stats(buf + len, tmu, queue); in tmu_queues()