Searched refs:sio_hw (Results 1 – 7 of 7) sorted by relevance
36 sio_hw->mtime_ctrl |= SIO_MTIME_CTRL_EN_BITS; in riscv_timer_set_enabled()38 sio_hw->mtime_ctrl &= ~SIO_MTIME_CTRL_EN_BITS; in riscv_timer_set_enabled()51 sio_hw->mtime_ctrl |= SIO_MTIME_CTRL_FULLSPEED_BITS; in riscv_timer_set_fullspeed()53 sio_hw->mtime_ctrl &= ~SIO_MTIME_CTRL_FULLSPEED_BITS; in riscv_timer_set_fullspeed()68 h0 = sio_hw->mtimeh; in riscv_timer_get_mtime()69 l = sio_hw->mtime; in riscv_timer_get_mtime()70 h1 = sio_hw->mtimeh; in riscv_timer_get_mtime()94 sio_hw->mtime = 0; in riscv_timer_set_mtime()95 sio_hw->mtimeh = mtime >> 32; in riscv_timer_set_mtime()96 sio_hw->mtime = mtime & 0xffffffffu; in riscv_timer_set_mtime()[all …]
861 return sio_hw->gpio_in & (1u << gpio); in gpio_get()864 return sio_hw->gpio_in & (1u << gpio); in gpio_get()866 return sio_hw->gpio_hi_in & (1u << (gpio - 32)); in gpio_get()880 return sio_hw->gpio_in; in gpio_get_all()893 return sio_hw->gpio_in; in gpio_get_all64()895 return sio_hw->gpio_in | (((uint64_t)sio_hw->gpio_hi_in) << 32u); in gpio_get_all64()912 sio_hw->gpio_set = mask; in gpio_set_mask()925 sio_hw->gpio_set = (uint32_t)mask; in gpio_set_mask64()927 sio_hw->gpio_set = (uint32_t)mask; in gpio_set_mask64()928 sio_hw->gpio_hi_set = (uint32_t)(mask >> 32u); in gpio_set_mask64()[all …]
146 return sio_hw->fifo_st & SIO_FIFO_ST_VLD_BITS; in multicore_fifo_rvalid()157 return sio_hw->fifo_st & SIO_FIFO_ST_RDY_BITS; in multicore_fifo_wready()189 sio_hw->fifo_wr = data; in multicore_fifo_push_blocking_inline()237 return sio_hw->fifo_rd; in multicore_fifo_pop_blocking_inline()260 (void) sio_hw->fifo_rd; in multicore_fifo_drain()275 sio_hw->fifo_st = 0xff; in multicore_fifo_clear_irq()294 return sio_hw->fifo_st; in multicore_fifo_get_status()350 sio_hw->doorbell_out_set = 1u << doorbell_num; in multicore_doorbell_set_other_core()359 sio_hw->doorbell_out_clr = 1u << doorbell_num; in multicore_doorbell_clear_other_core()368 sio_hw->doorbell_in_set = 1u << doorbell_num; in multicore_doorbell_set_current_core()[all …]
110 sio_hw->div_sdividend = (uint32_t)a; in hw_divider_divmod_s32_start()111 sio_hw->div_sdivisor = (uint32_t)b; in hw_divider_divmod_s32_start()130 sio_hw->div_udividend = a; in hw_divider_divmod_u32_start()131 sio_hw->div_udivisor = b; in hw_divider_divmod_u32_start()156 : "l" (sio_hw), "I" (SIO_DIV_CSR_OFFSET) in hw_divider_wait_ready()172 divmod_result_t rc = ((divmod_result_t) sio_hw->div_remainder) << 32u; in hw_divider_result_nowait()173 rc |= sio_hw->div_quotient; in hw_divider_result_nowait()247 return sio_hw->div_quotient; in hw_divider_u32_quotient_wait()263 return (int32_t)sio_hw->div_quotient; in hw_divider_s32_quotient_wait()279 uint32_t rc = sio_hw->div_remainder; in hw_divider_u32_remainder_wait()[all …]
46 sio_hw->fifo_wr = data; in multicore_fifo_push_timeout_us()65 *out = sio_hw->fifo_rd; in multicore_fifo_pop_timeout_us()214 if (sio_hw->fifo_rd == LOCKOUT_MAGIC_START) { in __not_in_flash_func()
196 #define sio_hw ((sio_hw_t *)SIO_BASE) macro
331 #define sio_hw ((sio_hw_t *)SIO_BASE) macro