Home
last modified time | relevance | path

Searched refs:common (Results 1 – 25 of 430) sorted by relevance

12345678910>>...18

/device/board/isoftstone/zhiyuan/kernel/driver/drivers/clk/
Dccu-sun8iw20.c42 .common = {
58 .common = {
73 .common = {
100 .common = {
118 .common = {
134 .common = {
164 .common = {
184 .common = {
673 .common = {
747 &pll_periph0_2x_clk.common.hw,
[all …]
Dccu-sun50iw9.c41 .common = {
57 .common = {
73 .common = {
90 .common = {
107 .common = {
123 .common = {
144 .common = {
162 .common = {
180 .common = {
196 .common = {
[all …]
Dccu-sun50iw12.c40 .common = {
56 .common = {
72 .common = {
89 .common = {
105 .common = {
126 .common = {
144 .common = {
162 .common = {
178 .common = {
193 .common = {
[all …]
Dccu-sun50iw10.c41 .common = {
57 .common = {
74 .common = {
91 .common = {
107 .common = {
128 .common = {
146 .common = {
164 .common = {
180 .common = {
205 .common = {
[all …]
Dccu_frac.c13 bool ccu_frac_helper_is_enabled(struct ccu_common *common, in ccu_frac_helper_is_enabled() argument
16 if (!(common->features & CCU_FEATURE_FRACTIONAL)) in ccu_frac_helper_is_enabled()
19 return !(readl(common->base + common->reg) & cf->enable); in ccu_frac_helper_is_enabled()
22 void ccu_frac_helper_enable(struct ccu_common *common, in ccu_frac_helper_enable() argument
28 if (!(common->features & CCU_FEATURE_FRACTIONAL)) in ccu_frac_helper_enable()
31 spin_lock_irqsave(common->lock, flags); in ccu_frac_helper_enable()
32 reg = readl(common->base + common->reg); in ccu_frac_helper_enable()
33 writel(reg & ~cf->enable, common->base + common->reg); in ccu_frac_helper_enable()
34 spin_unlock_irqrestore(common->lock, flags); in ccu_frac_helper_enable()
37 void ccu_frac_helper_disable(struct ccu_common *common, in ccu_frac_helper_disable() argument
[all …]
Dccu_sdm.c12 bool ccu_sdm_helper_is_enabled(struct ccu_common *common, in ccu_sdm_helper_is_enabled() argument
15 if (!(common->features & CCU_FEATURE_SIGMA_DELTA_MOD)) in ccu_sdm_helper_is_enabled()
18 if (sdm->enable && !(readl(common->base + common->reg) & sdm->enable)) in ccu_sdm_helper_is_enabled()
21 return !!(readl(common->base + sdm->tuning_reg) & sdm->tuning_enable); in ccu_sdm_helper_is_enabled()
24 void ccu_sdm_helper_enable(struct ccu_common *common, in ccu_sdm_helper_enable() argument
32 if (!(common->features & CCU_FEATURE_SIGMA_DELTA_MOD)) in ccu_sdm_helper_enable()
39 common->base + sdm->tuning_reg); in ccu_sdm_helper_enable()
42 spin_lock_irqsave(common->lock, flags); in ccu_sdm_helper_enable()
43 reg = readl(common->base + sdm->tuning_reg); in ccu_sdm_helper_enable()
44 writel(reg | sdm->tuning_enable, common->base + sdm->tuning_reg); in ccu_sdm_helper_enable()
[all …]
Dccu-sun50iw12-r.c39 .common = {
49 static CLK_FIXED_FACTOR_HW(r_ahb_clk, "r-ahb", &cpus_clk.common.hw, 1, 1, 0);
62 .common = {
83 .common = {
99 .common = {
112 .common = {
125 .common = {
193 &cpus_clk.common,
194 &r_apb0_clk.common,
195 &r_apb1_clk.common,
[all …]
Dccu_gate.c12 void ccu_gate_helper_disable(struct ccu_common *common, u32 gate) in ccu_gate_helper_disable() argument
20 spin_lock_irqsave(common->lock, flags); in ccu_gate_helper_disable()
22 reg = readl(common->base + common->reg); in ccu_gate_helper_disable()
24 if (common->features & CCU_FEATURE_KEY_FIELD_MOD) { in ccu_gate_helper_disable()
25 reg = reg | common->key_value; in ccu_gate_helper_disable()
28 writel(reg & ~gate, common->base + common->reg); in ccu_gate_helper_disable()
30 spin_unlock_irqrestore(common->lock, flags); in ccu_gate_helper_disable()
37 return ccu_gate_helper_disable(&cg->common, cg->enable); in ccu_gate_disable()
40 int ccu_gate_helper_enable(struct ccu_common *common, u32 gate) in ccu_gate_helper_enable() argument
48 spin_lock_irqsave(common->lock, flags); in ccu_gate_helper_enable()
[all …]
Dccu_mux.c15 static u16 ccu_mux_get_prediv(struct ccu_common *common, in ccu_mux_get_prediv() argument
22 if (!((common->features & CCU_FEATURE_FIXED_PREDIV) || in ccu_mux_get_prediv()
23 (common->features & CCU_FEATURE_VARIABLE_PREDIV) || in ccu_mux_get_prediv()
24 (common->features & CCU_FEATURE_ALL_PREDIV))) in ccu_mux_get_prediv()
27 if (common->features & CCU_FEATURE_ALL_PREDIV) in ccu_mux_get_prediv()
28 return common->prediv; in ccu_mux_get_prediv()
30 reg = readl(common->base + common->reg); in ccu_mux_get_prediv()
36 if (common->features & CCU_FEATURE_FIXED_PREDIV) { in ccu_mux_get_prediv()
44 if (common->features & CCU_FEATURE_VARIABLE_PREDIV) { in ccu_mux_get_prediv()
60 unsigned long ccu_mux_helper_apply_prediv(struct ccu_common *common, in ccu_mux_helper_apply_prediv() argument
[all …]
Dccu-sun50iw10-r.c38 .common = {
48 static CLK_FIXED_FACTOR_HW(r_ahb_clk, "r-ahb", &cpus_clk.common.hw, 1, 1, 0);
53 .common = {
73 .common = {
125 &cpus_clk.common,
126 &r_apb1_clk.common,
127 &r_apb2_clk.common,
128 &r_apb1_timer_clk.common,
129 &r_apb1_twd_clk.common,
130 &r_apb1_pwm_clk.common,
[all …]
Dccu_nm.c61 return ccu_gate_helper_disable(&nm->common, nm->enable); in ccu_nm_disable()
68 return ccu_gate_helper_enable(&nm->common, nm->enable); in ccu_nm_enable()
75 return ccu_gate_helper_is_enabled(&nm->common, nm->enable); in ccu_nm_is_enabled()
86 if (ccu_frac_helper_is_enabled(&nm->common, &nm->frac)) { in ccu_nm_recalc_rate()
87 rate = ccu_frac_helper_read_rate(&nm->common, &nm->frac); in ccu_nm_recalc_rate()
89 if (nm->common.features & CCU_FEATURE_FIXED_POSTDIV) in ccu_nm_recalc_rate()
95 reg = readl(nm->common.base + nm->common.reg); in ccu_nm_recalc_rate()
109 if (ccu_sdm_helper_is_enabled(&nm->common, &nm->sdm)) in ccu_nm_recalc_rate()
110 rate = ccu_sdm_helper_read_rate(&nm->common, &nm->sdm, m, n); in ccu_nm_recalc_rate()
114 if (nm->common.features & CCU_FEATURE_FIXED_POSTDIV) in ccu_nm_recalc_rate()
[all …]
Dccu-sun50iw9-r.c38 .common = {
48 static CLK_FIXED_FACTOR_HW(r_ahb_clk, "r-ahb", &r_cpus_clk.common.hw, 1, 1, 0);
53 .common = {
73 .common = {
106 &r_cpus_clk.common,
107 &r_apb1_clk.common,
108 &r_apb2_clk.common,
109 &r_apb1_twd_clk.common,
110 &r_apb2_i2c_clk.common,
111 &r_apb1_ir_rx_clk.common,
[all …]
Dccu-sun8iw20-r.c65 &r_ahb_clk.common,
66 &r_apb0_clk.common,
67 &r_apb0_timer_clk.common,
68 &r_apb0_twd_clk.common,
69 &r_ppu_clk.common,
70 &r_apb0_ir_rx_clk.common,
71 &r_apb0_bus_ir_rx_clk.common,
72 &r_ahb_bus_rtc_clk.common,
73 &r_apb0_cpucfg_clk.common,
78 [CLK_R_AHB] = &r_ahb_clk.common.hw,
[all …]
Dccu_div.c21 if (cd->common.features & CCU_FEATURE_FIXED_POSTDIV) in ccu_div_round_rate()
24 rate = divider_round_rate_parent(&cd->common.hw, parent, in ccu_div_round_rate()
29 if (cd->common.features & CCU_FEATURE_FIXED_POSTDIV) in ccu_div_round_rate()
39 return ccu_gate_helper_disable(&cd->common, cd->enable); in ccu_div_disable()
46 return ccu_gate_helper_enable(&cd->common, cd->enable); in ccu_div_enable()
53 return ccu_gate_helper_is_enabled(&cd->common, cd->enable); in ccu_div_is_enabled()
63 reg = readl(cd->common.base + cd->common.reg); in ccu_div_recalc_rate()
67 parent_rate = ccu_mux_helper_apply_prediv(&cd->common, &cd->mux, -1, in ccu_div_recalc_rate()
73 if (cd->common.features & CCU_FEATURE_FIXED_POSTDIV) in ccu_div_recalc_rate()
84 return ccu_mux_helper_determine_rate(&cd->common, &cd->mux, in ccu_div_determine_rate()
[all …]
Dccu_mult.c58 return ccu_gate_helper_disable(&cm->common, cm->enable); in ccu_mult_disable()
65 return ccu_gate_helper_enable(&cm->common, cm->enable); in ccu_mult_enable()
72 return ccu_gate_helper_is_enabled(&cm->common, cm->enable); in ccu_mult_is_enabled()
82 if (ccu_frac_helper_is_enabled(&cm->common, &cm->frac)) in ccu_mult_recalc_rate()
83 return ccu_frac_helper_read_rate(&cm->common, &cm->frac); in ccu_mult_recalc_rate()
85 reg = readl(cm->common.base + cm->common.reg); in ccu_mult_recalc_rate()
89 parent_rate = ccu_mux_helper_apply_prediv(&cm->common, &cm->mux, -1, in ccu_mult_recalc_rate()
100 return ccu_mux_helper_determine_rate(&cm->common, &cm->mux, in ccu_mult_determine_rate()
113 if (ccu_frac_helper_has_rate(&cm->common, &cm->frac, rate)) { in ccu_mult_set_rate()
114 ccu_frac_helper_enable(&cm->common, &cm->frac); in ccu_mult_set_rate()
[all …]
Dccu-sun8iw20-rtc.c71 &iosc_clk.common,
72 &ext32k_gate_clk.common,
73 &osc32k_clk.common,
74 &dcxo24M_div32k_clk.common,
75 &rtc32k_clk.common,
76 &rtc_32k_fanout_clk.common,
77 &rtc_spi_clk.common,
82 [CLK_IOSC] = &iosc_clk.common.hw,
83 [CLK_EXT32K_GATE] = &ext32k_gate_clk.common.hw,
85 [CLK_OSC32K] = &osc32k_clk.common.hw,
[all …]
Dccu_gate.h17 struct ccu_common common; member
25 .common = { \
39 .common = { \
54 .common = { \
68 .common = { \
80 .common = { \
92 .common = { \
108 .common = { \
120 .common = { \
132 struct ccu_common *common = hw_to_ccu_common(hw); in hw_to_ccu_gate() local
[all …]
Dccu_mp.c105 if (cmp->common.features & CCU_FEATURE_FIXED_POSTDIV) in ccu_mp_round_rate()
114 if (!(clk_hw_get_flags(&cmp->common.hw) & CLK_SET_RATE_PARENT)) { in ccu_mp_round_rate()
122 if (cmp->common.features & CCU_FEATURE_FIXED_POSTDIV) in ccu_mp_round_rate()
132 return ccu_gate_helper_disable(&cmp->common, cmp->enable); in ccu_mp_disable()
139 return ccu_gate_helper_enable(&cmp->common, cmp->enable); in ccu_mp_enable()
146 return ccu_gate_helper_is_enabled(&cmp->common, cmp->enable); in ccu_mp_is_enabled()
158 parent_rate = ccu_mux_helper_apply_prediv(&cmp->common, &cmp->mux, -1, in ccu_mp_recalc_rate()
161 reg = readl(cmp->common.base + cmp->common.reg); in ccu_mp_recalc_rate()
172 if (unlikely(cmp->common.features & CCU_FEATURE_MP_NO_INDEX_MODE)) { in ccu_mp_recalc_rate()
180 if (cmp->common.features & CCU_FEATURE_FIXED_POSTDIV) in ccu_mp_recalc_rate()
[all …]
/device/soc/esp/esp32/components/bt/host/bluedroid/external/sbc/decoder/srce/
Dbitalloc-sbc.c35 static void dualBitAllocation(OI_CODEC_SBC_COMMON_CONTEXT *common) in dualBitAllocation() argument
44 bitcountL = computeBitneed(common, bitneedsL.uint8, 0, &bitpoolPreferenceL); in dualBitAllocation()
45 bitcountR = computeBitneed(common, bitneedsR.uint8, 1, &bitpoolPreferenceR); in dualBitAllocation()
47 oneChannelBitAllocation(common, &bitneedsL, 0, bitcountL); in dualBitAllocation()
48 oneChannelBitAllocation(common, &bitneedsR, 1, bitcountR); in dualBitAllocation()
51 static void stereoBitAllocation(OI_CODEC_SBC_COMMON_CONTEXT *common) in stereoBitAllocation() argument
53 const OI_UINT nrof_subbands = common->frameInfo.nrof_subbands; in stereoBitAllocation()
62 bitcount = computeBitneed(common, &bitneeds.uint8[0], 0, &bitpoolPreference); in stereoBitAllocation()
63 bitcount += computeBitneed(common, &bitneeds.uint8[nrof_subbands], 1, &bitpoolPreference); in stereoBitAllocation()
67 …bitadjust = adjustToFitBitpool(common->frameInfo.bitpool, bitneeds.uint32, 2 * nrof_subbands, bitc… in stereoBitAllocation()
[all …]
Ddecoder-sbc.c73 context->common.frameInfo.enhanced = (**frameData == OI_SBC_ENHANCED_SYNCWORD); in FindSyncword()
92 context->common.frameInfo.enhanced = 0; in FindSyncword()
110 …OI_UINT frameSamples = context->common.frameInfo.nrof_blocks * context->common.frameInfo.nrof_subb… in DecodeBody()
116 … if (*pcmBytes < (sizeof(OI_INT16) * frameSamples * context->common.pcmStride) && !allowPartial) { in DecodeBody()
121 …} else if (*pcmBytes < sizeof (OI_INT16) * context->common.frameInfo.nrof_subbands * context->comm… in DecodeBody()
129 OI_SBC_ReadScalefactors(&context->common, bodyData, &bs); in DecodeBody()
132 OI_SBC_ComputeBitAllocation(&context->common); in DecodeBody()
135 if (context->common.frameInfo.mode == SBC_JOINT_STEREO) { in DecodeBody()
141 context->bufferedBlocks = context->common.frameInfo.nrof_blocks; in DecodeBody()
145 …code_block_count = *pcmBytes / sizeof(OI_INT16) / context->common.pcmStride / context->common.fram… in DecodeBody()
[all …]
Dsynthesis-sbc.c264 OI_UINT nrof_channels = context->common.frameInfo.nrof_channels; in OI_SBC_SynthFrame_80()
265 OI_UINT pcmStrideShift = context->common.pcmStride == 1 ? 0 : 1; in OI_SBC_SynthFrame_80()
266 OI_UINT offset = context->common.filterBufferOffset; in OI_SBC_SynthFrame_80()
267 OI_INT32 *s = context->common.subdata + 8 * nrof_channels * blkstart; in OI_SBC_SynthFrame_80()
272 …_32BIT_ALIGNED_72_HALFWORDS(context->common.filterBuffer[0] + context->common.filterBufferLen - 72… in OI_SBC_SynthFrame_80()
274 …_32BIT_ALIGNED_72_HALFWORDS(context->common.filterBuffer[1] + context->common.filterBufferLen - 72… in OI_SBC_SynthFrame_80()
276 offset = context->common.filterBufferLen - 80; in OI_SBC_SynthFrame_80()
282 DCT2_8(context->common.filterBuffer[ch] + offset, s); in OI_SBC_SynthFrame_80()
283 SYNTH80(pcm + ch, context->common.filterBuffer[ch] + offset, pcmStrideShift); in OI_SBC_SynthFrame_80()
288 context->common.filterBufferOffset = offset; in OI_SBC_SynthFrame_80()
[all …]
Ddecoder-private.c75 …status = OI_CODEC_SBC_Alloc(&context->common, decoderData, decoderDataBytes, maxChannels, pcmStrid… in internal_DecoderReset()
81 context->common.codecInfo = OI_Codec_Copyright; in internal_DecoderReset()
82 context->common.maxBitneed = 0; in internal_DecoderReset()
84 OI_SBC_ExpandFrameFields(&context->common.frameInfo); in internal_DecoderReset()
95 INLINE void OI_SBC_ReadHeader(OI_CODEC_SBC_COMMON_CONTEXT *common, const OI_BYTE *data) in OI_SBC_ReadHeader() argument
97 OI_CODEC_SBC_FRAME_INFO *frame = &common->frameInfo; in OI_SBC_ReadHeader()
167 PRIVATE void OI_SBC_ReadScalefactors(OI_CODEC_SBC_COMMON_CONTEXT *common, in OI_SBC_ReadScalefactors() argument
171 OI_UINT i = common->frameInfo.nrof_subbands * common->frameInfo.nrof_channels; in OI_SBC_ReadScalefactors()
172 OI_INT8 *scale_factor = common->scale_factor; in OI_SBC_ReadScalefactors()
175 if (common->frameInfo.nrof_subbands == 8 || common->frameInfo.mode != SBC_JOINT_STEREO) { in OI_SBC_ReadScalefactors()
[all …]
Dalloc.c29 PRIVATE OI_STATUS OI_CODEC_SBC_Alloc(OI_CODEC_SBC_COMMON_CONTEXT *common, in OI_CODEC_SBC_Alloc() argument
48 common->maxChannels = maxChannels; in OI_CODEC_SBC_Alloc()
49 common->pcmStride = pcmStride; in OI_CODEC_SBC_Alloc()
53 subdataSize = maxChannels * sizeof(common->subdata[0]) * SBC_MAX_BANDS * SBC_MAX_BLOCKS; in OI_CODEC_SBC_Alloc()
58 …filterBufferCount = (codecDataBytes - subdataSize) / (sizeof(common->filterBuffer[0][0]) * SBC_MAX… in OI_CODEC_SBC_Alloc()
62 common->filterBufferLen = filterBufferCount * SBC_MAX_BANDS; in OI_CODEC_SBC_Alloc()
65 common->subdata = (OI_INT32 *)codecData; in OI_CODEC_SBC_Alloc()
72 size_t allocSize = common->filterBufferLen * sizeof(common->filterBuffer[0][0]); in OI_CODEC_SBC_Alloc()
73 common->filterBuffer[i] = (SBC_BUFFER_T *)codecData; in OI_CODEC_SBC_Alloc()
/device/soc/rockchip/common/
DREADME.md9 1. device_soc_rockchip/common/hardware/display
15 2. device_soc_rockchip/common/hardware/gpu
19 3. device_soc_rockchip/common/hardware/isp
23 4. device_soc_rockchip/common/hardware/mpp
27 5. device_soc_rockchip/common/hardware/rga
31 6. device_soc_rockchip/common/hardware/omx_il
35 7. device_soc_rockchip/common/hardware/codec
38 8. device_soc_rockchip/common/sdk_linux
42 9. device_soc_rockchip/common/vendor
45 10. device_soc_rockchip/common/kernel
/device/soc/beken/bk7235/liteos_m/bk_sdk_armino/middleware/soc/
DBUILD.gn21 ":common",
69 static_library("common") {
71 "common/hal/adc_hal.c",
72 "common/hal/aon_rtc_hal.c",
73 "common/hal/dma_hal.c",
74 "common/hal/efuse_hal.c",
75 "common/hal/flash_hal.c",
76 "common/hal/gpio_hal.c",
77 "common/hal/i2c_hal.c",
78 "common/hal/icu_hal.c",
[all …]

12345678910>>...18