Home
last modified time | relevance | path

Searched refs:base (Results 1 – 25 of 232) sorted by relevance

12345678910

/device/linaro/hikey/hifi/xaf/hifi-dpf/audio/
Dxa-class-base.c53 static XA_ERRORCODE xa_base_preinit(XACodecBase *base, u32 core) in xa_base_preinit() argument
58 XF_CHK_ERR(base->state == 0, XA_API_FATAL_INVALID_CMD); in xa_base_preinit()
61 XA_API(base, XA_API_CMD_GET_API_SIZE, 0, &n); in xa_base_preinit()
64 XMALLOC(&base->api, n, 4, core); in xa_base_preinit()
67 XA_API(base, XA_API_CMD_INIT, XA_CMD_TYPE_INIT_API_PRE_CONFIG_PARAMS, NULL); in xa_base_preinit()
70 if (XA_API(base, XA_API_CMD_GET_MEMTABS_SIZE, 0, &n), n != 0) in xa_base_preinit()
73 XMALLOC(&base->mem_tabs, n, 4, core); in xa_base_preinit()
76 XA_API(base, XA_API_CMD_SET_MEMTABS_PTR, 0, base->mem_tabs.addr); in xa_base_preinit()
79 TRACE(INIT, _b("Codec[%p] pre-initialization completed"), base); in xa_base_preinit()
85 static XA_ERRORCODE xa_base_postinit(XACodecBase *base, u32 core) in xa_base_postinit() argument
[all …]
Dxa-class-audio-codec.c62 XACodecBase base; member
108 XACodecBase *base = (XACodecBase *)codec; in xa_codec_prepare_runtime() local
115 XA_API(base, XA_API_CMD_GET_CONFIG_PARAM, XA_CODEC_CONFIG_PARAM_SAMPLE_RATE, &msg->sample_rate); in xa_codec_prepare_runtime()
116 XA_API(base, XA_API_CMD_GET_CONFIG_PARAM, XA_CODEC_CONFIG_PARAM_CHANNELS, &msg->channels); in xa_codec_prepare_runtime()
117 XA_API(base, XA_API_CMD_GET_CONFIG_PARAM, XA_CODEC_CONFIG_PARAM_PCM_WIDTH, &msg->pcm_width); in xa_codec_prepare_runtime()
118 XA_API(base, XA_API_CMD_GET_MEM_INFO_SIZE, codec->in_idx, &msg->input_length); in xa_codec_prepare_runtime()
119 XA_API(base, XA_API_CMD_GET_MEM_INFO_SIZE, codec->out_idx, &msg->output_length); in xa_codec_prepare_runtime()
159 static XA_ERRORCODE xa_codec_empty_this_buffer(XACodecBase *base, xf_message_t *m) in xa_codec_empty_this_buffer() argument
161 XAAudioCodec *codec = (XAAudioCodec *) base; in xa_codec_empty_this_buffer()
167 XF_CHK_ERR(base->state & XA_BASE_FLAG_POSTINIT, XA_API_FATAL_INVALID_CMD); in xa_codec_empty_this_buffer()
[all …]
Dxa-class-mixer.c107 XACodecBase base; member
177 XACodecBase *base = (XACodecBase *) mixer; in xa_mixer_prepare_runtime() local
184 XA_API(base, XA_API_CMD_GET_CONFIG_PARAM, XA_MIXER_CONFIG_PARAM_SAMPLE_RATE, &msg->sample_rate); in xa_mixer_prepare_runtime()
185 XA_API(base, XA_API_CMD_GET_CONFIG_PARAM, XA_MIXER_CONFIG_PARAM_CHANNELS, &msg->channels); in xa_mixer_prepare_runtime()
186 XA_API(base, XA_API_CMD_GET_CONFIG_PARAM, XA_MIXER_CONFIG_PARAM_PCM_WIDTH, &msg->pcm_width); in xa_mixer_prepare_runtime()
187 XA_API(base, XA_API_CMD_GET_MEM_INFO_SIZE, 0, &msg->input_length); in xa_mixer_prepare_runtime()
188 XA_API(base, XA_API_CMD_GET_MEM_INFO_SIZE, XA_MIXER_MAX_TRACK_NUMBER, &msg->output_length); in xa_mixer_prepare_runtime()
189 XA_API(base, XA_API_CMD_GET_CONFIG_PARAM, XA_MIXER_CONFIG_PARAM_FRAME_SIZE, &frame_size); in xa_mixer_prepare_runtime()
208 static XA_ERRORCODE xa_mixer_empty_this_buffer(XACodecBase *base, xf_message_t *m) in xa_mixer_empty_this_buffer() argument
210 XAMixer *mixer = (XAMixer *) base; in xa_mixer_empty_this_buffer()
[all …]
/device/linaro/hikey/hifi/xaf/hifi-dpf/include/sys/xt-shmem/board-hikey/
Ddsp_driver_ipc.h37 #define SYS_IPC_LOCK(base) WORD_REF(base + 0xA00)
38 #define SYS_IPC_ICLR(base, box) WORD_REF(base + ((box) << 6) + 0x18)
39 #define SYS_IPC_DATA(base, box, num) WORD_REF(base + ((box) << 6) + 0x20 + ((num) << 2))
40 #define SYS_IPC_CPUIRST(base, core) WORD_REF(base + 0x804 + ((core) << 3))
41 #define SYS_IPC_MODE(base, box) WORD_REF(base + ((box) << 6) + 0x10)
42 #define SYS_IPC_SOURCE(base, box) WORD_REF(base + ((box) << 6))
43 #define SYS_IPC_DEST(base, box) WORD_REF(base + ((box) * 64) + 0x04)
44 #define SYS_IPC_SEND(base, box) WORD_REF(base + ((box) << 6) + 0x1c)
45 #define SYS_IPC_IMASK(base, box) WORD_REF(base + ((box) << 6) + 0x14)
46 #define SYS_IPC_DCLR(base, box) WORD_REF(base + ((box) * 64) + 0x08)
[all …]
Dxf-board.h55 #define SYS_IPC_LOCK(base) WORD_REF(base + 0xA00) argument
56 #define SYS_IPC_ICLR(base, box) WORD_REF(base + ((box) << 6) + 0x18) argument
57 #define SYS_IPC_DATA(base, box, num) WORD_REF(base + ((box) << 6) + 0x20 + ((num) << 2)) argument
58 #define SYS_IPC_CPUIRST(base, core) WORD_REF(base + 0x804 + ((core) << 3)) argument
59 #define SYS_IPC_MODE(base, box) WORD_REF(base + ((box) << 6) + 0x10) argument
60 #define SYS_IPC_SOURCE(base, box) WORD_REF(base + ((box) << 6)) argument
61 #define SYS_IPC_DEST(base, box) WORD_REF(base + ((box) * 64) + 0x04) argument
62 #define SYS_IPC_SEND(base, box) WORD_REF(base + ((box) << 6) + 0x1c) argument
63 #define SYS_IPC_IMASK(base, box) WORD_REF(base + ((box) << 6) + 0x14) argument
64 #define SYS_IPC_DCLR(base, box) WORD_REF(base + ((box) * 64) + 0x08) argument
[all …]
/device/generic/goldfish-opengl/android-emu/
DCMakeLists.txt5base/AlignedBuf.cpp android/base/files/MemStream.cpp android/base/files/Stream.cpp android/base/fi…
6base/AlignedBuf.cpp android/base/files/MemStream.cpp android/base/files/Stream.cpp android/base/fi…
DAndroid.bp5 "android/base/AlignedBuf.cpp",
6 "android/base/files/MemStream.cpp",
7 "android/base/files/Stream.cpp",
8 "android/base/files/StreamSerializing.cpp",
9 "android/base/Pool.cpp",
10 "android/base/ring_buffer.c",
11 "android/base/StringFormat.cpp",
12 "android/base/AndroidSubAllocator.cpp",
13 "android/base/synchronization/AndroidMessageChannel.cpp",
14 "android/base/threads/AndroidFunctorThread.cpp",
[all …]
/device/linaro/hikey/gralloc960/
Dmali_gralloc_module.cpp145 base.common.tag = HARDWARE_MODULE_TAG; in private_module_t()
147 base.common.version_major = GRALLOC_MODULE_API_VERSION_1_0; in private_module_t()
149 base.common.version_major = GRALLOC_MODULE_API_VERSION_0_3; in private_module_t()
151 base.common.version_minor = 0; in private_module_t()
152 base.common.id = GRALLOC_HARDWARE_MODULE_ID; in private_module_t()
153 base.common.name = "Graphics Memory Allocator Module"; in private_module_t()
154 base.common.author = "ARM Ltd."; in private_module_t()
155 base.common.methods = &mali_gralloc_module_methods; in private_module_t()
156 base.common.dso = NULL; in private_module_t()
157 INIT_ZERO(base.common.reserved); in private_module_t()
[all …]
/device/amlogic/yukawa/hal/gralloc/
Dmali_gralloc_module.cpp145 base.common.tag = HARDWARE_MODULE_TAG; in private_module_t()
147 base.common.version_major = GRALLOC_MODULE_API_VERSION_1_0; in private_module_t()
149 base.common.version_major = GRALLOC_MODULE_API_VERSION_0_3; in private_module_t()
151 base.common.version_minor = 0; in private_module_t()
152 base.common.id = GRALLOC_HARDWARE_MODULE_ID; in private_module_t()
153 base.common.name = "Graphics Memory Allocator Module"; in private_module_t()
154 base.common.author = "ARM Ltd."; in private_module_t()
155 base.common.methods = &mali_gralloc_module_methods; in private_module_t()
156 base.common.dso = NULL; in private_module_t()
157 INIT_ZERO(base.common.reserved); in private_module_t()
[all …]
/device/linaro/hikey/gralloc/
Dgralloc_module.cpp111 hnd->base = ump_mapped_pointer_get((ump_handle)hnd->ump_mem_handle); in gralloc_register_buffer()
113 if (0 != hnd->base) in gralloc_register_buffer()
182 hnd->base = mappedAddress + hnd->offset; in gralloc_register_buffer()
216 void *base = (void *)hnd->base; in unmap_buffer() local
219 if (munmap(base, size) < 0) in unmap_buffer()
221 AERR("Could not munmap base:%p size:%lu '%s'", base, (unsigned long)size, strerror(errno)); in unmap_buffer()
234 hnd->base = 0; in unmap_buffer()
319 *vaddr = (void *)hnd->base; in gralloc_lock()
361 ycbcr->y = (void *)hnd->base; in gralloc_lock_ycbcr()
362 ycbcr->cr = (void *)((unsigned char *)hnd->base + ystride * hnd->height); in gralloc_lock_ycbcr()
[all …]
Dgralloc_priv.h106 gralloc_module_t base; member
179 void *base; member
217 …private_handle_t(int flags, int usage, int size, void *base, int lock_state, ump_secure_id secure_… in private_handle_t()
229 base(base), in private_handle_t()
252 private_handle_t(int flags, int usage, int size, void *base, int lock_state): in private_handle_t()
262 base(base), in private_handle_t()
284 …private_handle_t(int flags, int usage, int size, void *base, int lock_state, int fb_file, int fb_o… in private_handle_t()
296 base(base), in private_handle_t()
Dframebuffer_device.cpp80 m->base.unlock(&m->base, m->currentBuffer); in fb_post()
86 m->base.lock(&m->base, buffer, private_module_t::PRIV_USAGE_LOCKED_FOR_POST, in fb_post()
100 m->base.unlock(&m->base, buffer); in fb_post()
155 m->base.unlock(&m->base, buffer); in fb_post()
171 m->base.lock(&m->base, m->framebuffer, GRALLOC_USAGE_SW_WRITE_RARELY, in fb_post()
174 m->base.lock(&m->base, buffer, GRALLOC_USAGE_SW_READ_RARELY, in fb_post()
179 m->base.unlock(&m->base, buffer); in fb_post()
180 m->base.unlock(&m->base, m->framebuffer); in fb_post()
/device/generic/goldfish-opengl/
DBUILD.gn3 "android-emu/android/base/AlignedBuf.cpp",
4 "android-emu/android/base/AlignedBuf.h",
5 "android-emu/android/base/AndroidSubAllocator.cpp",
6 "android-emu/android/base/AndroidSubAllocator.h",
7 "android-emu/android/base/Pool.cpp",
8 "android-emu/android/base/Pool.h",
9 "android-emu/android/base/Tracing.cpp",
10 "android-emu/android/base/Tracing.h",
11 "android-emu/android/base/files/MemStream.cpp",
12 "android-emu/android/base/files/MemStream.h",
[all …]
/device/google/cuttlefish/common/libs/utils/
Dtee_logging.cpp27 using android::base::GetThreadId;
28 using android::base::FATAL;
29 using android::base::LogSeverity;
30 using android::base::StringPrintf;
36 using android::base::VERBOSE; in GuessSeverity()
37 using android::base::DEBUG; in GuessSeverity()
38 using android::base::INFO; in GuessSeverity()
39 using android::base::WARNING; in GuessSeverity()
40 using android::base::ERROR; in GuessSeverity()
41 using android::base::FATAL_WITHOUT_ABORT; in GuessSeverity()
[all …]
Dtee_logging.h27 android::base::LogSeverity ConsoleSeverity();
28 android::base::LogSeverity LogFileSeverity();
31 android::base::LogSeverity severity;
43 android::base::LogId log_id,
44 android::base::LogSeverity severity,
/device/google/cuttlefish/host/commands/assemble_cvd/
Dmisc_info.cc24 auto lines = android::base::Split(misc_info_contents, "\n"); in ParseMiscInfo()
27 line = android::base::Trim(line); in ParseMiscInfo()
37 auto key = android::base::Trim(line.substr(0, eq_pos)); in ParseMiscInfo()
38 auto value = android::base::Trim(line.substr(eq_pos + 1)); in ParseMiscInfo()
64 auto components = android::base::Split(value_it->second, " "); in SuperPartitionComponents()
66 component = android::base::Trim(component); in SuperPartitionComponents()
78 (*misc_info)[kDynamicPartitions] = android::base::Join(components, " "); in SetSuperPartitionComponents()
79 (*misc_info)[kGoogleDynamicPartitions] = android::base::Join(components, " "); in SetSuperPartitionComponents()
/device/google/cuttlefish/host/commands/log_tee/
Dlog_tee.cpp28 ::android::base::InitLogging(argv, android::base::StderrLogger); in main()
40 android::base::SetLogger( in main()
43 android::base::SetLogger( in main()
52 android::base::SetDefaultTag(FLAGS_process_name); in main()
61 auto trimmed = android::base::Trim(std::string(buf, chars_read)); in main()
/device/google/bonito/health/
DLearnedCapacityBackupRestore.cpp46 if (!android::base::ReadFileToString(std::string(kSysCFPersistFile), &buffer)) { in ReadPersistData()
64 if (!android::base::WriteStringToFile(strData, std::string(kSysCFPersistFile))) in SaveToStorage()
71 if (!android::base::ReadFileToString(std::string(kChgFullDesignFile), &buffer)) { in ReadNominalCapacity()
76 buffer = android::base::Trim(buffer); in ReadNominalCapacity()
87 if (!android::base::ReadFileToString(std::string(kChgFullFile), &buffer)) { in ReadCapacity()
92 buffer = android::base::Trim(buffer); in ReadCapacity()
107 if (!android::base::WriteStringToFile(strData, std::string(kChgFullFile))) in SaveToSRAM()
/device/google/bonito/vr/
DVrDevice.cpp40 std::string hwProp = android::base::GetProperty("ro.hardware", "default"); in setVrMode()
45 if (!android::base::SetProperty("vendor.sys.qcom.thermalcfg", thermalConf)) { in setVrMode()
49 if (!android::base::SetProperty("ctl.restart", "vendor.thermal-engine")) { in setVrMode()
58 std::string buf(android::base::StringPrintf("VRMode: %s\n", in debug()
60 if (!android::base::WriteStringToFd(buf, fd)) { in debug()
/device/google/coral/dumpstate/
DDumpstateDevice.cpp117 std::string modemLogDir = android::base::GetProperty(MODEM_LOG_LOC_PROPERTY, ""); in dumpModem()
123 std::string filePrefix = android::base::GetProperty(MODEM_LOG_PREFIX_PROPERTY, ""); in dumpModem()
139 android::base::SetProperty(MODEM_EFS_DUMP_PROPERTY, "true"); in dumpModem()
167 …bool smlogEnabled = android::base::GetBoolProperty(MODEM_LOGGING_SWITCH, false) && !access("/vendo… in dumpModem()
168 bool diagLogEnabled = android::base::GetBoolProperty(DIAG_MDLOG_PERSIST_PROPERTY, false); in dumpModem()
169 bool tcpdumpEnabled = android::base::GetBoolProperty(TCPDUMP_PERSIST_PROPERTY, false); in dumpModem()
174 … bool diagLogStarted = android::base::GetBoolProperty( DIAG_MDLOG_STATUS_PROPERTY, false); in dumpModem()
177 android::base::SetProperty(DIAG_MDLOG_PROPERTY, "false"); in dumpModem()
179 …if (android::base::WaitForProperty(DIAG_MDLOG_STATUS_PROPERTY, "false", std::chrono::seconds(20)))… in dumpModem()
188 …dumpLogs(fd, diagLogDir, modemLogAllDir, android::base::GetIntProperty(DIAG_MDLOG_NUMBER_BUGREPORT… in dumpModem()
[all …]
/device/amlogic/yukawa/hal/bootctrl/
Dbootloader_message.cpp63 *err += android::base::StringPrintf("failed to stat %s try %d: %s\n", in wait_for_device()
70 *err += android::base::StringPrintf("failed to stat %s\n", blk_device.c_str()); in wait_for_device()
80 android::base::unique_fd fd(open(misc_blk_device.c_str(), O_RDONLY)); in read_misc_partition()
82 *err = android::base::StringPrintf("failed to open %s: %s", misc_blk_device.c_str(), in read_misc_partition()
87 *err = android::base::StringPrintf("failed to lseek %s: %s", misc_blk_device.c_str(), in read_misc_partition()
91 if (!android::base::ReadFully(fd, p, size)) { in read_misc_partition()
92 *err = android::base::StringPrintf("failed to read %s: %s", misc_blk_device.c_str(), in read_misc_partition()
101 android::base::unique_fd fd(open(misc_blk_device.c_str(), O_WRONLY)); in write_misc_partition()
103 *err = android::base::StringPrintf("failed to open %s: %s", misc_blk_device.c_str(), in write_misc_partition()
108 *err = android::base::StringPrintf("failed to lseek %s: %s", misc_blk_device.c_str(), in write_misc_partition()
[all …]
/device/google/bonito/dumpstate/
DDumpstateDevice.cpp116 std::string modemLogDir = android::base::GetProperty(MODEM_LOG_LOC_PROPERTY, ""); in dumpModemThread()
122 std::string filePrefix = android::base::GetProperty(MODEM_LOG_PREFIX_PROPERTY, ""); in dumpModemThread()
138 android::base::SetProperty(MODEM_EFS_DUMP_PROPERTY, "true"); in dumpModemThread()
165 bool diagLogEnabled = android::base::GetBoolProperty(DIAG_MDLOG_PERSIST_PROPERTY, false); in dumpModemThread()
166 bool tcpdumpEnabled = android::base::GetBoolProperty(TCPDUMP_PERSIST_PROPERTY, false); in dumpModemThread()
169 bool diagLogStarted = android::base::GetBoolProperty(DIAG_MDLOG_STATUS_PROPERTY, false); in dumpModemThread()
172 android::base::SetProperty(DIAG_MDLOG_PROPERTY, "false"); in dumpModemThread()
174 …if (android::base::WaitForProperty(DIAG_MDLOG_STATUS_PROPERTY, "false", std::chrono::seconds(10)))… in dumpModemThread()
183 …dumpLogs(STDOUT_FILENO, diagLogDir, modemLogAllDir, android::base::GetIntProperty(DIAG_MDLOG_NUMBE… in dumpModemThread()
187 android::base::SetProperty(DIAG_MDLOG_PROPERTY, "true"); in dumpModemThread()
[all …]
/device/google/cuttlefish_vmm/
Dcheck_links.sh6 base="$(pwd)"
10 $(find "${base}"/x86_64-linux-gnu/bin \
11 "${base}"/aarch64-linux-gnu/bin \
21 bad_links="$(ldd "${library_to_check}" | grep "${library_stub}" | grep -v "${base}" )"
/device/google/contexthub/firmware/os/platform/stm32/
Dexti.c74 struct ChainedInterrupt base; member
80 struct ExtiInterrupt *exti = container_of(irq, struct ExtiInterrupt, base); in extiInterruptEnable()
86 struct ExtiInterrupt *exti = container_of(irq, struct ExtiInterrupt, base); in extiInterruptDisable()
91 .base = { \
128 maxLatency = maxLatencyIsr(&exti->base); in extiCalcMaxLatency()
149 dispatchIsr(&exti->base); in extiIrqHandler()
192 chainIsr(&exti->base, isr); in extiChainIsr()
207 unchainIsr(&exti->base, isr); in extiUnchainIsr()
219 count += unchainIsrAll(&exti->base, tid); in extiUnchainAll()
/device/google/crosshatch/dumpstate/
DDumpstateDevice.cpp112 std::string modemLogDir = android::base::GetProperty(MODEM_LOG_LOC_PROPERTY, ""); in dumpModem()
118 std::string filePrefix = android::base::GetProperty(MODEM_LOG_PREFIX_PROPERTY, ""); in dumpModem()
158 …bool smlogEnabled = android::base::GetBoolProperty(MODEM_LOGGING_SWITCH, false) && !access("/vendo… in dumpModem()
159 bool diagLogEnabled = android::base::GetBoolProperty(DIAG_MDLOG_PERSIST_PROPERTY, false); in dumpModem()
160 bool tcpdumpEnabled = android::base::GetBoolProperty(TCPDUMP_PERSIST_PROPERTY, false); in dumpModem()
165 … bool diagLogStarted = android::base::GetBoolProperty( DIAG_MDLOG_STATUS_PROPERTY, false); in dumpModem()
168 android::base::SetProperty(DIAG_MDLOG_PROPERTY, "false"); in dumpModem()
170 …if (android::base::WaitForProperty(DIAG_MDLOG_STATUS_PROPERTY, "false", std::chrono::seconds(20)))… in dumpModem()
179 …dumpLogs(fd, diagLogDir, modemLogAllDir, android::base::GetIntProperty(DIAG_MDLOG_NUMBER_BUGREPORT… in dumpModem()
183 android::base::SetProperty(DIAG_MDLOG_PROPERTY, "true"); in dumpModem()
[all …]

12345678910