Lines Matching full:cores
105 * @cores: list of R5 cores within the cluster
111 struct list_head cores; member
287 /* assert local reset on all applicable cores */ in k3_r5_lockstep_reset()
288 list_for_each_entry(core, &cluster->cores, elem) { in k3_r5_lockstep_reset()
298 /* disable PSC modules on all applicable cores */ in k3_r5_lockstep_reset()
299 list_for_each_entry(core, &cluster->cores, elem) { in k3_r5_lockstep_reset()
312 list_for_each_entry_continue_reverse(core, &cluster->cores, elem) { in k3_r5_lockstep_reset()
317 core = list_last_entry(&cluster->cores, struct k3_r5_core, elem); in k3_r5_lockstep_reset()
319 list_for_each_entry_from_reverse(core, &cluster->cores, elem) { in k3_r5_lockstep_reset()
332 /* enable PSC modules on all applicable cores */ in k3_r5_lockstep_release()
333 list_for_each_entry_reverse(core, &cluster->cores, elem) { in k3_r5_lockstep_release()
344 /* deassert local reset on all applicable cores */ in k3_r5_lockstep_release()
345 list_for_each_entry_reverse(core, &cluster->cores, elem) { in k3_r5_lockstep_release()
357 list_for_each_entry_continue(core, &cluster->cores, elem) { in k3_r5_lockstep_release()
361 core = list_first_entry(&cluster->cores, struct k3_r5_core, elem); in k3_r5_lockstep_release()
363 list_for_each_entry_from(core, &cluster->cores, elem) { in k3_r5_lockstep_release()
423 * The R5F cores have controls for both a reset and a halt/run. The code
426 * applicable cores to allow loading into the TCMs. The .prepare() ops is
428 * by the .start() ops after loading to actually let the R5 cores run.
431 * execute code, but combines the TCMs from both cores. The resets for both
432 * cores need to be released to make this possible, as the TCMs are in general
459 dev_err(dev, "unable to enable cores for TCM loading, ret = %d\n", in k3_r5_rproc_prepare()
492 * resets on all applicable cores for the rproc device (depending on LockStep
494 * cores. The cores themselves are only halted in the .stop() ops, and the
499 * both cores. The access is made possible only with releasing the resets for
500 * both cores, but with only Core0 unhalted. This function re-uses the same
518 dev_err(dev, "unable to disable cores, ret = %d\n", ret); in k3_r5_rproc_unprepare()
530 * unhalt both the cores to start the execution - Core1 needs to be unhalted
563 /* unhalt/run all applicable cores */ in k3_r5_rproc_start()
565 list_for_each_entry_reverse(core, &cluster->cores, elem) { in k3_r5_rproc_start()
579 list_for_each_entry_continue(core, &cluster->cores, elem) { in k3_r5_rproc_start()
593 * of cores the operations are performed are also in general reverse to that
619 /* halt all applicable cores */ in k3_r5_rproc_stop()
621 list_for_each_entry(core, &cluster->cores, elem) { in k3_r5_rproc_stop()
639 list_for_each_entry_from_reverse(core, &cluster->cores, elem) { in k3_r5_rproc_stop()
652 * commands to boot the R5F cores in IPC-only mode. This callback is invoked
673 * and only needs to release the mailbox, the R5F cores are not stopped and
813 * the cores are halted before the .prepare() step.
824 * The function behavior is different based on the cluster mode. The R5F cores
829 * both the cores with the same settings, before reconfiguing again for
844 core0 = list_first_entry(&cluster->cores, struct k3_r5_core, elem); in k3_r5_rproc_configure()
884 * permitted cores in k3_r5_rproc_configure()
919 * cores are programmed symmetrically in LockStep. LockStep in k3_r5_rproc_configure()
922 list_for_each_entry(temp, &cluster->cores, elem) { in k3_r5_rproc_configure()
1012 * RAT is programmable only by the R5F cores. Support for RAT in k3_r5_reserved_mem_init()
1060 * cores are usable in Split-mode, but only the Core0 TCMs can be used in
1083 core0 = list_first_entry(&cluster->cores, struct k3_r5_core, elem); in k3_r5_adjust_tcm_sizes()
1122 core0 = list_first_entry(&cluster->cores, struct k3_r5_core, elem); in k3_r5_rproc_configure_mode()
1218 core1 = list_last_entry(&cluster->cores, struct k3_r5_core, elem); in k3_r5_cluster_rproc_init()
1219 list_for_each_entry(core, &cluster->cores, elem) { in k3_r5_cluster_rproc_init()
1329 list_first_entry(&cluster->cores, struct k3_r5_core, elem) : in k3_r5_cluster_rproc_exit()
1330 list_last_entry(&cluster->cores, struct k3_r5_core, elem); in k3_r5_cluster_rproc_exit()
1332 list_for_each_entry_from_reverse(core, &cluster->cores, elem) { in k3_r5_cluster_rproc_exit()
1400 * The R5F cores can place ATCM & BTCM anywhere in its address in k3_r5_core_of_get_internal_memories()
1643 list_for_each_entry_safe_reverse(core, temp, &cluster->cores, elem) { in k3_r5_cluster_of_exit()
1680 list_add_tail(&core->elem, &cluster->cores); in k3_r5_cluster_of_init()
1711 INIT_LIST_HEAD(&cluster->cores); in k3_r5_probe()
1744 dev_err(dev, "MCU cluster requires both R5F cores to be enabled but num_cores is set to = %d\n", in k3_r5_probe()