Lines Matching refs:node
2476 int i, j, node, mlane, num_lanes, ret; in cdns_torrent_phy_configure_multilink() local
2547 for (node = 0; node < cdns_phy->nsubnodes; node++) { in cdns_torrent_phy_configure_multilink()
2548 if (cdns_phy->phys[node].phy_type != phy_t1) in cdns_torrent_phy_configure_multilink()
2551 mlane = cdns_phy->phys[node].mlane; in cdns_torrent_phy_configure_multilink()
2552 ssc = cdns_phy->phys[node].ssc_mode; in cdns_torrent_phy_configure_multilink()
2553 num_lanes = cdns_phy->phys[node].num_lanes; in cdns_torrent_phy_configure_multilink()
2675 reset_control_deassert(cdns_phy->phys[node].lnk_rst); in cdns_torrent_phy_configure_multilink()
2697 struct device_node *node = dev->of_node; in cdns_torrent_clk_register() local
2726 ret = of_clk_add_hw_provider(node, of_clk_hw_onecell_get, data); in cdns_torrent_clk_register()
2728 dev_err(dev, "Failed to add clock provider: %s\n", node->name); in cdns_torrent_clk_register()
2863 int ret, subnodes, node = 0, i; in cdns_torrent_phy_probe() local
2930 cdns_phy->phys[node].lnk_rst = in cdns_torrent_phy_probe()
2932 if (IS_ERR(cdns_phy->phys[node].lnk_rst)) { in cdns_torrent_phy_probe()
2935 ret = PTR_ERR(cdns_phy->phys[node].lnk_rst); in cdns_torrent_phy_probe()
2940 &cdns_phy->phys[node].mlane)) { in cdns_torrent_phy_probe()
2956 cdns_phy->phys[node].phy_type = TYPE_PCIE; in cdns_torrent_phy_probe()
2959 cdns_phy->phys[node].phy_type = TYPE_DP; in cdns_torrent_phy_probe()
2962 cdns_phy->phys[node].phy_type = TYPE_SGMII; in cdns_torrent_phy_probe()
2965 cdns_phy->phys[node].phy_type = TYPE_QSGMII; in cdns_torrent_phy_probe()
2968 cdns_phy->phys[node].phy_type = TYPE_USB; in cdns_torrent_phy_probe()
2971 cdns_phy->phys[node].phy_type = TYPE_USXGMII; in cdns_torrent_phy_probe()
2980 &cdns_phy->phys[node].num_lanes)) { in cdns_torrent_phy_probe()
2987 total_num_lanes += cdns_phy->phys[node].num_lanes; in cdns_torrent_phy_probe()
2990 cdns_phy->phys[node].ssc_mode = NO_SSC; in cdns_torrent_phy_probe()
2992 &cdns_phy->phys[node].ssc_mode); in cdns_torrent_phy_probe()
3000 if (cdns_phy->phys[node].phy_type == TYPE_DP) { in cdns_torrent_phy_probe()
3001 switch (cdns_phy->phys[node].num_lanes) { in cdns_torrent_phy_probe()
3009 cdns_phy->phys[node].num_lanes); in cdns_torrent_phy_probe()
3059 gphy->attrs.bus_width = cdns_phy->phys[node].num_lanes; in cdns_torrent_phy_probe()
3064 cdns_phy->phys[node].phy = gphy; in cdns_torrent_phy_probe()
3065 cdns_phy->protocol_bitmask |= BIT(cdns_phy->phys[node].phy_type); in cdns_torrent_phy_probe()
3066 phy_set_drvdata(gphy, &cdns_phy->phys[node]); in cdns_torrent_phy_probe()
3068 node++; in cdns_torrent_phy_probe()
3070 cdns_phy->nsubnodes = node; in cdns_torrent_phy_probe()
3104 node++; in cdns_torrent_phy_probe()
3106 for (i = 0; i < node; i++) in cdns_torrent_phy_probe()
3177 int node = cdns_phy->nsubnodes; in cdns_torrent_phy_resume_noirq() local
3196 for (i = 0; i < node; i++) in cdns_torrent_phy_resume_noirq()