Lines Matching refs:ucpd_port

69 static void update_stm32g0x_cc_line(UCPD_TypeDef *ucpd_port)  in update_stm32g0x_cc_line()  argument
71 if ((uint32_t)(ucpd_port) == UCPD1_BASE) { in update_stm32g0x_cc_line()
88 LL_UCPD_WriteData(config->ucpd_port, in ucpd_tx_data_byte()
102 LL_UCPD_ReadData(config->ucpd_port); in ucpd_rx_data_byte()
114 imr = LL_UCPD_ReadReg(config->ucpd_port, IMR); in ucpd_tx_interrupts_enable()
117 LL_UCPD_WriteReg(config->ucpd_port, ICR, UCPD_ICR_TX_INT_MASK); in ucpd_tx_interrupts_enable()
118 LL_UCPD_WriteReg(config->ucpd_port, IMR, in ucpd_tx_interrupts_enable()
121 LL_UCPD_WriteReg(config->ucpd_port, IMR, in ucpd_tx_interrupts_enable()
164 uint32_t cr = LL_UCPD_ReadReg(config->ucpd_port, CR); in ucpd_get_cc_enable_mask()
210 sr = LL_UCPD_ReadReg(config->ucpd_port, SR); in ucpd_get_cc()
213 anamode = LL_UCPD_GetRole(config->ucpd_port); in ucpd_get_cc()
278 cr = LL_UCPD_ReadReg(config->ucpd_port, CR); in ucpd_set_vconn()
283 LL_UCPD_WriteReg(config->ucpd_port, CR, cr); in ucpd_set_vconn()
286 update_stm32g0x_cc_line(config->ucpd_port); in ucpd_set_vconn()
323 LL_UCPD_VconnDischargeEnable(config->ucpd_port); in ucpd_vconn_discharge()
325 LL_UCPD_VconnDischargeDisable(config->ucpd_port); in ucpd_vconn_discharge()
329 update_stm32g0x_cc_line(config->ucpd_port); in ucpd_vconn_discharge()
374 cr = LL_UCPD_ReadReg(config->ucpd_port, CR); in dead_battery()
382 LL_UCPD_WriteReg(config->ucpd_port, CR, cr); in dead_battery()
383 update_stm32g0x_cc_line(config->ucpd_port); in dead_battery()
412 cr = LL_UCPD_ReadReg(config->ucpd_port, CR); in ucpd_set_cc()
434 LL_UCPD_WriteReg(config->ucpd_port, CR, cr); in ucpd_set_cc()
437 update_stm32g0x_cc_line(config->ucpd_port); in ucpd_set_cc()
457 cr = LL_UCPD_ReadReg(config->ucpd_port, CR); in ucpd_cc_set_polarity()
475 LL_UCPD_WriteReg(config->ucpd_port, CR, cr); in ucpd_cc_set_polarity()
492 imr = LL_UCPD_ReadReg(config->ucpd_port, IMR); in ucpd_set_rx_enable()
493 cr = LL_UCPD_ReadReg(config->ucpd_port, CR); in ucpd_set_rx_enable()
501 LL_UCPD_WriteReg(config->ucpd_port, ICR, UCPD_ICR_RX_INT_MASK); in ucpd_set_rx_enable()
504 LL_UCPD_WriteReg(config->ucpd_port, IMR, imr); in ucpd_set_rx_enable()
505 LL_UCPD_WriteReg(config->ucpd_port, CR, cr); in ucpd_set_rx_enable()
509 LL_UCPD_WriteReg(config->ucpd_port, CR, cr); in ucpd_set_rx_enable()
510 LL_UCPD_WriteReg(config->ucpd_port, IMR, imr); in ucpd_set_rx_enable()
562 cr = LL_UCPD_ReadReg(config->ucpd_port, CR); in ucpd_start_transmit()
587 LL_UCPD_WriteReg(config->ucpd_port, ICR, in ucpd_start_transmit()
590 imr = LL_UCPD_ReadReg(config->ucpd_port, IMR); in ucpd_start_transmit()
592 LL_UCPD_WriteReg(config->ucpd_port, IMR, imr); in ucpd_start_transmit()
596 LL_UCPD_WriteReg(config->ucpd_port, CR, cr); in ucpd_start_transmit()
630 LL_UCPD_WriteTxPaySize(config->ucpd_port, msg_len); in ucpd_start_transmit()
635 LL_UCPD_WriteReg(config->ucpd_port, CR, cr); in ucpd_start_transmit()
639 LL_UCPD_WriteTxOrderSet(config->ucpd_port, in ucpd_start_transmit()
650 LL_UCPD_SendMessage(config->ucpd_port); in ucpd_start_transmit()
944 tx_type = LL_UCPD_ReadRxOrderSet(config->ucpd_port); in ucpd_send_good_crc()
1112 LL_UCPD_ReadReg(((const struct tcpc_config *)dev_inst[0]->config)->ucpd_port, SR); in ucpd_isr()
1114 LL_UCPD_ReadReg(((const struct tcpc_config *)dev_inst[1]->config)->ucpd_port, SR); in ucpd_isr()
1140 sr = LL_UCPD_ReadReg(config->ucpd_port, SR); in ucpd_isr()
1182 LL_UCPD_ReadRxOrderSet(config->ucpd_port); in ucpd_isr()
1243 LL_UCPD_WriteReg(config->ucpd_port, ICR, sr & UCPD_ICR_ALL_INT_MASK); in ucpd_isr()
1259 LOG_INF("CFGR1: %08x", LL_UCPD_ReadReg(config->ucpd_port, CFG1)); in ucpd_dump_std_reg()
1260 LOG_INF("CFGR2: %08x", LL_UCPD_ReadReg(config->ucpd_port, CFG2)); in ucpd_dump_std_reg()
1261 LOG_INF("CR: %08x", LL_UCPD_ReadReg(config->ucpd_port, CR)); in ucpd_dump_std_reg()
1262 LOG_INF("IMR: %08x", LL_UCPD_ReadReg(config->ucpd_port, IMR)); in ucpd_dump_std_reg()
1263 LOG_INF("SR: %08x", LL_UCPD_ReadReg(config->ucpd_port, SR)); in ucpd_dump_std_reg()
1264 LOG_INF("ICR: %08x\n", LL_UCPD_ReadReg(config->ucpd_port, ICR)); in ucpd_dump_std_reg()
1328 LL_UCPD_WriteReg(config->ucpd_port, IMR, 0); in ucpd_isr_init()
1340 LL_UCPD_WriteReg(config->ucpd_port, IMR, in ucpd_isr_init()
1342 LL_UCPD_WriteReg(config->ucpd_port, ICR, in ucpd_isr_init()
1382 ret = LL_UCPD_Init(config->ucpd_port, in ucpd_init()
1393 cfg1 = LL_UCPD_ReadReg(config->ucpd_port, CFG1); in ucpd_init()
1396 LL_UCPD_WriteReg(config->ucpd_port, CFG1, cfg1); in ucpd_init()
1399 LL_UCPD_Enable(config->ucpd_port); in ucpd_init()
1469 .ucpd_port = (UCPD_TypeDef *)DT_INST_REG_ADDR(inst), \