Lines Matching refs:entries

115 		kfree(table->entries);
119 table->entries = kcalloc(SJA1105_NUM_PORTS,
121 if (!table->entries)
126 mac = table->entries;
170 kfree(table->entries);
174 table->entries = kcalloc(SJA1105_MAX_XMII_PARAMS_COUNT,
176 if (!table->entries)
182 mii = table->entries;
231 * L2 Address Lookup entries
234 kfree(table->entries);
245 /* Learned FDB entries are forgotten after 300 seconds */
247 /* All entries within a FDB bin are available for learning */
270 /* Dynamically learned FDB entries can overwrite other (older)
271 * dynamic FDB entries
280 kfree(table->entries);
284 table->entries = kcalloc(SJA1105_MAX_L2_LOOKUP_PARAMS_COUNT,
286 if (!table->entries)
292 ((struct sja1105_l2_lookup_params_entry *)table->entries)[0] =
322 kfree(table->entries);
326 table->entries = kcalloc(1, table->ops->unpacked_entry_size,
328 if (!table->entries)
361 ((struct sja1105_vlan_lookup_entry *)table->entries)[0] = pvid;
374 kfree(table->entries);
378 table->entries = kcalloc(SJA1105_MAX_L2_FORWARDING_COUNT,
380 if (!table->entries)
385 l2fwd = table->entries;
387 /* First 5 entries define the forwarding rules */
400 /* Next 8 entries define VLAN PCP mapping from ingress to egress.
423 kfree(table->entries);
427 table->entries = kcalloc(SJA1105_MAX_L2_FORWARDING_PARAMS_COUNT,
429 if (!table->entries)
435 ((struct sja1105_l2_forwarding_params_entry *)table->entries)[0] =
457 l2_fwd_params = table->entries;
470 vl_fwd_params = table->entries;
527 kfree(table->entries);
531 table->entries = kcalloc(SJA1105_MAX_GENERAL_PARAMS_COUNT,
533 if (!table->entries)
539 ((struct sja1105_general_params_entry *)table->entries)[0] =
554 kfree(table->entries);
558 table->entries = kcalloc(SJA1105_MAX_AVB_PARAMS_COUNT,
560 if (!table->entries)
565 avb = table->entries;
637 kfree(table->entries);
641 table->entries = kcalloc(SJA1105_MAX_L2_POLICING_COUNT,
643 if (!table->entries)
648 policing = table->entries;
932 mac = priv->static_config.tables[BLK_IDX_MAC_CONFIG].entries;
933 mii = priv->static_config.tables[BLK_IDX_XMII_PARAMS].entries;
1006 mii = priv->static_config.tables[BLK_IDX_XMII_PARAMS].entries;
1085 mii = priv->static_config.tables[BLK_IDX_XMII_PARAMS].entries;
1155 l2_lookup = table->entries;
1166 /* We want FDB entries added statically through the bridge command to persist
1197 l2_lookup = table->entries;
1218 * holds the FDB entries. An FDB index spans from 0 to 1023 and is comprised of
1219 * a "bin" (grouping of 4 entries) and a "way" (an entry within a bin).
1239 /* Skip unused entries, optionally marking them
1299 * static_config[BLK_IDX_L2_LOOKUP_PARAMS].entries->poly
1434 /* The switch learns dynamic entries and looks up the FDB left to
1513 * entries when in this mode - the actual VID doesn't matter except
1602 l2_fwd = priv->static_config.tables[BLK_IDX_L2_FORWARDING].entries;
1642 mac = priv->static_config.tables[BLK_IDX_MAC_CONFIG].entries;
1841 mac = priv->static_config.tables[BLK_IDX_MAC_CONFIG].entries;
1938 mac = priv->static_config.tables[BLK_IDX_MAC_CONFIG].entries;
2088 vlan = priv->static_config.tables[BLK_IDX_VLAN_LOOKUP].entries;
2129 vlan = table->entries;
2165 kfree(table->entries);
2167 table->entries = kcalloc(num_vlans, table->ops->unpacked_entry_size,
2169 if (!table->entries)
2173 vlan = table->entries;
2183 retagging = table->entries;
2193 kfree(table->entries);
2195 table->entries = kcalloc(num_retagging, table->ops->unpacked_entry_size,
2197 if (!table->entries)
2201 retagging = table->entries;
2777 general_params = table->entries;
2794 * pvid-tagged, and the FDB table gets populated with entries
2809 l2_lookup_params = table->entries;
3219 l2_lookup_params = table->entries;
3241 policing = priv->static_config.tables[BLK_IDX_L2_POLICING].entries;
3287 general_params = table->entries;
3289 mac = priv->static_config.tables[BLK_IDX_MAC_CONFIG].entries;
3354 policing = priv->static_config.tables[BLK_IDX_L2_POLICING].entries;
3372 policing = priv->static_config.tables[BLK_IDX_L2_POLICING].entries;