Home
last modified time | relevance | path

Searched refs:sample_size (Results 1 – 25 of 64) sorted by relevance

123

/linux-6.12.1/sound/soc/
Dsoc-utils.c18 int snd_soc_calc_frame_size(int sample_size, int channels, int tdm_slots) in snd_soc_calc_frame_size() argument
20 return sample_size * channels * tdm_slots; in snd_soc_calc_frame_size()
26 int sample_size; in snd_soc_params_to_frame_size() local
28 sample_size = snd_pcm_format_width(params_format(params)); in snd_soc_params_to_frame_size()
29 if (sample_size < 0) in snd_soc_params_to_frame_size()
30 return sample_size; in snd_soc_params_to_frame_size()
32 return snd_soc_calc_frame_size(sample_size, params_channels(params), in snd_soc_params_to_frame_size()
37 int snd_soc_calc_bclk(int fs, int sample_size, int channels, int tdm_slots) in snd_soc_calc_bclk() argument
39 return fs * snd_soc_calc_frame_size(sample_size, channels, tdm_slots); in snd_soc_calc_bclk()
/linux-6.12.1/drivers/comedi/drivers/
Dni_labpc_isadma.c29 unsigned int sample_size = comedi_bytes_per_sample(s); in labpc_suggest_transfer_size() local
40 size = (freq / 3) * sample_size; in labpc_suggest_transfer_size()
45 else if (size < sample_size) in labpc_suggest_transfer_size()
46 size = sample_size; in labpc_suggest_transfer_size()
56 unsigned int sample_size = comedi_bytes_per_sample(s); in labpc_setup_dma() local
61 devpriv->count * sample_size < desc->size) in labpc_setup_dma()
62 desc->size = devpriv->count * sample_size; in labpc_setup_dma()
/linux-6.12.1/tools/testing/selftests/alsa/
Dtest-pcmtest-driver.c28 size_t sample_size; member
145 self->params.sample_size = snd_pcm_format_physical_width(self->params.format) / 8; in FIXTURE_SETUP()
187 cur_ch = (i / params->sample_size) % CH_NUM; in TEST_F()
188 pos_in_ch = i / params->sample_size / CH_NUM * params->sample_size in TEST_F()
189 + (i % params->sample_size); in TEST_F()
229 cur_ch = (i / params->sample_size) % CH_NUM; in TEST_F()
230 pos_in_ch = i / params->sample_size / CH_NUM * params->sample_size in TEST_F()
231 + (i % params->sample_size); in TEST_F()
/linux-6.12.1/drivers/accel/ivpu/
Divpu_ms.c40 u32 sample_size; in ivpu_ms_start_ioctl() local
63 ret = ivpu_jsm_metric_streamer_info(vdev, ms->mask, 0, 0, &sample_size, NULL); in ivpu_ms_start_ioctl()
67 single_buff_size = sample_size * in ivpu_ms_start_ioctl()
88 args->sample_size = sample_size; in ivpu_ms_start_ioctl()
Divpu_jsm_msg.c509 u64 buffer_size, u32 *sample_size, u64 *info_size) in ivpu_jsm_metric_streamer_info() argument
526 if (!resp.payload.metric_streamer_done.sample_size) { in ivpu_jsm_metric_streamer_info()
531 if (sample_size) in ivpu_jsm_metric_streamer_info()
532 *sample_size = resp.payload.metric_streamer_done.sample_size; in ivpu_jsm_metric_streamer_info()
Divpu_jsm_msg.h43 u64 buffer_size, u32 *sample_size, u64 *info_size);
/linux-6.12.1/sound/soc/jz4740/
Djz4740-i2s.c257 unsigned int sample_size; in jz4740_i2s_hw_params() local
266 sample_size = 0; in jz4740_i2s_hw_params()
269 sample_size = 1; in jz4740_i2s_hw_params()
272 sample_size = 3; in jz4740_i2s_hw_params()
275 sample_size = 4; in jz4740_i2s_hw_params()
283 ctrl |= FIELD_PREP(JZ_AIC_CTRL_OUTPUT_SAMPLE_SIZE, sample_size); in jz4740_i2s_hw_params()
295 ctrl |= FIELD_PREP(JZ_AIC_CTRL_INPUT_SAMPLE_SIZE, sample_size); in jz4740_i2s_hw_params()
/linux-6.12.1/sound/soc/tegra/
Dtegra20_i2s.c147 int ret, sample_size, srate, i2sclock, bitcnt; in tegra20_i2s_hw_params() local
153 sample_size = 16; in tegra20_i2s_hw_params()
157 sample_size = 24; in tegra20_i2s_hw_params()
161 sample_size = 32; in tegra20_i2s_hw_params()
175 i2sclock = srate * params_channels(params) * sample_size * 2; in tegra20_i2s_hw_params()
Dtegra210_i2s.c541 unsigned int sample_size, in tegra210_i2s_set_timing_params() argument
546 unsigned int val, bit_count, bclk_rate, num_bclk = sample_size; in tegra210_i2s_set_timing_params()
553 tegra210_i2s_set_data_offset(i2s, num_bclk - sample_size); in tegra210_i2s_set_timing_params()
606 unsigned int sample_size, channels, srate, val, reg, path; in tegra210_i2s_hw_params() local
651 sample_size = 8; in tegra210_i2s_hw_params()
656 sample_size = 16; in tegra210_i2s_hw_params()
661 sample_size = 32; in tegra210_i2s_hw_params()
702 return tegra210_i2s_set_timing_params(dev, sample_size, srate, in tegra210_i2s_hw_params()
Dtegra30_i2s.c140 int ret, sample_size, srate, i2sclock, bitcnt; in tegra30_i2s_hw_params() local
150 sample_size = 16; in tegra30_i2s_hw_params()
161 i2sclock = srate * params_channels(params) * sample_size * 2; in tegra30_i2s_hw_params()
/linux-6.12.1/sound/soc/codecs/
Dcx2072x.c48 int sample_size; member
678 int sample_size = cx2072x->sample_size; in cx2072x_config_i2spcm() local
699 if (sample_size <= 0) { in cx2072x_config_i2spcm()
700 dev_err(dev, "Incorrect sample size %d\n", sample_size); in cx2072x_config_i2spcm()
787 reg1.r.rx_sa_size = (sample_size / BITS_PER_SLOT) - 1; in cx2072x_config_i2spcm()
910 int sample_size, frame_size; in cx2072x_hw_params() local
913 sample_size = params_width(params); in cx2072x_hw_params()
915 if (sample_size < 0) in cx2072x_hw_params()
916 return sample_size; in cx2072x_hw_params()
945 sample_size, frame_size, sample_rate); in cx2072x_hw_params()
[all …]
Dcs35l33.c481 int sample_size = params_width(params); in cs35l33_pcm_hw_params() local
493 sample_size = (sample_size / 8) - 1; in cs35l33_pcm_hw_params()
494 if (sample_size > 2) in cs35l33_pcm_hw_params()
495 sample_size = 2; in cs35l33_pcm_hw_params()
498 sample_size << CS35L33_AUDIN_RX_DEPTH_SHIFT); in cs35l33_pcm_hw_params()
/linux-6.12.1/drivers/media/usb/dvb-usb-v2/
Dmxl111sf-phy.c189 int mxl111sf_init_i2s_port(struct mxl111sf_state *state, u8 sample_size) in mxl111sf_init_i2s_port() argument
207 mxl_debug("(0x%02x)", sample_size); in mxl111sf_init_i2s_port()
213 ret = mxl111sf_write_reg(state, V6_I2S_NUM_SAMPLES_REG, sample_size); in mxl111sf_init_i2s_port()
Dmxl111sf-phy.h27 int mxl111sf_init_i2s_port(struct mxl111sf_state *state, u8 sample_size);
/linux-6.12.1/sound/soc/xtensa/
Dxtfpga-i2s.c287 unsigned sample_size = snd_pcm_format_width(params_format(params)); in xtfpga_i2s_hw_params() local
293 sample_size << XTFPGA_I2S_CONFIG_RES_BASE); in xtfpga_i2s_hw_params()
306 ratio = (freq - (srate * sample_size * 8)) / in xtfpga_i2s_hw_params()
307 (srate * sample_size * 4); in xtfpga_i2s_hw_params()
330 __func__, srate, channels, sample_size, period_size); in xtfpga_i2s_hw_params()
/linux-6.12.1/sound/mips/
Dhal2.c357 unsigned int fifobeg, fifoend, highwater, sample_size; in hal2_setup_dac() local
365 sample_size = 2 * hal2->dac.voices; in hal2_setup_dac()
368 highwater = (sample_size * 2) >> 1; /* halfwords */ in hal2_setup_dac()
370 fifoend = (sample_size * 4) >> 3; /* doublewords */ in hal2_setup_dac()
390 unsigned int fifobeg, fifoend, highwater, sample_size; in hal2_setup_adc() local
393 sample_size = 2 * hal2->adc.voices; in hal2_setup_adc()
394 highwater = (sample_size * 2) >> 1; /* halfwords */ in hal2_setup_adc()
396 fifoend = (4 * 4 + sample_size * 4) >> 3; /* doublewords */ in hal2_setup_adc()
/linux-6.12.1/sound/pci/mixart/
Dmixart.c525 stream_param.sample_size = 8; in mixart_set_format()
529 stream_param.sample_size = 16; in mixart_set_format()
533 stream_param.sample_size = 16; in mixart_set_format()
537 stream_param.sample_size = 24; in mixart_set_format()
541 stream_param.sample_size = 24; in mixart_set_format()
545 stream_param.sample_size = 32; in mixart_set_format()
549 stream_param.sample_size = 32; in mixart_set_format()
559 … stream_param.sample_type, stream_param.sample_size, stream_param.sampling_freq, stream->channels); in mixart_set_format()
/linux-6.12.1/drivers/iio/adc/
Dad_sigma_delta.c440 unsigned int sample_size; in ad_sd_trigger_handler() local
506 sample_size = indio_dev->channels[0].scan_type.storagebits / 8; in ad_sd_trigger_handler()
507 sample_pos = sample_size * sigma_delta->current_slot; in ad_sd_trigger_handler()
508 memcpy(&sigma_delta->samples_buf[sample_pos], data, sample_size); in ad_sd_trigger_handler()
Dat91-sama5d2_adc.c1488 int sample_index = 0, sample_count, sample_size; in at91_adc_trigger_handler_dma() local
1496 sample_size = div_s64(st->dma_st.rx_buf_sz, st->dma_st.watermark); in at91_adc_trigger_handler_dma()
1498 sample_count = div_s64(transferred_len, sample_size); in at91_adc_trigger_handler_dma()
1506 while (transferred_len >= sample_size) { in at91_adc_trigger_handler_dma()
1513 sample_size); in at91_adc_trigger_handler_dma()
1519 transferred_len -= sample_size; in at91_adc_trigger_handler_dma()
1521 st->dma_st.buf_idx += sample_size; in at91_adc_trigger_handler_dma()
2021 unsigned int sample_size = st->soc_info.platform->nr_channels * 2; in at91_adc_dma_init() local
2028 sample_size * 2, PAGE_SIZE); in at91_adc_dma_init()
2081 unsigned int sample_size = st->soc_info.platform->nr_channels * 2; in at91_adc_dma_disable() local
[all …]
/linux-6.12.1/tools/testing/selftests/bpf/progs/
Dstrobemeta.h628 uint64_t sample_size = sample_end - (void *)sample; in on_event() local
630 if (sample_size < sizeof(struct strobelight_bpf_sample)) in on_event()
631 bpf_perf_event_output(ctx, &samples, 0, sample, 1 + sample_size); in on_event()
/linux-6.12.1/fs/btrfs/
Dcompression.c683 u32 sample_size; member
1251 sz_base = ilog2_w(ws->sample_size); in shannon_entropy()
1258 entropy_sum /= ws->sample_size; in shannon_entropy()
1384 const u32 core_set_threshold = ws->sample_size * 90 / 100; in byte_core_set_size()
1446 const u32 half_of_sample = ws->sample_size / 2; in sample_repeated_patterns()
1501 ws->sample_size = curr_sample_pos; in heuristic_collect_sample()
1533 for (i = 0; i < ws->sample_size; i++) { in btrfs_compress_heuristic()
/linux-6.12.1/tools/perf/arch/x86/tests/
Dsample-parsing.c90 evsel.sample_size = __evsel__sample_size(sample_type); in do_test()
/linux-6.12.1/tools/perf/tests/
Dsample-parsing.c329 evsel.sample_size = __evsel__sample_size(sample_type); in do_test()
346 evsel.sample_size = __evsel__sample_size(sample_type); in do_test()
/linux-6.12.1/include/uapi/drm/
Divpu_accel.h375 __u32 sample_size; member
/linux-6.12.1/drivers/video/
Dhdmi.c404 (frame->sample_size & 0x3); in hdmi_audio_infoframe_pack_payload()
1363 hdmi_audio_sample_size_get_name(enum hdmi_audio_sample_size sample_size) in hdmi_audio_sample_size_get_name() argument
1365 switch (sample_size) { in hdmi_audio_sample_size_get_name()
1447 hdmi_audio_sample_size_get_name(frame->sample_size)); in hdmi_audio_infoframe_log()
1722 frame->sample_size = ptr[1] & 0x3; in hdmi_audio_infoframe_unpack()

123