Home
last modified time | relevance | path

Searched refs:tcpc_dev (Results 1 – 7 of 7) sorted by relevance

/linux/include/linux/usb/
H A Dtcpm.h134 struct tcpc_dev { struct
137 int (*init)(struct tcpc_dev *dev); argument
138 int (*get_vbus)(struct tcpc_dev *dev); argument
139 int (*get_current_limit)(struct tcpc_dev *dev); argument
140 int (*set_cc)(struct tcpc_dev *dev, enum typec_cc_status cc); argument
141 int (*apply_rc)(struct tcpc_dev *dev, enum typec_cc_status cc, argument
143 int (*get_cc)(struct tcpc_dev *dev, enum typec_cc_status *cc1, argument
145 int (*set_polarity)(struct tcpc_dev *dev, argument
147 int (*set_orientation)(struct tcpc_dev *dev, argument
149 int (*set_vconn)(struct tcpc_dev *dev, bool on); argument
[all …]
/linux/drivers/usb/typec/tcpm/
H A Dtcpci.c41 struct tcpc_dev tcpc;
56 static inline struct tcpci *tcpc_to_tcpci(struct tcpc_dev *tcpc) in tcpc_to_tcpci()
83 static int tcpci_set_cc(struct tcpc_dev *tcpc, enum typec_cc_status cc) in tcpci_set_cc()
156 static int tcpci_apply_rc(struct tcpc_dev *tcpc, enum typec_cc_status cc, in tcpci_apply_rc()
179 static int tcpci_start_toggling(struct tcpc_dev *tcpc, in tcpci_start_toggling()
226 static int tcpci_get_cc(struct tcpc_dev *tcpc, in tcpci_get_cc()
251 static int tcpci_set_polarity(struct tcpc_dev *tcpc, in tcpci_set_polarity()
311 static int tcpci_set_orientation(struct tcpc_dev *tcpc, in tcpci_set_orientation()
333 static void tcpci_set_partner_usb_comm_capable(struct tcpc_dev *tcpc, bool capable) in tcpci_set_partner_usb_comm_capable()
341 static int tcpci_set_vconn(struct tcpc_dev *tcpc, bool enable) in tcpci_set_vconn()
[all …]
H A Dfusb302.c77 struct tcpc_dev tcpc_dev; member
392 static int tcpm_init(struct tcpc_dev *dev) in tcpm_init()
395 tcpc_dev); in tcpm_init()
423 static int tcpm_get_vbus(struct tcpc_dev *dev) in tcpm_get_vbus()
426 tcpc_dev); in tcpm_get_vbus()
436 static int tcpm_get_current_limit(struct tcpc_dev *dev) in tcpm_get_current_limit()
439 tcpc_dev); in tcpm_get_current_limit()
597 static int tcpm_set_cc(struct tcpc_dev *dev, enum typec_cc_status cc) in tcpm_set_cc()
600 tcpc_dev); in tcpm_set_cc()
703 static int tcpm_get_cc(struct tcpc_dev *dev, enum typec_cc_status *cc1, in tcpm_get_cc()
[all …]
/linux/drivers/usb/typec/tcpm/qcom/
H A Dqcom_pmic_typec_pdphy_stub.c20 static int qcom_pmic_typec_pdphy_stub_pd_transmit(struct tcpc_dev *tcpc, in qcom_pmic_typec_pdphy_stub_pd_transmit()
36 static int qcom_pmic_typec_pdphy_stub_set_pd_rx(struct tcpc_dev *tcpc, bool on) in qcom_pmic_typec_pdphy_stub_set_pd_rx()
46 static int qcom_pmic_typec_pdphy_stub_set_roles(struct tcpc_dev *tcpc, bool attached, in qcom_pmic_typec_pdphy_stub_set_roles()
H A Dqcom_pmic_typec_port.c323 static int qcom_pmic_typec_port_get_vbus(struct tcpc_dev *tcpc) in qcom_pmic_typec_port_get_vbus()
336 static int qcom_pmic_typec_port_set_vbus(struct tcpc_dev *tcpc, bool on, bool sink) in qcom_pmic_typec_port_set_vbus()
360 static int qcom_pmic_typec_port_get_cc(struct tcpc_dev *tcpc, in qcom_pmic_typec_port_get_cc()
457 static int qcom_pmic_typec_port_set_cc(struct tcpc_dev *tcpc, in qcom_pmic_typec_port_set_cc()
525 static int qcom_pmic_typec_port_set_polarity(struct tcpc_dev *tcpc, in qcom_pmic_typec_port_set_polarity()
532 static int qcom_pmic_typec_port_set_vconn(struct tcpc_dev *tcpc, bool on) in qcom_pmic_typec_port_set_vconn()
570 static int qcom_pmic_typec_port_start_toggling(struct tcpc_dev *tcpc, in qcom_pmic_typec_port_start_toggling()
H A Dqcom_pmic_typec.h12 struct tcpc_dev tcpc;
H A Dqcom_pmic_typec_pdphy.c300 static int qcom_pmic_typec_pdphy_pd_transmit(struct tcpc_dev *tcpc, in qcom_pmic_typec_pdphy_pd_transmit()
407 static int qcom_pmic_typec_pdphy_set_pd_rx(struct tcpc_dev *tcpc, bool on) in qcom_pmic_typec_pdphy_set_pd_rx()
426 static int qcom_pmic_typec_pdphy_set_roles(struct tcpc_dev *tcpc, bool attached, in qcom_pmic_typec_pdphy_set_roles()