Lines Matching defs:width
30 #define VCAP_ENTRY_WIDTH 12 /* Max entry width (32bit words) */
31 #define VCAP_COUNTER_WIDTH 4 /* Max counter width (32bit words) */
128 int i, width;
131 width = vcap->action_type_width;
132 if (width) {
133 mask = GENMASK(width, 0);
153 int i, width;
168 width = vcap->action_type_width;
169 data->type = (width ? (data->action[0] & GENMASK(width, 0)) : 0);
178 u32 width = vcap->tg_width;
201 offset = ((base + i) * width);
203 data->tg_mask |= GENMASK(offset + width - 1, offset);
212 width = vcap->action_table[i].width;
214 data->action_offset = ((num_subwords_per_action * col * width) /
247 static void vcap_key_field_set(struct vcap_data *data, u32 offset, u32 width,
250 vcap_data_set(data->entry, offset + data->key_offset, width, value);
251 vcap_data_set(data->mask, offset + data->key_offset, width, mask);
1364 * What VCAP_CONST_ENTRY_CNT is giving us is the width of one full TCAM
1376 * giving us. We don't actually care about the width of the entry in
1377 * the TCAM. What we care about is the width of the entry in the cache
1380 * Type-Groups, this means we need to subtract the width of the
1391 /* The width of the counter memory, this is the complete width of all