Lines Matching defs:table

306 	struct sja1105_table *table;
338 table = &priv->static_config.tables[BLK_IDX_VL_LOOKUP];
339 if (table->entry_count) {
340 kfree(table->entries);
341 table->entry_count = 0;
345 table = &priv->static_config.tables[BLK_IDX_VL_POLICING];
346 if (table->entry_count) {
347 kfree(table->entries);
348 table->entry_count = 0;
352 table = &priv->static_config.tables[BLK_IDX_VL_FORWARDING];
353 if (table->entry_count) {
354 kfree(table->entries);
355 table->entry_count = 0;
359 table = &priv->static_config.tables[BLK_IDX_VL_FORWARDING_PARAMS];
360 if (table->entry_count) {
361 kfree(table->entries);
362 table->entry_count = 0;
372 table = &priv->static_config.tables[BLK_IDX_VL_LOOKUP];
373 table->entries = kcalloc(num_virtual_links,
374 table->ops->unpacked_entry_size,
376 if (!table->entries)
378 table->entry_count = num_virtual_links;
379 vl_lookup = table->entries;
415 /* UM10944.pdf chapter 4.2.3 VL Lookup table:
416 * "the entries in the VL Lookup table must be sorted in ascending
439 table = &priv->static_config.tables[BLK_IDX_VL_POLICING];
440 table->entries = kcalloc(max_sharindx, table->ops->unpacked_entry_size,
442 if (!table->entries)
444 table->entry_count = max_sharindx;
445 vl_policing = table->entries;
448 table = &priv->static_config.tables[BLK_IDX_VL_FORWARDING];
449 table->entries = kcalloc(max_sharindx, table->ops->unpacked_entry_size,
451 if (!table->entries)
453 table->entry_count = max_sharindx;
454 vl_fwd = table->entries;
457 table = &priv->static_config.tables[BLK_IDX_VL_FORWARDING_PARAMS];
458 table->entries = kcalloc(1, table->ops->unpacked_entry_size,
460 if (!table->entries)
462 table->entry_count = 1;
722 struct sja1105_table *table;
729 table = &priv->static_config.tables[BLK_IDX_VL_LOOKUP];
730 vl_lookup = table->entries;
732 for (i = 0; i < table->entry_count; i++) {