/linux-6.1.9/sound/soc/ |
D | soc-utils.c | 18 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.1.9/drivers/comedi/drivers/ |
D | ni_labpc_isadma.c | 29 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.1.9/samples/bpf/ |
D | xdp_sample_pkts_kern.c | 39 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-6.1.9/sound/soc/tegra/ |
D | tegra20_i2s.c | 147 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()
|
D | tegra210_i2s.c | 539 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()
|
D | tegra30_i2s.c | 141 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-6.1.9/sound/soc/codecs/ |
D | cx2072x.c | 48 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() 792 reg1.r.rx_sa_size = (sample_size / BITS_PER_SLOT) - 1; in cx2072x_config_i2spcm() 915 int sample_size, frame_size; in cx2072x_hw_params() local 918 sample_size = params_width(params); in cx2072x_hw_params() 920 if (sample_size < 0) in cx2072x_hw_params() 921 return sample_size; in cx2072x_hw_params() 950 sample_size, frame_size, sample_rate); in cx2072x_hw_params() [all …]
|
D | cs35l33.c | 485 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-6.1.9/drivers/media/usb/dvb-usb-v2/ |
D | mxl111sf-phy.c | 189 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()
|
D | mxl111sf-phy.h | 27 int mxl111sf_init_i2s_port(struct mxl111sf_state *state, u8 sample_size);
|
/linux-6.1.9/sound/soc/jz4740/ |
D | jz4740-i2s.c | 278 unsigned int sample_size; in jz4740_i2s_hw_params() local 289 sample_size = 0; in jz4740_i2s_hw_params() 292 sample_size = 1; in jz4740_i2s_hw_params() 300 ctrl |= sample_size << JZ_AIC_CTRL_OUTPUT_SAMPLE_SIZE_OFFSET; in jz4740_i2s_hw_params() 310 ctrl |= sample_size << JZ_AIC_CTRL_INPUT_SAMPLE_SIZE_OFFSET; in jz4740_i2s_hw_params()
|
/linux-6.1.9/sound/soc/xtensa/ |
D | xtfpga-i2s.c | 287 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.1.9/sound/mips/ |
D | hal2.c | 357 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.1.9/drivers/iio/adc/ |
D | ad_sigma_delta.c | 439 unsigned int sample_size; in ad_sd_trigger_handler() local 505 sample_size = indio_dev->channels[0].scan_type.storagebits / 8; in ad_sd_trigger_handler() 506 sample_pos = sample_size * sigma_delta->current_slot; in ad_sd_trigger_handler() 507 memcpy(&sigma_delta->samples_buf[sample_pos], data, sample_size); in ad_sd_trigger_handler()
|
D | at91-sama5d2_adc.c | 1488 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.1.9/sound/pci/mixart/ |
D | mixart.c | 525 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.1.9/tools/testing/selftests/bpf/progs/ |
D | strobemeta.h | 609 uint64_t sample_size = sample_end - (void *)sample; in on_event() local 611 if (sample_size < sizeof(struct strobelight_bpf_sample)) in on_event() 612 bpf_perf_event_output(ctx, &samples, 0, sample, 1 + sample_size); in on_event()
|
/linux-6.1.9/tools/perf/arch/x86/tests/ |
D | sample-parsing.c | 86 evsel.sample_size = __evsel__sample_size(sample_type); in do_test()
|
/linux-6.1.9/fs/btrfs/ |
D | compression.c | 874 u32 sample_size; member 1383 sz_base = ilog2_w(ws->sample_size); in shannon_entropy() 1390 entropy_sum /= ws->sample_size; in shannon_entropy() 1516 const u32 core_set_threshold = ws->sample_size * 90 / 100; in byte_core_set_size() 1578 const u32 half_of_sample = ws->sample_size / 2; in sample_repeated_patterns() 1633 ws->sample_size = curr_sample_pos; in heuristic_collect_sample() 1670 for (i = 0; i < ws->sample_size; i++) { in btrfs_compress_heuristic()
|
/linux-6.1.9/tools/perf/tests/ |
D | sample-parsing.c | 329 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.1.9/drivers/video/ |
D | hdmi.c | 404 (frame->sample_size & 0x3); in hdmi_audio_infoframe_pack_payload() 1369 hdmi_audio_sample_size_get_name(enum hdmi_audio_sample_size sample_size) in hdmi_audio_sample_size_get_name() argument 1371 switch (sample_size) { in hdmi_audio_sample_size_get_name() 1453 hdmi_audio_sample_size_get_name(frame->sample_size)); in hdmi_audio_infoframe_log() 1728 frame->sample_size = ptr[1] & 0x3; in hdmi_audio_infoframe_unpack()
|
/linux-6.1.9/drivers/gpu/drm/i915/ |
D | i915_perf_types.h | 161 int sample_size; member
|
/linux-6.1.9/sound/soc/qcom/qdsp6/ |
D | q6asm.h | 47 u16 sample_size; member
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/ |
D | dc_types.h | 156 uint8_t sample_size; /* for LPCM*/ member 590 uint8_t sample_size; member
|
/linux-6.1.9/include/uapi/sound/ |
D | compress_params.h | 292 __u16 sample_size; member
|