Lines Matching refs:i

23 	unsigned int i;  in board_eth_init()  local
42 for (i = FM1_DTSEC1; i < FM1_DTSEC1 + CONFIG_SYS_NUM_FM1_DTSEC; i++) { in board_eth_init()
43 int idx = i - FM1_DTSEC1; in board_eth_init()
45 switch (fm_info_get_enet_if(i)) { in board_eth_init()
58 if ((FM1_DTSEC1 == i) || (FM1_DTSEC2 == i)) in board_eth_init()
59 fm_info_set_phy_address(i, 0); in board_eth_init()
70 if (FM1_DTSEC1 == i) in board_eth_init()
72 if (FM1_DTSEC2 == i) in board_eth_init()
74 if (FM1_DTSEC3 == i) in board_eth_init()
76 fm_info_set_phy_address(i, phy_addr); in board_eth_init()
80 if (FM1_DTSEC4 == i) in board_eth_init()
82 if (FM1_DTSEC5 == i) in board_eth_init()
84 fm_info_set_phy_address(i, phy_addr); in board_eth_init()
87 fm_info_set_phy_address(i, 0); in board_eth_init()
90 fm_info_set_phy_address(i, 0); in board_eth_init()
94 idx + 1, fm_info_get_enet_if(i)); in board_eth_init()
95 fm_info_set_phy_address(i, 0); in board_eth_init()
98 if (fm_info_get_enet_if(i) == PHY_INTERFACE_MODE_QSGMII || in board_eth_init()
99 fm_info_get_enet_if(i) == PHY_INTERFACE_MODE_NONE) in board_eth_init()
100 fm_info_set_mdio(i, NULL); in board_eth_init()
102 fm_info_set_mdio(i, in board_eth_init()
110 for (i = 0; i < 4; i++) { in board_eth_init()
112 phy_addr = CONFIG_SYS_FM1_QSGMII11_PHY_ADDR + i; in board_eth_init()
115 vsc9953_port_info_set_mdio(i, bus); in board_eth_init()
116 vsc9953_port_info_set_phy_address(i, phy_addr); in board_eth_init()
117 vsc9953_port_info_set_phy_int(i, phy_int); in board_eth_init()
118 vsc9953_port_enable(i); in board_eth_init()
122 for (i = 4; i < 8; i++) { in board_eth_init()
124 phy_addr = CONFIG_SYS_FM1_QSGMII21_PHY_ADDR + i - 4; in board_eth_init()
127 vsc9953_port_info_set_mdio(i, bus); in board_eth_init()
128 vsc9953_port_info_set_phy_address(i, phy_addr); in board_eth_init()
129 vsc9953_port_info_set_phy_int(i, phy_int); in board_eth_init()
130 vsc9953_port_enable(i); in board_eth_init()