Lines Matching refs:counter_id
82 u32 counter_id) in prestera_counter_stats_clear() argument
84 memset(&block->stats[counter_id - block->offset], 0, in prestera_counter_stats_clear()
252 struct prestera_counter_block **bl, u32 *counter_id) in prestera_counter_get() argument
278 *counter_id = id; in prestera_counter_get()
285 struct prestera_counter_block *block, u32 counter_id) in prestera_counter_put() argument
291 idr_remove(&block->counter_idr, counter_id); in prestera_counter_put()
293 prestera_counter_stats_clear(block, counter_id); in prestera_counter_put()
296 prestera_hw_counter_clear(counter->sw, block->id, counter_id); in prestera_counter_put()
419 u32 counter_id, u64 *packets, u64 *bytes) in prestera_counter_stats_get() argument
421 if (!block || !prestera_counter_is_ready(block, counter_id)) { in prestera_counter_stats_get()
428 *packets = block->stats[counter_id - block->offset].packets; in prestera_counter_stats_get()
429 *bytes = block->stats[counter_id - block->offset].bytes; in prestera_counter_stats_get()
431 prestera_counter_stats_clear(block, counter_id); in prestera_counter_stats_get()