Home
last modified time | relevance | path

Searched refs:cur_rate (Results 1 – 13 of 13) sorted by relevance

/drivers/clk/at91/
Dclk-peripheral.c330 unsigned long cur_rate = *parent_rate; in clk_sam9x5_peripheral_round_rate() local
339 cur_rate = *parent_rate >> shift; in clk_sam9x5_peripheral_round_rate()
340 if (cur_rate <= periph->range.max) in clk_sam9x5_peripheral_round_rate()
345 if (rate >= cur_rate) in clk_sam9x5_peripheral_round_rate()
346 return cur_rate; in clk_sam9x5_peripheral_round_rate()
348 best_diff = cur_rate - rate; in clk_sam9x5_peripheral_round_rate()
349 best_rate = cur_rate; in clk_sam9x5_peripheral_round_rate()
351 cur_rate = *parent_rate >> shift; in clk_sam9x5_peripheral_round_rate()
352 if (cur_rate < rate) in clk_sam9x5_peripheral_round_rate()
353 cur_diff = rate - cur_rate; in clk_sam9x5_peripheral_round_rate()
[all …]
/drivers/clk/qcom/
Dkrait-cc.c294 unsigned long cur_rate, aux_rate; in krait_cc_probe() local
357 cur_rate = clk_get_rate(l2_pri_mux_clk); in krait_cc_probe()
359 if (cur_rate == 1) { in krait_cc_probe()
361 cur_rate = aux_rate; in krait_cc_probe()
365 clk_set_rate(l2_pri_mux_clk, cur_rate); in krait_cc_probe()
369 cur_rate = clk_get_rate(clk); in krait_cc_probe()
370 if (cur_rate == 1) { in krait_cc_probe()
372 cur_rate = aux_rate; in krait_cc_probe()
377 clk_set_rate(clk, cur_rate); in krait_cc_probe()
/drivers/clk/actions/
Dowl-factor.c72 unsigned long parent_rate, try_parent_rate, best = 0, cur_rate; in owl_clk_val_best() local
103 cur_rate = DIV_ROUND_UP(parent_rate, clkt->div) * clkt->mul; in owl_clk_val_best()
104 if (cur_rate <= rate && cur_rate > best) { in owl_clk_val_best()
106 best = cur_rate; in owl_clk_val_best()
/drivers/net/wireless/realtek/rtw88/
Dbf.h90 void rtw_bf_cfg_csi_rate(struct rtw_dev *rtwdev, u8 rssi, u8 cur_rate,
107 static inline void rtw_chip_cfg_csi_rate(struct rtw_dev *rtwdev, u8 rssi, u8 cur_rate, in rtw_chip_cfg_csi_rate() argument
111 rtwdev->chip->ops->cfg_csi_rate(rtwdev, rssi, cur_rate, in rtw_chip_cfg_csi_rate()
Dbf.c376 void rtw_bf_cfg_csi_rate(struct rtw_dev *rtwdev, u8 rssi, u8 cur_rate, in rtw_bf_cfg_csi_rate() argument
386 if (cur_rate != DESC_RATE54M) { in rtw_bf_cfg_csi_rate()
395 if (cur_rate != DESC_RATE24M) { in rtw_bf_cfg_csi_rate()
Dmain.h840 void (*cfg_csi_rate)(struct rtw_dev *rtwdev, u8 rssi, u8 cur_rate,
/drivers/clk/mvebu/
Dclk-cpu.c112 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()
/drivers/infiniband/hw/mthca/
Dmthca_av.c106 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()
/drivers/net/wireless/marvell/libertas/
Drx.c143 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()
Ddev.h174 u8 cur_rate; member
Dcfg.c1585 if (priv->cur_rate == lbs_rates[i].hw_value) { in lbs_cfg_get_station()
/drivers/net/wireless/mediatek/mt76/mt7603/
Dmac.c1160 struct ieee80211_tx_rate *cur_rate; in mt7603_fill_txs() local
1163 cur_rate = &rs->rates[idx / 2]; in mt7603_fill_txs()
1167 if (idx && (cur_rate->idx != info->status.rates[i].idx || in mt7603_fill_txs()
1168 cur_rate->flags != info->status.rates[i].flags)) { in mt7603_fill_txs()
1175 info->status.rates[i] = *cur_rate; in mt7603_fill_txs()
/drivers/net/wireless/mediatek/mt76/mt7615/
Dmac.c1357 struct ieee80211_tx_rate *cur_rate; in mt7615_fill_txs() local
1360 cur_rate = &rs->rates[idx / 2]; in mt7615_fill_txs()
1364 if (idx && (cur_rate->idx != info->status.rates[i].idx || in mt7615_fill_txs()
1365 cur_rate->flags != info->status.rates[i].flags)) { in mt7615_fill_txs()
1372 info->status.rates[i] = *cur_rate; in mt7615_fill_txs()