Lines Matching defs:core

33 /* NPU core sec registry address */
131 const struct ethosn_core_t *core = &(dev->cores[core_idx]);
133 if (core->addr == core_addr) {
135 *core_match = core;
141 WARN("ETHOSN: Unknown core address given to SMC call.\n");
154 static void ethosn_configure_stream_nsaid(const struct ethosn_core_t *core,
180 mmio_write_32(ETHOSN_CORE_SEC_REG(core->addr, reg_addr),
223 const struct ethosn_core_t *core,
227 &(core->main_allocator);
246 mmio_write_32(ETHOSN_CORE_SEC_REG(core->addr, reg_addr),
370 const struct ethosn_core_t *core,
382 if (!ethosn_core_reset(core->addr, hard_reset)) {
386 if (!ethosn_configure_aux_features(device, core->addr, aux_features)) {
390 ethosn_configure_events(core->addr);
393 ethosn_configure_smmu_streams(device, core, asset_alloc_idx);
396 ethosn_configure_stream_nsaid(core, is_protected);
400 ethosn_configure_stream_addr_extends(device, core->addr);
401 ethosn_configure_stream_attr_ctlr(core->addr);
404 ethosn_configure_vector_table(core->addr);
407 ethosn_delegate_to_ns(core->addr);
413 const struct ethosn_core_t *core,
425 ret = ethosn_core_full_reset(device, core, hard_reset,
430 ret = ethosn_core_reset(core->addr, hard_reset) ? ETHOSN_SUCCESS : ETHOSN_FAILURE;
451 const struct ethosn_core_t *core = NULL;
453 if (!ethosn_get_device_and_core(core_addr, &device, &core)) {
459 SMC_RET1(handle, ethosn_is_sec(core->addr));
461 SMC_RET1(handle, ethosn_core_is_sleeping(core->addr));
466 return ethosn_smc_core_reset_handler(device, core,
474 SMC_RET1(handle, ethosn_core_boot_fw(core->addr));
569 /* Only one NPU core is supported in the TZMP1 setup */