Home
last modified time | relevance | path

Searched refs:vbus_present (Results 1 – 5 of 5) sorted by relevance

/OK3568_Linux_fs/u-boot/drivers/power/power_delivery/
H A Dfusb302.c74 bool vbus_present; member
267 chip->vbus_present = !!(data & FUSB_REG_STATUS0_VBUSOK); in tcpm_init()
280 return chip->vbus_present ? 1 : 0; in tcpm_get_vbus()
1327 bool vbus_present; in fusb302_interrupt_handle() local
1359 vbus_present = !!(status0 & FUSB_REG_STATUS0_VBUSOK); in fusb302_interrupt_handle()
1360 debug("IRQ: VBUS_OK, vbus=%s\n", vbus_present ? "On" : "Off"); in fusb302_interrupt_handle()
1361 if (vbus_present != chip->vbus_present) { in fusb302_interrupt_handle()
1362 chip->vbus_present = vbus_present; in fusb302_interrupt_handle()
H A Dtcpm.c313 bool vbus_present; member
1195 if (port->vbus_present) { in tcpm_pd_ctrl_request()
2369 } else if (port->vbus_present) in run_state_machine()
2391 if (port->vbus_present) { in run_state_machine()
2777 port->vbus_present ? PD_T_PS_SOURCE_OFF : 0); in run_state_machine()
2885 else if (port->vbus_present) in _tcpm_cc_change()
2930 if (!port->vbus_present && tcpm_port_is_source(port)) in _tcpm_cc_change()
2934 if (port->vbus_present || !tcpm_port_is_source(port)) in _tcpm_cc_change()
2993 port->vbus_present = true; in _tcpm_pd_vbus_on()
3064 port->vbus_present = false; in _tcpm_pd_vbus_off()
[all …]
/OK3568_Linux_fs/kernel/drivers/usb/typec/tcpm/
H A Dfusb302.c107 bool vbus_present; member
422 chip->vbus_present = !!(data & FUSB_REG_STATUS0_VBUSOK); in tcpm_init()
438 ret = chip->vbus_present ? 1 : 0; in tcpm_get_vbus()
1511 bool vbus_present; in fusb302_irq_work() local
1541 vbus_present = !!(status0 & FUSB_REG_STATUS0_VBUSOK); in fusb302_irq_work()
1543 vbus_present ? "On" : "Off"); in fusb302_irq_work()
1544 if (vbus_present != chip->vbus_present) { in fusb302_irq_work()
1545 chip->vbus_present = vbus_present; in fusb302_irq_work()
H A Dtcpm.c333 bool vbus_present; member
2637 if (port->vbus_present) { in tcpm_pd_ctrl_request()
3973 if (port->vbus_present && tcpm_port_is_sink(port)) in run_state_machine()
4197 } else if (port->vbus_present) { in run_state_machine()
4243 if (port->vbus_present && tcpm_port_is_sink(port)) { in run_state_machine()
4281 if (port->vbus_present) { in run_state_machine()
4903 port->vbus_present ? timer_val_msecs : 0); in run_state_machine()
5038 else if (port->vbus_present) in _tcpm_cc_change()
5099 if (!port->vbus_present && tcpm_port_is_source(port)) in _tcpm_cc_change()
5103 if (port->vbus_present || !tcpm_port_is_source(port)) in _tcpm_cc_change()
[all …]
/OK3568_Linux_fs/kernel/drivers/power/supply/
H A Dsc8551_charger.c740 bool vbus_present; member
1477 sc->vbus_present = !!(stat & VBUS_INSERT); in sc8551_check_alarm_status()