Lines Matching refs:ctl

164     uint32_t ctl = 0U;  in i2c_mode_addr_config()  local
166 ctl = I2C_CTL0(i2c_periph); in i2c_mode_addr_config()
167 ctl &= ~(I2C_CTL0_SMBEN); in i2c_mode_addr_config()
168 ctl |= mode; in i2c_mode_addr_config()
169 I2C_CTL0(i2c_periph) = ctl; in i2c_mode_addr_config()
206 uint32_t ctl = 0U; in i2c_ack_config() local
208 ctl = I2C_CTL0(i2c_periph); in i2c_ack_config()
209 ctl &= ~(I2C_CTL0_ACKEN); in i2c_ack_config()
210 ctl |= ack; in i2c_ack_config()
211 I2C_CTL0(i2c_periph) = ctl; in i2c_ack_config()
226 uint32_t ctl = 0U; in i2c_ackpos_config() local
228 ctl = I2C_CTL0(i2c_periph); in i2c_ackpos_config()
229 ctl &= ~(I2C_CTL0_POAP); in i2c_ackpos_config()
230 ctl |= pos; in i2c_ackpos_config()
231 I2C_CTL0(i2c_periph) = ctl; in i2c_ackpos_config()
362 uint32_t ctl = 0U; in i2c_dma_config() local
364 ctl = I2C_CTL1(i2c_periph); in i2c_dma_config()
365 ctl &= ~(I2C_CTL1_DMAON); in i2c_dma_config()
366 ctl |= dmastate; in i2c_dma_config()
367 I2C_CTL1(i2c_periph) = ctl; in i2c_dma_config()
383 uint32_t ctl = 0U; in i2c_dma_last_transfer_config() local
385 ctl = I2C_CTL1(i2c_periph); in i2c_dma_last_transfer_config()
386 ctl &= ~(I2C_CTL1_DMALST); in i2c_dma_last_transfer_config()
387 ctl |= dmalast; in i2c_dma_last_transfer_config()
388 I2C_CTL1(i2c_periph) = ctl; in i2c_dma_last_transfer_config()
404 uint32_t ctl = 0U; in i2c_stretch_scl_low_config() local
406 ctl = I2C_CTL0(i2c_periph); in i2c_stretch_scl_low_config()
407 ctl &= ~(I2C_CTL0_SS); in i2c_stretch_scl_low_config()
408 ctl |= stretchpara; in i2c_stretch_scl_low_config()
409 I2C_CTL0(i2c_periph) = ctl; in i2c_stretch_scl_low_config()
425 uint32_t ctl = 0U; in i2c_slave_response_to_gcall_config() local
427 ctl = I2C_CTL0(i2c_periph); in i2c_slave_response_to_gcall_config()
428 ctl &= ~(I2C_CTL0_GCEN); in i2c_slave_response_to_gcall_config()
429 ctl |= gcallpara; in i2c_slave_response_to_gcall_config()
430 I2C_CTL0(i2c_periph) = ctl; in i2c_slave_response_to_gcall_config()
446 uint32_t ctl = 0U; in i2c_software_reset_config() local
448 ctl = I2C_CTL0(i2c_periph); in i2c_software_reset_config()
449 ctl &= ~(I2C_CTL0_SRESET); in i2c_software_reset_config()
450 ctl |= sreset; in i2c_software_reset_config()
451 I2C_CTL0(i2c_periph) = ctl; in i2c_software_reset_config()
467 uint32_t ctl = 0U; in i2c_pec_config() local
469 ctl = I2C_CTL0(i2c_periph); in i2c_pec_config()
470 ctl &= ~(I2C_CTL0_PECEN); in i2c_pec_config()
471 ctl |= pecstate; in i2c_pec_config()
472 I2C_CTL0(i2c_periph) = ctl; in i2c_pec_config()
488 uint32_t ctl = 0U; in i2c_pec_transfer_config() local
490 ctl = I2C_CTL0(i2c_periph); in i2c_pec_transfer_config()
491 ctl &= ~(I2C_CTL0_PECTRANS); in i2c_pec_transfer_config()
492 ctl |= pecpara; in i2c_pec_transfer_config()
493 I2C_CTL0(i2c_periph) = ctl; in i2c_pec_transfer_config()
520 uint32_t ctl = 0U; in i2c_smbus_alert_config() local
522 ctl = I2C_CTL0(i2c_periph); in i2c_smbus_alert_config()
523 ctl &= ~(I2C_CTL0_SALT); in i2c_smbus_alert_config()
524 ctl |= smbuspara; in i2c_smbus_alert_config()
525 I2C_CTL0(i2c_periph) = ctl; in i2c_smbus_alert_config()
541 uint32_t ctl = 0U; in i2c_smbus_arp_config() local
543 ctl = I2C_CTL0(i2c_periph); in i2c_smbus_arp_config()
544 ctl &= ~(I2C_CTL0_ARPEN); in i2c_smbus_arp_config()
545 ctl |= arpstate; in i2c_smbus_arp_config()
546 I2C_CTL0(i2c_periph) = ctl; in i2c_smbus_arp_config()