Lines Matching defs:counter
31 #define VCAP_COUNTER_WIDTH 4 /* Max counter width (32bit words) */
37 u32 counter[VCAP_COUNTER_WIDTH]; /* CNT_DAT */
41 u32 cnt; /* Current counter */
44 u32 counter_offset; /* Current counter offset */
144 ocelot_target_write_rix(ocelot, vcap->target, data->counter[i],
163 data->counter[i] = ocelot_target_read_rix(ocelot, vcap->target,
206 /* Calculate key/action/counter offsets */
637 vcap_data_set(data.counter, data.counter_offset,
771 vcap_data_set(data.counter, data.counter_offset,
842 vcap_data_set(data.counter, data.counter_offset,
869 cnt = vcap_data_get(data.counter, data.counter_offset,
1391 /* The width of the counter memory, this is the complete width of all
1392 * counter-fields associated with one full-word entry. There is one
1393 * counter per entry sub-word (see CAP_CORE::ENTRY_SWCNT for number of