/linux-6.6.21/drivers/net/wireless/broadcom/brcm80211/brcmutil/ |
D | d11.c | 28 static u16 d11n_bw(enum brcmu_chan_bw bw) in d11n_bw() argument 30 switch (bw) { in d11n_bw() 43 if (ch->bw == BRCMU_CHAN_BW_20) in brcmu_d11n_encchspec() 52 0, d11n_bw(ch->bw)); in brcmu_d11n_encchspec() 60 static u16 d11ac_bw(enum brcmu_chan_bw bw) in d11ac_bw() argument 62 switch (bw) { in d11ac_bw() 79 if (ch->bw == BRCMU_CHAN_BW_20 || ch->sb == BRCMU_CHAN_SB_NONE) in brcmu_d11ac_encchspec() 87 0, d11ac_bw(ch->bw)); in brcmu_d11ac_encchspec() 105 ch->bw = BRCMU_CHAN_BW_20; in brcmu_d11n_decchspec() 109 ch->bw = BRCMU_CHAN_BW_40; in brcmu_d11n_decchspec() [all …]
|
/linux-6.6.21/net/ipv4/ |
D | tcp_bbr.c | 93 struct minmax bw; /* Max recent delivery rate in pkts/uS << 24 */ member 219 return minmax_get(&bbr->bw); in bbr_max_bw() 256 static unsigned long bbr_bw_to_pacing_rate(struct sock *sk, u32 bw, int gain) in bbr_bw_to_pacing_rate() argument 258 u64 rate = bw; in bbr_bw_to_pacing_rate() 270 u64 bw; in bbr_init_pacing_rate_from_rtt() local 279 bw = (u64)tcp_snd_cwnd(tp) * BW_UNIT; in bbr_init_pacing_rate_from_rtt() 280 do_div(bw, rtt_us); in bbr_init_pacing_rate_from_rtt() 281 sk->sk_pacing_rate = bbr_bw_to_pacing_rate(sk, bw, bbr_high_gain); in bbr_init_pacing_rate_from_rtt() 285 static void bbr_set_pacing_rate(struct sock *sk, u32 bw, int gain) in bbr_set_pacing_rate() argument 289 unsigned long rate = bbr_bw_to_pacing_rate(sk, bw, gain); in bbr_set_pacing_rate() [all …]
|
/linux-6.6.21/drivers/net/wireless/ath/ath11k/ |
D | reg.c | 496 u16 bw; in ath11k_reg_adjust_bw() local 501 bw = end_freq - start_freq; in ath11k_reg_adjust_bw() 502 bw = min_t(u16, bw, max_bw); in ath11k_reg_adjust_bw() 504 if (bw >= 80 && bw < 160) in ath11k_reg_adjust_bw() 505 bw = 80; in ath11k_reg_adjust_bw() 506 else if (bw >= 40 && bw < 80) in ath11k_reg_adjust_bw() 507 bw = 40; in ath11k_reg_adjust_bw() 508 else if (bw >= 20 && bw < 40) in ath11k_reg_adjust_bw() 509 bw = 20; in ath11k_reg_adjust_bw() 511 bw = 0; in ath11k_reg_adjust_bw() [all …]
|
/linux-6.6.21/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | rs-fw.c | 257 enum IWL_TLC_MCS_PER_BW bw, in rs_fw_set_eht_mcs_nss() argument 261 ht_rates[IWL_TLC_NSS_2][bw] |= cpu_to_le16(mcs_msk); in rs_fw_set_eht_mcs_nss() 264 ht_rates[IWL_TLC_NSS_1][bw] |= cpu_to_le16(mcs_msk); in rs_fw_set_eht_mcs_nss() 269 rs_fw_rs_mcs2eht_mcs(enum IWL_TLC_MCS_PER_BW bw, in rs_fw_rs_mcs2eht_mcs() argument 272 switch (bw) { in rs_fw_rs_mcs2eht_mcs() 274 return &eht_mcs->bw._80; in rs_fw_rs_mcs2eht_mcs() 276 return &eht_mcs->bw._160; in rs_fw_rs_mcs2eht_mcs() 278 return &eht_mcs->bw._320; in rs_fw_rs_mcs2eht_mcs() 298 enum IWL_TLC_MCS_PER_BW bw; in rs_fw_eht_set_enabled_rates() local 308 mcs_rx_20.rx_tx_mcs7_max_nss = eht_rx_mcs->bw._80.rx_tx_mcs9_max_nss; in rs_fw_eht_set_enabled_rates() [all …]
|
/linux-6.6.21/drivers/net/wireless/ath/ath12k/ |
D | reg.c | 458 u16 bw; in ath12k_reg_adjust_bw() local 460 bw = end_freq - start_freq; in ath12k_reg_adjust_bw() 461 bw = min_t(u16, bw, max_bw); in ath12k_reg_adjust_bw() 463 if (bw >= 80 && bw < 160) in ath12k_reg_adjust_bw() 464 bw = 80; in ath12k_reg_adjust_bw() 465 else if (bw >= 40 && bw < 80) in ath12k_reg_adjust_bw() 466 bw = 40; in ath12k_reg_adjust_bw() 467 else if (bw < 40) in ath12k_reg_adjust_bw() 468 bw = 20; in ath12k_reg_adjust_bw() 470 return bw; in ath12k_reg_adjust_bw() [all …]
|
/linux-6.6.21/drivers/media/dvb-frontends/ |
D | dib7000m.c | 316 static int dib7000m_set_bandwidth(struct dib7000m_state *state, u32 bw) in dib7000m_set_bandwidth() argument 320 if (!bw) in dib7000m_set_bandwidth() 321 bw = 8000; in dib7000m_set_bandwidth() 324 state->current_bandwidth = bw; in dib7000m_set_bandwidth() 334 timf = timf * (bw / 50) / 160; in dib7000m_set_bandwidth() 382 … dib7000m_reset_pll_common(struct dib7000m_state *state, const struct dibx000_bandwidth_config *bw) in dib7000m_reset_pll_common() argument 384 dib7000m_write_word(state, 18, (u16) (((bw->internal*1000) >> 16) & 0xffff)); in dib7000m_reset_pll_common() 385 dib7000m_write_word(state, 19, (u16) ( (bw->internal*1000) & 0xffff)); in dib7000m_reset_pll_common() 386 dib7000m_write_word(state, 21, (u16) ( (bw->ifreq >> 16) & 0xffff)); in dib7000m_reset_pll_common() 387 dib7000m_write_word(state, 22, (u16) ( bw->ifreq & 0xffff)); in dib7000m_reset_pll_common() [all …]
|
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dml/dcn30/ |
D | dcn30_fpu.c | 371 if (!context->bw_ctx.bw.dcn.clk.fw_based_mclk_switching || in dcn30_fpu_update_soc_for_wm_a() 393 context->bw_ctx.bw.dcn.clk.fw_based_mclk_switching = false; in dcn30_fpu_calculate_wm_and_dlg() 401 context->bw_ctx.bw.dcn.clk.fw_based_mclk_switching = in dcn30_fpu_calculate_wm_and_dlg() 404 if (context->bw_ctx.bw.dcn.clk.fw_based_mclk_switching) { in dcn30_fpu_calculate_wm_and_dlg() 441 …context->bw_ctx.bw.dcn.watermarks.b.urgent_ns = get_wm_urgent(&context->bw_ctx.dml, pipes, pipe_cn… in dcn30_fpu_calculate_wm_and_dlg() 442 …context->bw_ctx.bw.dcn.watermarks.b.cstate_pstate.cstate_enter_plus_exit_ns = get_wm_stutter_enter… in dcn30_fpu_calculate_wm_and_dlg() 443 …context->bw_ctx.bw.dcn.watermarks.b.cstate_pstate.cstate_exit_ns = get_wm_stutter_exit(&context->b… in dcn30_fpu_calculate_wm_and_dlg() 444 …context->bw_ctx.bw.dcn.watermarks.b.cstate_pstate.pstate_change_ns = get_wm_dram_clock_change(&con… in dcn30_fpu_calculate_wm_and_dlg() 445 …context->bw_ctx.bw.dcn.watermarks.b.pte_meta_urgent_ns = get_wm_memory_trip(&context->bw_ctx.dml, … in dcn30_fpu_calculate_wm_and_dlg() 446 …context->bw_ctx.bw.dcn.watermarks.b.frac_urg_bw_nom = get_fraction_of_urgent_bandwidth(&context->b… in dcn30_fpu_calculate_wm_and_dlg() [all …]
|
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dml/dcn31/ |
D | dcn31_fpu.c | 499 context->bw_ctx.bw.dcn.clk.dcfclk_khz = dcfclk; // always should be vlevel 0 in dcn31_calculate_wm_and_dlg_fp() 513 …context->bw_ctx.bw.dcn.watermarks.a.urgent_ns = get_wm_urgent(&context->bw_ctx.dml, pipes, pipe_cn… in dcn31_calculate_wm_and_dlg_fp() 514 …context->bw_ctx.bw.dcn.watermarks.a.cstate_pstate.cstate_enter_plus_exit_ns = get_wm_stutter_enter… in dcn31_calculate_wm_and_dlg_fp() 515 …context->bw_ctx.bw.dcn.watermarks.a.cstate_pstate.cstate_exit_ns = get_wm_stutter_exit(&context->b… in dcn31_calculate_wm_and_dlg_fp() 516 …context->bw_ctx.bw.dcn.watermarks.a.cstate_pstate.pstate_change_ns = get_wm_dram_clock_change(&con… in dcn31_calculate_wm_and_dlg_fp() 517 …context->bw_ctx.bw.dcn.watermarks.a.cstate_pstate.cstate_enter_plus_exit_z8_ns = get_wm_z8_stutter… in dcn31_calculate_wm_and_dlg_fp() 518 …context->bw_ctx.bw.dcn.watermarks.a.cstate_pstate.cstate_exit_z8_ns = get_wm_z8_stutter_exit(&cont… in dcn31_calculate_wm_and_dlg_fp() 519 …context->bw_ctx.bw.dcn.watermarks.a.pte_meta_urgent_ns = get_wm_memory_trip(&context->bw_ctx.dml, … in dcn31_calculate_wm_and_dlg_fp() 520 …context->bw_ctx.bw.dcn.watermarks.a.frac_urg_bw_nom = get_fraction_of_urgent_bandwidth(&context->b… in dcn31_calculate_wm_and_dlg_fp() 521 …context->bw_ctx.bw.dcn.watermarks.a.frac_urg_bw_flip = get_fraction_of_urgent_bandwidth_imm_flip(&… in dcn31_calculate_wm_and_dlg_fp() [all …]
|
/linux-6.6.21/drivers/media/usb/dvb-usb-v2/ |
D | mxl111sf-tuner.c | 79 u8 bw) in mxl111sf_calc_phy_tune_regs() argument 84 switch (bw) { in mxl111sf_calc_phy_tune_regs() 186 static int mxl1x1sf_tune_rf(struct dvb_frontend *fe, u32 freq, u8 bw) in mxl1x1sf_tune_rf() argument 193 mxl_dbg("(freq = %d, bw = 0x%x)", freq, bw); in mxl1x1sf_tune_rf() 206 reg_ctrl_array = mxl111sf_calc_phy_tune_regs(freq, bw); in mxl1x1sf_tune_rf() 268 u8 bw; in mxl111sf_tuner_set_params() local 275 bw = 0; /* ATSC */ in mxl111sf_tuner_set_params() 278 bw = 1; /* US CABLE */ in mxl111sf_tuner_set_params() 283 bw = 6; in mxl111sf_tuner_set_params() 286 bw = 7; in mxl111sf_tuner_set_params() [all …]
|
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/core/ |
D | dc_debug.c | 351 context->bw_ctx.bw.dcn.clk.dispclk_khz, in context_clock_trace() 352 context->bw_ctx.bw.dcn.clk.dppclk_khz, in context_clock_trace() 353 context->bw_ctx.bw.dcn.clk.dcfclk_khz, in context_clock_trace() 354 context->bw_ctx.bw.dcn.clk.dcfclk_deep_sleep_khz, in context_clock_trace() 355 context->bw_ctx.bw.dcn.clk.fclk_khz, in context_clock_trace() 356 context->bw_ctx.bw.dcn.clk.socclk_khz); in context_clock_trace() 359 context->bw_ctx.bw.dcn.clk.dispclk_khz, in context_clock_trace() 360 context->bw_ctx.bw.dcn.clk.dppclk_khz, in context_clock_trace() 361 context->bw_ctx.bw.dcn.clk.dcfclk_khz, in context_clock_trace() 362 context->bw_ctx.bw.dcn.clk.dcfclk_deep_sleep_khz, in context_clock_trace() [all …]
|
/linux-6.6.21/drivers/net/wireless/realtek/rtw88/ |
D | phy.c | 1530 u8 bw, u8 rs, u8 ch, s8 pwr_limit) in rtw_phy_set_tx_power_limit() argument 1541 if (regd >= RTW_REGD_MAX || bw >= RTW_CHANNEL_WIDTH_MAX || in rtw_phy_set_tx_power_limit() 1545 regd, band, bw, rs, ch_idx, pwr_limit); in rtw_phy_set_tx_power_limit() 1550 hal->tx_pwr_limit_2g[regd][bw][rs][ch_idx] = pwr_limit; in rtw_phy_set_tx_power_limit() 1551 ww = hal->tx_pwr_limit_2g[RTW_REGD_WW][bw][rs][ch_idx]; in rtw_phy_set_tx_power_limit() 1553 hal->tx_pwr_limit_2g[RTW_REGD_WW][bw][rs][ch_idx] = ww; in rtw_phy_set_tx_power_limit() 1555 hal->tx_pwr_limit_5g[regd][bw][rs][ch_idx] = pwr_limit; in rtw_phy_set_tx_power_limit() 1556 ww = hal->tx_pwr_limit_5g[RTW_REGD_WW][bw][rs][ch_idx]; in rtw_phy_set_tx_power_limit() 1558 hal->tx_pwr_limit_5g[RTW_REGD_WW][bw][rs][ch_idx] = ww; in rtw_phy_set_tx_power_limit() 1565 u8 bw, u8 ch_idx, u8 rs_ht, u8 rs_vht) in rtw_xref_5g_txpwr_lmt() argument [all …]
|
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dce112/ |
D | dce112_resource.c | 905 &context->bw_ctx.bw.dce)) in dce112_validate_bandwidth() 913 if (memcmp(&dc->current_state->bw_ctx.bw.dce, in dce112_validate_bandwidth() 914 &context->bw_ctx.bw.dce, sizeof(context->bw_ctx.bw.dce))) { in dce112_validate_bandwidth() 928 context->bw_ctx.bw.dce.nbp_state_change_wm_ns[0].b_mark, in dce112_validate_bandwidth() 929 context->bw_ctx.bw.dce.nbp_state_change_wm_ns[0].a_mark, in dce112_validate_bandwidth() 930 context->bw_ctx.bw.dce.urgent_wm_ns[0].b_mark, in dce112_validate_bandwidth() 931 context->bw_ctx.bw.dce.urgent_wm_ns[0].a_mark, in dce112_validate_bandwidth() 932 context->bw_ctx.bw.dce.stutter_exit_wm_ns[0].b_mark, in dce112_validate_bandwidth() 933 context->bw_ctx.bw.dce.stutter_exit_wm_ns[0].a_mark, in dce112_validate_bandwidth() 934 context->bw_ctx.bw.dce.nbp_state_change_wm_ns[1].b_mark, in dce112_validate_bandwidth() [all …]
|
/linux-6.6.21/drivers/gpu/drm/i915/display/ |
D | intel_bw.c | 124 unsigned int num_psf_gv_points = i915->display.bw.max[0].num_psf_gv_points; in icl_qgv_points_mask() 125 unsigned int num_qgv_points = i915->display.bw.max[0].num_qgv_points; in icl_qgv_points_mask() 393 int num_groups = ARRAY_SIZE(dev_priv->display.bw.max); in icl_get_bw_info() 409 struct intel_bw_info *bi = &dev_priv->display.bw.max[i]; in icl_get_bw_info() 421 int ct, bw; in icl_get_bw_info() local 431 bw = DIV_ROUND_UP(sp->dclk * clpchgroup * 32 * num_channels, ct); in icl_get_bw_info() 434 bw * (100 - sa->derating) / 100); in icl_get_bw_info() 464 int num_groups = ARRAY_SIZE(dev_priv->display.bw.max); in tgl_get_bw_info() 501 struct intel_bw_info *bi = &dev_priv->display.bw.max[i]; in tgl_get_bw_info() 509 bi_next = &dev_priv->display.bw.max[i + 1]; in tgl_get_bw_info() [all …]
|
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/ |
D | dce110_clk_mgr.c | 183 context->bw_ctx.bw.dce.all_displays_in_sync; in dce11_pplib_apply_display_requirements() 185 context->bw_ctx.bw.dce.nbp_state_change_enable == false; in dce11_pplib_apply_display_requirements() 187 context->bw_ctx.bw.dce.cpuc_state_change_enable == false; in dce11_pplib_apply_display_requirements() 189 context->bw_ctx.bw.dce.cpup_state_change_enable == false; in dce11_pplib_apply_display_requirements() 191 context->bw_ctx.bw.dce.blackout_recovery_time_us; in dce11_pplib_apply_display_requirements() 205 pp_display_cfg->min_memory_clock_khz = context->bw_ctx.bw.dce.yclk_khz in dce11_pplib_apply_display_requirements() 211 context->bw_ctx.bw.dce.sclk_khz); in dce11_pplib_apply_display_requirements() 224 = context->bw_ctx.bw.dce.sclk_deep_sleep_khz; in dce11_pplib_apply_display_requirements() 255 int patched_disp_clk = context->bw_ctx.bw.dce.dispclk_khz; in dce11_update_clocks() 270 context->bw_ctx.bw.dce.dispclk_khz = dce_set_clock(clk_mgr_base, patched_disp_clk); in dce11_update_clocks()
|
/linux-6.6.21/net/wireless/ |
D | util.c | 1224 bitrate = (rate->bw == RATE_INFO_BW_40) ? 13500000 : 6500000; in cfg80211_calculate_bitrate_ht() 1405 switch (rate->bw) { in cfg80211_calculate_bitrate_vht() 1433 rate->bw, rate->mcs, rate->nss); in cfg80211_calculate_bitrate_vht() 1477 if (rate->bw == RATE_INFO_BW_160) in cfg80211_calculate_bitrate_he() 1479 else if (rate->bw == RATE_INFO_BW_80 || in cfg80211_calculate_bitrate_he() 1480 (rate->bw == RATE_INFO_BW_HE_RU && in cfg80211_calculate_bitrate_he() 1483 else if (rate->bw == RATE_INFO_BW_40 || in cfg80211_calculate_bitrate_he() 1484 (rate->bw == RATE_INFO_BW_HE_RU && in cfg80211_calculate_bitrate_he() 1487 else if (rate->bw == RATE_INFO_BW_20 || in cfg80211_calculate_bitrate_he() 1488 (rate->bw == RATE_INFO_BW_HE_RU && in cfg80211_calculate_bitrate_he() [all …]
|
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dce110/ |
D | dce110_resource.c | 980 &context->bw_ctx.bw.dce)) in dce110_validate_bandwidth() 990 if (memcmp(&dc->current_state->bw_ctx.bw.dce, in dce110_validate_bandwidth() 991 &context->bw_ctx.bw.dce, sizeof(context->bw_ctx.bw.dce))) { in dce110_validate_bandwidth() 1005 context->bw_ctx.bw.dce.nbp_state_change_wm_ns[0].b_mark, in dce110_validate_bandwidth() 1006 context->bw_ctx.bw.dce.nbp_state_change_wm_ns[0].a_mark, in dce110_validate_bandwidth() 1007 context->bw_ctx.bw.dce.urgent_wm_ns[0].b_mark, in dce110_validate_bandwidth() 1008 context->bw_ctx.bw.dce.urgent_wm_ns[0].a_mark, in dce110_validate_bandwidth() 1009 context->bw_ctx.bw.dce.stutter_exit_wm_ns[0].b_mark, in dce110_validate_bandwidth() 1010 context->bw_ctx.bw.dce.stutter_exit_wm_ns[0].a_mark, in dce110_validate_bandwidth() 1011 context->bw_ctx.bw.dce.nbp_state_change_wm_ns[1].b_mark, in dce110_validate_bandwidth() [all …]
|
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dml/calcs/ |
D | dcn_calcs.c | 566 context->bw_ctx.bw.dcn.watermarks.b.cstate_pstate.cstate_exit_ns = 568 context->bw_ctx.bw.dcn.watermarks.b.cstate_pstate.cstate_enter_plus_exit_ns = 570 context->bw_ctx.bw.dcn.watermarks.b.cstate_pstate.pstate_change_ns = 572 context->bw_ctx.bw.dcn.watermarks.b.pte_meta_urgent_ns = v->ptemeta_urgent_watermark * 1000; 573 context->bw_ctx.bw.dcn.watermarks.b.urgent_ns = v->urgent_watermark * 1000; 580 context->bw_ctx.bw.dcn.watermarks.c.cstate_pstate.cstate_exit_ns = 582 context->bw_ctx.bw.dcn.watermarks.c.cstate_pstate.cstate_enter_plus_exit_ns = 584 context->bw_ctx.bw.dcn.watermarks.c.cstate_pstate.pstate_change_ns = 586 context->bw_ctx.bw.dcn.watermarks.c.pte_meta_urgent_ns = v->ptemeta_urgent_watermark * 1000; 587 context->bw_ctx.bw.dcn.watermarks.c.urgent_ns = v->urgent_watermark * 1000; [all …]
|
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dml/dcn32/ |
D | dcn32_fpu.c | 1360 context->bw_ctx.bw.dcn.clk.dispclk_khz = context->bw_ctx.dml.vba.DISPCLK * 1000; in dcn32_calculate_dlg_params() 1361 context->bw_ctx.bw.dcn.clk.dcfclk_khz = context->bw_ctx.dml.vba.DCFCLK * 1000; in dcn32_calculate_dlg_params() 1362 context->bw_ctx.bw.dcn.clk.socclk_khz = context->bw_ctx.dml.vba.SOCCLK * 1000; in dcn32_calculate_dlg_params() 1363 context->bw_ctx.bw.dcn.clk.dramclk_khz = context->bw_ctx.dml.vba.DRAMSpeed * 1000 / 16; in dcn32_calculate_dlg_params() 1364 context->bw_ctx.bw.dcn.clk.dcfclk_deep_sleep_khz = context->bw_ctx.dml.vba.DCFCLKDeepSleep * 1000; in dcn32_calculate_dlg_params() 1365 context->bw_ctx.bw.dcn.clk.fclk_khz = context->bw_ctx.dml.vba.FabricClock * 1000; in dcn32_calculate_dlg_params() 1366 context->bw_ctx.bw.dcn.clk.p_state_change_support = in dcn32_calculate_dlg_params() 1373 …context->bw_ctx.bw.dcn.clk.p_state_change_support |= context->bw_ctx.bw.dcn.clk.fw_based_mclk_swit… in dcn32_calculate_dlg_params() 1375 context->bw_ctx.bw.dcn.clk.dppclk_khz = 0; in dcn32_calculate_dlg_params() 1376 context->bw_ctx.bw.dcn.clk.dtbclk_en = is_dtbclk_required(dc, context); in dcn32_calculate_dlg_params() [all …]
|
/linux-6.6.21/include/net/ |
D | regulatory.h | 226 #define REG_RULE_EXT(start, end, bw, gain, eirp, dfs_cac, reg_flags) \ argument 230 .freq_range.max_bandwidth_khz = MHZ_TO_KHZ(bw), \ 237 #define REG_RULE(start, end, bw, gain, eirp, reg_flags) \ argument 238 REG_RULE_EXT(start, end, bw, gain, eirp, 0, reg_flags)
|
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dml/dcn20/ |
D | dcn20_fpu.c | 1147 context->bw_ctx.bw.dcn.clk.dispclk_khz = context->bw_ctx.dml.vba.DISPCLK * 1000; in dcn20_calculate_dlg_params() 1148 context->bw_ctx.bw.dcn.clk.dcfclk_khz = context->bw_ctx.dml.vba.DCFCLK * 1000; in dcn20_calculate_dlg_params() 1149 context->bw_ctx.bw.dcn.clk.socclk_khz = context->bw_ctx.dml.vba.SOCCLK * 1000; in dcn20_calculate_dlg_params() 1150 context->bw_ctx.bw.dcn.clk.dramclk_khz = context->bw_ctx.dml.vba.DRAMSpeed * 1000 / 16; in dcn20_calculate_dlg_params() 1152 if (dc->debug.min_dram_clk_khz > context->bw_ctx.bw.dcn.clk.dramclk_khz) in dcn20_calculate_dlg_params() 1153 context->bw_ctx.bw.dcn.clk.dramclk_khz = dc->debug.min_dram_clk_khz; in dcn20_calculate_dlg_params() 1155 context->bw_ctx.bw.dcn.clk.dcfclk_deep_sleep_khz = context->bw_ctx.dml.vba.DCFCLKDeepSleep * 1000; in dcn20_calculate_dlg_params() 1156 context->bw_ctx.bw.dcn.clk.fclk_khz = context->bw_ctx.dml.vba.FabricClock * 1000; in dcn20_calculate_dlg_params() 1157 context->bw_ctx.bw.dcn.clk.p_state_change_support = in dcn20_calculate_dlg_params() 1164 …context->bw_ctx.bw.dcn.clk.p_state_change_support |= context->bw_ctx.bw.dcn.clk.fw_based_mclk_swit… in dcn20_calculate_dlg_params() [all …]
|
/linux-6.6.21/arch/x86/include/asm/shared/ |
D | io.h | 7 #define BUILDIO(bwl, bw, type) \ argument 10 asm volatile("out" #bwl " %" #bw "0, %w1" \ 17 asm volatile("in" #bwl " %w1, %" #bw "0" \
|
/linux-6.6.21/drivers/net/ethernet/intel/ice/ |
D | ice_sched.c | 2992 static void ice_set_clear_cir_bw(struct ice_bw_type_info *bw_t_info, u32 bw) in ice_set_clear_cir_bw() argument 2994 if (bw == ICE_SCHED_DFLT_BW) { in ice_set_clear_cir_bw() 2996 bw_t_info->cir_bw.bw = 0; in ice_set_clear_cir_bw() 3000 bw_t_info->cir_bw.bw = bw; in ice_set_clear_cir_bw() 3011 static void ice_set_clear_eir_bw(struct ice_bw_type_info *bw_t_info, u32 bw) in ice_set_clear_eir_bw() argument 3013 if (bw == ICE_SCHED_DFLT_BW) { in ice_set_clear_eir_bw() 3015 bw_t_info->eir_bw.bw = 0; in ice_set_clear_eir_bw() 3025 bw_t_info->eir_bw.bw = bw; in ice_set_clear_eir_bw() 3036 static void ice_set_clear_shared_bw(struct ice_bw_type_info *bw_t_info, u32 bw) in ice_set_clear_shared_bw() argument 3038 if (bw == ICE_SCHED_DFLT_BW) { in ice_set_clear_shared_bw() [all …]
|
/linux-6.6.21/drivers/net/wireless/mediatek/mt76/mt76x2/ |
D | mcu.c | 15 int mt76x2_mcu_set_channel(struct mt76x02_dev *dev, u8 channel, u8 bw, in mt76x2_mcu_set_channel() argument 21 u8 bw; in mt76x2_mcu_set_channel() member 31 .bw = bw, in mt76x2_mcu_set_channel()
|
D | usb_phy.c | 87 u8 channel = chan->hw_value, bw, bw_index; in mt76x2u_phy_set_channel() local 96 bw = 1; in mt76x2u_phy_set_channel() 110 bw = 2; in mt76x2u_phy_set_channel() 115 bw = 0; in mt76x2u_phy_set_channel() 123 mt76x2_configure_tx_delay(dev, chan->band, bw); in mt76x2u_phy_set_channel() 137 ret = mt76x2_mcu_set_channel(dev, channel, bw, bw_index, scan); in mt76x2u_phy_set_channel()
|
/linux-6.6.21/drivers/memory/samsung/ |
D | exynos-srom.c | 72 u32 cs, bw; in exynos_srom_configure_bank() local 90 bw = readl_relaxed(srom->reg_base + EXYNOS_SROM_BW); in exynos_srom_configure_bank() 91 bw = (bw & ~(EXYNOS_SROM_BW__CS_MASK << bank)) | (cs << bank); in exynos_srom_configure_bank() 92 writel_relaxed(bw, srom->reg_base + EXYNOS_SROM_BW); in exynos_srom_configure_bank()
|