/kernel/linux/linux-5.10/drivers/clk/st/ |
H A D | clkgen-pll.c | 362 long hwrate = 0; in set_rate_stm_pll3200c32() local 369 clk_pll3200c32_get_rate(parent_rate, ¶ms, &hwrate); in set_rate_stm_pll3200c32() 373 hwrate, (unsigned int)params.ndiv, in set_rate_stm_pll3200c32() 376 if (!hwrate) in set_rate_stm_pll3200c32() 516 long hwrate; in set_rate_stm_pll4600c28() local 523 clk_pll4600c28_get_rate(parent_rate, ¶ms, &hwrate); in set_rate_stm_pll4600c28() 532 hwrate, (unsigned int)params.ndiv, in set_rate_stm_pll4600c28() 535 if (!hwrate) in set_rate_stm_pll4600c28()
|
H A D | clkgen-fsyn.c | 339 long hwrate = 0; in quadfs_pll_fs660c32_set_rate() local 350 clk_fs660c32_vco_get_rate(parent_rate, ¶ms, &hwrate); in quadfs_pll_fs660c32_set_rate() 354 hwrate, (unsigned int)params.ndiv); in quadfs_pll_fs660c32_set_rate() 356 if (!hwrate) in quadfs_pll_fs660c32_set_rate() 792 long hwrate; in quadfs_set_rate() local 799 hwrate = quadfs_find_best_rate(hw, rate, parent_rate, ¶ms); in quadfs_set_rate() 800 if (!hwrate) in quadfs_set_rate()
|
/kernel/linux/linux-5.10/drivers/net/wireless/ralink/rt2x00/ |
H A D | rt2x00queue.c | 230 const struct rt2x00_rate *hwrate) in rt2x00queue_create_tx_descriptor_plcp() 256 txdesc->u.plcp.signal = hwrate->plcp; in rt2x00queue_create_tx_descriptor_plcp() 259 if (hwrate->flags & DEV_RATE_OFDM) { in rt2x00queue_create_tx_descriptor_plcp() 266 residual = GET_DURATION_RES(data_length, hwrate->bitrate); in rt2x00queue_create_tx_descriptor_plcp() 267 duration = GET_DURATION(data_length, hwrate->bitrate); in rt2x00queue_create_tx_descriptor_plcp() 275 if (hwrate->bitrate == 110 && residual <= 30) in rt2x00queue_create_tx_descriptor_plcp() 295 const struct rt2x00_rate *hwrate) in rt2x00queue_create_tx_descriptor_ht() 324 txdesc->u.ht.mcs = rt2x00_get_rate_mcs(hwrate->mcs); in rt2x00queue_create_tx_descriptor_ht() 393 const struct rt2x00_rate *hwrate = NULL; in rt2x00queue_create_tx_descriptor() local 466 hwrate in rt2x00queue_create_tx_descriptor() 227 rt2x00queue_create_tx_descriptor_plcp(struct rt2x00_dev *rt2x00dev, struct sk_buff *skb, struct txentry_desc *txdesc, const struct rt2x00_rate *hwrate) rt2x00queue_create_tx_descriptor_plcp() argument 291 rt2x00queue_create_tx_descriptor_ht(struct rt2x00_dev *rt2x00dev, struct sk_buff *skb, struct txentry_desc *txdesc, struct ieee80211_sta *sta, const struct rt2x00_rate *hwrate) rt2x00queue_create_tx_descriptor_ht() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/ralink/rt2x00/ |
H A D | rt2x00queue.c | 230 const struct rt2x00_rate *hwrate) in rt2x00queue_create_tx_descriptor_plcp() 256 txdesc->u.plcp.signal = hwrate->plcp; in rt2x00queue_create_tx_descriptor_plcp() 259 if (hwrate->flags & DEV_RATE_OFDM) { in rt2x00queue_create_tx_descriptor_plcp() 266 residual = GET_DURATION_RES(data_length, hwrate->bitrate); in rt2x00queue_create_tx_descriptor_plcp() 267 duration = GET_DURATION(data_length, hwrate->bitrate); in rt2x00queue_create_tx_descriptor_plcp() 275 if (hwrate->bitrate == 110 && residual <= 30) in rt2x00queue_create_tx_descriptor_plcp() 295 const struct rt2x00_rate *hwrate) in rt2x00queue_create_tx_descriptor_ht() 324 txdesc->u.ht.mcs = rt2x00_get_rate_mcs(hwrate->mcs); in rt2x00queue_create_tx_descriptor_ht() 393 const struct rt2x00_rate *hwrate = NULL; in rt2x00queue_create_tx_descriptor() local 467 hwrate in rt2x00queue_create_tx_descriptor() 227 rt2x00queue_create_tx_descriptor_plcp(struct rt2x00_dev *rt2x00dev, struct sk_buff *skb, struct txentry_desc *txdesc, const struct rt2x00_rate *hwrate) rt2x00queue_create_tx_descriptor_plcp() argument 291 rt2x00queue_create_tx_descriptor_ht(struct rt2x00_dev *rt2x00dev, struct sk_buff *skb, struct txentry_desc *txdesc, struct ieee80211_sta *sta, const struct rt2x00_rate *hwrate) rt2x00queue_create_tx_descriptor_ht() argument [all...] |
/kernel/linux/linux-6.6/drivers/clk/st/ |
H A D | clkgen-pll.c | 424 long hwrate = 0; in set_rate_stm_pll3200c32() local 431 clk_pll3200c32_get_rate(parent_rate, ¶ms, &hwrate); in set_rate_stm_pll3200c32() 435 hwrate, (unsigned int)params.ndiv, in set_rate_stm_pll3200c32() 438 if (!hwrate) in set_rate_stm_pll3200c32() 578 long hwrate; in set_rate_stm_pll4600c28() local 585 clk_pll4600c28_get_rate(parent_rate, ¶ms, &hwrate); in set_rate_stm_pll4600c28() 594 hwrate, (unsigned int)params.ndiv, in set_rate_stm_pll4600c28() 597 if (!hwrate) in set_rate_stm_pll4600c28()
|
H A D | clkgen-fsyn.c | 401 long hwrate = 0; in quadfs_pll_fs660c32_set_rate() local 412 clk_fs660c32_vco_get_rate(parent_rate, ¶ms, &hwrate); in quadfs_pll_fs660c32_set_rate() 416 hwrate, (unsigned int)params.ndiv); in quadfs_pll_fs660c32_set_rate() 418 if (!hwrate) in quadfs_pll_fs660c32_set_rate() 854 long hwrate; in quadfs_set_rate() local 861 hwrate = quadfs_find_best_rate(hw, rate, parent_rate, ¶ms); in quadfs_set_rate() 862 if (!hwrate) in quadfs_set_rate()
|
/kernel/linux/linux-5.10/sound/soc/sunxi/ |
H A D | sun4i-codec.c | 479 unsigned int hwrate) in sun4i_codec_hw_params_capture() 484 hwrate << SUN4I_CODEC_ADC_FIFOC_ADC_FS); in sun4i_codec_hw_params_capture() 525 unsigned int hwrate) in sun4i_codec_hw_params_playback() 532 hwrate << SUN4I_CODEC_DAC_FIFOC_DAC_FS); in sun4i_codec_hw_params_playback() 579 int ret, hwrate; in sun4i_codec_hw_params() local 589 hwrate = sun4i_codec_get_hw_rate(params); in sun4i_codec_hw_params() 590 if (hwrate < 0) in sun4i_codec_hw_params() 591 return hwrate; in sun4i_codec_hw_params() 595 hwrate); in sun4i_codec_hw_params() 598 hwrate); in sun4i_codec_hw_params() 477 sun4i_codec_hw_params_capture(struct sun4i_codec *scodec, struct snd_pcm_hw_params *params, unsigned int hwrate) sun4i_codec_hw_params_capture() argument 523 sun4i_codec_hw_params_playback(struct sun4i_codec *scodec, struct snd_pcm_hw_params *params, unsigned int hwrate) sun4i_codec_hw_params_playback() argument [all...] |
/kernel/linux/linux-6.6/sound/soc/sunxi/ |
H A D | sun4i-codec.c | 472 unsigned int hwrate) in sun4i_codec_hw_params_capture() 477 hwrate << SUN4I_CODEC_ADC_FIFOC_ADC_FS); in sun4i_codec_hw_params_capture() 512 unsigned int hwrate) in sun4i_codec_hw_params_playback() 519 hwrate << SUN4I_CODEC_DAC_FIFOC_DAC_FS); in sun4i_codec_hw_params_playback() 562 int ret, hwrate; in sun4i_codec_hw_params() local 572 hwrate = sun4i_codec_get_hw_rate(params); in sun4i_codec_hw_params() 573 if (hwrate < 0) in sun4i_codec_hw_params() 574 return hwrate; in sun4i_codec_hw_params() 578 hwrate); in sun4i_codec_hw_params() 581 hwrate); in sun4i_codec_hw_params() 470 sun4i_codec_hw_params_capture(struct sun4i_codec *scodec, struct snd_pcm_hw_params *params, unsigned int hwrate) sun4i_codec_hw_params_capture() argument 510 sun4i_codec_hw_params_playback(struct sun4i_codec *scodec, struct snd_pcm_hw_params *params, unsigned int hwrate) sun4i_codec_hw_params_playback() argument [all...] |
/kernel/linux/linux-5.10/drivers/mfd/ |
H A D | db8500-prcmu.c | 1840 u64 hwrate; in set_plldsi_rate() local 1848 hwrate = (d * src_rate); in set_plldsi_rate() 1849 if (((2 * hwrate) < (r * MIN_PLL_VCO_RATE)) || in set_plldsi_rate() 1850 ((r * MAX_PLL_VCO_RATE) < (2 * hwrate))) in set_plldsi_rate() 1852 (void)do_div(hwrate, r); in set_plldsi_rate() 1853 if (rate < hwrate) { in set_plldsi_rate() 1859 if ((rate - hwrate) < rem) { in set_plldsi_rate() 1860 rem = (rate - hwrate); in set_plldsi_rate()
|
/kernel/linux/linux-6.6/drivers/mfd/ |
H A D | db8500-prcmu.c | 1839 u64 hwrate; in set_plldsi_rate() local 1847 hwrate = (d * src_rate); in set_plldsi_rate() 1848 if (((2 * hwrate) < (r * MIN_PLL_VCO_RATE)) || in set_plldsi_rate() 1849 ((r * MAX_PLL_VCO_RATE) < (2 * hwrate))) in set_plldsi_rate() 1851 (void)do_div(hwrate, r); in set_plldsi_rate() 1852 if (rate < hwrate) { in set_plldsi_rate() 1858 if ((rate - hwrate) < rem) { in set_plldsi_rate() 1859 rem = (rate - hwrate); in set_plldsi_rate()
|