Home
last modified time | relevance | path

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

123

/linux/sound/soc/
A Dsoc-utils.c17 int snd_soc_calc_frame_size(int sample_size, int channels, int tdm_slots) in snd_soc_calc_frame_size() argument
19 return sample_size * channels * tdm_slots; in snd_soc_calc_frame_size()
25 int sample_size; in snd_soc_params_to_frame_size() local
27 sample_size = snd_pcm_format_width(params_format(params)); in snd_soc_params_to_frame_size()
28 if (sample_size < 0) in snd_soc_params_to_frame_size()
29 return sample_size; in snd_soc_params_to_frame_size()
31 return snd_soc_calc_frame_size(sample_size, params_channels(params), in snd_soc_params_to_frame_size()
36 int snd_soc_calc_bclk(int fs, int sample_size, int channels, int tdm_slots) in snd_soc_calc_bclk() argument
38 return fs * snd_soc_calc_frame_size(sample_size, channels, tdm_slots); in snd_soc_calc_bclk()
/linux/drivers/comedi/drivers/
A Dni_labpc_isadma.c30 unsigned int sample_size = comedi_bytes_per_sample(s); in labpc_suggest_transfer_size() local
41 size = (freq / 3) * sample_size; in labpc_suggest_transfer_size()
46 else if (size < sample_size) in labpc_suggest_transfer_size()
47 size = sample_size; in labpc_suggest_transfer_size()
57 unsigned int sample_size = comedi_bytes_per_sample(s); in labpc_setup_dma() local
62 devpriv->count * sample_size < desc->size) in labpc_setup_dma()
63 desc->size = devpriv->count * sample_size; in labpc_setup_dma()
/linux/samples/bpf/
A Dxdp_sample_pkts_kern.c39 u16 sample_size; in xdp_sample_prog() local
44 sample_size = min(metadata.pkt_len, SAMPLE_SIZE); in xdp_sample_prog()
45 flags |= (u64)sample_size << 32; in xdp_sample_prog()
/linux/sound/soc/tegra/
A 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()
A Dtegra210_i2s.c539 unsigned int sample_size, in tegra210_i2s_set_timing_params() argument
544 unsigned int val, bit_count, bclk_rate, num_bclk = sample_size; in tegra210_i2s_set_timing_params()
551 tegra210_i2s_set_data_offset(i2s, num_bclk - sample_size); in tegra210_i2s_set_timing_params()
604 unsigned int sample_size, channels, srate, val, reg, path; in tegra210_i2s_hw_params() local
622 sample_size = 8; in tegra210_i2s_hw_params()
628 sample_size = 16; in tegra210_i2s_hw_params()
634 sample_size = 32; in tegra210_i2s_hw_params()
676 return tegra210_i2s_set_timing_params(dev, sample_size, srate, in tegra210_i2s_hw_params()
A Dtegra30_i2s.c141 int ret, sample_size, srate, i2sclock, bitcnt; in tegra30_i2s_hw_params() local
151 sample_size = 16; in tegra30_i2s_hw_params()
162 i2sclock = srate * params_channels(params) * sample_size * 2; in tegra30_i2s_hw_params()
/linux/sound/soc/codecs/
A Dcx2072x.c48 int sample_size; member
683 int sample_size = cx2072x->sample_size; in cx2072x_config_i2spcm() local
704 if (sample_size <= 0) { in cx2072x_config_i2spcm()
705 dev_err(dev, "Incorrect sample size %d\n", sample_size); in cx2072x_config_i2spcm()
795 reg1.r.rx_sa_size = (sample_size / BITS_PER_SLOT) - 1; in cx2072x_config_i2spcm()
918 int sample_size, frame_size; in cx2072x_hw_params() local
921 sample_size = params_width(params); in cx2072x_hw_params()
923 if (sample_size < 0) in cx2072x_hw_params()
924 return sample_size; in cx2072x_hw_params()
953 sample_size, frame_size, sample_rate); in cx2072x_hw_params()
[all …]
A Dcs35l33.c485 int sample_size = params_width(params); in cs35l33_pcm_hw_params() local
497 sample_size = (sample_size / 8) - 1; in cs35l33_pcm_hw_params()
498 if (sample_size > 2) in cs35l33_pcm_hw_params()
499 sample_size = 2; in cs35l33_pcm_hw_params()
502 sample_size << CS35L33_AUDIN_RX_DEPTH_SHIFT); in cs35l33_pcm_hw_params()
/linux/sound/soc/jz4740/
A Djz4740-i2s.c253 unsigned int sample_size; in jz4740_i2s_hw_params() local
264 sample_size = 0; in jz4740_i2s_hw_params()
267 sample_size = 1; in jz4740_i2s_hw_params()
275 ctrl |= sample_size << JZ_AIC_CTRL_OUTPUT_SAMPLE_SIZE_OFFSET; in jz4740_i2s_hw_params()
285 ctrl |= sample_size << JZ_AIC_CTRL_INPUT_SAMPLE_SIZE_OFFSET; in jz4740_i2s_hw_params()
/linux/drivers/media/usb/dvb-usb-v2/
A 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()
A Dmxl111sf-phy.h27 int mxl111sf_init_i2s_port(struct mxl111sf_state *state, u8 sample_size);
/linux/sound/soc/xtensa/
A 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/sound/mips/
A 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/sound/pci/mixart/
A 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/tools/testing/selftests/bpf/progs/
A Dstrobemeta.h540 uint64_t sample_size = sample_end - (void *)sample; in on_event() local
542 if (sample_size < sizeof(struct strobelight_bpf_sample)) in on_event()
543 bpf_perf_event_output(ctx, &samples, 0, sample, 1 + sample_size); in on_event()
/linux/drivers/iio/adc/
A Dat91-sama5d2_adc.c1290 int sample_index = 0, sample_count, sample_size; in at91_adc_trigger_handler_dma() local
1298 sample_size = div_s64(st->dma_st.rx_buf_sz, st->dma_st.watermark); in at91_adc_trigger_handler_dma()
1300 sample_count = div_s64(transferred_len, sample_size); in at91_adc_trigger_handler_dma()
1308 while (transferred_len >= sample_size) { in at91_adc_trigger_handler_dma()
1315 sample_size); in at91_adc_trigger_handler_dma()
1321 transferred_len -= sample_size; in at91_adc_trigger_handler_dma()
1323 st->dma_st.buf_idx += sample_size; in at91_adc_trigger_handler_dma()
1671 unsigned int sample_size = st->soc_info.platform->nr_channels * 2; in at91_adc_dma_init() local
1678 sample_size * 2, PAGE_SIZE); in at91_adc_dma_init()
1732 unsigned int sample_size = st->soc_info.platform->nr_channels * 2; in at91_adc_dma_disable() local
[all …]
/linux/fs/btrfs/
A Dcompression.c1015 u32 sample_size; member
1525 sz_base = ilog2_w(ws->sample_size); in shannon_entropy()
1532 entropy_sum /= ws->sample_size; in shannon_entropy()
1658 const u32 core_set_threshold = ws->sample_size * 90 / 100; in byte_core_set_size()
1720 const u32 half_of_sample = ws->sample_size / 2; in sample_repeated_patterns()
1775 ws->sample_size = curr_sample_pos; in heuristic_collect_sample()
1812 for (i = 0; i < ws->sample_size; i++) { in btrfs_compress_heuristic()
/linux/tools/perf/arch/x86/tests/
A Dsample-parsing.c86 evsel.sample_size = __evsel__sample_size(sample_type); in do_test()
/linux/drivers/video/
A Dhdmi.c438 (frame->sample_size & 0x3); in hdmi_audio_infoframe_pack_only()
1325 hdmi_audio_sample_size_get_name(enum hdmi_audio_sample_size sample_size) in hdmi_audio_sample_size_get_name() argument
1327 switch (sample_size) { in hdmi_audio_sample_size_get_name()
1409 hdmi_audio_sample_size_get_name(frame->sample_size)); in hdmi_audio_infoframe_log()
1684 frame->sample_size = ptr[1] & 0x3; in hdmi_audio_infoframe_unpack()
/linux/tools/perf/tests/
A Dsample-parsing.c323 evsel.sample_size = __evsel__sample_size(sample_type); in do_test()
340 evsel.sample_size = __evsel__sample_size(sample_type); in do_test()
/linux/drivers/gpu/drm/i915/
A Di915_perf_types.h161 int sample_size; member
/linux/drivers/gpu/drm/amd/display/dc/
A Ddc_types.h155 uint8_t sample_size; /* for LPCM*/ member
589 uint8_t sample_size; member
/linux/sound/soc/qcom/qdsp6/
A Dq6asm.h47 u16 sample_size; member
/linux/drivers/gpu/drm/amd/display/dc/core/
A Ddc_stream.c81 stream->audio_info.modes[i].sample_size = dc_sink_data->edid_caps.audio_modes[i].sample_size; in dc_stream_construct()
/linux/include/uapi/sound/
A Dcompress_params.h326 __u16 sample_size; member

Completed in 74 milliseconds

123