Home
last modified time | relevance | path

Searched refs:cc_status (Results 1 – 8 of 8) sorted by relevance

/linux/drivers/extcon/
H A Dextcon-rtk-type-c.c92 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 Dmaxim_contaminant.c49 #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)
330 u8 cc_status, pwr_cntl; in max_contaminant_is_contaminant() local
335 ret = max_tcpci_read8(chip, TCPC_CC_STATUS, &cc_status); in max_contaminant_is_contaminant()
347 ret = max_tcpci_read8(chip, TCPC_CC_STATUS, &cc_status); in max_contaminant_is_contaminant()
351 if (IS_CC_OPEN(cc_status)) { in max_contaminant_is_contaminant()
377 if (!(cc_status & TCPC_CC_STATUS_TOGGLING)) { in max_contaminant_is_contaminant()
H A Dfusb302.c1077 enum typec_cc_status cc_status; in fusb302_bc_lvl_handler_work() local
1095 cc_status = fusb302_bc_lvl_to_cc(bc_lvl); in fusb302_bc_lvl_handler_work()
1097 if (chip->cc1 != cc_status) { in fusb302_bc_lvl_handler_work()
1100 typec_cc_status_name[cc_status]); in fusb302_bc_lvl_handler_work()
1101 chip->cc1 = cc_status; in fusb302_bc_lvl_handler_work()
1105 if (chip->cc2 != cc_status) { in fusb302_bc_lvl_handler_work()
1108 typec_cc_status_name[cc_status]); in fusb302_bc_lvl_handler_work()
1109 chip->cc2 = cc_status; in fusb302_bc_lvl_handler_work()
/linux/net/bridge/
H A Dbr_cfm.c150 memset(&peer_mep->cc_status, 0, sizeof(peer_mep->cc_status)); in cc_peer_enable()
315 peer_mep->cc_status.ccm_defect = true; in ccm_rx_work_expired()
349 peer_mep->cc_status.tlv_seen = true; in ccm_tlv_extract()
350 peer_mep->cc_status.if_tlv_value = (h_s_tlv & 0xFF); in ccm_tlv_extract()
355 peer_mep->cc_status.tlv_seen = true; in ccm_tlv_extract()
356 peer_mep->cc_status.port_tlv_value = (h_s_tlv & 0xFF); in ccm_tlv_extract()
445 if (peer_mep->cc_status.ccm_defect) { in br_cfm_frame_rx()
446 peer_mep->cc_status.ccm_defect = false; in br_cfm_frame_rx()
455 peer_mep->cc_status.seen = true; in br_cfm_frame_rx()
459 peer_mep->cc_status.rdi = (hdr->flags & 0x80) ? true : false; in br_cfm_frame_rx()
[all …]
H A Dbr_cfm_netlink.c676 peer_mep->cc_status.ccm_defect)) in br_cfm_status_fill_info()
680 peer_mep->cc_status.rdi)) in br_cfm_status_fill_info()
685 peer_mep->cc_status.port_tlv_value)) in br_cfm_status_fill_info()
690 peer_mep->cc_status.if_tlv_value)) in br_cfm_status_fill_info()
695 peer_mep->cc_status.seen)) in br_cfm_status_fill_info()
700 peer_mep->cc_status.tlv_seen)) in br_cfm_status_fill_info()
705 peer_mep->cc_status.seq_unexp_seen)) in br_cfm_status_fill_info()
710 peer_mep->cc_status.seen = false; in br_cfm_status_fill_info()
711 peer_mep->cc_status.tlv_seen = false; in br_cfm_status_fill_info()
712 peer_mep->cc_status.seq_unexp_seen = false; in br_cfm_status_fill_info()
H A Dbr_private_cfm.h142 struct br_cfm_cc_peer_status cc_status; member
/linux/drivers/pci/
H A Dnpem.c210 u32 cc_status; in npem_set_active_indications() local
231 ret_val || (cc_status & PCI_NPEM_STATUS_CC), in npem_set_active_indications()
233 PCI_NPEM_STATUS, &cc_status); in npem_set_active_indications()
/linux/drivers/usb/typec/
H A Danx7411.c240 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()