Lines Matching defs:action
36 u32 action[VCAP_ENTRY_WIDTH]; /* ACTION_DAT */
43 u32 action_offset; /* Current action offset */
130 /* Encode action type */
134 data->action[0] = ((data->action[0] & ~mask) | data->type);
140 ocelot_target_write_rix(ocelot, vcap->target, data->action[i],
158 data->action[i] = ocelot_target_read_rix(ocelot, vcap->target,
167 /* Extract action type */
169 data->type = (width ? (data->action[0] & GENMASK(width, 0)) : 0);
206 /* Calculate key/action/counter offsets */
326 vcap_data_set(data->action, offset + data->action_offset, length,
334 struct ocelot_vcap_action *a = &filter->action;
650 const struct ocelot_vcap_action *a = &filter->action;
784 const struct ocelot_vcap_action *a = &filter->action;
962 if (filter->block_id == VCAP_IS2 && filter->action.mirror_ena) {
969 if (filter->block_id == VCAP_IS2 && filter->action.police_ena) {
970 ret = ocelot_vcap_policer_add(ocelot, filter->action.pol_ix,
971 &filter->action.pol);
983 if (filter->block_id == VCAP_IS2 && filter->action.police_ena)
984 ocelot_vcap_policer_del(ocelot, filter->action.pol_ix);
986 if (filter->block_id == VCAP_IS2 && filter->action.mirror_ena)
1410 * This policer will be used as action in the acl rules to drop