| /optee_os/core/drivers/ |
| H A D | atmel_saic.c | 54 static void saic_select_it(size_t it) in saic_select_it() argument 56 assert(!(it & ~AT91_AIC_SSR_ITSEL_MASK)); in saic_select_it() 58 saic_write_reg(AT91_AIC_SSR, it); in saic_select_it() 61 static void saic_configure_it(size_t it, uint32_t src_type, uint32_t priority) in saic_configure_it() argument 63 saic_select_it(it); in saic_configure_it() 67 static bool is_external_it(size_t it) in is_external_it() argument 69 uint32_t it_grp = it / 32; in is_external_it() 70 uint32_t it_off = it % 32; in is_external_it() 72 if (it >= saic.nr_irqs) in is_external_it() 78 static TEE_Result saic_get_src_type(uint32_t dt_level, size_t it, in saic_get_src_type() argument [all …]
|
| H A D | gic.c | 153 static void gic_op_configure(struct itr_chip *chip, size_t it, uint32_t type, 155 static void gic_op_enable(struct itr_chip *chip, size_t it); 156 static void gic_op_disable(struct itr_chip *chip, size_t it); 157 static void gic_op_raise_pi(struct itr_chip *chip, size_t it); 158 static void gic_op_raise_sgi(struct itr_chip *chip, size_t it, 160 static void gic_op_set_affinity(struct itr_chip *chip, size_t it, 386 void gic_init_donate_sgi_to_ns(size_t it) in gic_init_donate_sgi_to_ns() argument 390 assert(it >= GIC_SGI_SEC_BASE && it <= GIC_SGI_SEC_MAX); in gic_init_donate_sgi_to_ns() 393 assert(!(gd->per_cpu_group_status & BIT32(it)) && in gic_init_donate_sgi_to_ns() 394 (gd->per_cpu_group_modifier & BIT32(it))); in gic_init_donate_sgi_to_ns() [all …]
|
| H A D | aplic_msi.c | 74 static void aplic_op_configure(struct itr_chip *chip, size_t it, uint32_t type, in aplic_op_configure() argument 80 if (aplic_is_bad_it(aplic, it)) in aplic_op_configure() 83 aplic_disable_interrupt(aplic, it); in aplic_op_configure() 84 if (aplic_set_source_mode(aplic, it, type)) in aplic_op_configure() 87 aplic_set_target(aplic, it, hartid, 0, it); in aplic_op_configure() 90 static void aplic_op_enable(struct itr_chip *chip, size_t it) in aplic_op_enable() argument 94 if (aplic_is_bad_it(aplic, it)) in aplic_op_enable() 97 aplic_enable_interrupt(aplic, it); in aplic_op_enable() 100 static void aplic_op_disable(struct itr_chip *chip, size_t it) in aplic_op_disable() argument 104 if (aplic_is_bad_it(aplic, it)) in aplic_op_disable() [all …]
|
| H A D | hfic.c | 45 static bool __maybe_unused hfic_static_it(size_t it) in hfic_static_it() argument 47 switch (it) { in hfic_static_it() 60 static void hfic_op_configure(struct itr_chip *chip __unused, size_t it, in hfic_op_configure() argument 65 res = thread_hvc(HF_INTERRUPT_ENABLE, it, HF_ENABLE, in hfic_op_configure() 67 assert(!res || hfic_static_it(it)); in hfic_op_configure() 70 static void hfic_op_enable(struct itr_chip *chip __unused, size_t it) in hfic_op_enable() argument 74 res = thread_hvc(HF_INTERRUPT_RECONFIGURE, it, in hfic_op_enable() 76 assert(!res || hfic_static_it(it)); in hfic_op_enable() 79 static void hfic_op_disable(struct itr_chip *chip __unused, size_t it) in hfic_op_disable() argument 83 res = thread_hvc(HF_INTERRUPT_RECONFIGURE, it, in hfic_op_disable() [all …]
|
| H A D | aplic_direct.c | 97 static void aplic_op_configure(struct itr_chip *chip, size_t it, uint32_t type, in aplic_op_configure() argument 103 if (aplic_is_bad_it(aplic, it)) in aplic_op_configure() 106 aplic_disable_interrupt(aplic, it); in aplic_op_configure() 107 if (aplic_set_source_mode(aplic, it, type)) in aplic_op_configure() 109 aplic_set_target(aplic, it, hartid, prio); in aplic_op_configure() 112 static void aplic_op_enable(struct itr_chip *chip, size_t it) in aplic_op_enable() argument 116 if (aplic_is_bad_it(aplic, it)) in aplic_op_enable() 119 aplic_enable_interrupt(aplic, it); in aplic_op_enable() 122 static void aplic_op_disable(struct itr_chip *chip, size_t it) in aplic_op_disable() argument 126 if (aplic_is_bad_it(aplic, it)) in aplic_op_disable() [all …]
|
| H A D | imsic.c | 159 static bool imsic_is_bad_it(struct imsic_data *imsic, size_t it) in imsic_is_bad_it() argument 162 return (!it || it > imsic->num_ids); in imsic_is_bad_it() 165 static void imsic_op_configure(struct itr_chip *chip, size_t it, in imsic_op_configure() argument 171 if (imsic_is_bad_it(imsic, it)) in imsic_op_configure() 175 res = interrupt_configure(imsic->aplic_chip, it, type, prio); in imsic_op_configure() 179 imsic_it_disable(it); in imsic_op_configure() 180 imsic_it_clear_pending(it); in imsic_op_configure() 183 static void imsic_op_enable(struct itr_chip *chip, size_t it) in imsic_op_enable() argument 187 if (imsic_is_bad_it(imsic, it)) in imsic_op_enable() 191 interrupt_enable(imsic->aplic_chip, it); in imsic_op_enable() [all …]
|
| H A D | plic.c | 156 static void plic_op_configure(struct itr_chip *chip, size_t it, in plic_op_configure() argument 161 if (it > pd->max_it) in plic_op_configure() 164 plic_disable_interrupt(pd, it); in plic_op_configure() 165 plic_set_priority(pd, it, prio); in plic_op_configure() 168 static void plic_op_enable(struct itr_chip *chip, size_t it) in plic_op_enable() argument 172 if (it > pd->max_it) in plic_op_enable() 175 plic_enable_interrupt(pd, it); in plic_op_enable() 178 static void plic_op_disable(struct itr_chip *chip, size_t it) in plic_op_disable() argument 182 if (it > pd->max_it) in plic_op_disable() 185 plic_disable_interrupt(pd, it); in plic_op_disable() [all …]
|
| H A D | stm32_exti.c | 272 stm32_exti_get_parent_itr(struct stm32_exti_pdata *exti, size_t it) in stm32_exti_get_parent_itr() argument 274 if (!exti || it >= stm32_exti_nbevents(exti) || !exti->hierarchy[it]) in stm32_exti_get_parent_itr() 277 return &exti->hierarchy[it]->parent; in stm32_exti_get_parent_itr() 281 static void stm32_exti_op_enable(struct itr_chip *chip, size_t it) in stm32_exti_op_enable() argument 284 struct itr_desc *parent = stm32_exti_get_parent_itr(exti, it); in stm32_exti_op_enable() 286 stm32_exti_unmask(exti, it); in stm32_exti_op_enable() 292 static void stm32_exti_op_disable(struct itr_chip *chip, size_t it) in stm32_exti_op_disable() argument 295 struct itr_desc *parent = stm32_exti_get_parent_itr(exti, it); in stm32_exti_op_disable() 297 stm32_exti_mask(exti, it); in stm32_exti_op_disable() 303 static void stm32_exti_op_mask(struct itr_chip *chip, size_t it) in stm32_exti_op_mask() argument [all …]
|
| H A D | atmel_wdt.c | 313 int it = DT_INFO_INVALID_INTERRUPT; in wdt_node_probe() local 331 it = dt_get_irq_type_prio(fdt, node, &irq_type, &irq_prio); in wdt_node_probe() 332 if (it == DT_INFO_INVALID_INTERRUPT) in wdt_node_probe() 336 it, atmel_wdt_itr_cb, 0, wdt, in wdt_node_probe() 348 interrupt_enable(it_hdlr->chip, it_hdlr->it); in wdt_node_probe() 359 interrupt_disable(it_hdlr->chip, it_hdlr->it); in wdt_node_probe()
|
| /optee_os/core/arch/arm/plat-telechips/ |
| H A D | plat_tzc.c | 33 switch (h->it) { in tzc_it_handler() 69 .it = TZC_OMC_INT_0, 74 .it = TZC_OMC_INT_1, 80 .it = TZC_OMC_INT_2, 86 .it = TZC_OMC_INT_3, 119 tzc_itr_handler[filter].it); in tzc_configure()
|
| /optee_os/core/include/kernel/ |
| H A D | interrupt.h | 79 void (*configure)(struct itr_chip *chip, size_t it, uint32_t type, 81 void (*enable)(struct itr_chip *chip, size_t it); 82 void (*disable)(struct itr_chip *chip, size_t it); 83 void (*mask)(struct itr_chip *chip, size_t it); 84 void (*unmask)(struct itr_chip *chip, size_t it); 85 void (*raise_pi)(struct itr_chip *chip, size_t it); 86 void (*raise_sgi)(struct itr_chip *chip, size_t it, 88 void (*set_affinity)(struct itr_chip *chip, size_t it, 90 void (*set_wake)(struct itr_chip *chip, size_t it, bool on); 125 size_t it; member [all …]
|
| /optee_os/core/kernel/ |
| H A D | interrupt.c | 119 if (h->it == itr_num) { in interrupt_call_handlers() 157 if (h->it == hdl->it && in add_configure_handler() 161 hdl->chip->name, hdl->it); in add_configure_handler() 167 res = interrupt_configure(hdl->chip, hdl->it, type, prio); in add_configure_handler() 197 .it = itr_num, in interrupt_create_handler() 227 DMSG("Invalid %s:%zu", hdl->chip->name, hdl->it); in interrupt_remove_handler() 234 if (h != hdl && h->it == hdl->it) { in interrupt_remove_handler() 242 interrupt_disable(hdl->chip, hdl->it); in interrupt_remove_handler()
|
| H A D | panic.c | 29 .it = CFG_HALT_CORES_SGI, 55 multi_core_halt_handler.it); in init_multi_core_halt_handler()
|
| /optee_os/core/arch/arm/plat-vexpress/ |
| H A D | main.c | 67 size_t it = CFG_CORE_ASYNC_NOTIF_GIC_INTID; in boot_primary_init_intc() local 69 if (it >= GIC_SGI_SEC_BASE && it <= GIC_SGI_SEC_MAX) in boot_primary_init_intc() 70 gic_init_donate_sgi_to_ns(it); in boot_primary_init_intc() 71 thread_spmc_set_async_notif_intid(it); in boot_primary_init_intc() 147 .it = IT_CONSOLE_UART, 212 interrupt_enable(console_itr.chip, console_itr.it); in init_console_itr()
|
| /optee_os/core/include/drivers/ |
| H A D | aplic_priv.h | 107 static inline bool aplic_is_bad_it(struct aplic_data *aplic, size_t it) in aplic_is_bad_it() argument 109 return !it || it > aplic->num_source; in aplic_is_bad_it()
|
| H A D | gic.h | 51 void gic_init_donate_sgi_to_ns(size_t it); 67 TEE_Result gic_spi_release_to_ns(size_t it);
|
| /optee_os/lib/libmbedtls/mbedtls/ |
| H A D | dco.txt | 10 license document, but changing it is not allowed. 18 have the right to submit it under the open source license 31 it. 35 personal information I submit with it, including my sign-off) is
|
| H A D | LICENSE | 221 of this license document, but changing it is not allowed. 226 freedom to share and change it. By contrast, the GNU General Public 231 using it. (Some other Free Software Foundation software is covered by 232 the GNU Lesser General Public License instead.) You can apply it to 238 this service if you wish), that you receive source code or can get it 239 if you want it, that you can change the software or use pieces of it 245 distribute copies of the software, or if you modify it. 267 program proprietary. To prevent this, we have made it clear that any 277 a notice placed by the copyright holder saying it may be distributed 281 that is to say, a work containing the Program or a portion of it, [all …]
|
| H A D | CONTRIBUTING.md | 13 - [Backports](#long-term-support-branches): provide a backport if needed (it's fine to wait until t… 27 1. Send a pull request (PR) and work with us until it gets merged and published. Contributions may … 28 …ature or topic. The larger the contribution is, the longer it would take to review it and merge it. 33 The project aims to minimise the impact on users upgrading to newer versions of the library and it … 37 …ction with a new name with the desired interface. Keep the old function, but mark it as deprecated.
|
| H A D | README.md | 4 …ulation and the SSL/TLS and DTLS protocols. Its small code footprint makes it suitable for embedde… 115 … need to do something else as well, please let us know what, so we can add it to the [Mbed TLS Kno… 169 remove the build directory and create it again. 171 Note that it is possible to build in-place; this will however overwrite the 191 on the build mode as seen above), it's merely prepended to it. 253 Instead of manually installing the required versions of all tools required for testing, it is possi… 264 Mbed TLS is mostly written in portable C99; however, it has a few platform requirements that go bey… 281 …. First, it can be used in a PSA-compliant platform to build services, such as secure boot, secure… 296 However, it does not aim to implement the whole specification; in particular it does not implement … 318 …The original license text is included within project subdirectories, where it differs from the nor…
|
| /optee_os/core/arch/arm/plat-synquacer/ |
| H A D | main.c | 55 .it = IT_SEC_TIMER, 66 interrupt_enable(timer_itr.chip, timer_itr.it); in init_timer_itr()
|
| /optee_os/core/arch/arm/kernel/ |
| H A D | generic_timer.c | 66 .it = itr_number, in timer_init_callout_service() 74 interrupt_enable(timer_itr.chip, timer_itr.it); in timer_init_callout_service()
|
| /optee_os/lib/libutils/isoc/ |
| H A D | bget.doc | 45 And yet, it is substantially more efficient than the native allocation 54 switching processors, and a host of C programs. And while it has 55 accreted flexibility and additional options over the years, it remains 97 allocation (which is usually not worth it in other environments). 104 program), or otherwise unsuitable, you can replace it with BGET. 112 the underlying operating system, add it to the buffer pool by another 123 expansion increment. All of these functions are optional (although it 125 acquisition function, does it?). Once the call-back functions have been 130 compaction function has been supplied. If so, it is called (with the 133 looping). If the compaction function is able to free any storage (it [all …]
|
| /optee_os/lib/libutils/compiler-rt/ |
| H A D | README.txt | 7 Compiler-RT is open source software. You may freely distribute it under the
|
| /optee_os/core/lib/qcbor/ |
| H A D | README.md | 17 it highly portable. <math.h> and <fenv.h> are used too, but their 35 of memory usage making it good for embedded implementations that 114 it is a solid, well-maintained commercial quality implementation. This 214 simple project and add the test files to it. Then just call 235 The tests can be built into a simple command line application to run them as it 236 was mentioned before; or it can be built as a library to be integrated with your 238 The `BUILD_QCBOR_TEST` CMake option can be used for building the tests, it can 298 QCBOR, but it limits QCBOR's use of them to converting the encoded 301 compiler takes care of it on its own. 355 it is usually possible to give options to the compiler to avoid all [all …]
|