/frameworks/compile/mclinker/lib/Target/AArch64/ |
D | AArch64Emulation.cpp | 18 LinkerConfig& pConfig) { in MCLDEmulateAArch64ELF() argument 19 if (!MCLDEmulateELF(pScript, pConfig)) in MCLDEmulateAArch64ELF() 23 pConfig.targets().setEndian(TargetOptions::Little); in MCLDEmulateAArch64ELF() 24 pConfig.targets().setBitClass(64); in MCLDEmulateAArch64ELF() 27 pConfig.attribute().constraint().enableWholeArchive(); in MCLDEmulateAArch64ELF() 28 pConfig.attribute().constraint().enableAsNeeded(); in MCLDEmulateAArch64ELF() 29 pConfig.attribute().constraint().setSharedSystem(); in MCLDEmulateAArch64ELF() 32 pConfig.attribute().predefined().unsetWholeArchive(); in MCLDEmulateAArch64ELF() 33 pConfig.attribute().predefined().unsetAsNeeded(); in MCLDEmulateAArch64ELF() 34 pConfig.attribute().predefined().setDynamic(); in MCLDEmulateAArch64ELF() [all …]
|
/frameworks/compile/mclinker/lib/Target/ARM/ |
D | ARMEmulation.cpp | 17 static bool MCLDEmulateARMELF(LinkerScript& pScript, LinkerConfig& pConfig) { in MCLDEmulateARMELF() argument 18 if (!MCLDEmulateELF(pScript, pConfig)) in MCLDEmulateARMELF() 22 pConfig.targets().setEndian(TargetOptions::Little); in MCLDEmulateARMELF() 23 pConfig.targets().setBitClass(32); in MCLDEmulateARMELF() 26 pConfig.attribute().constraint().enableWholeArchive(); in MCLDEmulateARMELF() 27 pConfig.attribute().constraint().enableAsNeeded(); in MCLDEmulateARMELF() 28 pConfig.attribute().constraint().setSharedSystem(); in MCLDEmulateARMELF() 31 pConfig.attribute().predefined().unsetWholeArchive(); in MCLDEmulateARMELF() 32 pConfig.attribute().predefined().unsetAsNeeded(); in MCLDEmulateARMELF() 33 pConfig.attribute().predefined().setDynamic(); in MCLDEmulateARMELF() [all …]
|
D | ARMELFAttributeData.cpp | 144 bool ARMELFAttributeData::merge(const LinkerConfig& pConfig, in merge() argument 282 if (pConfig.options().warnMismatch()) in merge() 320 pConfig.options().warnMismatch()) in merge() 334 if (pConfig.options().warnMismatch()) in merge() 377 if (pConfig.options().warnMismatch()) in merge() 389 if (pConfig.options().warnMismatch()) in merge() 401 if (pConfig.options().warnMismatch()) in merge() 413 pConfig.options().warnMismatch()) in merge() 430 if (pConfig.options().warnMismatch()) in merge() 449 if (pConfig.options().warnMismatch()) { in merge() [all …]
|
/frameworks/av/media/libeffects/lvm/lib/StereoWidening/src/ |
D | LVCS_BypassMix.c | 75 LVCS_BypassMix_t *pConfig = (LVCS_BypassMix_t *)&pInstance->BypassMix; in LVCS_BypassMixInit() local 107 pConfig->Mixer_Instance.MixerStream[0].CallbackParam = 0; in LVCS_BypassMixInit() 108 pConfig->Mixer_Instance.MixerStream[0].pCallbackHandle = LVM_NULL; in LVCS_BypassMixInit() 109 pConfig->Mixer_Instance.MixerStream[0].pCallBack = LVM_NULL; in LVCS_BypassMixInit() 110 pConfig->Mixer_Instance.MixerStream[0].CallbackSet=1; in LVCS_BypassMixInit() 111 Current = LVC_Mixer_GetCurrent(&pConfig->Mixer_Instance.MixerStream[0]); in LVCS_BypassMixInit() 112 LVC_Mixer_Init(&pConfig->Mixer_Instance.MixerStream[0],(LVM_INT32)(Gain >> 15),Current); in LVCS_BypassMixInit() 113 …LVC_Mixer_VarSlope_SetTimeConstant(&pConfig->Mixer_Instance.MixerStream[0],LVCS_BYPASS_MIXER_TC,pP… in LVCS_BypassMixInit() 119 Current = LVC_Mixer_GetCurrent(&pConfig->Mixer_Instance.MixerStream[1]); in LVCS_BypassMixInit() 120 LVC_Mixer_Init(&pConfig->Mixer_Instance.MixerStream[1],(LVM_INT32)(Gain >> 15),Current); in LVCS_BypassMixInit() [all …]
|
D | LVCS_ReverbGenerator.c | 68 LVCS_ReverbGenerator_t *pConfig = (LVCS_ReverbGenerator_t *)&pInstance->Reverberation; in LVCS_ReverbGeneratorInit() local 88 pConfig->DelaySize = (LVM_INT16)(2 * Delay); in LVCS_ReverbGeneratorInit() 89 pConfig->DelayOffset = 0; in LVCS_ReverbGeneratorInit() 91 … (LVM_INT16 *)&pConfig->StereoSamples[0], /* Destination */ in LVCS_ReverbGeneratorInit() 92 … (LVM_UINT16)(sizeof(pConfig->StereoSamples)/sizeof(LVM_INT16))); /* Number of words */ in LVCS_ReverbGeneratorInit() 119 pConfig->pBiquadCallBack = BQ_2I_D16F16C14_TRC_WRA_01; in LVCS_ReverbGeneratorInit() 122 pConfig->pBiquadCallBack = BQ_2I_D16F16C15_TRC_WRA_01; in LVCS_ReverbGeneratorInit() 130 pConfig->ProcGain = (LVM_UINT16)(HEADPHONEGAINPROC); in LVCS_ReverbGeneratorInit() 131 pConfig->UnprocGain = (LVM_UINT16)(HEADPHONEGAINUNPROC); in LVCS_ReverbGeneratorInit() 138 pConfig->ReverbLevel=(LVM_INT16)(ReverbPercentage>>8); // Reverb Level in Q 15 format in LVCS_ReverbGeneratorInit() [all …]
|
D | LVCS_StereoEnhancer.c | 59 LVCS_StereoEnhancer_t *pConfig = (LVCS_StereoEnhancer_t *)&pInstance->StereoEnhancer; in LVCS_SEnhancerInit() local 96 pConfig->pBiquadCallBack_Mid = FO_1I_D16F16C15_TRC_WRA_01; in LVCS_SEnhancerInit() 125 pConfig->pBiquadCallBack_Side = BQ_1I_D16F32C14_TRC_WRA_01; in LVCS_SEnhancerInit() 132 pConfig->pBiquadCallBack_Side = BQ_1I_D16F16C15_TRC_WRA_01; in LVCS_SEnhancerInit() 188 LVCS_StereoEnhancer_t *pConfig = (LVCS_StereoEnhancer_t *)&pInstance->StereoEnhancer; in LVCS_StereoEnhancer() local 210 (pConfig->pBiquadCallBack_Mid)((Biquad_Instance_t*)&pCoefficient->SEBiquadInstanceMid, in LVCS_StereoEnhancer() 218 (LVM_INT16)pConfig->MidGain, /* Gain */ in LVCS_StereoEnhancer() 229 (pConfig->pBiquadCallBack_Side)((Biquad_Instance_t*)&pCoefficient->SEBiquadInstanceSide, in LVCS_StereoEnhancer()
|
D | LVCS_Equaliser.c | 63 LVCS_Equaliser_t *pConfig = (LVCS_Equaliser_t *)&pInstance->Equaliser; in LVCS_EqualiserInit() local 102 pConfig->pBiquadCallBack = BQ_2I_D16F32C13_TRC_WRA_01; in LVCS_EqualiserInit() 105 pConfig->pBiquadCallBack = BQ_2I_D16F32C14_TRC_WRA_01; in LVCS_EqualiserInit() 108 pConfig->pBiquadCallBack = BQ_2I_D16F32C15_TRC_WRA_01; in LVCS_EqualiserInit() 142 LVCS_Equaliser_t *pConfig = (LVCS_Equaliser_t *)&pInstance->Equaliser; in LVCS_Equaliser() local 152 (pConfig->pBiquadCallBack)((Biquad_Instance_t*)&pCoefficients->EqualiserBiquadInstance, in LVCS_Equaliser()
|
/frameworks/compile/mclinker/lib/Target/X86/ |
D | X86Emulation.cpp | 17 static bool MCLDEmulateX86ELF(LinkerScript& pScript, LinkerConfig& pConfig) { in MCLDEmulateX86ELF() argument 18 if (!MCLDEmulateELF(pScript, pConfig)) in MCLDEmulateX86ELF() 22 pConfig.targets().setEndian(TargetOptions::Little); in MCLDEmulateX86ELF() 24 llvm::Triple::ArchType arch = pConfig.targets().triple().getArch(); in MCLDEmulateX86ELF() 27 pConfig.targets().triple().getEnvironment() == llvm::Triple::GNUX32) { in MCLDEmulateX86ELF() 32 pConfig.targets().setBitClass(bitclass); in MCLDEmulateX86ELF() 35 pConfig.attribute().constraint().enableWholeArchive(); in MCLDEmulateX86ELF() 36 pConfig.attribute().constraint().enableAsNeeded(); in MCLDEmulateX86ELF() 37 pConfig.attribute().constraint().setSharedSystem(); in MCLDEmulateX86ELF() 40 pConfig.attribute().predefined().unsetWholeArchive(); in MCLDEmulateX86ELF() [all …]
|
D | X86LDBackend.cpp | 36 X86GNULDBackend::X86GNULDBackend(const LinkerConfig& pConfig, in X86GNULDBackend() argument 39 : GNULDBackend(pConfig, pInfo), in X86GNULDBackend() 47 llvm::Triple::ArchType arch = pConfig.targets().triple().getArch(); in X86GNULDBackend() 50 pConfig.targets().triple().getEnvironment() == llvm::Triple::GNUX32) { in X86GNULDBackend() 326 X86_32GNULDBackend::X86_32GNULDBackend(const LinkerConfig& pConfig, in X86_32GNULDBackend() argument 328 : X86GNULDBackend(pConfig, pInfo, llvm::ELF::R_386_COPY), in X86_32GNULDBackend() 511 X86_64GNULDBackend::X86_64GNULDBackend(const LinkerConfig& pConfig, in X86_64GNULDBackend() argument 513 : X86GNULDBackend(pConfig, pInfo, llvm::ELF::R_X86_64_COPY), in X86_64GNULDBackend() 699 TargetLDBackend* createX86LDBackend(const LinkerConfig& pConfig) { in createX86LDBackend() argument 700 if (pConfig.targets().triple().isOSDarwin()) { in createX86LDBackend() [all …]
|
/frameworks/compile/mclinker/lib/Target/Hexagon/ |
D | HexagonEmulation.cpp | 18 LinkerConfig& pConfig) { in MCLDEmulateHexagonELF() argument 19 if (!MCLDEmulateELF(pScript, pConfig)) in MCLDEmulateHexagonELF() 23 pConfig.targets().setEndian(TargetOptions::Little); in MCLDEmulateHexagonELF() 24 pConfig.targets().setBitClass(32); in MCLDEmulateHexagonELF() 27 pConfig.attribute().constraint().enableWholeArchive(); in MCLDEmulateHexagonELF() 28 pConfig.attribute().constraint().enableAsNeeded(); in MCLDEmulateHexagonELF() 29 pConfig.attribute().constraint().setSharedSystem(); in MCLDEmulateHexagonELF() 32 pConfig.attribute().predefined().unsetWholeArchive(); in MCLDEmulateHexagonELF() 33 pConfig.attribute().predefined().unsetAsNeeded(); in MCLDEmulateHexagonELF() 34 pConfig.attribute().predefined().setDynamic(); in MCLDEmulateHexagonELF() [all …]
|
/frameworks/compile/mclinker/lib/Target/Mips/ |
D | MipsEmulation.cpp | 17 static bool MCLDEmulateMipsELF(LinkerScript& pScript, LinkerConfig& pConfig) { in MCLDEmulateMipsELF() argument 18 if (!MCLDEmulateELF(pScript, pConfig)) in MCLDEmulateMipsELF() 22 pConfig.targets().setEndian(TargetOptions::Little); in MCLDEmulateMipsELF() 24 llvm::Triple::ArchType arch = pConfig.targets().triple().getArch(); in MCLDEmulateMipsELF() 27 pConfig.targets().setBitClass(bitclass); in MCLDEmulateMipsELF() 30 pConfig.attribute().constraint().enableWholeArchive(); in MCLDEmulateMipsELF() 31 pConfig.attribute().constraint().enableAsNeeded(); in MCLDEmulateMipsELF() 32 pConfig.attribute().constraint().setSharedSystem(); in MCLDEmulateMipsELF() 35 pConfig.attribute().predefined().unsetWholeArchive(); in MCLDEmulateMipsELF() 36 pConfig.attribute().predefined().unsetAsNeeded(); in MCLDEmulateMipsELF() [all …]
|
/frameworks/compile/mclinker/include/mcld/LD/ |
D | ELFObjectWriter.h | 33 ELFObjectWriter(GNULDBackend& pBackend, const LinkerConfig& pConfig); 51 void writeELFHeader(const LinkerConfig& pConfig, 55 uint64_t getEntryPoint(const LinkerConfig& pConfig, 61 const LinkerConfig& pConfig, 79 void emitRelocation(const LinkerConfig& pConfig, 85 void emitRel(const LinkerConfig& pConfig, 91 void emitRela(const LinkerConfig& pConfig, 101 const LinkerConfig& pConfig) const;
|
D | GNUArchiveReader.h | 34 bool readArchive(const LinkerConfig& pConfig, Archive& pArchive); 80 size_t includeMember(const LinkerConfig& pConfig, 86 bool includeAllMembers(const LinkerConfig& pConfig, Archive& pArchive);
|
/frameworks/compile/mclinker/lib/LD/ |
D | ELFObjectWriter.cpp | 44 const LinkerConfig& pConfig) in ELFObjectWriter() argument 45 : ObjectWriter(), m_Backend(pBackend), m_Config(pConfig) { in ELFObjectWriter() 203 void ELFObjectWriter::writeELFHeader(const LinkerConfig& pConfig, in writeELFHeader() argument 219 pConfig.targets().isLittleEndian() in writeELFHeader() 226 switch (pConfig.codeGenType()) { in writeELFHeader() 237 llvm::errs() << "unspported output file type: " << pConfig.codeGenType() in writeELFHeader() 243 header->e_entry = getEntryPoint(pConfig, pModule); in writeELFHeader() 245 if (LinkerConfig::Object != pConfig.codeGenType()) in writeELFHeader() 261 uint64_t ELFObjectWriter::getEntryPoint(const LinkerConfig& pConfig, in getEntryPoint() argument 267 LinkerConfig::Object != pConfig.codeGenType() && in getEntryPoint() [all …]
|
D | ELFDynObjReader.cpp | 32 const LinkerConfig& pConfig) in ELFDynObjReader() argument 34 if (pConfig.targets().is32Bits() && pConfig.targets().isLittleEndian()) in ELFDynObjReader() 36 else if (pConfig.targets().is64Bits() && pConfig.targets().isLittleEndian()) in ELFDynObjReader()
|
/frameworks/compile/mclinker/lib/Support/ |
D | Target.cpp | 43 LinkerConfig& pConfig, in createMCLinker() argument 48 return MCLinkerCtorFn(pTriple, pConfig, pModule, pFileHandle); in createMCLinker() 53 bool Target::emulate(LinkerScript& pScript, LinkerConfig& pConfig) const { in emulate() 56 return EmulationFn(pScript, pConfig); in emulate() 60 TargetLDBackend* Target::createLDBackend(const LinkerConfig& pConfig) const { in createLDBackend() 63 return TargetLDBackendCtorFn(pConfig); in createLDBackend()
|
D | MsgHandling.cpp | 30 void InitializeDiagnosticEngine(const LinkerConfig& pConfig, in InitializeDiagnosticEngine() argument 32 g_pEngine->reset(pConfig); in InitializeDiagnosticEngine() 37 new TextDiagnosticPrinter(errs(), pConfig); in InitializeDiagnosticEngine()
|
/frameworks/compile/libbcc/lib/Core/ |
D | Compiler.cpp | 96 Compiler::Compiler(const CompilerConfig &pConfig) : mTarget(nullptr), in Compiler() argument 98 const std::string &triple = pConfig.getTriple(); in Compiler() 100 enum ErrorCode err = config(pConfig); in Compiler() 103 triple.c_str(), pConfig.getFeatureString().c_str()); in Compiler() 110 enum Compiler::ErrorCode Compiler::config(const CompilerConfig &pConfig) { in config() argument 111 if (pConfig.getTarget() == nullptr) { in config() 116 (pConfig.getTarget())->createTargetMachine(pConfig.getTriple(), in config() 117 pConfig.getCPU(), in config() 118 pConfig.getFeatureString(), in config() 119 pConfig.getTargetOptions(), in config() [all …]
|
/frameworks/av/media/libeffects/testlibs/ |
D | EffectEqualizer.cpp | 117 int Equalizer_setConfig(EqualizerContext *pContext, effect_config_t *pConfig); 223 int Equalizer_setConfig(EqualizerContext *pContext, effect_config_t *pConfig) in Equalizer_setConfig() argument 228 CHECK_ARG(pConfig != NULL); in Equalizer_setConfig() 230 CHECK_ARG(pConfig->inputCfg.samplingRate == pConfig->outputCfg.samplingRate); in Equalizer_setConfig() 231 CHECK_ARG(pConfig->inputCfg.channels == pConfig->outputCfg.channels); in Equalizer_setConfig() 232 CHECK_ARG(pConfig->inputCfg.format == pConfig->outputCfg.format); in Equalizer_setConfig() 233 CHECK_ARG((pConfig->inputCfg.channels == AUDIO_CHANNEL_OUT_MONO) || in Equalizer_setConfig() 234 (pConfig->inputCfg.channels == AUDIO_CHANNEL_OUT_STEREO)); in Equalizer_setConfig() 235 CHECK_ARG(pConfig->outputCfg.accessMode == EFFECT_BUFFER_ACCESS_WRITE in Equalizer_setConfig() 236 || pConfig->outputCfg.accessMode == EFFECT_BUFFER_ACCESS_ACCUMULATE); in Equalizer_setConfig() [all …]
|
/frameworks/av/media/libeffects/loudness/ |
D | EffectLoudnessEnhancer.cpp | 100 int LE_setConfig(LoudnessEnhancerContext *pContext, effect_config_t *pConfig) in LE_setConfig() argument 104 if (pConfig->inputCfg.samplingRate != pConfig->outputCfg.samplingRate) return -EINVAL; in LE_setConfig() 105 if (pConfig->inputCfg.channels != pConfig->outputCfg.channels) return -EINVAL; in LE_setConfig() 106 if (pConfig->inputCfg.format != pConfig->outputCfg.format) return -EINVAL; in LE_setConfig() 107 if (pConfig->inputCfg.channels != AUDIO_CHANNEL_OUT_STEREO) return -EINVAL; in LE_setConfig() 108 if (pConfig->outputCfg.accessMode != EFFECT_BUFFER_ACCESS_WRITE && in LE_setConfig() 109 pConfig->outputCfg.accessMode != EFFECT_BUFFER_ACCESS_ACCUMULATE) return -EINVAL; in LE_setConfig() 110 if (pConfig->inputCfg.format != AUDIO_FORMAT_PCM_16_BIT) return -EINVAL; in LE_setConfig() 112 pContext->mConfig = *pConfig; in LE_setConfig() 134 void LE_getConfig(LoudnessEnhancerContext *pContext, effect_config_t *pConfig) in LE_getConfig() argument [all …]
|
/frameworks/compile/mclinker/lib/MC/ |
D | InputFactory.cpp | 20 InputFactory::InputFactory(size_t pNum, const LinkerConfig& pConfig) in InputFactory() argument 22 m_pAttrSet = new AttributeSet(16, pConfig.attribute().predefined()); in InputFactory() 24 pConfig.attribute().predefined(), in InputFactory() 25 pConfig.attribute().constraint()); in InputFactory()
|
D | InputBuilder.cpp | 20 InputBuilder::InputBuilder(const LinkerConfig& pConfig) in InputBuilder() argument 21 : m_Config(pConfig), in InputBuilder() 26 m_pInputFactory = new InputFactory(MCLD_NUM_OF_INPUTS, pConfig); in InputBuilder() 31 InputBuilder::InputBuilder(const LinkerConfig& pConfig, in InputBuilder() argument 36 : m_Config(pConfig), in InputBuilder()
|
/frameworks/compile/mclinker/lib/Target/ |
D | ELFEmulation.cpp | 71 bool MCLDEmulateELF(LinkerScript& pScript, LinkerConfig& pConfig) { in MCLDEmulateELF() argument 73 if (pConfig.options().getScriptList().empty() && in MCLDEmulateELF() 74 pConfig.codeGenType() != LinkerConfig::Object) { in MCLDEmulateELF() 88 if (!pConfig.options().nostdlib()) { in MCLDEmulateELF() 91 switch (pConfig.targets().triple().getOS()) { in MCLDEmulateELF()
|
D | TargetLDBackend.cpp | 15 TargetLDBackend::TargetLDBackend(const LinkerConfig& pConfig) in TargetLDBackend() argument 16 : m_Config(pConfig) { in TargetLDBackend()
|
/frameworks/av/media/libeffects/visualizer/ |
D | EffectVisualizer.cpp | 134 int Visualizer_setConfig(VisualizerContext *pContext, effect_config_t *pConfig) in Visualizer_setConfig() argument 138 if (pConfig->inputCfg.samplingRate != pConfig->outputCfg.samplingRate) return -EINVAL; in Visualizer_setConfig() 139 if (pConfig->inputCfg.channels != pConfig->outputCfg.channels) return -EINVAL; in Visualizer_setConfig() 140 if (pConfig->inputCfg.format != pConfig->outputCfg.format) return -EINVAL; in Visualizer_setConfig() 141 if (pConfig->inputCfg.channels != AUDIO_CHANNEL_OUT_STEREO) return -EINVAL; in Visualizer_setConfig() 142 if (pConfig->outputCfg.accessMode != EFFECT_BUFFER_ACCESS_WRITE && in Visualizer_setConfig() 143 pConfig->outputCfg.accessMode != EFFECT_BUFFER_ACCESS_ACCUMULATE) return -EINVAL; in Visualizer_setConfig() 144 if (pConfig->inputCfg.format != AUDIO_FORMAT_PCM_16_BIT) return -EINVAL; in Visualizer_setConfig() 146 pContext->mConfig = *pConfig; in Visualizer_setConfig() 168 void Visualizer_getConfig(VisualizerContext *pContext, effect_config_t *pConfig) in Visualizer_getConfig() argument [all …]
|