Searched refs:TCPC_ROLE_CTRL (Results 1 – 5 of 5) sorted by relevance
/linux/drivers/usb/typec/tcpm/ |
H A D | maxim_contaminant.c | 230 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 D | tcpci.c | 149 ret = regmap_write(tcpci->regmap, TCPC_ROLE_CTRL, reg); in tcpci_set_cc() 163 ret = regmap_read(tcpci->regmap, TCPC_ROLE_CTRL, ®); 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, ®); in tcpci_set_polarity() 302 ret = regmap_write(tcpci->regmap, TCPC_ROLE_CTRL, reg); in tcpci_set_polarity()
|
H A D | tcpci_rt1711h.c | 195 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 D | tcpci.h | 64 #define TCPC_ROLE_CTRL 0x1a macro
|
/linux/drivers/usb/typec/ |
H A D | anx7411.c | 892 ret |= anx7411_reg_write(ctx->tcpc_client, TCPC_ROLE_CTRL, in anx7411_chip_standby()
|