Lines Matching refs:phy_num
25 int phy_num; in wriop_init_dpmac() local
37 for (phy_num = 0; phy_num < WRIOP_MAX_PHY_NUM; phy_num++) { in wriop_init_dpmac()
38 dpmac_info[dpmac_id].phydev[phy_num] = NULL; in wriop_init_dpmac()
39 dpmac_info[dpmac_id].phy_addr[phy_num] = -1; in wriop_init_dpmac()
45 int phy_num; in wriop_init_dpmac_enet_if() local
50 for (phy_num = 0; phy_num < WRIOP_MAX_PHY_NUM; phy_num++) { in wriop_init_dpmac_enet_if()
51 dpmac_info[dpmac_id].phydev[phy_num] = NULL; in wriop_init_dpmac_enet_if()
52 dpmac_info[dpmac_id].phy_addr[phy_num] = -1; in wriop_init_dpmac_enet_if()
129 int wriop_set_phy_address(int dpmac_id, int phy_num, int address) in wriop_set_phy_address() argument
135 if (phy_num < 0 || phy_num >= WRIOP_MAX_PHY_NUM) in wriop_set_phy_address()
138 dpmac_info[i].phy_addr[phy_num] = address; in wriop_set_phy_address()
143 int wriop_get_phy_address(int dpmac_id, int phy_num) in wriop_get_phy_address() argument
149 if (phy_num < 0 || phy_num >= WRIOP_MAX_PHY_NUM) in wriop_get_phy_address()
152 return dpmac_info[i].phy_addr[phy_num]; in wriop_get_phy_address()
155 int wriop_set_phy_dev(int dpmac_id, int phy_num, struct phy_device *phydev) in wriop_set_phy_dev() argument
161 if (phy_num < 0 || phy_num >= WRIOP_MAX_PHY_NUM) in wriop_set_phy_dev()
164 dpmac_info[i].phydev[phy_num] = phydev; in wriop_set_phy_dev()
169 struct phy_device *wriop_get_phy_dev(int dpmac_id, int phy_num) in wriop_get_phy_dev() argument
175 if (phy_num < 0 || phy_num >= WRIOP_MAX_PHY_NUM) in wriop_get_phy_dev()
178 return dpmac_info[i].phydev[phy_num]; in wriop_get_phy_dev()