Home
last modified time | relevance | path

Searched refs:regbit (Results 1 – 2 of 2) sorted by relevance

/Zephyr-Core-3.5.0/drivers/reset/
Dreset_intel_socfpga.c32 uint8_t regbit; in reset_intel_soc_status() local
34 regbit = (id & ((RESET_REG_WIDTH << (RESET_REG_WIDTH - 1)) - 1)); in reset_intel_soc_status()
37 *status = !(value & BIT(regbit)) ^ config->active_low; in reset_intel_soc_status()
46 uint8_t regbit; in reset_intel_soc_update() local
48 regbit = (id & ((RESET_REG_WIDTH << (RESET_REG_WIDTH - 1)) - 1)); in reset_intel_soc_update()
52 if (sys_test_bit(base_address + offset, regbit) == 0) { in reset_intel_soc_update()
53 sys_set_bit(base_address + offset, regbit); in reset_intel_soc_update()
56 if (sys_test_bit(base_address + offset, regbit) != 0) { in reset_intel_soc_update()
57 sys_clear_bit(base_address + offset, regbit); in reset_intel_soc_update()
Dreset_rpi_pico.c71 uint8_t regbit; in reset_rpi_status() local
75 regbit = id % (config->reg_width * CHAR_BIT); in reset_rpi_status()
82 *status = !(value & BIT(regbit)) ^ !config->active_low; in reset_rpi_status()
92 uint8_t regbit; in reset_rpi_update() local
96 regbit = id % (config->reg_width * CHAR_BIT); in reset_rpi_update()
104 value |= BIT(regbit); in reset_rpi_update()
106 value &= ~BIT(regbit); in reset_rpi_update()