Lines Matching refs:ctl
172 uint32_t ctl = 0U; in i2c_mode_addr_config() local
174 ctl = I2C_CTL0(i2c_periph); in i2c_mode_addr_config()
175 ctl &= ~(I2C_CTL0_SMBEN); in i2c_mode_addr_config()
176 ctl |= mode; in i2c_mode_addr_config()
177 I2C_CTL0(i2c_periph) = ctl; in i2c_mode_addr_config()
369 uint32_t ctl = 0U; in i2c_dma_enable() local
371 ctl = I2C_CTL1(i2c_periph); in i2c_dma_enable()
372 ctl &= ~(I2C_CTL1_DMAON); in i2c_dma_enable()
373 ctl |= dmastate; in i2c_dma_enable()
374 I2C_CTL1(i2c_periph) = ctl; in i2c_dma_enable()
390 uint32_t ctl = 0U; in i2c_dma_last_transfer_config() local
392 ctl = I2C_CTL1(i2c_periph); in i2c_dma_last_transfer_config()
393 ctl &= ~(I2C_CTL1_DMALST); in i2c_dma_last_transfer_config()
394 ctl |= dmalast; in i2c_dma_last_transfer_config()
395 I2C_CTL1(i2c_periph) = ctl; in i2c_dma_last_transfer_config()
411 uint32_t ctl = 0U; in i2c_stretch_scl_low_config() local
413 ctl = I2C_CTL0(i2c_periph); in i2c_stretch_scl_low_config()
414 ctl &= ~(I2C_CTL0_SS); in i2c_stretch_scl_low_config()
415 ctl |= stretchpara; in i2c_stretch_scl_low_config()
416 I2C_CTL0(i2c_periph) = ctl; in i2c_stretch_scl_low_config()
432 uint32_t ctl = 0U; in i2c_slave_response_to_gcall_config() local
434 ctl = I2C_CTL0(i2c_periph); in i2c_slave_response_to_gcall_config()
435 ctl &= ~(I2C_CTL0_GCEN); in i2c_slave_response_to_gcall_config()
436 ctl |= gcallpara; in i2c_slave_response_to_gcall_config()
437 I2C_CTL0(i2c_periph) = ctl; in i2c_slave_response_to_gcall_config()
453 uint32_t ctl = 0U; in i2c_software_reset_config() local
455 ctl = I2C_CTL0(i2c_periph); in i2c_software_reset_config()
456 ctl &= ~(I2C_CTL0_SRESET); in i2c_software_reset_config()
457 ctl |= sreset; in i2c_software_reset_config()
458 I2C_CTL0(i2c_periph) = ctl; in i2c_software_reset_config()
474 uint32_t ctl = 0U; in i2c_pec_enable() local
476 ctl = I2C_CTL0(i2c_periph); in i2c_pec_enable()
477 ctl &= ~(I2C_CTL0_PECEN); in i2c_pec_enable()
478 ctl |= pecstate; in i2c_pec_enable()
479 I2C_CTL0(i2c_periph) = ctl; in i2c_pec_enable()
495 uint32_t ctl = 0U; in i2c_pec_transfer_enable() local
497 ctl = I2C_CTL0(i2c_periph); in i2c_pec_transfer_enable()
498 ctl &= ~(I2C_CTL0_PECTRANS); in i2c_pec_transfer_enable()
499 ctl |= pecpara; in i2c_pec_transfer_enable()
500 I2C_CTL0(i2c_periph) = ctl; in i2c_pec_transfer_enable()
527 uint32_t ctl = 0U; in i2c_smbus_issue_alert() local
529 ctl = I2C_CTL0(i2c_periph); in i2c_smbus_issue_alert()
530 ctl &= ~(I2C_CTL0_SALT); in i2c_smbus_issue_alert()
531 ctl |= smbuspara; in i2c_smbus_issue_alert()
532 I2C_CTL0(i2c_periph) = ctl; in i2c_smbus_issue_alert()
548 uint32_t ctl = 0U; in i2c_smbus_arp_enable() local
550 ctl = I2C_CTL0(i2c_periph); in i2c_smbus_arp_enable()
551 ctl &= ~(I2C_CTL0_ARPEN); in i2c_smbus_arp_enable()
552 ctl |= arpstate; in i2c_smbus_arp_enable()
553 I2C_CTL0(i2c_periph) = ctl; in i2c_smbus_arp_enable()