/frameworks/compile/mclinker/lib/Target/X86/ |
D | X86Emulation.cpp | 17 static bool MCLDEmulateX86ELF(LinkerScript& pScript, LinkerConfig& pConfig) in MCLDEmulateX86ELF() argument 19 if (!MCLDEmulateELF(pScript, pConfig)) in MCLDEmulateX86ELF() 23 pConfig.targets().setEndian(TargetOptions::Little); in MCLDEmulateX86ELF() 25 Triple::ArchType arch = pConfig.targets().triple().getArch(); in MCLDEmulateX86ELF() 28 pConfig.targets().triple().getEnvironment() == Triple::GNUX32) { in MCLDEmulateX86ELF() 34 pConfig.targets().setBitClass(bitclass); in MCLDEmulateX86ELF() 37 pConfig.attribute().constraint().enableWholeArchive(); in MCLDEmulateX86ELF() 38 pConfig.attribute().constraint().enableAsNeeded(); in MCLDEmulateX86ELF() 39 pConfig.attribute().constraint().setSharedSystem(); in MCLDEmulateX86ELF() 42 pConfig.attribute().predefined().unsetWholeArchive(); in MCLDEmulateX86ELF() [all …]
|
D | X86LDBackend.cpp | 35 X86GNULDBackend::X86GNULDBackend(const LinkerConfig& pConfig, in X86GNULDBackend() argument 38 : GNULDBackend(pConfig, pInfo), in X86GNULDBackend() 47 Triple::ArchType arch = pConfig.targets().triple().getArch(); in X86GNULDBackend() 50 pConfig.targets().triple().getEnvironment() == Triple::GNUX32) { in X86GNULDBackend() 302 X86_32GNULDBackend::X86_32GNULDBackend(const LinkerConfig& pConfig, in X86_32GNULDBackend() argument 304 : X86GNULDBackend(pConfig, pInfo, llvm::ELF::R_386_COPY), in X86_32GNULDBackend() 450 X86_64GNULDBackend::X86_64GNULDBackend(const LinkerConfig& pConfig, in X86_64GNULDBackend() argument 452 : X86GNULDBackend(pConfig, pInfo, llvm::ELF::R_X86_64_COPY), in X86_64GNULDBackend() 604 const LinkerConfig& pConfig) in createX86LDBackend() argument 606 if (pConfig.targets().triple().isOSDarwin()) { in createX86LDBackend() [all …]
|
/frameworks/compile/mclinker/lib/Target/Hexagon/ |
D | HexagonEmulation.cpp | 17 static bool MCLDEmulateHexagonELF(LinkerScript& pScript, 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 19 if (!MCLDEmulateELF(pScript, pConfig)) in MCLDEmulateMipsELF() 23 pConfig.targets().setEndian(TargetOptions::Little); in MCLDEmulateMipsELF() 24 pConfig.targets().setBitClass(32); in MCLDEmulateMipsELF() 27 pConfig.attribute().constraint().enableWholeArchive(); in MCLDEmulateMipsELF() 28 pConfig.attribute().constraint().enableAsNeeded(); in MCLDEmulateMipsELF() 29 pConfig.attribute().constraint().setSharedSystem(); in MCLDEmulateMipsELF() 32 pConfig.attribute().predefined().unsetWholeArchive(); in MCLDEmulateMipsELF() 33 pConfig.attribute().predefined().unsetAsNeeded(); in MCLDEmulateMipsELF() 34 pConfig.attribute().predefined().setDynamic(); in MCLDEmulateMipsELF() [all …]
|
/frameworks/compile/mclinker/lib/Target/ARM/ |
D | ARMEmulation.cpp | 17 static bool MCLDEmulateARMELF(LinkerScript& pScript, LinkerConfig& pConfig) in MCLDEmulateARMELF() argument 19 if (!MCLDEmulateELF(pScript, pConfig)) in MCLDEmulateARMELF() 23 pConfig.targets().setEndian(TargetOptions::Little); in MCLDEmulateARMELF() 24 pConfig.targets().setBitClass(32); in MCLDEmulateARMELF() 27 pConfig.attribute().constraint().enableWholeArchive(); in MCLDEmulateARMELF() 28 pConfig.attribute().constraint().enableAsNeeded(); in MCLDEmulateARMELF() 29 pConfig.attribute().constraint().setSharedSystem(); in MCLDEmulateARMELF() 32 pConfig.attribute().predefined().unsetWholeArchive(); in MCLDEmulateARMELF() 33 pConfig.attribute().predefined().unsetAsNeeded(); in MCLDEmulateARMELF() 34 pConfig.attribute().predefined().setDynamic(); in MCLDEmulateARMELF() [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/libbcc/lib/Core/ |
D | Compiler.cpp | 94 Compiler::Compiler(const CompilerConfig &pConfig) : mTarget(NULL), in Compiler() argument 96 const std::string &triple = pConfig.getTriple(); in Compiler() 98 enum ErrorCode err = config(pConfig); in Compiler() 101 triple.c_str(), pConfig.getFeatureString().c_str()); in Compiler() 108 enum Compiler::ErrorCode Compiler::config(const CompilerConfig &pConfig) { in config() argument 109 if (pConfig.getTarget() == NULL) { in config() 114 (pConfig.getTarget())->createTargetMachine(pConfig.getTriple(), in config() 115 pConfig.getCPU(), in config() 116 pConfig.getFeatureString(), in config() 117 pConfig.getTargetOptions(), in config() [all …]
|
/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() 189 void ELFObjectWriter::writeELFHeader(const LinkerConfig& pConfig, in writeELFHeader() argument 204 header->e_ident[EI_DATA] = pConfig.targets().isLittleEndian()? in writeELFHeader() 211 switch(pConfig.codeGenType()) { in writeELFHeader() 222 llvm::errs() << "unspported output file type: " << pConfig.codeGenType() << ".\n"; in writeELFHeader() 227 header->e_entry = getEntryPoint(pConfig, pModule); in writeELFHeader() 229 if (LinkerConfig::Object != pConfig.codeGenType()) in writeELFHeader() 245 uint64_t ELFObjectWriter::getEntryPoint(const LinkerConfig& pConfig, in getEntryPoint() argument 249 if (pConfig.options().hasEntry()) in getEntryPoint() [all …]
|
D | ELFDynObjReader.cpp | 31 const LinkerConfig& pConfig) in ELFDynObjReader() argument 35 if (pConfig.targets().is32Bits() && pConfig.targets().isLittleEndian()) in ELFDynObjReader() 37 else if (pConfig.targets().is64Bits() && pConfig.targets().isLittleEndian()) in ELFDynObjReader()
|
/frameworks/compile/mclinker/include/mcld/LD/ |
D | ELFObjectWriter.h | 41 ELFObjectWriter(GNULDBackend& pBackend, const LinkerConfig& pConfig); 56 void writeELFHeader(const LinkerConfig& pConfig, 60 uint64_t getEntryPoint(const LinkerConfig& pConfig, 66 const LinkerConfig& pConfig, 81 void emitRelocation(const LinkerConfig& pConfig, 87 void emitRel(const LinkerConfig& pConfig, 93 void emitRela(const LinkerConfig& pConfig, 103 const LinkerConfig& pConfig) const;
|
/frameworks/compile/mclinker/tools/mcld/lib/Core/ |
D | Linker.cpp | 69 Linker::Linker(const LinkerConfig& pConfig) in Linker() argument 73 const std::string &triple = pConfig.getTriple(); in Linker() 75 enum ErrorCode err = config(pConfig); in Linker() 90 enum Linker::ErrorCode Linker::extractFiles(const LinkerConfig& pConfig) { in extractFiles() argument 91 mLDConfig = pConfig.getLDConfig(); in extractFiles() 98 enum Linker::ErrorCode Linker::config(const LinkerConfig& pConfig) { in config() argument 103 extractFiles(pConfig); in config() 106 const_cast<mcld::LinkerScript&>(*pConfig.getLDScript())); in config() 112 mLinker->emulate(const_cast<mcld::LinkerScript&>(*pConfig.getLDScript()), in config()
|
/frameworks/compile/mclinker/lib/CodeGen/ |
D | MCLDTargetMachine.cpp | 192 LinkerConfig& pConfig, in addPassesToEmitFile() argument 231 pConfig.setCodeGenType(LinkerConfig::Exec); in addPassesToEmitFile() 233 pConfig, in addPassesToEmitFile() 241 pConfig.setCodeGenType(LinkerConfig::Binary); in addPassesToEmitFile() 243 pConfig, in addPassesToEmitFile() 251 pConfig.setCodeGenType(LinkerConfig::DynObj); in addPassesToEmitFile() 253 pConfig, in addPassesToEmitFile() 261 pConfig.setCodeGenType(LinkerConfig::Object); in addPassesToEmitFile() 263 pConfig, in addPassesToEmitFile() 357 LinkerConfig& pConfig, in addLinkerPasses() argument [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/compile/mclinker/lib/MC/ |
D | InputFactory.cpp | 19 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() 25 m_pInputFactory = new InputFactory(MCLD_NUM_OF_INPUTS, pConfig); in InputBuilder() 30 InputBuilder::InputBuilder(const LinkerConfig& pConfig, in InputBuilder() argument 35 : m_Config(pConfig), in InputBuilder()
|
/frameworks/compile/mclinker/lib/Target/ |
D | ELFEmulation.cpp | 65 bool mcld::MCLDEmulateELF(LinkerScript& pScript, LinkerConfig& pConfig) in MCLDEmulateELF() argument 69 if (pConfig.codeGenType() != LinkerConfig::Object) { in MCLDEmulateELF() 79 if (!pConfig.options().nostdlib()) { in MCLDEmulateELF() 82 switch (pConfig.targets().triple().getOS()) { in MCLDEmulateELF()
|
D | TargetLDBackend.cpp | 14 TargetLDBackend::TargetLDBackend(const LinkerConfig& pConfig) in TargetLDBackend() argument 15 : m_Config(pConfig) { in TargetLDBackend()
|
/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/tools/llvm-mcld/ |
D | llvm-mcld.cpp | 1036 mcld::LinkerConfig& pConfig) in ProcessLinkerOptionsFromCommand() argument 1042 pConfig.options().setColor(false); in ProcessLinkerOptionsFromCommand() 1045 pConfig.options().setColor(true); in ProcessLinkerOptionsFromCommand() 1050 pConfig.options().setColor(color_option); in ProcessLinkerOptionsFromCommand() 1054 mcld::outs().setColor(pConfig.options().color()); in ProcessLinkerOptionsFromCommand() 1055 mcld::errs().setColor(pConfig.options().color()); in ProcessLinkerOptionsFromCommand() 1058 pConfig.options().setSOName(ArgSOName); in ProcessLinkerOptionsFromCommand() 1064 pConfig.options().getRpathList().push_back(*rp); in ProcessLinkerOptionsFromCommand() 1083 pConfig.options().setBinaryInput(); in ProcessLinkerOptionsFromCommand() 1110 pConfig.options().setPIE(ArgPIE); in ProcessLinkerOptionsFromCommand() [all …]
|
/frameworks/compile/mclinker/lib/Support/ |
D | MsgHandling.cpp | 31 mcld::InitializeDiagnosticEngine(const mcld::LinkerConfig& pConfig, in InitializeDiagnosticEngine() argument 34 g_pEngine->reset(pConfig); in InitializeDiagnosticEngine() 38 DiagnosticPrinter* printer = new TextDiagnosticPrinter(mcld::errs(), pConfig); in InitializeDiagnosticEngine()
|
/frameworks/av/media/libeffects/visualizer/ |
D | EffectVisualizer.cpp | 133 int Visualizer_setConfig(VisualizerContext *pContext, effect_config_t *pConfig) in Visualizer_setConfig() argument 137 if (pConfig->inputCfg.samplingRate != pConfig->outputCfg.samplingRate) return -EINVAL; in Visualizer_setConfig() 138 if (pConfig->inputCfg.channels != pConfig->outputCfg.channels) return -EINVAL; in Visualizer_setConfig() 139 if (pConfig->inputCfg.format != pConfig->outputCfg.format) return -EINVAL; in Visualizer_setConfig() 140 if (pConfig->inputCfg.channels != AUDIO_CHANNEL_OUT_STEREO) return -EINVAL; in Visualizer_setConfig() 141 if (pConfig->outputCfg.accessMode != EFFECT_BUFFER_ACCESS_WRITE && in Visualizer_setConfig() 142 pConfig->outputCfg.accessMode != EFFECT_BUFFER_ACCESS_ACCUMULATE) return -EINVAL; in Visualizer_setConfig() 143 if (pConfig->inputCfg.format != AUDIO_FORMAT_PCM_16_BIT) return -EINVAL; in Visualizer_setConfig() 145 pContext->mConfig = *pConfig; in Visualizer_setConfig() 167 void Visualizer_getConfig(VisualizerContext *pContext, effect_config_t *pConfig) in Visualizer_getConfig() argument [all …]
|
/frameworks/compile/mclinker/tools/mcld/include/alone/ |
D | Linker.h | 68 Linker(const LinkerConfig& pConfig); 72 enum ErrorCode config(const LinkerConfig& pConfig); 89 enum ErrorCode extractFiles(const LinkerConfig& pConfig);
|