Searched refs:role_ctrl (Results 1 – 1 of 1) sorted by relevance
227 u8 role_ctrl = 0, role_ctrl_backup = 0; in max_contaminant_detect_contaminant() local230 ret = max_tcpci_read8(chip, TCPC_ROLE_CTRL, &role_ctrl); in max_contaminant_detect_contaminant()234 role_ctrl_backup = role_ctrl; in max_contaminant_detect_contaminant()235 role_ctrl = 0x0F; in max_contaminant_detect_contaminant()236 ret = max_tcpci_write8(chip, TCPC_ROLE_CTRL, role_ctrl); in max_contaminant_detect_contaminant()352 u8 role_ctrl, role_ctrl_backup; in max_contaminant_is_contaminant() local354 ret = max_tcpci_read8(chip, TCPC_ROLE_CTRL, &role_ctrl); in max_contaminant_is_contaminant()358 role_ctrl_backup = role_ctrl; in max_contaminant_is_contaminant()359 role_ctrl |= 0x0F; in max_contaminant_is_contaminant()360 role_ctrl &= ~(TCPC_ROLE_CTRL_DRP); in max_contaminant_is_contaminant()[all …]