Lines Matching refs:ctl

173     uint32_t ctl = 0U;  in i2c_mode_addr_config()  local
175 ctl = I2C_CTL0(i2c_periph); in i2c_mode_addr_config()
176 ctl &= ~(I2C_CTL0_SMBEN); in i2c_mode_addr_config()
177 ctl |= mode; in i2c_mode_addr_config()
178 I2C_CTL0(i2c_periph) = ctl; in i2c_mode_addr_config()
371 uint32_t ctl = 0U; in i2c_dma_enable() local
373 ctl = I2C_CTL1(i2c_periph); in i2c_dma_enable()
374 ctl &= ~(I2C_CTL1_DMAON); in i2c_dma_enable()
375 ctl |= dmastate; in i2c_dma_enable()
376 I2C_CTL1(i2c_periph) = ctl; in i2c_dma_enable()
392 uint32_t ctl = 0U; in i2c_dma_last_transfer_config() local
394 ctl = I2C_CTL1(i2c_periph); in i2c_dma_last_transfer_config()
395 ctl &= ~(I2C_CTL1_DMALST); in i2c_dma_last_transfer_config()
396 ctl |= dmalast; in i2c_dma_last_transfer_config()
397 I2C_CTL1(i2c_periph) = ctl; in i2c_dma_last_transfer_config()
413 uint32_t ctl = 0U; in i2c_stretch_scl_low_config() local
415 ctl = I2C_CTL0(i2c_periph); in i2c_stretch_scl_low_config()
416 ctl &= ~(I2C_CTL0_SS); in i2c_stretch_scl_low_config()
417 ctl |= stretchpara; in i2c_stretch_scl_low_config()
418 I2C_CTL0(i2c_periph) = ctl; in i2c_stretch_scl_low_config()
434 uint32_t ctl = 0U; in i2c_slave_response_to_gcall_config() local
436 ctl = I2C_CTL0(i2c_periph); in i2c_slave_response_to_gcall_config()
437 ctl &= ~(I2C_CTL0_GCEN); in i2c_slave_response_to_gcall_config()
438 ctl |= gcallpara; in i2c_slave_response_to_gcall_config()
439 I2C_CTL0(i2c_periph) = ctl; in i2c_slave_response_to_gcall_config()
455 uint32_t ctl = 0U; in i2c_software_reset_config() local
457 ctl = I2C_CTL0(i2c_periph); in i2c_software_reset_config()
458 ctl &= ~(I2C_CTL0_SRESET); in i2c_software_reset_config()
459 ctl |= sreset; in i2c_software_reset_config()
460 I2C_CTL0(i2c_periph) = ctl; in i2c_software_reset_config()
476 uint32_t ctl = 0U; in i2c_pec_enable() local
478 ctl = I2C_CTL0(i2c_periph); in i2c_pec_enable()
479 ctl &= ~(I2C_CTL0_PECEN); in i2c_pec_enable()
480 ctl |= pecstate; in i2c_pec_enable()
481 I2C_CTL0(i2c_periph) = ctl; in i2c_pec_enable()
497 uint32_t ctl = 0U; in i2c_pec_transfer_enable() local
499 ctl = I2C_CTL0(i2c_periph); in i2c_pec_transfer_enable()
500 ctl &= ~(I2C_CTL0_PECTRANS); in i2c_pec_transfer_enable()
501 ctl |= pecpara; in i2c_pec_transfer_enable()
502 I2C_CTL0(i2c_periph) = ctl; in i2c_pec_transfer_enable()
529 uint32_t ctl = 0U; in i2c_smbus_issue_alert() local
531 ctl = I2C_CTL0(i2c_periph); in i2c_smbus_issue_alert()
532 ctl &= ~(I2C_CTL0_SALT); in i2c_smbus_issue_alert()
533 ctl |= smbuspara; in i2c_smbus_issue_alert()
534 I2C_CTL0(i2c_periph) = ctl; in i2c_smbus_issue_alert()
550 uint32_t ctl = 0U; in i2c_smbus_arp_enable() local
552 ctl = I2C_CTL0(i2c_periph); in i2c_smbus_arp_enable()
553 ctl &= ~(I2C_CTL0_ARPEN); in i2c_smbus_arp_enable()
554 ctl |= arpstate; in i2c_smbus_arp_enable()
555 I2C_CTL0(i2c_periph) = ctl; in i2c_smbus_arp_enable()