Lines Matching refs:pwrsts
491 uint32_t pwrsts = NUMAKER_UTCPD_REG_READ_BY_NAME(dev, PWRSTS); in numaker_utcpd_vbus_is_present() local
493 if (pwrsts & UTCPD_PWRSTS_VBPS_Msk) { in numaker_utcpd_vbus_is_present()
510 uint32_t pwrsts = NUMAKER_UTCPD_REG_READ_BY_NAME(dev, PWRSTS); in numaker_utcpd_vbus_is_source() local
512 if (pwrsts & (UTCPD_PWRSTS_SRHV_Msk | UTCPD_PWRSTS_SRVB_Msk)) { in numaker_utcpd_vbus_is_source()
529 uint32_t pwrsts = NUMAKER_UTCPD_REG_READ_BY_NAME(dev, PWRSTS); in numaker_utcpd_vbus_is_sink() local
531 if (pwrsts & UTCPD_PWRSTS_SKVB_Msk) { in numaker_utcpd_vbus_is_sink()
2105 uint32_t pwrsts = NUMAKER_UTCPD_REG_READ_BY_NAME(dev, PWRSTS); in numaker_tcpc_get_snk_ctrl() local
2107 return (pwrsts & UTCPD_PWRSTS_SKVB_Msk) ? true : false; in numaker_tcpc_get_snk_ctrl()
2120 uint32_t pwrsts = NUMAKER_UTCPD_REG_READ_BY_NAME(dev, PWRSTS); in numaker_tcpc_get_src_ctrl() local
2122 return (pwrsts & (UTCPD_PWRSTS_SRVB_Msk | UTCPD_PWRSTS_SRHV_Msk)) ? true : false; in numaker_tcpc_get_src_ctrl()
2257 uint32_t pwrsts = NUMAKER_UTCPD_REG_READ_BY_NAME(dev, PWRSTS); in numaker_tcpc_vbus_check_level() local
2263 : !(pwrsts & UTCPD_PWRSTS_VBPS_Msk); in numaker_tcpc_vbus_check_level()
2266 : (pwrsts & UTCPD_PWRSTS_VBPS_Msk); in numaker_tcpc_vbus_check_level()
2269 : !(pwrsts & UTCPD_PWRSTS_VBPS_Msk); in numaker_tcpc_vbus_check_level()