• Home
  • Raw
  • Download

Lines Matching refs:slave_data

1273 	data->slave_data = devm_kcalloc(&pdev->dev,  in cpsw_probe_dt()
1277 if (!data->slave_data) in cpsw_probe_dt()
1310 struct cpsw_slave_data *slave_data = data->slave_data + i; in cpsw_probe_dt() local
1319 slave_data->ifphy = devm_of_phy_get(&pdev->dev, slave_node, in cpsw_probe_dt()
1322 IS_ERR(slave_data->ifphy)) { in cpsw_probe_dt()
1323 ret = PTR_ERR(slave_data->ifphy); in cpsw_probe_dt()
1329 slave_data->slave_node = slave_node; in cpsw_probe_dt()
1330 slave_data->phy_node = of_parse_phandle(slave_node, in cpsw_probe_dt()
1333 if (slave_data->phy_node) { in cpsw_probe_dt()
1336 i, slave_data->phy_node); in cpsw_probe_dt()
1347 slave_data->phy_node = of_node_get(slave_node); in cpsw_probe_dt()
1366 snprintf(slave_data->phy_id, sizeof(slave_data->phy_id), in cpsw_probe_dt()
1375 ret = of_get_phy_mode(slave_node, &slave_data->phy_if); in cpsw_probe_dt()
1385 ether_addr_copy(slave_data->mac_addr, mac_addr); in cpsw_probe_dt()
1388 slave_data->mac_addr); in cpsw_probe_dt()
1396 slave_data->dual_emac_res_vlan = i+1; in cpsw_probe_dt()
1398 slave_data->dual_emac_res_vlan, i); in cpsw_probe_dt()
1400 slave_data->dual_emac_res_vlan = prop; in cpsw_probe_dt()
1427 struct cpsw_slave_data *slave_data = &data->slave_data[i]; in cpsw_remove_dt() local
1435 of_node_put(slave_data->phy_node); in cpsw_remove_dt()
1468 if (is_valid_ether_addr(data->slave_data[1].mac_addr)) { in cpsw_probe_dual_emac()
1469 memcpy(priv_sl2->mac_addr, data->slave_data[1].mac_addr, in cpsw_probe_dual_emac()
1650 if (is_valid_ether_addr(data->slave_data[0].mac_addr)) { in cpsw_probe()
1651 memcpy(priv->mac_addr, data->slave_data[0].mac_addr, ETH_ALEN); in cpsw_probe()