Lines Matching defs:tables
1020 static_config_check_memory_size(const struct sja1105_table *tables, int max_mem)
1026 l2_fwd_params = tables[BLK_IDX_L2_FORWARDING_PARAMS].entries;
1031 if (tables[BLK_IDX_VL_FORWARDING_PARAMS].entry_count) {
1032 vl_fwd_params = tables[BLK_IDX_VL_FORWARDING_PARAMS].entries;
1037 if (tables[BLK_IDX_RETAGGING].entry_count)
1050 const struct sja1105_table *tables = config->tables;
1052 (tables[blk_idx].entry_count == tables[blk_idx].ops->max_entry_count)
1054 if (tables[BLK_IDX_SCHEDULE].entry_count) {
1055 if (!tables[BLK_IDX_SCHEDULE].ops->max_entry_count)
1058 if (tables[BLK_IDX_SCHEDULE_ENTRY_POINTS].entry_count == 0)
1067 if (tables[BLK_IDX_VL_LOOKUP].entry_count) {
1072 vl_lookup = tables[BLK_IDX_VL_LOOKUP].entries;
1074 for (i = 0; i < tables[BLK_IDX_VL_LOOKUP].entry_count; i++) {
1081 if (tables[BLK_IDX_VL_POLICING].entry_count == 0 &&
1085 if (tables[BLK_IDX_VL_FORWARDING].entry_count == 0 &&
1089 if (tables[BLK_IDX_VL_FORWARDING_PARAMS].entry_count == 0 &&
1094 if (tables[BLK_IDX_L2_POLICING].entry_count == 0)
1097 if (tables[BLK_IDX_VLAN_LOOKUP].entry_count == 0)
1115 return static_config_check_memory_size(tables, max_mem);
1134 table = &config->tables[i];
1182 table = &config->tables[i];
1898 config->tables[i].ops = &static_ops[i];
1909 if (config->tables[i].entry_count) {
1910 kfree(config->tables[i].entries);
1911 config->tables[i].entry_count = 0;