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()
83 if (FM1_DTSEC4 == i) in board_eth_init()
85 if (FM1_DTSEC5 == i) in board_eth_init()
87 fm_info_set_phy_address(i, phy_addr); in board_eth_init()
90 fm_info_set_phy_address(i, 0); in board_eth_init()
93 fm_info_set_phy_address(i, 0); in board_eth_init()
97 idx + 1, fm_info_get_enet_if(i)); in board_eth_init()
98 fm_info_set_phy_address(i, 0); in board_eth_init()
101 if (fm_info_get_enet_if(i) == PHY_INTERFACE_MODE_QSGMII || in board_eth_init()
102 fm_info_get_enet_if(i) == PHY_INTERFACE_MODE_NONE) in board_eth_init()
103 fm_info_set_mdio(i, NULL); in board_eth_init()
105 fm_info_set_mdio(i, in board_eth_init()
113 for (i = 0; i < 4; i++) { in board_eth_init()
115 phy_addr = CONFIG_SYS_FM1_QSGMII11_PHY_ADDR + i; in board_eth_init()
118 vsc9953_port_info_set_mdio(i, bus); in board_eth_init()
119 vsc9953_port_info_set_phy_address(i, phy_addr); in board_eth_init()
120 vsc9953_port_info_set_phy_int(i, phy_int); in board_eth_init()
121 vsc9953_port_enable(i); in board_eth_init()
125 for (i = 4; i < 8; i++) { in board_eth_init()
127 phy_addr = CONFIG_SYS_FM1_QSGMII21_PHY_ADDR + i - 4; in board_eth_init()
130 vsc9953_port_info_set_mdio(i, bus); in board_eth_init()
131 vsc9953_port_info_set_phy_address(i, phy_addr); in board_eth_init()
132 vsc9953_port_info_set_phy_int(i, phy_int); in board_eth_init()
133 vsc9953_port_enable(i); in board_eth_init()