Lines Matching refs:dpmac_info

15 struct wriop_dpmac_info dpmac_info[NUM_WRIOP_PORTS];  variable
27 dpmac_info[dpmac_id].enabled = 0; in wriop_init_dpmac()
28 dpmac_info[dpmac_id].id = 0; in wriop_init_dpmac()
29 dpmac_info[dpmac_id].enet_if = PHY_INTERFACE_MODE_NONE; in wriop_init_dpmac()
33 dpmac_info[dpmac_id].enabled = 1; in wriop_init_dpmac()
34 dpmac_info[dpmac_id].id = dpmac_id; in wriop_init_dpmac()
35 dpmac_info[dpmac_id].enet_if = enet_if; 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()
47 dpmac_info[dpmac_id].enabled = 1; in wriop_init_dpmac_enet_if()
48 dpmac_info[dpmac_id].id = dpmac_id; in wriop_init_dpmac_enet_if()
49 dpmac_info[dpmac_id].enet_if = enet_if; 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()
63 if (dpmac_info[i].id == dpmac_id) in wriop_dpmac_to_index()
77 dpmac_info[i].enabled = 0; in wriop_disable_dpmac()
90 dpmac_info[i].enabled = 1; in wriop_enable_dpmac()
103 return dpmac_info[i].enabled; in wriop_is_enabled_dpmac()
114 dpmac_info[i].bus = bus; in wriop_set_mdio()
126 return dpmac_info[i].bus; in wriop_get_mdio()
138 dpmac_info[i].phy_addr[phy_num] = address; in wriop_set_phy_address()
152 return dpmac_info[i].phy_addr[phy_num]; in wriop_get_phy_address()
164 dpmac_info[i].phydev[phy_num] = phydev; in wriop_set_phy_dev()
178 return dpmac_info[i].phydev[phy_num]; in wriop_get_phy_dev()
188 if (dpmac_info[i].enabled) in wriop_get_enet_if()
189 return dpmac_info[i].enet_if; in wriop_get_enet_if()