Lines Matching refs:core_addr
34 #define ETHOSN_CORE_SEC_REG(core_addr, reg_offset) \ argument
35 (core_addr + reg_offset)
120 static bool ethosn_get_device_and_core(uintptr_t core_addr, in ethosn_get_device_and_core() argument
133 if (core->addr == core_addr) { in ethosn_get_device_and_core()
146 static uint32_t ethosn_core_read_arch_version(uintptr_t core_addr) in ethosn_core_read_arch_version() argument
148 uint32_t npu_id = mmio_read_32(ETHOSN_CORE_SEC_REG(core_addr, in ethosn_core_read_arch_version()
185 static void ethosn_configure_vector_table(uintptr_t core_addr) in ethosn_configure_vector_table() argument
187 mmio_setbits_32(ETHOSN_CORE_SEC_REG(core_addr, SEC_SYSCTRL0_REG), in ethosn_configure_vector_table()
193 static void ethosn_configure_events(uintptr_t core_addr) in ethosn_configure_events() argument
195 mmio_write_32(ETHOSN_CORE_SEC_REG(core_addr, SEC_SYSCTRL1_REG), SEC_SYSCTRL1_VAL); in ethosn_configure_events()
199 uintptr_t core_addr, in ethosn_configure_aux_features() argument
217 mmio_setbits_32(ETHOSN_CORE_SEC_REG(core_addr, SEC_AUXCTLR_REG), val); in ethosn_configure_aux_features()
252 uintptr_t core_addr) in ethosn_configure_stream_addr_extends() argument
272 mmio_write_32(ETHOSN_CORE_SEC_REG(core_addr, reg_addr), in ethosn_configure_stream_addr_extends()
277 static void ethosn_configure_stream_attr_ctlr(uintptr_t core_addr) in ethosn_configure_stream_attr_ctlr() argument
284 mmio_write_32(ETHOSN_CORE_SEC_REG(core_addr, reg_addr), in ethosn_configure_stream_attr_ctlr()
289 static void ethosn_delegate_to_ns(uintptr_t core_addr) in ethosn_delegate_to_ns() argument
291 mmio_setbits_32(ETHOSN_CORE_SEC_REG(core_addr, SEC_SECCTLR_REG), in ethosn_delegate_to_ns()
294 mmio_setbits_32(ETHOSN_CORE_SEC_REG(core_addr, SEC_DEL_REG), in ethosn_delegate_to_ns()
297 mmio_setbits_32(ETHOSN_CORE_SEC_REG(core_addr, SEC_DEL_ADDR_EXT_REG), in ethosn_delegate_to_ns()
301 static int ethosn_is_sec(uintptr_t core_addr) in ethosn_is_sec() argument
303 if ((mmio_read_32(ETHOSN_CORE_SEC_REG(core_addr, SEC_DEL_REG)) in ethosn_is_sec()
311 static int ethosn_core_is_sleeping(uintptr_t core_addr) in ethosn_core_is_sleeping() argument
314 ETHOSN_CORE_SEC_REG(core_addr, SEC_SYSCTRL0_REG); in ethosn_core_is_sleeping()
320 static bool ethosn_core_reset(uintptr_t core_addr, bool hard_reset) in ethosn_core_reset() argument
324 ETHOSN_CORE_SEC_REG(core_addr, SEC_SYSCTRL0_REG); in ethosn_core_reset()
344 static int ethosn_core_boot_fw(uintptr_t core_addr) in ethosn_core_boot_fw() argument
347 const uintptr_t sysctrl0_reg = ETHOSN_CORE_SEC_REG(core_addr, SEC_SYSCTRL0_REG); in ethosn_core_boot_fw()
442 u_register_t core_addr, in ethosn_smc_core_handler() argument
453 if (!ethosn_get_device_and_core(core_addr, &device, &core)) { in ethosn_smc_core_handler()