Lines Matching refs:slave_data
1255 data->slave_data = devm_kcalloc(&pdev->dev, in cpsw_probe_dt()
1259 if (!data->slave_data) in cpsw_probe_dt()
1292 struct cpsw_slave_data *slave_data = data->slave_data + i; in cpsw_probe_dt() local
1300 slave_data->ifphy = devm_of_phy_get(&pdev->dev, slave_node, in cpsw_probe_dt()
1303 IS_ERR(slave_data->ifphy)) { in cpsw_probe_dt()
1304 ret = PTR_ERR(slave_data->ifphy); in cpsw_probe_dt()
1310 slave_data->slave_node = slave_node; in cpsw_probe_dt()
1311 slave_data->phy_node = of_parse_phandle(slave_node, in cpsw_probe_dt()
1314 if (slave_data->phy_node) { in cpsw_probe_dt()
1317 i, slave_data->phy_node); in cpsw_probe_dt()
1327 slave_data->phy_node = of_node_get(slave_node); in cpsw_probe_dt()
1346 snprintf(slave_data->phy_id, sizeof(slave_data->phy_id), in cpsw_probe_dt()
1355 ret = of_get_phy_mode(slave_node, &slave_data->phy_if); in cpsw_probe_dt()
1363 ret = of_get_mac_address(slave_node, slave_data->mac_addr); in cpsw_probe_dt()
1366 slave_data->mac_addr); in cpsw_probe_dt()
1374 slave_data->dual_emac_res_vlan = i+1; in cpsw_probe_dt()
1376 slave_data->dual_emac_res_vlan, i); in cpsw_probe_dt()
1378 slave_data->dual_emac_res_vlan = prop; in cpsw_probe_dt()
1405 struct cpsw_slave_data *slave_data = &data->slave_data[i]; in cpsw_remove_dt() local
1413 of_node_put(slave_data->phy_node); in cpsw_remove_dt()
1446 if (is_valid_ether_addr(data->slave_data[1].mac_addr)) { in cpsw_probe_dual_emac()
1447 memcpy(priv_sl2->mac_addr, data->slave_data[1].mac_addr, in cpsw_probe_dual_emac()
1627 if (is_valid_ether_addr(data->slave_data[0].mac_addr)) { in cpsw_probe()
1628 memcpy(priv->mac_addr, data->slave_data[0].mac_addr, ETH_ALEN); in cpsw_probe()