Home
last modified time | relevance | path

Searched refs:max_bw (Results 1 – 25 of 44) sorted by relevance

12

/linux-6.6.21/drivers/net/wireless/ath/ath11k/
Dreg.c389 u32 freq_diff, max_bw; in ath11k_reg_intersect_rules() local
403 max_bw = min_t(u32, rule1->freq_range.max_bandwidth_khz, in ath11k_reg_intersect_rules()
405 new_rule->freq_range.max_bandwidth_khz = min_t(u32, max_bw, freq_diff); in ath11k_reg_intersect_rules()
494 ath11k_reg_adjust_bw(u16 start_freq, u16 end_freq, u16 max_bw) in ath11k_reg_adjust_bw() argument
502 bw = min_t(u16, bw, max_bw); in ath11k_reg_adjust_bw()
533 u8 *rule_idx, u32 flags, u16 max_bw) in ath11k_reg_update_weather_radar_band() argument
547 ETSI_WEATHER_RADAR_BAND_LOW, max_bw); in ath11k_reg_update_weather_radar_band()
570 bw = ath11k_reg_adjust_bw(start_freq, end_freq, max_bw); in ath11k_reg_update_weather_radar_band()
589 reg_rule->end_freq, max_bw); in ath11k_reg_update_weather_radar_band()
618 u16 max_bw; in ath11k_reg_build_regd() local
[all …]
/linux-6.6.21/drivers/net/wireless/ath/ath12k/
Dreg.c351 u32 freq_diff, max_bw; in ath12k_reg_intersect_rules() local
365 max_bw = min_t(u32, rule1->freq_range.max_bandwidth_khz, in ath12k_reg_intersect_rules()
367 new_rule->freq_range.max_bandwidth_khz = min_t(u32, max_bw, freq_diff); in ath12k_reg_intersect_rules()
456 ath12k_reg_adjust_bw(u16 start_freq, u16 end_freq, u16 max_bw) in ath12k_reg_adjust_bw() argument
461 bw = min_t(u16, bw, max_bw); in ath12k_reg_adjust_bw()
490 u8 *rule_idx, u32 flags, u16 max_bw) in ath12k_reg_update_weather_radar_band() argument
499 ETSI_WEATHER_RADAR_BAND_LOW, max_bw); in ath12k_reg_update_weather_radar_band()
519 max_bw); in ath12k_reg_update_weather_radar_band()
544 reg_rule->end_freq, max_bw); in ath12k_reg_update_weather_radar_band()
571 u16 max_bw; in ath12k_reg_build_regd() local
[all …]
Dreg.h40 u16 max_bw; member
/linux-6.6.21/drivers/thunderbolt/
Dtunnel.c533 static int tb_dp_reduce_bandwidth(int max_bw, u32 in_rate, u32 in_lanes, in tb_dp_reduce_bandwidth() argument
566 if (tb_dp_bandwidth(dp_bw[i][0], dp_bw[i][1]) <= max_bw) { in tb_dp_reduce_bandwidth()
581 int ret, max_bw; in tb_dp_xchg_caps() local
631 max_bw = tunnel->max_down; in tb_dp_xchg_caps()
633 max_bw = tunnel->max_up; in tb_dp_xchg_caps()
635 if (max_bw && bw > max_bw) { in tb_dp_xchg_caps()
638 ret = tb_dp_reduce_bandwidth(max_bw, in_rate, in_lanes, in tb_dp_xchg_caps()
851 int *max_bw) in tb_dp_bandwidth_mode_maximum_bandwidth() argument
888 if (max_bw) { in tb_dp_bandwidth_mode_maximum_bandwidth()
892 *max_bw = roundup(nrd_bw, ret); in tb_dp_bandwidth_mode_maximum_bandwidth()
[all …]
Dquirks.c40 port->max_bw = 16376; in quirk_usb3_maximum_bandwidth()
42 port->max_bw); in quirk_usb3_maximum_bandwidth()
Dusb4.c1918 if (port->max_bw) in usb4_usb3_port_max_bandwidth()
1919 return min(bw, port->max_bw); in usb4_usb3_port_max_bandwidth()
2126 int ret, max_bw; in usb4_usb3_port_write_allocated_bandwidth() local
2130 max_bw = max(upstream_bw, downstream_bw); in usb4_usb3_port_write_allocated_bandwidth()
2132 if (mbps_to_usb3_bw(max_bw, scale) < 4096) in usb4_usb3_port_write_allocated_bandwidth()
/linux-6.6.21/drivers/gpu/drm/i915/display/
Dintel_bw.c884 unsigned int max_bw = 0; in icl_find_qgv_points() local
918 if (max_data_rate > max_bw) { in icl_find_qgv_points()
920 max_bw = max_data_rate; in icl_find_qgv_points()
1024 if (old_crtc_bw->max_bw[slice] != new_crtc_bw->max_bw[slice] || in intel_bw_state_changed()
1052 crtc_bw->max_bw[slice] = max(crtc_bw->max_bw[slice], data_rate); in skl_plane_calc_dbuf_bw()
1099 unsigned int max_bw = 0; in intel_bw_dbuf_min_cdclk() local
1109 max_bw = max(crtc_bw->max_bw[slice], max_bw); in intel_bw_dbuf_min_cdclk()
1112 max_bw *= num_active_planes; in intel_bw_dbuf_min_cdclk()
1114 total_max_bw = max(total_max_bw, max_bw); in intel_bw_dbuf_min_cdclk()
Dintel_bw.h20 unsigned int max_bw[I915_MAX_DBUF_SLICES]; member
/linux-6.6.21/net/mac80211/
Dchan.c245 enum nl80211_chan_width max_bw = NL80211_CHAN_WIDTH_20_NOHT; in ieee80211_get_max_required_bw() local
253 max_bw = max(max_bw, ieee80211_get_sta_bw(sta, link_id)); in ieee80211_get_max_required_bw()
256 return max_bw; in ieee80211_get_max_required_bw()
264 enum nl80211_chan_width max_bw = NL80211_CHAN_WIDTH_20_NOHT; in ieee80211_get_chanctx_vif_max_required_bw() local
312 max_bw = max(max_bw, width); in ieee80211_get_chanctx_vif_max_required_bw()
316 return max_bw; in ieee80211_get_chanctx_vif_max_required_bw()
325 enum nl80211_chan_width max_bw = NL80211_CHAN_WIDTH_20_NOHT; in ieee80211_get_chanctx_max_required_bw() local
337 max_bw = max(max_bw, width); in ieee80211_get_chanctx_max_required_bw()
344 max_bw = max(max_bw, ctx->conf.def.width); in ieee80211_get_chanctx_max_required_bw()
348 return max_bw; in ieee80211_get_chanctx_max_required_bw()
[all …]
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/link/
Dlink_validation.c265 uint32_t max_bw; in dp_validate_mode_timing() local
290 max_bw = dp_link_bandwidth_kbps(link, link_setting); in dp_validate_mode_timing()
292 if (req_bw <= max_bw) { in dp_validate_mode_timing()
/linux-6.6.21/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_dcb.h29 __le32 max_bw;
Dbnxt_dcb.c134 req->queue_id0_max_bw = cos2bw.max_bw; in bnxt_hwrm_queue_cos2bw_cfg()
169 cos2bw.max_bw = resp->queue_id0_max_bw; in bnxt_hwrm_queue_cos2bw_qcfg()
Dbnxt_sriov.c322 req->max_bw = cpu_to_le32(max_tx_rate); in bnxt_set_vf_bw()
512 req->max_bw = cpu_to_le32(vf->max_tx_rate); in __bnxt_set_vf_params()
/linux-6.6.21/drivers/usb/host/
Dxhci-mtk-sch.c368 u32 max_bw = 0; in get_max_bw() local
378 if (bw > max_bw) in get_max_bw()
379 max_bw = bw; in get_max_bw()
382 return max_bw; in get_max_bw()
/linux-6.6.21/drivers/media/test-drivers/vidtv/
Dvidtv_tuner.c301 u32 max_bw = fe->ops.tuner_ops.info.bandwidth_max; in vidtv_tuner_set_params() local
304 c->bandwidth_hz < min_bw || c->bandwidth_hz > max_bw) { in vidtv_tuner_set_params()
/linux-6.6.21/net/bluetooth/
Da2mp.h81 __le32 max_bw; member
/linux-6.6.21/net/batman-adv/
Dbat_v.c566 u32 max_bw = 0, bw; in batadv_v_gw_get_best_gw_node() local
576 if (curr_gw && bw <= max_bw) in batadv_v_gw_get_best_gw_node()
583 max_bw = bw; in batadv_v_gw_get_best_gw_node()
/linux-6.6.21/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_sysfs.c670 !IS_VALID_BW(np_cfg[i].max_bw)) in validate_npar_config()
709 nic_info.max_tx_bw = np_cfg[i].max_bw; in qlcnic_sysfs_write_npar_config()
717 adapter->npars[index].max_bw = nic_info.max_tx_bw; in qlcnic_sysfs_write_npar_config()
762 np_cfg[pci_func].max_bw = nic_info.max_tx_bw; in qlcnic_sysfs_read_npar_config()
931 pci_cfg[i].max_bw = pci_info[i].tx_max_bw; in qlcnic_sysfs_read_pci_config()
Dqlcnic_83xx_vnic.c112 npar->phy_port, npar->min_bw, npar->max_bw, in qlcnic_83xx_init_mgmt_vnic()
Dqlcnic.h1291 u16 max_bw; member
1334 u16 max_bw; member
1345 u16 max_bw; member
/linux-6.6.21/drivers/net/ethernet/qlogic/qed/
Dqed_mcp.h1080 int qed_configure_pf_max_bandwidth(struct qed_dev *cdev, u8 max_bw);
1084 u8 max_bw);
Dqed_dev.c5272 u8 max_bw) in __qed_configure_pf_max_bandwidth() argument
5276 p_hwfn->mcp_info->func_info.bandwidth_max = max_bw; in __qed_configure_pf_max_bandwidth()
5278 if (!p_link->line_speed && (max_bw != 100)) in __qed_configure_pf_max_bandwidth()
5281 p_link->speed = (p_link->line_speed * max_bw) / 100; in __qed_configure_pf_max_bandwidth()
5288 if (max_bw == 100) in __qed_configure_pf_max_bandwidth()
5302 int qed_configure_pf_max_bandwidth(struct qed_dev *cdev, u8 max_bw) in qed_configure_pf_max_bandwidth() argument
5306 if (max_bw < 1 || max_bw > 100) { in qed_configure_pf_max_bandwidth()
5324 p_link, max_bw); in qed_configure_pf_max_bandwidth()
/linux-6.6.21/drivers/net/ethernet/intel/i40e/
Di40e_adminq_cmd.h1374 u8 max_bw; /* 0-3, limit = 2^max */ member
1399 u8 max_bw; /* 0-3, limit = 2^max */ member
1503 u8 max_bw[16]; /* bandwidth limit */ member
/linux-6.6.21/kernel/sched/
Ddeadline.c1285 if (u_inact + rq->dl.extra_bw > rq->dl.max_bw - dl_se->dl_bw) in grub_reclaim()
1288 u_act = rq->dl.max_bw - u_inact - rq->dl.extra_bw; in grub_reclaim()
2803 dl_rq->max_bw = dl_rq->extra_bw = 1 << BW_SHIFT; in init_dl_rq_bw_ratio()
2807 dl_rq->max_bw = dl_rq->extra_bw = in init_dl_rq_bw_ratio()
/linux-6.6.21/drivers/gpu/drm/bridge/cadence/
Dcdns-mhdp8546-core.c1595 u32 max_bw, req_bw, bpp; in cdns_mhdp_bandwidth_ok() local
1606 max_bw = lanes * rate; in cdns_mhdp_bandwidth_ok()
1607 if (req_bw > max_bw) { in cdns_mhdp_bandwidth_ok()
1610 mode->name, req_bw, max_bw); in cdns_mhdp_bandwidth_ok()

12