/linux-6.6.21/arch/arm/mach-omap2/ |
D | clkt2xxx_dpllcore.c | 113 u32 cur_rate, low, mult, div, valid_rate, done_rate; in omap2_reprogram_dpllcore() local 118 cur_rate = omap2xxx_clk_get_core_rate(); in omap2_reprogram_dpllcore() 121 if ((rate == (cur_rate / 2)) && (mult == 2)) { in omap2_reprogram_dpllcore() 123 } else if ((rate == (cur_rate * 2)) && (mult == 1)) { in omap2_reprogram_dpllcore() 125 } else if (rate != cur_rate) { in omap2_reprogram_dpllcore()
|
D | clkt2xxx_virt_prcm_set.c | 100 u32 cur_rate, done_rate, bypass = 0; in omap2_select_table_rate() local 125 cur_rate = omap2xxx_clk_get_core_rate(); in omap2_select_table_rate() 127 if (prcm->dpll_speed == cur_rate / 2) { in omap2_select_table_rate() 129 } else if (prcm->dpll_speed == cur_rate * 2) { in omap2_select_table_rate() 131 } else if (prcm->dpll_speed != cur_rate) { in omap2_select_table_rate()
|
/linux-6.6.21/drivers/clk/at91/ |
D | clk-peripheral.c | 342 unsigned long cur_rate = *parent_rate; in clk_sam9x5_peripheral_round_rate() local 351 cur_rate = *parent_rate >> shift; in clk_sam9x5_peripheral_round_rate() 352 if (cur_rate <= periph->range.max) in clk_sam9x5_peripheral_round_rate() 357 if (rate >= cur_rate) in clk_sam9x5_peripheral_round_rate() 358 return cur_rate; in clk_sam9x5_peripheral_round_rate() 360 best_diff = cur_rate - rate; in clk_sam9x5_peripheral_round_rate() 361 best_rate = cur_rate; in clk_sam9x5_peripheral_round_rate() 363 cur_rate = *parent_rate >> shift; in clk_sam9x5_peripheral_round_rate() 364 if (cur_rate < rate) in clk_sam9x5_peripheral_round_rate() 365 cur_diff = rate - cur_rate; in clk_sam9x5_peripheral_round_rate() [all …]
|
/linux-6.6.21/drivers/clk/qcom/ |
D | krait-cc.c | 351 unsigned long cur_rate, aux_rate; in krait_cc_probe() local 413 cur_rate = clk_get_rate(clks[l2_mux]); in krait_cc_probe() 415 if (cur_rate < aux_rate) { in krait_cc_probe() 417 cur_rate = aux_rate; in krait_cc_probe() 421 clk_set_rate(clks[l2_mux], cur_rate); in krait_cc_probe() 425 cur_rate = clk_get_rate(clk); in krait_cc_probe() 426 if (cur_rate < aux_rate) { in krait_cc_probe() 428 cur_rate = aux_rate; in krait_cc_probe() 433 clk_set_rate(clk, cur_rate); in krait_cc_probe()
|
/linux-6.6.21/drivers/clk/actions/ |
D | owl-factor.c | 71 unsigned long parent_rate, try_parent_rate, best = 0, cur_rate; in owl_clk_val_best() local 102 cur_rate = DIV_ROUND_UP(parent_rate, clkt->div) * clkt->mul; in owl_clk_val_best() 103 if (cur_rate <= rate && cur_rate > best) { in owl_clk_val_best() 105 best = cur_rate; in owl_clk_val_best()
|
/linux-6.6.21/sound/usb/ |
D | clock.c | 536 int cur_rate, prev_rate; in set_sample_rate_v2v3() local 565 cur_rate = snd_usb_set_sample_rate_v2v3(chip, fmt, clock, rate); in set_sample_rate_v2v3() 566 if (cur_rate < 0) { in set_sample_rate_v2v3() 569 fmt->iface, fmt->altsetting, rate, cur_rate); in set_sample_rate_v2v3() 570 return cur_rate; in set_sample_rate_v2v3() 573 if (!cur_rate) in set_sample_rate_v2v3() 574 cur_rate = prev_rate; in set_sample_rate_v2v3() 576 if (cur_rate != rate) { in set_sample_rate_v2v3() 579 fmt->iface, fmt->altsetting, rate, cur_rate); in set_sample_rate_v2v3()
|
D | endpoint.c | 746 if (ep->cur_rate != params_rate(params) || in endpoint_compatible() 831 ep->cur_rate = params_rate(params); in snd_usb_endpoint_open() 848 ep->cur_channels, ep->cur_rate, in snd_usb_endpoint_open() 965 ep->cur_rate = 0; in snd_usb_endpoint_close() 1315 int rate = ep->cur_rate; in update_clock_ref_rate() 1361 ep->freqn = get_usb_full_speed_rate(ep->cur_rate); in snd_usb_endpoint_set_params() 1364 ep->freqn = get_usb_high_speed_rate(ep->cur_rate); in snd_usb_endpoint_set_params() 1368 ep->sample_rem = ep->cur_rate % ep->pps; in snd_usb_endpoint_set_params() 1369 ep->packsize[0] = ep->cur_rate / ep->pps; in snd_usb_endpoint_set_params() 1370 ep->packsize[1] = (ep->cur_rate + (ep->pps - 1)) / ep->pps; in snd_usb_endpoint_set_params()
|
D | card.h | 138 unsigned int cur_rate; member
|
D | pcm.c | 836 ep->cur_rate, fp->endpoint); in hw_rule_rate() 837 rmin = min(rmin, ep->cur_rate); in hw_rule_rate() 838 rmax = max(rmax, ep->cur_rate); in hw_rule_rate() 847 ep->cur_rate, fp->sync_ep); in hw_rule_rate() 848 rmin = min(rmin, ep->cur_rate); in hw_rule_rate() 849 rmax = max(rmax, ep->cur_rate); in hw_rule_rate()
|
D | quirks.c | 1723 unsigned int cur_rate = subs->data_endpoint->cur_rate; in pioneer_djm_set_format_quirk() local 1726 sr[0] = cur_rate & 0xff; in pioneer_djm_set_format_quirk() 1727 sr[1] = (cur_rate >> 8) & 0xff; in pioneer_djm_set_format_quirk() 1728 sr[2] = (cur_rate >> 16) & 0xff; in pioneer_djm_set_format_quirk()
|
/linux-6.6.21/drivers/net/wireless/realtek/rtw88/ |
D | bf.h | 93 void rtw_bf_cfg_csi_rate(struct rtw_dev *rtwdev, u8 rssi, u8 cur_rate, 110 static inline void rtw_chip_cfg_csi_rate(struct rtw_dev *rtwdev, u8 rssi, u8 cur_rate, in rtw_chip_cfg_csi_rate() argument 114 rtwdev->chip->ops->cfg_csi_rate(rtwdev, rssi, cur_rate, in rtw_chip_cfg_csi_rate()
|
D | bf.c | 381 void rtw_bf_cfg_csi_rate(struct rtw_dev *rtwdev, u8 rssi, u8 cur_rate, in rtw_bf_cfg_csi_rate() argument 391 if (cur_rate != DESC_RATE54M) { in rtw_bf_cfg_csi_rate() 400 if (cur_rate != DESC_RATE24M) { in rtw_bf_cfg_csi_rate()
|
/linux-6.6.21/sound/atmel/ |
D | ac97c.c | 46 unsigned int cur_rate; member 93 if (chip->cur_rate) { in atmel_ac97c_playback_open() 94 runtime->hw.rate_min = chip->cur_rate; in atmel_ac97c_playback_open() 95 runtime->hw.rate_max = chip->cur_rate; in atmel_ac97c_playback_open() 112 if (chip->cur_rate) { in atmel_ac97c_capture_open() 113 runtime->hw.rate_min = chip->cur_rate; in atmel_ac97c_capture_open() 114 runtime->hw.rate_max = chip->cur_rate; in atmel_ac97c_capture_open() 130 chip->cur_rate = 0; in atmel_ac97c_playback_close() 147 chip->cur_rate = 0; in atmel_ac97c_capture_close() 164 chip->cur_rate = params_rate(hw_params); in atmel_ac97c_playback_hw_params() [all …]
|
/linux-6.6.21/drivers/clk/mvebu/ |
D | clk-cpu.c | 112 unsigned long fabric_div, target_div, cur_rate; in clk_cpu_on_set_rate() local 122 cur_rate = clk_hw_get_rate(hwclk); in clk_cpu_on_set_rate() 129 if (rate == 2 * cur_rate) in clk_cpu_on_set_rate()
|
/linux-6.6.21/drivers/infiniband/hw/mthca/ |
D | mthca_av.c | 106 static u8 ib_rate_to_memfree(u8 req_rate, u8 cur_rate) in ib_rate_to_memfree() argument 108 if (cur_rate <= req_rate) in ib_rate_to_memfree() 115 switch ((cur_rate - 1) / req_rate) { in ib_rate_to_memfree()
|
/linux-6.6.21/drivers/net/wireless/marvell/libertas/ |
D | rx.c | 143 priv->cur_rate = lbs_fw_index_to_data_rate(p_rx_pd->rx_rate); in lbs_process_rxed_packet() 258 priv->cur_rate = lbs_fw_index_to_data_rate(prxpd->rx_rate); in process_rxed_802_11_packet()
|
D | dev.h | 174 u8 cur_rate; member
|
/linux-6.6.21/sound/soc/mxs/ |
D | mxs-saif.c | 95 if (master_saif->ongoing && rate != master_saif->cur_rate) { in mxs_saif_set_clk() 98 master_saif->id, master_saif->cur_rate); in mxs_saif_set_clk() 152 master_saif->cur_rate = rate; in mxs_saif_set_clk() 606 delay = USEC_PER_SEC / master_saif->cur_rate; in mxs_saif_trigger()
|
D | mxs-saif.h | 108 unsigned int cur_rate; member
|
/linux-6.6.21/sound/xen/ |
D | xen_snd_front_cfg.c | 153 char *cur_rate; in cfg_hw_rates() local 164 while ((cur_rate = strsep(&list, XENSND_LIST_SEPARATOR))) { in cfg_hw_rates() 166 if (!strncasecmp(cur_rate, in cfg_hw_rates()
|
/linux-6.6.21/drivers/net/wireless/mediatek/mt76/mt7603/ |
D | mac.c | 1167 struct ieee80211_tx_rate *cur_rate; in mt7603_fill_txs() local 1170 cur_rate = &rs->rates[idx / 2]; in mt7603_fill_txs() 1174 if (idx && (cur_rate->idx != info->status.rates[i].idx || in mt7603_fill_txs() 1175 cur_rate->flags != info->status.rates[i].flags)) { in mt7603_fill_txs() 1182 info->status.rates[i] = *cur_rate; in mt7603_fill_txs()
|
/linux-6.6.21/sound/pci/ice1712/ |
D | ice1724.c | 641 return ((rate == ice->cur_rate) && !force) ? 0 : -EBUSY; in snd_vt1724_set_pro_rate() 647 return (rate == ice->cur_rate) ? 0 : -EBUSY; in snd_vt1724_set_pro_rate() 656 else if (rate == ice->cur_rate) { in snd_vt1724_set_pro_rate() 662 ice->cur_rate = rate; in snd_vt1724_set_pro_rate() 2724 if (ice->cur_rate) in snd_vt1724_resume() 2725 rate = ice->cur_rate; in snd_vt1724_resume()
|
D | ice1712.h | 334 unsigned int cur_rate; /* current rate */ member
|
D | ice1712.c | 1000 ice->cur_rate = rate; in snd_ice1712_set_pro_rate() 2698 if (ice->cur_rate) in snd_ice1712_resume() 2699 rate = ice->cur_rate; in snd_ice1712_resume() 2708 ice->cur_rate = rate; in snd_ice1712_resume()
|
/linux-6.6.21/drivers/net/wireless/mediatek/mt76/mt7615/ |
D | mac.c | 1390 struct ieee80211_tx_rate *cur_rate; in mt7615_fill_txs() local 1393 cur_rate = &rs->rates[idx / 2]; in mt7615_fill_txs() 1397 if (idx && (cur_rate->idx != info->status.rates[i].idx || in mt7615_fill_txs() 1398 cur_rate->flags != info->status.rates[i].flags)) { in mt7615_fill_txs() 1405 info->status.rates[i] = *cur_rate; in mt7615_fill_txs()
|