mac_bridge 1234 drivers/net/dsa/lantiq_gswip.c struct gswip_pce_table_entry mac_bridge = {0,}; mac_bridge 1239 drivers/net/dsa/lantiq_gswip.c mac_bridge.table = GSWIP_TABLE_MAC_BRIDGE; mac_bridge 1240 drivers/net/dsa/lantiq_gswip.c mac_bridge.index = i; mac_bridge 1242 drivers/net/dsa/lantiq_gswip.c err = gswip_pce_table_entry_read(priv, &mac_bridge); mac_bridge 1249 drivers/net/dsa/lantiq_gswip.c if (!mac_bridge.valid) mac_bridge 1252 drivers/net/dsa/lantiq_gswip.c if (mac_bridge.val[1] & GSWIP_TABLE_MAC_BRIDGE_STATIC) mac_bridge 1255 drivers/net/dsa/lantiq_gswip.c if (((mac_bridge.val[0] & GENMASK(7, 4)) >> 4) != port) mac_bridge 1258 drivers/net/dsa/lantiq_gswip.c mac_bridge.valid = false; mac_bridge 1259 drivers/net/dsa/lantiq_gswip.c err = gswip_pce_table_entry_write(priv, &mac_bridge); mac_bridge 1304 drivers/net/dsa/lantiq_gswip.c struct gswip_pce_table_entry mac_bridge = {0,}; mac_bridge 1325 drivers/net/dsa/lantiq_gswip.c mac_bridge.table = GSWIP_TABLE_MAC_BRIDGE; mac_bridge 1326 drivers/net/dsa/lantiq_gswip.c mac_bridge.key_mode = true; mac_bridge 1327 drivers/net/dsa/lantiq_gswip.c mac_bridge.key[0] = addr[5] | (addr[4] << 8); mac_bridge 1328 drivers/net/dsa/lantiq_gswip.c mac_bridge.key[1] = addr[3] | (addr[2] << 8); mac_bridge 1329 drivers/net/dsa/lantiq_gswip.c mac_bridge.key[2] = addr[1] | (addr[0] << 8); mac_bridge 1330 drivers/net/dsa/lantiq_gswip.c mac_bridge.key[3] = fid; mac_bridge 1331 drivers/net/dsa/lantiq_gswip.c mac_bridge.val[0] = add ? BIT(port) : 0; /* port map */ mac_bridge 1332 drivers/net/dsa/lantiq_gswip.c mac_bridge.val[1] = GSWIP_TABLE_MAC_BRIDGE_STATIC; mac_bridge 1333 drivers/net/dsa/lantiq_gswip.c mac_bridge.valid = add; mac_bridge 1335 drivers/net/dsa/lantiq_gswip.c err = gswip_pce_table_entry_write(priv, &mac_bridge); mac_bridge 1358 drivers/net/dsa/lantiq_gswip.c struct gswip_pce_table_entry mac_bridge = {0,}; mac_bridge 1364 drivers/net/dsa/lantiq_gswip.c mac_bridge.table = GSWIP_TABLE_MAC_BRIDGE; mac_bridge 1365 drivers/net/dsa/lantiq_gswip.c mac_bridge.index = i; mac_bridge 1367 drivers/net/dsa/lantiq_gswip.c err = gswip_pce_table_entry_read(priv, &mac_bridge); mac_bridge 1374 drivers/net/dsa/lantiq_gswip.c if (!mac_bridge.valid) mac_bridge 1377 drivers/net/dsa/lantiq_gswip.c addr[5] = mac_bridge.key[0] & 0xff; mac_bridge 1378 drivers/net/dsa/lantiq_gswip.c addr[4] = (mac_bridge.key[0] >> 8) & 0xff; mac_bridge 1379 drivers/net/dsa/lantiq_gswip.c addr[3] = mac_bridge.key[1] & 0xff; mac_bridge 1380 drivers/net/dsa/lantiq_gswip.c addr[2] = (mac_bridge.key[1] >> 8) & 0xff; mac_bridge 1381 drivers/net/dsa/lantiq_gswip.c addr[1] = mac_bridge.key[2] & 0xff; mac_bridge 1382 drivers/net/dsa/lantiq_gswip.c addr[0] = (mac_bridge.key[2] >> 8) & 0xff; mac_bridge 1383 drivers/net/dsa/lantiq_gswip.c if (mac_bridge.val[1] & GSWIP_TABLE_MAC_BRIDGE_STATIC) { mac_bridge 1384 drivers/net/dsa/lantiq_gswip.c if (mac_bridge.val[0] & BIT(port)) mac_bridge 1387 drivers/net/dsa/lantiq_gswip.c if (((mac_bridge.val[0] & GENMASK(7, 4)) >> 4) == port)