Lines Matching refs:pwd
283 u16 pwd[3] = {0, 0, 0}; in vsc85xx_wol_set() local
292 for (i = 0; i < ARRAY_SIZE(pwd); i++) in vsc85xx_wol_set()
293 pwd[i] = mac_addr[5 - (i * 2 + 1)] << 8 | in vsc85xx_wol_set()
295 __phy_write(phydev, MSCC_PHY_WOL_LOWER_MAC_ADDR, pwd[0]); in vsc85xx_wol_set()
296 __phy_write(phydev, MSCC_PHY_WOL_MID_MAC_ADDR, pwd[1]); in vsc85xx_wol_set()
297 __phy_write(phydev, MSCC_PHY_WOL_UPPER_MAC_ADDR, pwd[2]); in vsc85xx_wol_set()
305 for (i = 0; i < ARRAY_SIZE(pwd); i++) in vsc85xx_wol_set()
306 pwd[i] = wol_conf->sopass[5 - (i * 2 + 1)] << 8 | in vsc85xx_wol_set()
308 __phy_write(phydev, MSCC_PHY_WOL_LOWER_PASSWD, pwd[0]); in vsc85xx_wol_set()
309 __phy_write(phydev, MSCC_PHY_WOL_MID_PASSWD, pwd[1]); in vsc85xx_wol_set()
310 __phy_write(phydev, MSCC_PHY_WOL_UPPER_PASSWD, pwd[2]); in vsc85xx_wol_set()
355 u16 pwd[3] = {0, 0, 0}; in vsc85xx_wol_get() local
366 pwd[0] = __phy_read(phydev, MSCC_PHY_WOL_LOWER_PASSWD); in vsc85xx_wol_get()
367 pwd[1] = __phy_read(phydev, MSCC_PHY_WOL_MID_PASSWD); in vsc85xx_wol_get()
368 pwd[2] = __phy_read(phydev, MSCC_PHY_WOL_UPPER_PASSWD); in vsc85xx_wol_get()
369 for (i = 0; i < ARRAY_SIZE(pwd); i++) { in vsc85xx_wol_get()
370 wol_conf->sopass[5 - i * 2] = pwd[i] & 0x00ff; in vsc85xx_wol_get()
371 wol_conf->sopass[5 - (i * 2 + 1)] = (pwd[i] & 0xff00) in vsc85xx_wol_get()