Searched refs:partner_pd (Results 1 – 5 of 5) sorted by relevance
/linux/drivers/platform/chrome/ |
H A D | cros_ec_typec.c | 224 usb_power_delivery_unregister(port->partner_pd); in cros_typec_remove_partner() 225 port->partner_pd = NULL; in cros_typec_remove_partner() 984 if (!port->partner || port->partner_pd) in cros_typec_register_partner_pdos() 991 port->partner_pd = typec_partner_usb_power_delivery_register(port->partner, &desc); in cros_typec_register_partner_pdos() 992 if (IS_ERR(port->partner_pd)) { in cros_typec_register_partner_pdos() 997 typec_partner_set_usb_power_delivery(port->partner, port->partner_pd); in cros_typec_register_partner_pdos() 1001 port->partner_src_caps = usb_power_delivery_register_capabilities(port->partner_pd, in cros_typec_register_partner_pdos() 1009 port->partner_sink_caps = usb_power_delivery_register_capabilities(port->partner_pd, in cros_typec_register_partner_pdos()
|
H A D | cros_ec_typec.h | 78 struct usb_power_delivery *partner_pd; member
|
/linux/drivers/usb/typec/ucsi/ |
H A D | ucsi.c | 737 return usb_power_delivery_register_capabilities(is_partner ? con->partner_pd : con->pd, in ucsi_get_pd_caps() 855 if (con->partner_pd) in ucsi_register_partner_pdos() 858 con->partner_pd = typec_partner_usb_power_delivery_register(con->partner, &desc); in ucsi_register_partner_pdos() 859 if (IS_ERR(con->partner_pd)) in ucsi_register_partner_pdos() 860 return PTR_ERR(con->partner_pd); in ucsi_register_partner_pdos() 874 return typec_partner_set_usb_power_delivery(con->partner, con->partner_pd); in ucsi_register_partner_pdos() 883 usb_power_delivery_unregister(con->partner_pd); in ucsi_unregister_partner_pdos() 884 con->partner_pd = NULL; in ucsi_unregister_partner_pdos()
|
H A D | ucsi.h | 448 struct usb_power_delivery *partner_pd; member
|
/linux/drivers/usb/typec/tcpm/ |
H A D | tcpm.c | 424 struct usb_power_delivery *partner_pd; member 3010 if (!port->partner_pd) in tcpm_register_source_caps() 3011 port->partner_pd = usb_power_delivery_register(NULL, &desc); in tcpm_register_source_caps() 3012 if (IS_ERR(port->partner_pd)) in tcpm_register_source_caps() 3013 return PTR_ERR(port->partner_pd); in tcpm_register_source_caps() 3023 cap = usb_power_delivery_register_capabilities(port->partner_pd, &caps); in tcpm_register_source_caps() 3038 if (!port->partner_pd) in tcpm_register_sink_caps() 3039 port->partner_pd = usb_power_delivery_register(NULL, &desc); in tcpm_register_sink_caps() 3040 if (IS_ERR(port->partner_pd)) in tcpm_register_sink_caps() 3041 return PTR_ERR(port->partner_pd); in tcpm_register_sink_caps() [all …]
|