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;
649 const struct ocelot_vcap_action *a = &filter->action;
784 const struct ocelot_vcap_action *a = &filter->action;
917 filter->action.police_ena &&
918 filter->action.pol_ix < pol_ix) {
919 filter->action.pol_ix += 1;
920 ocelot_vcap_policer_add(ocelot, filter->action.pol_ix,
921 &filter->action.pol);
939 if (filter->block_id == VCAP_IS2 && filter->action.police_ena) {
941 filter->action.pol_ix = block->pol_lpr;
942 ocelot_vcap_policer_add(ocelot, filter->action.pol_ix,
943 &filter->action.pol);
1166 tmp->action.police_ena)
1168 tmp->action.pol_ix);
1329 * This policer will be used as action in the acl rules to drop