Home
last modified time | relevance | path

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

/rk3399_rockchip-uboot/drivers/power/power_delivery/
H A Dfusb302.c77 enum typec_cc_status cc1; member
417 chip->cc1 = TYPEC_CC_OPEN; in fusb302_set_toggling()
488 chip->cc1 = TYPEC_CC_OPEN; in tcpm_set_cc()
541 static int tcpm_get_cc(struct tcpc_dev *dev, enum typec_cc_status *cc1, in tcpm_get_cc() argument
547 *cc1 = chip->cc1; in tcpm_get_cc()
549 debug("get cc1 = %s, cc2 = %s\n", typec_cc_status_name[*cc1], in tcpm_get_cc()
914 if (chip->cc1 != cc_status) { in fusb302_bc_lvl_handler()
916 typec_cc_status_name[chip->cc1], in fusb302_bc_lvl_handler()
918 chip->cc1 = cc_status; in fusb302_bc_lvl_handler()
1036 enum typec_cc_status cc_status_active, cc1, cc2; in fusb302_handle_togdone_snk() local
[all …]
H A Dtcpm.c300 enum typec_cc_status cc1; member
472 ((tcpm_cc_is_sink((port)->cc1) && !tcpm_cc_is_sink((port)->cc2)) || \
473 (tcpm_cc_is_sink((port)->cc2) && !tcpm_cc_is_sink((port)->cc1)))
480 ((tcpm_cc_is_source((port)->cc1) && \
483 !tcpm_cc_is_source((port)->cc1)))
486 (tcpm_cc_is_source((port)->cc1) && tcpm_cc_is_source((port)->cc2))
489 (tcpm_cc_is_audio((port)->cc1) && tcpm_cc_is_audio((port)->cc2))
492 ((tcpm_cc_is_audio((port)->cc1) && tcpm_cc_is_open((port)->cc2)) || \
493 (tcpm_cc_is_audio((port)->cc2) && tcpm_cc_is_open((port)->cc1)))
527 return (!port->attached && port->cc1 == TYPEC_CC_OPEN && in tcpm_port_is_disconnected()
[all …]
H A Dtcpci.c223 enum typec_cc_status *cc1, enum typec_cc_status *cc2) in tcpci_get_cc() argument
236 *cc1 = tcpci_to_typec_cc((reg >> TCPC_CC_STATUS_CC1_SHIFT) & in tcpci_get_cc()
254 enum typec_cc_status cc1, cc2; in tcpci_set_polarity() local
261 ret = tcpci_get_cc(tcpc, &cc1, &cc2); in tcpci_set_polarity()
287 if (cc1 == TYPEC_CC_RD) in tcpci_set_polarity()
/rk3399_rockchip-uboot/include/power/power_delivery/
H A Dtcpm.h139 int (*get_cc)(struct tcpc_dev *dev, enum typec_cc_status *cc1,
/rk3399_rockchip-uboot/lib/bzip2/
H A Dbzlib_blocksort.c260 Int32 H, i, j, k, l, r, cc, cc1; in fallbackSort() local
342 cc1 = eclass[fmap[i]]; in fallbackSort()
343 if (cc != cc1) { SET_BH(i); cc = cc1; }; in fallbackSort()