| /OK3568_Linux_fs/u-boot/include/power/power_delivery/ |
| H A D | tcpm.h | 131 struct tcpc_dev { struct 133 int (*init)(struct tcpc_dev *dev); argument 134 int (*get_vbus)(struct tcpc_dev *dev); argument 135 int (*get_current_limit)(struct tcpc_dev *dev); argument 136 int (*set_cc)(struct tcpc_dev *dev, enum typec_cc_status cc); argument 137 int (*apply_rc)(struct tcpc_dev *dev, enum typec_cc_status cc, argument 139 int (*get_cc)(struct tcpc_dev *dev, enum typec_cc_status *cc1, argument 141 int (*set_polarity)(struct tcpc_dev *dev, argument 143 int (*set_vconn)(struct tcpc_dev *dev, bool on); argument 144 int (*set_vbus)(struct tcpc_dev *dev, bool on, bool charge); argument [all …]
|
| /OK3568_Linux_fs/kernel/include/linux/usb/ |
| H A D | tcpm.h | 126 struct tcpc_dev { struct 129 int (*init)(struct tcpc_dev *dev); argument 130 int (*get_vbus)(struct tcpc_dev *dev); argument 131 int (*get_current_limit)(struct tcpc_dev *dev); argument 132 int (*set_cc)(struct tcpc_dev *dev, enum typec_cc_status cc); argument 133 int (*apply_rc)(struct tcpc_dev *dev, enum typec_cc_status cc, argument 135 int (*get_cc)(struct tcpc_dev *dev, enum typec_cc_status *cc1, argument 137 int (*set_polarity)(struct tcpc_dev *dev, argument 139 int (*set_vconn)(struct tcpc_dev *dev, bool on); argument 140 int (*set_vbus)(struct tcpc_dev *dev, bool on, bool charge); argument [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/power/power_delivery/ |
| H A D | fusb302.c | 59 struct tcpc_dev tcpc_dev; member 245 static int tcpm_init(struct tcpc_dev *dev) in tcpm_init() 248 tcpc_dev); in tcpm_init() 276 static int tcpm_get_vbus(struct tcpc_dev *dev) in tcpm_get_vbus() 279 tcpc_dev); in tcpm_get_vbus() 284 static int tcpm_get_current_limit(struct tcpc_dev *dev) 288 tcpc_dev); 443 static int tcpm_set_cc(struct tcpc_dev *dev, enum typec_cc_status cc) in tcpm_set_cc() 446 tcpc_dev); in tcpm_set_cc() 541 static int tcpm_get_cc(struct tcpc_dev *dev, enum typec_cc_status *cc1, in tcpm_get_cc() [all …]
|
| H A D | tcpci.c | 37 struct tcpc_dev tcpc; 48 static inline struct tcpci *tcpc_to_tcpci(struct tcpc_dev *tcpc) in tcpc_to_tcpci() 111 static int tcpci_set_cc(struct tcpc_dev *tcpc, enum typec_cc_status cc) in tcpci_set_cc() 158 static int tcpci_start_toggling(struct tcpc_dev *tcpc, in tcpci_start_toggling() 222 static int tcpci_get_cc(struct tcpc_dev *tcpc, in tcpci_get_cc() 248 static int tcpci_set_polarity(struct tcpc_dev *tcpc, in tcpci_set_polarity() 308 static int tcpci_set_vconn(struct tcpc_dev *tcpc, bool enable) in tcpci_set_vconn() 329 static int tcpci_set_roles(struct tcpc_dev *tcpc, bool attached, in tcpci_set_roles() 348 static int tcpci_set_pd_rx(struct tcpc_dev *tcpc, bool enable) in tcpci_set_pd_rx() 363 static int tcpci_get_vbus(struct tcpc_dev *tcpc) in tcpci_get_vbus() [all …]
|
| H A D | tcpm.c | 287 struct tcpc_dev *tcpc; 3423 struct tcpm_port *tcpm_port_init(struct udevice *dev, struct tcpc_dev *tcpc) in tcpm_port_init()
|
| /OK3568_Linux_fs/kernel/drivers/usb/typec/tcpm/ |
| H A D | tcpci.c | 55 struct tcpc_dev tcpc; 70 static inline struct tcpci *tcpc_to_tcpci(struct tcpc_dev *tcpc) in tcpc_to_tcpci() 85 static int tcpci_set_cc(struct tcpc_dev *tcpc, enum typec_cc_status cc) in tcpci_set_cc() 158 static int tcpci_apply_rc(struct tcpc_dev *tcpc, enum typec_cc_status cc, in tcpci_apply_rc() 185 static int tcpci_start_toggling(struct tcpc_dev *tcpc, in tcpci_start_toggling() 252 static int tcpci_get_cc(struct tcpc_dev *tcpc, in tcpci_get_cc() 279 static int tcpci_set_polarity(struct tcpc_dev *tcpc, in tcpci_set_polarity() 339 static void tcpci_set_partner_usb_comm_capable(struct tcpc_dev *tcpc, bool capable) in tcpci_set_partner_usb_comm_capable() 347 static int tcpci_set_vconn(struct tcpc_dev *tcpc, bool enable) in tcpci_set_vconn() 364 static int tcpci_enable_auto_vbus_discharge(struct tcpc_dev *dev, bool enable) in tcpci_enable_auto_vbus_discharge() [all …]
|
| H A D | fusb302.c | 77 struct tcpc_dev tcpc_dev; member 400 static int tcpm_init(struct tcpc_dev *dev) in tcpm_init() 403 tcpc_dev); in tcpm_init() 431 static int tcpm_get_vbus(struct tcpc_dev *dev) in tcpm_get_vbus() 434 tcpc_dev); in tcpm_get_vbus() 444 static int tcpm_get_current_limit(struct tcpc_dev *dev) in tcpm_get_current_limit() 447 tcpc_dev); in tcpm_get_current_limit() 605 static int tcpm_set_cc(struct tcpc_dev *dev, enum typec_cc_status cc) in tcpm_set_cc() 608 tcpc_dev); in tcpm_set_cc() 711 static int tcpm_get_cc(struct tcpc_dev *dev, enum typec_cc_status *cc1, in tcpm_get_cc() [all …]
|
| H A D | wcove.c | 154 struct tcpc_dev tcpc; 200 static int wcove_init(struct tcpc_dev *tcpc) in wcove_init() 217 static int wcove_get_vbus(struct tcpc_dev *tcpc) in wcove_get_vbus() 232 static int wcove_set_vbus(struct tcpc_dev *tcpc, bool on, bool sink) in wcove_set_vbus() 239 static int wcove_set_vconn(struct tcpc_dev *tcpc, bool on) in wcove_set_vconn() 268 static int wcove_get_cc(struct tcpc_dev *tcpc, enum typec_cc_status *cc1, in wcove_get_cc() 290 static int wcove_set_cc(struct tcpc_dev *tcpc, enum typec_cc_status cc) in wcove_set_cc() 318 static int wcove_set_polarity(struct tcpc_dev *tcpc, enum typec_cc_polarity pol) in wcove_set_polarity() 325 static int wcove_set_current_limit(struct tcpc_dev *tcpc, u32 max_ma, u32 mv) in wcove_set_current_limit() 330 static int wcove_set_roles(struct tcpc_dev *tcpc, bool attached, in wcove_set_roles() [all …]
|
| H A D | tcpm.c | 307 struct tcpc_dev *tcpc; 5783 struct tcpc_dev *tcpc = port->tcpc; in tcpm_try_role() 6527 struct tcpm_port *tcpm_register_port(struct device *dev, struct tcpc_dev *tcpc) in tcpm_register_port()
|