Lines Matching refs:entry_count
1031 if (tables[BLK_IDX_VL_FORWARDING_PARAMS].entry_count) { in static_config_check_memory_size()
1037 if (tables[BLK_IDX_RETAGGING].entry_count) in static_config_check_memory_size()
1052 (tables[blk_idx].entry_count == tables[blk_idx].ops->max_entry_count) in sja1105_static_config_check_valid()
1054 if (tables[BLK_IDX_SCHEDULE].entry_count) { in sja1105_static_config_check_valid()
1058 if (tables[BLK_IDX_SCHEDULE_ENTRY_POINTS].entry_count == 0) in sja1105_static_config_check_valid()
1067 if (tables[BLK_IDX_VL_LOOKUP].entry_count) { in sja1105_static_config_check_valid()
1074 for (i = 0; i < tables[BLK_IDX_VL_LOOKUP].entry_count; i++) { in sja1105_static_config_check_valid()
1081 if (tables[BLK_IDX_VL_POLICING].entry_count == 0 && in sja1105_static_config_check_valid()
1085 if (tables[BLK_IDX_VL_FORWARDING].entry_count == 0 && in sja1105_static_config_check_valid()
1089 if (tables[BLK_IDX_VL_FORWARDING_PARAMS].entry_count == 0 && in sja1105_static_config_check_valid()
1094 if (tables[BLK_IDX_L2_POLICING].entry_count == 0) in sja1105_static_config_check_valid()
1097 if (tables[BLK_IDX_VLAN_LOOKUP].entry_count == 0) in sja1105_static_config_check_valid()
1135 if (!table->entry_count) in sja1105_static_config_pack()
1139 header.len = table->entry_count * in sja1105_static_config_pack()
1144 for (j = 0; j < table->entry_count; j++) { in sja1105_static_config_pack()
1183 if (table->entry_count) in sja1105_static_config_get_length()
1186 sum += table->ops->packed_entry_size * table->entry_count; in sja1105_static_config_get_length()
1909 if (config->tables[i].entry_count) { in sja1105_static_config_free()
1911 config->tables[i].entry_count = 0; in sja1105_static_config_free()
1921 if (i > table->entry_count) in sja1105_table_delete_entry()
1925 (table->entry_count - i) * entry_size); in sja1105_table_delete_entry()
1927 table->entry_count--; in sja1105_table_delete_entry()
1945 memcpy(new_entries, old_entries, min(new_count, table->entry_count) * in sja1105_table_resize()
1949 table->entry_count = new_count; in sja1105_table_resize()