Searched refs:cc_status (Results 1 – 4 of 4) sorted by relevance
| /linux/drivers/extcon/ |
| H A D | extcon-rtk-type-c.c | 92 u32 cc_status; member 464 u32 int_status, cc_status, cc_status_check; in detect_type_c_state() local 470 cc_status = readl(reg_base + USB_TYPEC_STS); in detect_type_c_state() 476 if (((cc_status & CC1_DET_STS) == CC1_DET_STS) && type_c->at_cc1 == AT_CC1) { in detect_type_c_state() 478 cc_status); in detect_type_c_state() 481 } else if (((cc_status & CC2_DET_STS) == CC2_DET_STS) && in detect_type_c_state() 484 cc_status); in detect_type_c_state() 503 if (cc_status != cc_status_check) { in detect_type_c_state() 505 cc_status, cc_status_check); in detect_type_c_state() 506 cc_status = readl(reg_base + USB_TYPEC_STS); in detect_type_c_state() [all …]
|
| /linux/drivers/usb/typec/tcpm/ |
| H A D | maxim_contaminant.c | 49 #define IS_CC_OPEN(cc_status) \ argument 50 (FIELD_GET(TCPC_CC_STATUS_CC1, cc_status) == TCPC_CC_STATE_SRC_OPEN \ 51 && FIELD_GET(TCPC_CC_STATUS_CC2, cc_status) == TCPC_CC_STATE_SRC_OPEN) 368 u8 cc_status, pwr_cntl; in max_contaminant_is_contaminant() local 373 ret = max_tcpci_read8(chip, TCPC_CC_STATUS, &cc_status); in max_contaminant_is_contaminant() 381 if (cc_status & TCPC_CC_STATUS_TOGGLING) { in max_contaminant_is_contaminant() 391 ret = max_tcpci_read8(chip, TCPC_CC_STATUS, &cc_status); in max_contaminant_is_contaminant() 395 if (IS_CC_OPEN(cc_status)) { in max_contaminant_is_contaminant() 427 if (!(cc_status & TCPC_CC_STATUS_TOGGLING)) { in max_contaminant_is_contaminant()
|
| /linux/net/bridge/ |
| H A D | br_private_cfm.h | 142 struct br_cfm_cc_peer_status cc_status; member
|
| /linux/drivers/usb/typec/ |
| H A D | anx7411.c | 240 int cc_status; member 363 mode = CC1_RP(ctx->typec.cc_status); in anx7411_detect_power_mode() 365 mode = CC2_RP(ctx->typec.cc_status); in anx7411_detect_power_mode() 409 ctx->typec.cc_status = ret; in anx7411_detect_cc_orientation()
|