Home
last modified time | relevance | path

Searched refs:d (Results 1 – 25 of 137) sorted by relevance

123456

/sof-3.4.0/src/trace/
Ddma-trace.c51 static int dma_trace_get_avail_data(struct dma_trace_data *d,
60 struct dma_trace_data *d = data; in trace_work() local
61 struct dma_trace_buf *buffer = &d->dmatb; in trace_work()
62 struct dma_sg_config *config = &d->config; in trace_work()
69 if (!d->dc.chan) in trace_work()
86 size = dma_trace_get_avail_data(d, buffer, avail); in trace_work()
93 d->posn.overflow = overflow; in trace_work()
96 d->copy_in_progress = 1; in trace_work()
99 size = dma_copy_to_host(&d->dc, config, d->posn.host_offset, in trace_work()
107 d->posn.host_offset += size; in trace_work()
[all …]
/sof-3.4.0/src/lib/
Ddai.c168 static void dai_set_device_params(struct dai *d) in dai_set_device_params() argument
170 switch (d->type) { in dai_set_device_params()
172 d->dma_dev = DMA_DEV_SSP; in dai_set_device_params()
173 d->dma_caps = DMA_CAP_GP_LP | DMA_CAP_GP_HP; in dai_set_device_params()
176 d->dma_dev = DMA_DEV_DMIC; in dai_set_device_params()
177 d->dma_caps = DMA_CAP_GP_LP | DMA_CAP_GP_HP; in dai_set_device_params()
180 d->dma_dev = DMA_DEV_ALH; in dai_set_device_params()
181 d->dma_caps = DMA_CAP_GP_LP | DMA_CAP_GP_HP; in dai_set_device_params()
184 d->dma_dev = DMA_DEV_HDA; in dai_set_device_params()
185 d->dma_caps = DMA_CAP_HDA; in dai_set_device_params()
[all …]
Ddma.c39 struct dma *d = NULL, *dmin = NULL; in dma_get() local
48 for (d = info->dma_array; d < info->dma_array + info->num_dmas; in dma_get()
49 d++) { in dma_get()
51 if (dir && (d->plat_data.dir & dir) == 0) in dma_get()
55 if (cap && (d->plat_data.caps & cap) == 0) in dma_get()
59 if (dev && (d->plat_data.devs & dev) == 0) in dma_get()
65 if (!d->sref) { in dma_get()
66 dmin = d; in dma_get()
71 users = d->sref; in dma_get()
75 dmin = d; in dma_get()
[all …]
/sof-3.4.0/src/math/
Diir_df1_generic.c54 int d = 0; /* Index to state */ in iir_df1() local
73 acc = ((int64_t)coefp[c]) * delay[d]; /* a2 * y(n - 2) */ in iir_df1()
74 acc += ((int64_t)coefp[c + 1]) * delay[d + 1]; /* a1 * y(n - 1) */ in iir_df1()
75 acc += ((int64_t)coefp[c + 2]) * delay[d + 2]; /* b2 * x(n - 2) */ in iir_df1()
76 acc += ((int64_t)coefp[c + 3]) * delay[d + 3]; /* b1 * x(n - 1) */ in iir_df1()
81 delay[d] = delay[d + 1]; in iir_df1()
82 delay[d + 1] = tmp; in iir_df1()
83 delay[d + 2] = delay[d + 3]; in iir_df1()
84 delay[d + 3] = in; in iir_df1()
101 d += IIR_DF1_NUM_STATE; in iir_df1()
Diir_df2t_generic.c55 int d = 0; /* Index to delays */ in iir_df2t() local
71 acc = ((int64_t)iir->coef[c + 4]) * in + iir->delay[d]; /* Coef b0 */ in iir_df2t()
75 acc = iir->delay[d + 1]; in iir_df2t()
78 iir->delay[d] = acc; in iir_df2t()
83 iir->delay[d + 1] = acc; in iir_df2t()
100 d += IIR_DF2T_NUM_DELAYS; in iir_df2t()
/sof-3.4.0/tools/tune/dmic/
Ddmic_fir_export.m25 hfn = sprintf('%s/pdm_decim_int32_%02d_%04d_%04d_%03d_%03d.h', hdir, fir.m, pbi, sbi, rpi, rsi);
26 vfn = sprintf('fir_int32_%02d_%04d_%04d_%03d_%03d', fir.m, pbi, sbi, rpi, rsi);
27 sfn = sprintf('pdm_decim_int32_%02d_%04d_%04d_%03d_%03d', fir.m, pbi, sbi, rpi, rsi);
44 fprintf(fh, '\t%d, %d, %d, %d, %d, %d, %d, %s\n};\n', ...
52 fprintf(fh, 'const %s %s[%d] = {\n', ...
55 fprintf(fh,'\t%d', fir.coef(1));
58 fprintf(fh,'\t%d', fir.coef(n));
/sof-3.4.0/src/include/sof/trace/
Ddma-trace.h54 int dma_trace_init_complete(struct dma_trace_data *d);
55 int dma_trace_host_buffer(struct dma_trace_data *d,
58 int dma_trace_enable(struct dma_trace_data *d);
59 void dma_trace_disable(struct dma_trace_data *d);
67 static inline bool dma_trace_initialized(const struct dma_trace_data *d) in dma_trace_initialized() argument
69 return d && d->dmatb.addr; in dma_trace_initialized()
/sof-3.4.0/test/
Dtest-all-defconfigs.sh31 for d in "$SOFTOP"/src/arch/xtensa/configs/*_defconfig; do
32 defconfig=$(basename "$d")
37 for d in "$BUILDTOP"/*_defconfig; do
38 printf '\n\n ========= Running native cmocka tests in %s ======\n\n' "$d"
40 cmake --build "$d" -- test
/sof-3.4.0/tools/tune/src/
Dsrc_export_coef.m30 hfn = sprintf('%s/src_%s_%d_%d_%d_%d.h', ...
33 hfn = sprintf('%s/src_%s_%s_%d_%d_%d_%d.h', ...
37 sfn = sprintf('src_%s_%d_%d_%d_%d', ctype, src.L, src.M, pbi, sbi);
59 fprintf(fh, 'const %s %s[%d] = {\n', ...
81 fprintf(fh, '\t%d, %d, %d, %d, %d, %d, %d, %d, %f,\n\t%s};\n', ...
88 fprintf(fh, '\t%d, %d, %d, %d, %d, %d, %d, %d, %d,\n\t%s};\n', ...
104 fprintf(fh, 'const %s %s[%d] = {\n', ...
108 fprintf(fh,'\t%d', cint(1));
111 fprintf(fh,'\t%d', cint(n));
195 printf('Fixed point coefficient %d exceeded %d\n.', max_fix, pmax);
[all …]
Dsrc_export_defines.m45 fprintf(fh, '#define MAX_FIR_DELAY_SIZE %d\n', defs.fir_delay_size);
46 fprintf(fh, '#define MAX_OUT_DELAY_SIZE %d\n', defs.out_delay_size);
47 fprintf(fh, '#define MAX_BLK_IN %d\n', defs.blk_in);
48 fprintf(fh, '#define MAX_BLK_OUT %d\n', defs.blk_out);
49 fprintf(fh, '#define NUM_IN_FS %d\n', defs.num_in_fs);
50 fprintf(fh, '#define NUM_OUT_FS %d\n', defs.num_out_fs);
51 fprintf(fh, '#define STAGE1_TIMES_MAX %d\n', defs.stage1_times_max);
52 fprintf(fh, '#define STAGE2_TIMES_MAX %d\n', defs.stage2_times_max);
53 fprintf(fh, '#define STAGE_BUF_SIZE %d\n', defs.stage_buf_size);
54 fprintf(fh, '#define NUM_ALL_COEFFICIENTS %d\n', defs.sum_filter_lengths);
Dsrc_export_table_2s.m85 fprintf(fh, '#include <%ssrc_%s_%d_%d_%d_%d.h>\n', ...
106 fprintf(fh, '%s fir_one = %d;\n', vtype, round(scale16*0.5));
111 fprintf(fh, '%s fir_one = %d;\n', vtype, round(scale24*0.5));
116 fprintf(fh, '%s fir_one = %d;\n', vtype, round(scale32*0.5));
123 fprintf(fh, 'int src_in_fs[%d] = {', n_in);
126 fprintf(fh, ' %d', fs_in(i));
138 fprintf(fh, 'int src_out_fs[%d] = {', n_out);
141 fprintf(fh, ' %d', fs_out(i));
154 fprintf(fh, 'struct src_stage *src_table%d[%d][%d] = {\n', ...
160 fprintf(fh, ' &src_%s_%d_%d_%d_%d', ...
/sof-3.4.0/scripts/
Dsudo-cwd.sh57 if test -e /etc/sudoers.d/"$current_user"; then
58 sudo sed -e "s/$current_user/$cwd_user/" /etc/sudoers.d/"$current_user" |
59 sudo tee -a /etc/sudoers.d/"$cwd_user"
60 sudo chmod --reference=/etc/sudoers.d/"$current_user" \
61 /etc/sudoers.d/"$cwd_user"
/sof-3.4.0/tools/tune/tdfb/
Dbf_filenames_helper.m16 mic_n_str = sprintf('%dx%d', bf.mic_nxy(1), bf.mic_nxy(2));
18 mic_d_str = sprintf('%dx%d', dmm(1), dmm(2));
20 mic_n_str = sprintf('%d', bf.mic_n);
21 mic_d_str = sprintf('%d', round(1e3 * bf.mic_r));
23 mic_n_str = sprintf('%d', length(bf.mic_x));
26 mic_n_str = sprintf('%d', bf.mic_n);
27 mic_d_str = sprintf('%d', round(1e3 * bf.mic_d));
57 bf.array_id{n} = sprintf('%s (%d, %d) deg', ...
62 bf.array_id{n} = sprintf('%s %s mic %s mm (%d, %d) deg', ...
83 nstr = sprintf('m%d', -round(n));
[all …]
/sof-3.4.0/src/audio/tdfb/
Dtdfb_hifi3.c26 ae_int16x4 d; in tdfb_fir_s16() local
49 AE_L16_XC(d, x, sizeof(int16_t)); in tdfb_fir_s16()
50 cd->in[i] = (ae_int32)AE_CVT32X2F16_32(d); in tdfb_fir_s16()
86 d = AE_ROUND16X4F32SSYM(0, AE_SLAI32S(cd->out[i], 4)); in tdfb_fir_s16()
87 AE_S16_0_XC(d, y, sizeof(int16_t)); in tdfb_fir_s16()
101 ae_int32x2 d; in tdfb_fir_s24() local
124 AE_L32_XC(d, x, sizeof(int32_t)); in tdfb_fir_s24()
125 cd->in[i] = AE_SLAI32(d, 8); in tdfb_fir_s24()
159 d = AE_SRAI32(AE_SLAI32S(AE_SRAI32R(cd->out[i], 4), 8), in tdfb_fir_s24()
161 AE_S32_L_XC(d, y, sizeof(int32_t)); in tdfb_fir_s24()
[all …]
Dtdfb_direction.c118 int16_t d; in max_mic_distance() local
145 d = tdfb_mic_distance_sqrt(d2_max); in max_mic_distance()
146 return d; in max_mic_distance()
152 int16_t a, b, c, d, e, f; in line_array_mode_check() local
167 d = cd->mic_locations[i + 2].x - cd->mic_locations[i].x; in line_array_mode_check()
170 cross_product_s16(&px, &py, &pz, a, b, c, d, e, f); in line_array_mode_check()
229 cd->direction.d = rzalloc(SOF_MEM_ZONE_RUNTIME, 0, SOF_MEM_CAPS_RAM, cd->direction.d_size); in tdfb_direction_init()
230 if (!cd->direction.d) in tdfb_direction_init()
236 cd->direction.d_end = cd->direction.d + n; in tdfb_direction_init()
237 cd->direction.rp = cd->direction.d; in tdfb_direction_init()
[all …]
/sof-3.4.0/test/cmocka/m/
Dexport_vector.m37 fprintf(fh, '\nstatic const %s %s[%d] = {\n', ...
42 fprintf(fh, '\t%11d,', data(i));
44 fprintf(fh, '\t%6d,', data(i));
50 fprintf(fh, ' %11d,', data(i));
52 fprintf(fh, ' %6d,', data(i));
Dexport_quant_qxy.m35 fprintf(1, 'max = %d (%d), min = %d (%d)\n', ...
/sof-3.4.0/tools/tune/fft/
Dexport_twiddle.m47 fprintf(fh, '/* Twiddle factors in Q%d.%d format */\n\n', qx, qy);
51 fprintf(fh, '#define FFT_SIZE_MAX %d\n\n', fft_size_max);
52 fprintf(fh, '/* in Q1.%d, generated from cos(i * 2 * pi / FFT_SIZE_MAX) */\n', qy);
55 fprintf(fh, '/* in Q1.%d, generated from sin(i * 2 * pi / FFT_SIZE_MAX) */\n', qy);
82 fprintf(fh, 'const %s %s_%d[%s] = {\n', vtype, vname, bits, vsize);
84 fprintf(fh, '\t%d,\n', quant(i));
/sof-3.4.0/tools/test/audio/test_utils/
Dfind_test_signal.m1 function [d, nt, nt_use, nt_skip] = find_test_signal(x0, test)
3 %% [d, nt, nt_use, nt_skip] = find_test_signal(x, test)
10 % d - delay to fist test tone start
20 d = []; variable
64 d = d_start + round(test.mark_t*test.fs); variable
65 if (d < 0)
68 d = []; variable
74 d = []; variable
Dprint_pf.m27 fprintf(fh,'%14d, ', prm_out_list(a));
34 fprintf(fh,'%14d', prm_out_list(n_prmo));
44 fprintf(fh,'%8d, ', prm_in_list(a));
52 cstr = sprintf('%d', pf(a,b,1));
57 cstr = sprintf('%s/%d', cstr,pf(a,b,n));
/sof-3.4.0/src/platform/mt8195/include/arch/xtensa/config/
Dtie-asm.h298 .macro xchal_cp0_store p a b c d continue = 0 ofs = -1 select = -1 ; .endm
299 .macro xchal_cp0_load p a b c d continue = 0 ofs = -1 select = -1 ; .endm
300 .macro xchal_cp2_store p a b c d continue = 0 ofs = -1 select = -1 ; .endm
301 .macro xchal_cp2_load p a b c d continue = 0 ofs = -1 select = -1 ; .endm
302 .macro xchal_cp3_store p a b c d continue = 0 ofs = -1 select = -1 ; .endm
303 .macro xchal_cp3_load p a b c d continue = 0 ofs = -1 select = -1 ; .endm
304 .macro xchal_cp4_store p a b c d continue = 0 ofs = -1 select = -1 ; .endm
305 .macro xchal_cp4_load p a b c d continue = 0 ofs = -1 select = -1 ; .endm
306 .macro xchal_cp5_store p a b c d continue = 0 ofs = -1 select = -1 ; .endm
307 .macro xchal_cp5_load p a b c d continue = 0 ofs = -1 select = -1 ; .endm
[all …]
/sof-3.4.0/tools/test/audio/
Dsof_test_perf_top.m37 fprintf('Passed : %d\n', n_pass);
38 fprintf('Failed : %d\n\n', n_fail);
43 fprintf('Passed : %d\n', n_pass_tot);
44 fprintf('Failed : %d\n', n_fail_tot);
/sof-3.4.0/tools/tune/eq/
Deq_get_abi.m36 cmd = sprintf('sof-ctl -g %d -t %d -b -o %s', setsize, type, abifn);
39 cmd = sprintf('sof-ctl -i 4 -g %d -p %d -b -o %s', setsize, param_id, abifn);
42 fprintf(1, 'Illegal ipc_ver %d\n', ipc_ver);
/sof-3.4.0/tools/test/audio/std_utils/
Dthdnf_test_measure.m43 [d, nt, nt_use, nt_skip] = find_test_signal(y0, test);
44 if isempty(d)
69 i1 = d+(nn-1)*nt+nt_skip;
132 ls1 = sprintf("ch%d -1 dBFS", test.ch(1));
133 ls2 = sprintf("ch%d -1 dBFS", test.ch(2));
134 ls3 = sprintf("ch%d -20 dBFS", test.ch(1));
135 ls4 = sprintf("ch%d -20 dBFS", test.ch(2));
139 ls1 = sprintf("ch%d -1 dBFS", test.ch(i));
140 ls2 = sprintf("ch%d -20 dBFS", test.ch(i));
/sof-3.4.0/src/platform/imx8/include/arch/xtensa/config/
Dtie-asm.h300 .macro xchal_cp0_store p a b c d continue=0 ofs=-1 select=-1 ; .endm
301 .macro xchal_cp0_load p a b c d continue=0 ofs=-1 select=-1 ; .endm
302 .macro xchal_cp2_store p a b c d continue=0 ofs=-1 select=-1 ; .endm
303 .macro xchal_cp2_load p a b c d continue=0 ofs=-1 select=-1 ; .endm
304 .macro xchal_cp3_store p a b c d continue=0 ofs=-1 select=-1 ; .endm
305 .macro xchal_cp3_load p a b c d continue=0 ofs=-1 select=-1 ; .endm
306 .macro xchal_cp4_store p a b c d continue=0 ofs=-1 select=-1 ; .endm
307 .macro xchal_cp4_load p a b c d continue=0 ofs=-1 select=-1 ; .endm
308 .macro xchal_cp5_store p a b c d continue=0 ofs=-1 select=-1 ; .endm
309 .macro xchal_cp5_load p a b c d continue=0 ofs=-1 select=-1 ; .endm
[all …]

123456