Home
last modified time | relevance | path

Searched refs:bitwidth (Results 1 – 25 of 32) sorted by relevance

12

/openbmc/linux/sound/soc/samsung/
H A Dsnow.c35 int bfs, psr, rfs, bitwidth; in snow_card_hw_params() local
40 bitwidth = snd_pcm_format_width(params_format(params)); in snow_card_hw_params()
41 if (bitwidth < 0) { in snow_card_hw_params()
42 dev_err(rtd->card->dev, "Invalid bit-width: %d\n", bitwidth); in snow_card_hw_params()
43 return bitwidth; in snow_card_hw_params()
46 if (bitwidth != 16 && bitwidth != 24) { in snow_card_hw_params()
47 dev_err(rtd->card->dev, "Unsupported bit-width: %d\n", bitwidth); in snow_card_hw_params()
51 bfs = 2 * bitwidth; in snow_card_hw_params()
H A Dtm2_wm5110.c214 int bitwidth, ret; in tm2_hdmi_hw_params() local
216 bitwidth = snd_pcm_format_width(params_format(params)); in tm2_hdmi_hw_params()
217 if (bitwidth < 0) { in tm2_hdmi_hw_params()
218 dev_err(rtd->card->dev, "Invalid bit-width: %d\n", bitwidth); in tm2_hdmi_hw_params()
219 return bitwidth; in tm2_hdmi_hw_params()
222 switch (bitwidth) { in tm2_hdmi_hw_params()
230 dev_err(rtd->card->dev, "Unsupported bit-width: %d\n", bitwidth); in tm2_hdmi_hw_params()
/openbmc/linux/sound/soc/qcom/
H A Dstorm.c27 int bitwidth, ret; in storm_ops_hw_params() local
29 bitwidth = snd_pcm_format_width(format); in storm_ops_hw_params()
30 if (bitwidth < 0) { in storm_ops_hw_params()
31 dev_err(card->dev, "invalid bit width given: %d\n", bitwidth); in storm_ops_hw_params()
32 return bitwidth; in storm_ops_hw_params()
40 sysclk_freq = rate * bitwidth * 2 * STORM_SYSCLK_MULT; in storm_ops_hw_params()
H A Dlpass-hdmi.c27 int bitwidth; in lpass_hdmi_daiops_hw_params() local
37 bitwidth = snd_pcm_format_width(format); in lpass_hdmi_daiops_hw_params()
38 if (bitwidth < 0) { in lpass_hdmi_daiops_hw_params()
40 __func__, bitwidth); in lpass_hdmi_daiops_hw_params()
41 return bitwidth; in lpass_hdmi_daiops_hw_params()
44 switch (bitwidth) { in lpass_hdmi_daiops_hw_params()
53 __func__, bitwidth); in lpass_hdmi_daiops_hw_params()
69 __func__, bitwidth); in lpass_hdmi_daiops_hw_params()
H A Dlpass-cpu.c57 i2sctl->bitwidth = devm_regmap_field_alloc(dev, map, v->bitwidth); in lpass_cpu_init_i2sctl_bitfields()
63 IS_ERR(i2sctl->bitwidth)) in lpass_cpu_init_i2sctl_bitfields()
145 int bitwidth, ret; in lpass_cpu_daiops_hw_params() local
147 bitwidth = snd_pcm_format_width(format); in lpass_cpu_daiops_hw_params()
148 if (bitwidth < 0) { in lpass_cpu_daiops_hw_params()
150 return bitwidth; in lpass_cpu_daiops_hw_params()
167 switch (bitwidth) { in lpass_cpu_daiops_hw_params()
178 dev_err(dai->dev, "invalid bitwidth given: %d\n", bitwidth); in lpass_cpu_daiops_hw_params()
182 ret = regmap_fields_write(i2sctl->bitwidth, id, regval); in lpass_cpu_daiops_hw_params()
289 rate * bitwidth * 2); in lpass_cpu_daiops_hw_params()
[all …]
H A Dlpass-platform.c430 int bitwidth; in lpass_platform_pcmops_hw_params() local
437 bitwidth = snd_pcm_format_width(format); in lpass_platform_pcmops_hw_params()
438 if (bitwidth < 0) { in lpass_platform_pcmops_hw_params()
440 bitwidth); in lpass_platform_pcmops_hw_params()
441 return bitwidth; in lpass_platform_pcmops_hw_params()
499 switch (bitwidth) { in lpass_platform_pcmops_hw_params()
517 bitwidth, channels); in lpass_platform_pcmops_hw_params()
549 bitwidth, channels); in lpass_platform_pcmops_hw_params()
555 bitwidth, channels); in lpass_platform_pcmops_hw_params()
H A Dlpass.h71 struct regmap_field *bitwidth; member
228 struct reg_field bitwidth; member
H A Dlpass-ipq806x.c133 .bitwidth = REG_FIELD_ID(0x0010, 0, 1, 5, 0x4),
H A Dlpass-apq8016.c249 .bitwidth = REG_FIELD_ID(0x1000, 0, 1, 4, 0x1000),
H A Dlpass-sc7180.c209 .bitwidth = REG_FIELD_ID(0x1000, 0, 1, 3, 0x1000),
H A Dlpass-sc7280.c299 .bitwidth = REG_FIELD_ID(0x1000, 0, 1, 3, 0x1000),
/openbmc/linux/drivers/media/platform/samsung/exynos4-is/
H A Dfimc-is-param.c700 isp->otf_input.bitwidth = 10; in fimc_is_set_initial_params()
710 isp->dma1_input.bitwidth = 0; in fimc_is_set_initial_params()
722 isp->dma2_input.bitwidth = 0; in fimc_is_set_initial_params()
776 isp->otf_output.bitwidth = 12; in fimc_is_set_initial_params()
785 isp->dma1_output.bitwidth = 0; in fimc_is_set_initial_params()
801 isp->dma2_output.bitwidth = 0; in fimc_is_set_initial_params()
829 drc->otf_input.bitwidth = 12; in fimc_is_set_initial_params()
837 drc->dma_input.bitwidth = 0; in fimc_is_set_initial_params()
852 drc->otf_output.bitwidth = 8; in fimc_is_set_initial_params()
868 fd->otf_input.bitwidth = 8; in fimc_is_set_initial_params()
[all …]
H A Dfimc-is-param.h464 u32 bitwidth; member
481 u32 bitwidth; member
495 u32 bitwidth; member
506 u32 bitwidth; member
/openbmc/linux/sound/soc/mediatek/mt8192/
H A Dmt8192-mt6359-rt1015-rt5682.c103 int bitwidth; in mt8192_rt5682x_i2s_hw_params() local
106 bitwidth = snd_pcm_format_width(params_format(params)); in mt8192_rt5682x_i2s_hw_params()
107 if (bitwidth < 0) { in mt8192_rt5682x_i2s_hw_params()
108 dev_err(card->dev, "invalid bit width: %d\n", bitwidth); in mt8192_rt5682x_i2s_hw_params()
109 return bitwidth; in mt8192_rt5682x_i2s_hw_params()
112 ret = snd_soc_dai_set_tdm_slot(codec_dai, 0x00, 0x0, 0x2, bitwidth); in mt8192_rt5682x_i2s_hw_params()
/openbmc/linux/sound/soc/mediatek/mt8186/
H A Dmt8186-mt6366-rt1019-rt5682s.c210 int bitwidth; in mt8186_rt5682s_i2s_hw_params() local
213 bitwidth = snd_pcm_format_width(params_format(params)); in mt8186_rt5682s_i2s_hw_params()
214 if (bitwidth < 0) { in mt8186_rt5682s_i2s_hw_params()
215 dev_err(card->dev, "invalid bit width: %d\n", bitwidth); in mt8186_rt5682s_i2s_hw_params()
216 return bitwidth; in mt8186_rt5682s_i2s_hw_params()
219 ret = snd_soc_dai_set_tdm_slot(codec_dai, 0x00, 0x0, 0x2, bitwidth); in mt8186_rt5682s_i2s_hw_params()
/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_dpipe.c25 .bitwidth = 32,
31 .bitwidth = 1,
36 .bitwidth = 1,
41 .bitwidth = 32,
46 .bitwidth = 32,
51 .bitwidth = 32,
/openbmc/linux/sound/soc/mediatek/mt7986/
H A Dmt7986-dai-etdm.c82 static int get_etdm_wlen(unsigned int bitwidth) in get_etdm_wlen() argument
84 return bitwidth <= 16 ? 16 : 32; in get_etdm_wlen()
/openbmc/linux/net/devlink/
H A Ddpipe.c13 .bitwidth = 48,
30 .bitwidth = 32,
47 .bitwidth = 128,
603 nla_put_u32(skb, DEVLINK_ATTR_DPIPE_FIELD_BITWIDTH, field->bitwidth) || in devlink_dpipe_fields_put()
/openbmc/linux/sound/soc/mediatek/mt8195/
H A Dmt8195-mt6359.c526 int bitwidth; in mt8195_rt5682_etdm_hw_params() local
529 bitwidth = snd_pcm_format_width(params_format(params)); in mt8195_rt5682_etdm_hw_params()
530 if (bitwidth < 0) { in mt8195_rt5682_etdm_hw_params()
531 dev_err(card->dev, "invalid bit width: %d\n", bitwidth); in mt8195_rt5682_etdm_hw_params()
532 return bitwidth; in mt8195_rt5682_etdm_hw_params()
535 ret = snd_soc_dai_set_tdm_slot(codec_dai, 0x00, 0x0, 0x2, bitwidth); in mt8195_rt5682_etdm_hw_params()
/openbmc/linux/sound/soc/codecs/
H A Dtas2780.c151 static int tas2780_set_bitwidth(struct tas2780_priv *tas2780, int bitwidth) in tas2780_set_bitwidth() argument
159 switch (bitwidth) { in tas2780_set_bitwidth()
H A Dtas2770.c194 static int tas2770_set_bitwidth(struct tas2770_priv *tas2770, int bitwidth) in tas2770_set_bitwidth() argument
199 switch (bitwidth) { in tas2770_set_bitwidth()
H A Dtas2764.c251 static int tas2764_set_bitwidth(struct tas2764_priv *tas2764, int bitwidth) in tas2764_set_bitwidth() argument
258 switch (bitwidth) { in tas2764_set_bitwidth()
H A Dtas2562.c226 static int tas2562_set_bitwidth(struct tas2562_data *tas2562, int bitwidth) in tas2562_set_bitwidth() argument
232 switch (bitwidth) { in tas2562_set_bitwidth()
H A Dcs43130.h470 unsigned int bitwidth; member
/openbmc/linux/drivers/phy/microchip/
H A Dsparx5_serdes.c64 u8 bitwidth; member
392 .bitwidth = 40,
418 .bitwidth = 64,
444 .bitwidth = 64,
467 .bitwidth = 10,
490 .bitwidth = 10,
720 u8 iw = sd25g28_get_iw_setting(macro->priv->dev, mode->bitwidth); in sparx5_sd25g28_get_params()

12