Lines Matching refs:slave_data
2514 data->slave_data = devm_kcalloc(&pdev->dev, in cpsw_probe_dt()
2518 if (!data->slave_data) in cpsw_probe_dt()
2557 struct cpsw_slave_data *slave_data = data->slave_data + i; in cpsw_probe_dt() local
2566 slave_data->ifphy = devm_of_phy_get(&pdev->dev, slave_node, in cpsw_probe_dt()
2569 IS_ERR(slave_data->ifphy)) { in cpsw_probe_dt()
2570 ret = PTR_ERR(slave_data->ifphy); in cpsw_probe_dt()
2576 slave_data->slave_node = slave_node; in cpsw_probe_dt()
2577 slave_data->phy_node = of_parse_phandle(slave_node, in cpsw_probe_dt()
2580 if (slave_data->phy_node) { in cpsw_probe_dt()
2583 i, slave_data->phy_node); in cpsw_probe_dt()
2594 slave_data->phy_node = of_node_get(slave_node); in cpsw_probe_dt()
2613 snprintf(slave_data->phy_id, sizeof(slave_data->phy_id), in cpsw_probe_dt()
2622 slave_data->phy_if = of_get_phy_mode(slave_node); in cpsw_probe_dt()
2623 if (slave_data->phy_if < 0) { in cpsw_probe_dt()
2626 ret = slave_data->phy_if; in cpsw_probe_dt()
2633 ether_addr_copy(slave_data->mac_addr, mac_addr); in cpsw_probe_dt()
2636 slave_data->mac_addr); in cpsw_probe_dt()
2644 slave_data->dual_emac_res_vlan = i+1; in cpsw_probe_dt()
2646 slave_data->dual_emac_res_vlan, i); in cpsw_probe_dt()
2648 slave_data->dual_emac_res_vlan = prop; in cpsw_probe_dt()
2675 struct cpsw_slave_data *slave_data = &data->slave_data[i]; in cpsw_remove_dt() local
2683 of_node_put(slave_data->phy_node); in cpsw_remove_dt()
2716 if (is_valid_ether_addr(data->slave_data[1].mac_addr)) { in cpsw_probe_dual_emac()
2717 memcpy(priv_sl2->mac_addr, data->slave_data[1].mac_addr, in cpsw_probe_dual_emac()
2889 if (is_valid_ether_addr(data->slave_data[0].mac_addr)) { in cpsw_probe()
2890 memcpy(priv->mac_addr, data->slave_data[0].mac_addr, ETH_ALEN); in cpsw_probe()