Searched refs:bc12_role (Results 1 – 5 of 5) sorted by relevance
65 enum bc12_role { enum102 enum bc12_role bc12_role; member134 int (*set_role)(const struct device *dev, enum bc12_role role);150 __syscall int bc12_set_role(const struct device *dev, enum bc12_role role);152 static inline int z_impl_bc12_set_role(const struct device *dev, enum bc12_role role) in z_impl_bc12_set_role()
191 if (state->bc12_role != pi3usb9201_data->partner_state.bc12_role) { in pi3usb9201_partner_has_changed()195 if (state->bc12_role == BC12_PORTABLE_DEVICE && in pi3usb9201_partner_has_changed()200 if (state->bc12_role == BC12_CHARGING_PORT && in pi3usb9201_partner_has_changed()230 pi3usb9201_data->partner_state.bc12_role = BC12_DISCONNECTED; in pi3usb9201_update_charging_partner()267 new_partner_state.bc12_role = BC12_PORTABLE_DEVICE; in pi3usb9201_client_detect_finish()338 partner_state.bc12_role = BC12_CHARGING_PORT; in pi3usb9201_host_interrupt()343 partner_state.bc12_role = BC12_CHARGING_PORT; in pi3usb9201_host_interrupt()408 partner_state.bc12_role = BC12_PORTABLE_DEVICE; in pi3usb9201_set_portable_device()445 partner_state.bc12_role = BC12_CHARGING_PORT; in pi3usb9201_set_charging_mode()524 static int pi3usb9201_set_role(const struct device *dev, const enum bc12_role role) in pi3usb9201_set_role()[all …]
10 static inline int z_vrfy_bc12_set_role(const struct device *dev, enum bc12_role role) in z_vrfy_bc12_set_role()
41 if (state->bc12_role == BC12_PORTABLE_DEVICE) { in bc12_test_result_cb()44 } else if (state->bc12_role == BC12_CHARGING_PORT) { in bc12_test_result_cb()88 zassert_equal(fixture->partner_state.bc12_role, BC12_PORTABLE_DEVICE); in ZTEST_USER_F()118 zassert_equal(fixture->partner_state.bc12_role, BC12_PORTABLE_DEVICE); in ZTEST_USER_F()149 zassert_equal(fixture->partner_state.bc12_role, BC12_PORTABLE_DEVICE); in ZTEST_USER_F()165 zassert_equal(fixture->partner_state.bc12_role, BC12_PORTABLE_DEVICE); in ZTEST_USER_F()
37 if (state->bc12_role == BC12_PORTABLE_DEVICE) { in bc12_test_result_cb()40 } else if (state->bc12_role == BC12_CHARGING_PORT) { in bc12_test_result_cb()