Home
last modified time | relevance | path

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

/linux/drivers/usb/typec/tcpm/
H A Dmaxim_contaminant.c230 ret = max_tcpci_read8(chip, TCPC_ROLE_CTRL, &role_ctrl); in max_contaminant_detect_contaminant()
236 ret = max_tcpci_write8(chip, TCPC_ROLE_CTRL, role_ctrl); in max_contaminant_detect_contaminant()
271 max_tcpci_write8(chip, TCPC_ROLE_CTRL, role_ctrl_backup); in max_contaminant_detect_contaminant()
273 max_tcpci_write8(chip, TCPC_ROLE_CTRL, (TCPC_ROLE_CTRL_DRP | 0xA)); in max_contaminant_detect_contaminant()
277 max_tcpci_write8(chip, TCPC_ROLE_CTRL, role_ctrl_backup); in max_contaminant_detect_contaminant()
295 ret = regmap_update_bits(regmap, TCPC_ROLE_CTRL, TCPC_ROLE_CTRL_DRP, TCPC_ROLE_CTRL_DRP); in max_contaminant_enable_dry_detection()
354 ret = max_tcpci_read8(chip, TCPC_ROLE_CTRL, &role_ctrl); in max_contaminant_is_contaminant()
361 ret = max_tcpci_write8(chip, TCPC_ROLE_CTRL, role_ctrl); in max_contaminant_is_contaminant()
367 ret = max_tcpci_write8(chip, TCPC_ROLE_CTRL, role_ctrl_backup); in max_contaminant_is_contaminant()
H A Dtcpci.c149 ret = regmap_write(tcpci->regmap, TCPC_ROLE_CTRL, reg); in tcpci_set_cc()
163 ret = regmap_read(tcpci->regmap, TCPC_ROLE_CTRL, &reg); in tcpci_apply_rc()
174 return regmap_update_bits(tcpci->regmap, TCPC_ROLE_CTRL, polarity == TYPEC_POLARITY_CC1 ? in tcpci_apply_rc()
219 ret = regmap_write(tcpci->regmap, TCPC_ROLE_CTRL, reg); in tcpci_start_toggling()
233 ret = regmap_read(tcpci->regmap, TCPC_ROLE_CTRL, &role_control); in tcpci_get_cc()
260 ret = regmap_read(tcpci->regmap, TCPC_ROLE_CTRL, &reg); in tcpci_set_polarity()
302 ret = regmap_write(tcpci->regmap, TCPC_ROLE_CTRL, reg); in tcpci_set_polarity()
H A Dtcpci_rt1711h.c195 ret = rt1711h_read8(chip, TCPC_ROLE_CTRL, &role); in rt1711h_init_cc_params()
255 ret = rt1711h_write8(chip, TCPC_ROLE_CTRL, reg); in rt1711h_start_drp_toggling()
/linux/include/linux/usb/
H A Dtcpci.h64 #define TCPC_ROLE_CTRL 0x1a macro
/linux/drivers/usb/typec/
H A Danx7411.c892 ret |= anx7411_reg_write(ctx->tcpc_client, TCPC_ROLE_CTRL, in anx7411_chip_standby()