Lines Matching refs:counter_id
82 u32 counter_id)
84 memset(&block->stats[counter_id - block->offset], 0,
252 struct prestera_counter_block **bl, u32 *counter_id)
278 *counter_id = id;
285 struct prestera_counter_block *block, u32 counter_id)
291 idr_remove(&block->counter_idr, counter_id);
293 prestera_counter_stats_clear(block, counter_id);
296 prestera_hw_counter_clear(counter->sw, block->id, counter_id);
418 u32 counter_id, u64 *packets, u64 *bytes)
420 if (!block || !prestera_counter_is_ready(block, counter_id)) {
427 *packets = block->stats[counter_id - block->offset].packets;
428 *bytes = block->stats[counter_id - block->offset].bytes;
430 prestera_counter_stats_clear(block, counter_id);