/device/linaro/hikey/hifi/xaf/hifi-dpf/include/sys/xt-shmem/ |
D | xf-ipc.h | 93 static inline void xf_ipi_enable(u32 core, int on) in xf_ipi_enable() argument 96 _xtos_ints_on(1 << XF_PROXY_IPI_NUM(core)); in xf_ipi_enable() 98 _xtos_ints_off(1 << XF_PROXY_IPI_NUM(core)); in xf_ipi_enable() 102 static inline void xf_ipi_wait(u32 core) in xf_ipi_wait() argument 104 xf_core_ro_data_t *ro = XF_CORE_RO_DATA(core); in xf_ipi_wait() 107 xf_ipi_enable(core, 1); in xf_ipi_wait() 113 xf_ipi_enable(core, 0); in xf_ipi_wait() 131 static inline void xf_ipi_wait(u32 core) in xf_ipi_wait() argument 163 static inline void xf_ipi_resume(u32 core) in xf_ipi_resume() argument 165 xf_core_ro_data_t *ro = XF_CORE_RO_DATA(core); in xf_ipi_resume() [all …]
|
D | xf-mem.h | 48 static inline void xf_shmem_alloc_addref(u32 core, xf_message_t *m) in xf_shmem_alloc_addref() argument 53 static inline void xf_shmem_alloc_rmref(u32 core, xf_message_t *m) in xf_shmem_alloc_rmref() argument 62 static inline void * xf_mem_alloc(u32 size, u32 align, u32 core, u32 shared) in xf_mem_alloc() argument 73 return xf_mm_alloc(&XF_CORE_DATA(core)->local_pool, size); in xf_mem_alloc() 77 #define xf_mem_alloc(size, align, core, shared) \ argument 82 __data = (xf_mem_alloc)(size, align, core, shared); \ 83 TRACE(1, _b("alloc-%u: %p[%u] (shared=%u)"), core, __data, size, shared); \ 88 static inline void xf_mem_free(void *p, u32 size, u32 core, u32 shared) in xf_mem_free() argument 100 xf_mm_free(&XF_CORE_DATA(core)->local_pool, p, size); in xf_mem_free() 104 #define xf_mem_free(p, size, core, shared) \ argument [all …]
|
D | xf-shmem.h | 101 #define XF_SHMEM_DATA(core) \ argument 102 ((xf_shmem_data_t *)XF_CORE_DATA(core)->shmem) 113 #define XF_PROXY_READ(core, field) \ argument 114 __XF_PROXY_READ_##field(XF_SHMEM_DATA(core)) 116 #define XF_PROXY_WRITE(core, field, v) \ argument 117 __XF_PROXY_WRITE_##field(XF_SHMEM_DATA(core), (v)) 146 #define XF_PROXY_COMMAND(core, idx) \ argument 147 (&XF_SHMEM_DATA((core))->remote.command[(idx)]) 150 #define XF_PROXY_RESPONSE(core, idx) \ argument 151 (&XF_SHMEM_DATA((core))->local.response[(idx)]) [all …]
|
/device/google/contexthub/firmware/ |
D | Android.mk | 27 os/core/appSec.c \ 28 os/core/eventQ.c \ 29 os/core/floatRt.c \ 30 os/core/heap.c \ 31 os/core/hostIntf.c \ 32 os/core/hostIntfI2c.c \ 33 os/core/hostIntfSpi.c \ 34 os/core/nanohubCommand.c \ 35 os/core/nanohub_chre.c \ 36 os/core/osApi.c \ [all …]
|
D | firmware.mk | 76 SRCS_bl += ../lib/nanohub/sha2.c ../lib/nanohub/rsa.c ../lib/nanohub/aes.c os/core/seos.c 79 SRCS_os += os/core/printf.c os/core/timer.c os/core/seos.c os/core/heap.c os/core/slab.c os/core/sp… 80 SRCS_os += os/core/hostIntf.c os/core/hostIntfI2c.c os/core/hostIntfSpi.c os/core/nanohubCommand.c … 81 SRCS_os += os/core/eventQ.c os/core/osApi.c os/core/appSec.c os/core/simpleQ.c os/core/floatRt.c os… 83 SRCS_bl += os/core/bl.c 86 SRCS_bl += os/core/printf.c
|
/device/linaro/hikey/hifi/xaf/hifi-dpf/core/ |
D | xf-core.c | 94 static int xf_proxy_register(u32 core, xf_message_t *m) in xf_proxy_register() argument 96 xf_core_data_t *cd = XF_CORE_DATA(core); in xf_proxy_register() 105 if ((component = xf_component_factory(core, m->buffer, m->length)) == NULL) in xf_proxy_register() 120 component->id = __XF_PORT_SPEC(core, client, 0); in xf_proxy_register() 128 TRACE(REG, _b("registered client: %u:%u (%s)"), core, client, (xf_id_t)m->buffer); in xf_proxy_register() 137 static int xf_proxy_alloc(u32 core, xf_message_t *m) in xf_proxy_alloc() argument 140 XF_CHK_ERR(xf_shmem_enabled(core), -EPERM); in xf_proxy_alloc() 143 xf_shmem_alloc(core, m); in xf_proxy_alloc() 152 static int xf_proxy_free(u32 core, xf_message_t *m) in xf_proxy_free() argument 155 XF_CHK_ERR(xf_shmem_enabled(core), -EPERM); in xf_proxy_free() [all …]
|
D | xf-shmem.c | 111 static inline xf_message_t * xf_msg_proxy_get(u32 core) in xf_msg_proxy_get() argument 113 xf_core_rw_data_t *rw = XF_CORE_RW_DATA(core); in xf_msg_proxy_get() 117 xf_mutex_lock(core); in xf_msg_proxy_get() 141 xf_mutex_unlock(core); in xf_msg_proxy_get() 151 static u32 xf_shmem_process_input(u32 core) in xf_shmem_process_input() argument 159 read_idx = XF_PROXY_READ(core, cmd_read_idx); in xf_shmem_process_input() 160 write_idx = XF_PROXY_READ(core, cmd_write_idx); in xf_shmem_process_input() 170 if ((m = xf_msg_pool_get(&XF_CORE_RO_DATA(core)->pool)) == NULL) in xf_shmem_process_input() 180 command = XF_PROXY_COMMAND(core, XF_QUEUE_IDX(read_idx)); in xf_shmem_process_input() 189 m->buffer = xf_ipc_a2b(core, command->address); in xf_shmem_process_input() [all …]
|
D | xf-isr.c | 45 u32 core = XF_MSG_DST_CORE(m->id); in xf_msg_schedule_isr() local 46 xf_core_data_t *cd = XF_CORE_DATA(core); in xf_msg_schedule_isr() 52 xf_ipi_resume(core); in xf_msg_schedule_isr() 59 u32 core = XF_MSG_DST_CORE(m->id); in xf_msg_complete_isr() local 60 xf_core_data_t *cd = XF_CORE_DATA(core); in xf_msg_complete_isr() 66 xf_ipi_resume(core); in xf_msg_complete_isr()
|
D | xf-io.c | 52 int xf_input_port_init(xf_input_port_t *port, u32 size, u32 align, u32 core) in xf_input_port_init() argument 58 XF_CHK_ERR(port->buffer = xf_mem_alloc(size, align, core, 0), -ENOMEM); in xf_input_port_init() 360 void xf_input_port_destroy(xf_input_port_t *port, u32 core) in xf_input_port_destroy() argument 366 (port->buffer ? xf_mem_free(port->buffer, port->length, core, 0), port->buffer = NULL : 0); in xf_input_port_destroy() 398 u32 core = XF_MSG_DST_CORE(id); in xf_output_port_route() local 404 XF_CHK_API(xf_msg_pool_init(&port->pool, n + 1, core)); in xf_output_port_route() 419 m->buffer = xf_mem_alloc(length, align, core, shared); in xf_output_port_route() 454 xf_mem_free(m->buffer, length, core, shared); in xf_output_port_route() 458 xf_msg_pool_destroy(&port->pool, core); in xf_output_port_route() 498 u32 core = XF_MSG_DST_CORE(m->id); in xf_output_port_unroute() local [all …]
|
D | xf-msg.c | 43 int xf_msg_pool_init(xf_msg_pool_t *pool, u32 n, u32 core) in xf_msg_pool_init() argument 48 …XF_CHK_ERR(pool->p = xf_mem_alloc(XF_MM(sizeof(*pool->p) * n), XF_PROXY_ALIGNMENT, core, 1), -ENOM… in xf_msg_pool_init() 67 void xf_msg_pool_destroy(xf_msg_pool_t *pool, u32 core) in xf_msg_pool_destroy() argument 70 xf_mem_free(pool->p, XF_MM(sizeof(*pool->p) * pool->n), core, 1); in xf_msg_pool_destroy()
|
/device/linaro/hikey/hifi/xaf/hifi-dpf/include/sys/xt-shmem/board-hikey/ |
D | xf-board.h | 39 #define XF_CFG_SHMEM_ADDRESS(core) HIFI_HIKEY_SHARE_MEM_ADDR argument 42 #define XF_CFG_TRACE_START(core) 0x78000000 argument 43 #define XF_CFG_TRACE_END(core) 0x7FFFFFFF argument 58 #define SYS_IPC_CPUIRST(base, core) WORD_REF(base + 0x804 + ((core) << 3)) argument 65 #define SYS_IPC_CPUIMST(base, core) WORD_REF(base + 0x800 + ((core) * 8)) argument 75 #define XF_PROXY_IPI_NUM(core) 15 argument 92 #define XF_PROXY_NOTIFY_PEER(core) h2_wake_core() 95 #define XF_PROXY_SYNC_PEER(core) h2_local_ack() 128 #define XF_PROXY_NOTIFY_PEER(core) h2_wake_core() argument 130 #define XF_PROXY_SYNC_PEER(core) h2_local_ack() argument
|
D | dsp_driver_ipc.h | 40 #define SYS_IPC_CPUIRST(base, core) WORD_REF(base + 0x804 + ((core) << 3)) 47 #define SYS_IPC_CPUIMST(base, core) WORD_REF(base + 0x800 + ((core) * 8))
|
/device/linaro/hikey/hifi/xaf/host-apf/proxy/ |
D | xf-proxy.c | 83 msg.id = __XF_MSG_ID(__XF_AP_CLIENT(proxy->core, handle->client), m->id); 138 static inline int xf_client_register(xf_proxy_t *proxy, xf_handle_t *handle, xf_id_t id, u32 core) in xf_client_register() argument 144 msg.id = __XF_MSG_ID(__XF_AP_PROXY(proxy->core), __XF_DSP_PROXY(core)); in xf_client_register() 175 msg.id = __XF_MSG_ID(__XF_AP_PROXY(proxy->core), handle->id); in xf_client_unregister() 194 u32 core = proxy->core; in xf_proxy_buffer_alloc() local 198 msg.id = __XF_MSG_ID(__XF_AP_PROXY(core), __XF_DSP_PROXY(core)); in xf_proxy_buffer_alloc() 215 TRACE(MEM, _b("proxy-%u: allocated [%p:%u]"), core, *buffer, length); in xf_proxy_buffer_alloc() 223 u32 core = proxy->core; in xf_proxy_buffer_free() local 227 msg.id = __XF_MSG_ID(__XF_AP_PROXY(core), __XF_DSP_PROXY(core)); in xf_proxy_buffer_free() 238 TRACE(MEM, _b("proxy-%u: free [%p:%u]"), core, buffer, length); in xf_proxy_buffer_free() [all …]
|
D | xf-fio.c | 148 int xf_ipc_open(xf_proxy_ipc_data_t *ipc, u32 core, void *p_shmem) in xf_ipc_open() argument 159 XF_CHK_ERR(ioctl(ipc->fd, XF_PROXY_SETUP_IOCTL, core) >= 0, -errno); in xf_ipc_open() 175 TRACE(INIT, _b("proxy-%u interface opened"), core); in xf_ipc_open() 180 void xf_ipc_close(xf_proxy_ipc_data_t *ipc, u32 core) in xf_ipc_close() argument 191 TRACE(INIT, _b("proxy-%u interface closed"), core); in xf_ipc_close()
|
/device/linaro/hikey/hifi/xaf/hifi-dpf/include/ |
D | xf-core.h | 82 #define XF_CORE_RO_DATA(core) ((xf_core_ro_data_t *)(&xf_core_ro_data[(core)])) argument 85 #define XF_CORE_RW_DATA(core) ((xf_core_rw_data_t *)(&xf_core_rw_data[(core)])) argument 144 extern int xf_core_init(u32 core); 150 extern void xf_core_service(u32 core);
|
D | xf-trace.h | 72 extern void xf_trace_submit(u32 core, xf_message_t *m); 75 extern void xf_trace_flush(u32 core, xf_message_t *m); 79 #define xf_trace_submit(core, m) (void)0 argument 80 #define xf_trace_flush(core, m) (void)0 argument
|
D | xf-opcode.h | 47 #define __XF_PORT_SPEC(core, id, port) ((core) | ((id) << 2) | ((port) << 8)) argument 71 #define __XF_AP_PROXY(core) ((core) | 0x8000) argument 72 #define __XF_DSP_PROXY(core) ((core) | 0x8000) argument 73 #define __XF_AP_CLIENT(core, client) ((core) | ((client) << 6) | 0x8000) argument
|
/device/linaro/hikey/hifi/xaf/hifi-dpf/ipc/xt-shmem/ |
D | xf-main.c | 102 int xf_ipc_init(u32 core) in xf_ipc_init() argument 104 xf_core_data_t *cd = XF_CORE_DATA(core); in xf_ipc_init() 105 xf_shmem_data_t *shmem = (xf_shmem_data_t *)XF_CFG_SHMEM_ADDRESS(core); in xf_ipc_init() 123 static void xf_core_loop(u32 core) in xf_core_loop() argument 126 xf_core_init(core); in xf_core_loop() 136 xf_ipi_wait(core); in xf_core_loop() 139 xf_core_service(core); in xf_core_loop()
|
/device/linaro/hikey/hifi/xaf/hifi-dpf/app/ |
D | xa-factory.c | 57 xf_component_t * (*factory)(u32 core, xa_codec_func_t process); 84 extern xf_component_t * xa_audio_codec_factory(u32 core, xa_codec_func_t process); 85 extern xf_component_t * xa_audio_fx_factory(u32 core, xa_codec_func_t process); 86 extern xf_component_t * xa_mixer_factory(u32 core, xa_codec_func_t process); 87 extern xf_component_t * xa_renderer_factory(u32 core,xa_codec_func_t process); 144 xf_component_t * xf_component_factory(u32 core, xf_id_t id, u32 length) in xf_component_factory() argument 155 return xf_component_id[i].factory(core, xf_component_id[i].process); in xf_component_factory()
|
/device/linaro/hikey/hifi/xaf/host-apf/include/ |
D | xf-opcode.h | 40 #define __XF_PORT_SPEC(core, id, port) ((core) | ((id) << 2) | ((port) << 8)) argument 64 #define __XF_AP_PROXY(core) ((core) | 0x8000) argument 65 #define __XF_DSP_PROXY(core) ((core) | 0x8000) argument 66 #define __XF_AP_CLIENT(core, client) ((core) | ((client) << 6) | 0x8000) argument
|
/device/linaro/hikey/hifi/xaf/hifi-dpf/audio/ |
D | xa-class-base.c | 53 static XA_ERRORCODE xa_base_preinit(XACodecBase *base, u32 core) in xa_base_preinit() argument 64 XMALLOC(&base->api, n, 4, core); in xa_base_preinit() 73 XMALLOC(&base->mem_tabs, n, 4, core); in xa_base_preinit() 85 static XA_ERRORCODE xa_base_postinit(XACodecBase *base, u32 core) in xa_base_postinit() argument 96 base->scratch = XF_CORE_DATA(core)->scratch; in xa_base_postinit() 133 XMALLOC(&base->persist, size, align, core); in xa_base_postinit() 145 CODEC_API(base, memtab, i, type, size, align, core); in xa_base_postinit() 491 void xa_base_destroy(XACodecBase *base, u32 size, u32 core) in xa_base_destroy() argument 494 xf_mm_free_buffer(&base->persist, core); in xa_base_destroy() 495 xf_mm_free_buffer(&base->mem_tabs, core); in xa_base_destroy() [all …]
|
D | xa-class-base.h | 50 …xa_codec_memtab_f)(XACodecBase *codec, WORD32 i, WORD32 type, WORD32 size, WORD32 align, u32 core); 218 #define XMALLOC(p, size, align, core) \ argument 221 if (xf_mm_alloc_buffer((size), (align), (core), (p)) != 0) \ 258 extern XACodecBase * xa_base_factory(u32 core, u32 size, xa_codec_func_t process); 261 extern void xa_base_destroy(XACodecBase *base, u32 size, u32 core);
|
/device/generic/trusty/ |
D | qemu_trusty_base.mk | 95 system/core/rootdir/init.usb.rc:system/etc/init/hw/init.usb.rc \ 96 system/core/rootdir/init.usb.configfs.rc:system/etc/init/hw/init.usb.configfs.rc \ 97 system/core/rootdir/etc/hosts:system/etc/hosts \ 111 $(call inherit-product, system/core/trusty/trusty-base.mk) 112 $(call inherit-product, system/core/trusty/trusty-storage.mk) 113 $(call inherit-product, system/core/trusty/trusty-test.mk) 127 com.android.i18n:core-icu4j \
|
/device/linaro/dragonboard/gralloc/ |
D | Android.mk | 38 LOCAL_C_INCLUDES += system/core/include hardware/libhardware/include 39 LOCAL_C_INCLUDES += system/core/libsystem/include system/core
|
/device/google/fuchsia/ |
D | fuchsia.mk | 40 core-icu4j.$(art_apex) \ 41 core-libart.$(art_apex) \ 42 core-oj.$(art_apex) \
|