/linux/drivers/media/platform/renesas/ |
H A D | rcar-csi2.c | 246 u16 mbps; member 251 { .mbps = 1500, .reg = 0xcc }, 252 { .mbps = 1550, .reg = 0x1d }, 253 { .mbps = 1600, .reg = 0x27 }, 254 { .mbps = 1650, .reg = 0x30 }, 255 { .mbps = 1700, .reg = 0x39 }, 256 { .mbps = 1750, .reg = 0x42 }, 257 { .mbps = 1800, .reg = 0x4b }, 258 { .mbps = 1850, .reg = 0x55 }, 259 { .mbps = 1900, .reg = 0x5e }, [all …]
|
/linux/drivers/media/pci/intel/ipu6/ |
H A D | ipu6-isys-dwc-phy.c | 289 static u16 get_hsfreq_by_mbps(u32 mbps) in get_hsfreq_by_mbps() argument 294 if (freqranges[i].default_mbps == mbps || in get_hsfreq_by_mbps() 295 (mbps >= freqranges[i].min && mbps <= freqranges[i].max)) in get_hsfreq_by_mbps() 303 u32 phy_id, u32 mbps) in ipu6_isys_dwc_phy_config() argument 312 dev_dbg(dev, "config Dphy %u with %u mbps", phy_id, mbps); in ipu6_isys_dwc_phy_config() 314 index = get_hsfreq_by_mbps(mbps); in ipu6_isys_dwc_phy_config() 316 dev_err(dev, "link freq not found for mbps %u", mbps); in ipu6_isys_dwc_phy_config() 347 if (mbps < 1500) { in ipu6_isys_dwc_phy_config() 369 u32 slave, u32 mbps) in ipu6_isys_dwc_phy_aggr_setup() argument 455 u32 nlanes, port, mbps; in ipu6_isys_dwc_phy_set_power() local [all …]
|
/linux/drivers/net/ethernet/aquantia/atlantic/hw_atl2/ |
H A D | hw_atl2_utils_fw.c | 293 self->aq_link_status.mbps = 10000; in aq_a2_fw_update_link_status() 296 self->aq_link_status.mbps = 5000; in aq_a2_fw_update_link_status() 299 self->aq_link_status.mbps = 2500; in aq_a2_fw_update_link_status() 302 self->aq_link_status.mbps = 1000; in aq_a2_fw_update_link_status() 305 self->aq_link_status.mbps = 100; in aq_a2_fw_update_link_status() 308 self->aq_link_status.mbps = 10; in aq_a2_fw_update_link_status() 311 self->aq_link_status.mbps = 0; in aq_a2_fw_update_link_status() 353 if (self->aq_link_status.mbps) { in aq_a2_fill_a0_stats() 395 if (self->aq_link_status.mbps) { in aq_a2_fill_b0_stats()
|
/linux/drivers/media/platform/renesas/rzg2l-cru/ |
H A D | rzg2l-csi2.c | 243 u64 mbps; in rzg2l_csi2_calc_mbps() local 262 mbps = v4l2_ctrl_g_ctrl_int64(ctrl) * format->bpp; in rzg2l_csi2_calc_mbps() 263 do_div(mbps, csi2->lanes * 1000000); in rzg2l_csi2_calc_mbps() 265 return mbps; in rzg2l_csi2_calc_mbps() 300 int mbps; in rzg2l_csi2_dphy_enable() local 303 mbps = rzg2l_csi2_calc_mbps(csi2); in rzg2l_csi2_dphy_enable() 304 if (mbps < 0) in rzg2l_csi2_dphy_enable() 305 return mbps; in rzg2l_csi2_dphy_enable() 307 csi2->hsfreq = mbps; in rzg2l_csi2_dphy_enable()
|
/linux/drivers/net/ethernet/aquantia/atlantic/hw_atl/ |
H A D | hw_atl_utils_fw2x.c | 260 link_status->mbps = 10000; in aq_fw2x_update_link_status() 262 link_status->mbps = 5000; in aq_fw2x_update_link_status() 264 link_status->mbps = 2500; in aq_fw2x_update_link_status() 266 link_status->mbps = 1000; in aq_fw2x_update_link_status() 268 link_status->mbps = 100; in aq_fw2x_update_link_status() 270 link_status->mbps = 10000; in aq_fw2x_update_link_status() 272 link_status->mbps = 0; in aq_fw2x_update_link_status()
|
H A D | hw_atl_utils.c | 709 link_status->mbps = 0U; in hw_atl_utils_mpi_get_link_status() 713 link_status->mbps = 10000U; in hw_atl_utils_mpi_get_link_status() 718 link_status->mbps = 5000U; in hw_atl_utils_mpi_get_link_status() 722 link_status->mbps = 2500U; in hw_atl_utils_mpi_get_link_status() 726 link_status->mbps = 1000U; in hw_atl_utils_mpi_get_link_status() 730 link_status->mbps = 100U; in hw_atl_utils_mpi_get_link_status() 798 unsigned int hw_atl_utils_mbps_2_speed_index(unsigned int mbps) in hw_atl_utils_mbps_2_speed_index() argument 802 switch (mbps) { in hw_atl_utils_mbps_2_speed_index() 885 if (self->aq_link_status.mbps) { in hw_atl_utils_update_stats()
|
H A D | hw_atl_utils.h | 606 unsigned int hw_atl_utils_mbps_2_speed_index(unsigned int mbps);
|
/linux/drivers/net/ethernet/aquantia/atlantic/ |
H A D | aq_ptp.h | 53 void aq_ptp_tm_offset_set(struct aq_nic_s *aq_nic, unsigned int mbps); 124 unsigned int mbps) {} in aq_ptp_tm_offset_set() argument
|
H A D | aq_ptp.c | 89 unsigned int mbps; member 96 void aq_ptp_tm_offset_set(struct aq_nic_s *aq_nic, unsigned int mbps) in aq_ptp_tm_offset_set() argument 108 if (mbps == ptp_offset[i].mbps) { in aq_ptp_tm_offset_set() 1039 ptp_offset[__idx].mbps = (__mbps); \ 1309 if (aq_nic->aq_hw->aq_link_status.mbps) in aq_ptp_link_change()
|
/linux/drivers/block/null_blk/ |
H A D | main.c | 28 static inline u64 mb_per_tick(int mbps) in mb_per_tick() argument 30 return (1 << 20) / TICKS_PER_SEC * ((u64) mbps); in mb_per_tick() 226 MODULE_PARM_DESC(mbps, "Cache size in MiB for memory-backed device. Default: 0 (none)"); 233 module_param_named(mbps, g_mbps, uint, 0444); 234 MODULE_PARM_DESC(mbps, "Limit maximum bandwidth (in MiB/s). Default: 0 (no limit)"); 456 NULLB_DEVICE_ATTR(mbps, uint, NULL); 781 dev->mbps = g_mbps; in null_alloc_dev() 1404 unsigned int mbps = nullb->dev->mbps; in nullb_bwtimer_fn() local 1406 if (atomic_long_read(&nullb->cur_bytes) == mb_per_tick(mbps)) in nullb_bwtimer_fn() 1409 atomic_long_set(&nullb->cur_bytes, mb_per_tick(mbps)); in nullb_bwtimer_fn() [all …]
|
H A D | null_blk.h | 97 unsigned int mbps; /* Bandwidth throttle cap (in MB/s) */ member
|
/linux/drivers/net/wireless/intel/iwlwifi/fw/ |
H A D | rs.c | 211 iwl_rate_mcs(index)->mbps); in rs_pretty_print_rate()
|
/linux/drivers/net/wireless/intel/iwlwifi/dvm/ |
H A D | rs.h | 268 char mbps[IWL_MAX_MCS_DISPLAY_SIZE]; member
|
H A D | rs.c | 3150 iwl_rate_mcs[index].mbps); in rs_sta_dbgfs_scale_table_read() 3154 iwl_rate_mcs[index].mbps, iwl_rate_mcs[index].mcs); in rs_sta_dbgfs_scale_table_read()
|
/linux/drivers/gpu/drm/stm/ |
H A D | dw_mipi_dsi-stm.c | 466 #define DSI_PHY_DELAY(fp, vp, mbps) DIV_ROUND_UP((fp) * (mbps) + 1000 * (vp), 8000) argument
|
/linux/drivers/gpu/drm/bridge/imx/ |
H A D | imx93-mipi-dsi.c | 323 unsigned long mbps = dphy_opts->hs_clk_rate / MHZ(1); in dphy_pll_get_hsfreqrange() local 327 if (mbps <= hsfreqrange_map[i].max_mbps) in dphy_pll_get_hsfreqrange()
|
/linux/drivers/net/wireless/intel/iwlwifi/fw/api/ |
H A D | rs.h | 233 char mbps[IWL_MAX_MCS_DISPLAY_SIZE]; member
|
/linux/Documentation/block/ |
H A D | null_blk.rst | 94 mbps=[Maximum bandwidth in MB/s]: Default: 0 (no limit)
|
/linux/drivers/staging/rtl8712/ |
H A D | rtl871x_ioctl_linux.c | 913 int mbps; in r871x_wx_set_priv() local 917 mbps = 0; in r871x_wx_set_priv() 919 mbps = wrqd.bitrate.value / 1000000; in r871x_wx_set_priv() 920 sprintf(ext, "LINKSPEED %d", mbps); in r871x_wx_set_priv()
|
/linux/fs/smb/client/ |
H A D | cifs_debug.c | 172 size_t mbps = bps / 1000 / 1000; in smb_speed_to_str() local 174 switch (mbps) { in smb_speed_to_str()
|
/linux/net/core/ |
H A D | pktgen.c | 3295 __u64 bps, mbps, pps; in show_results() local 3325 mbps = bps; in show_results() 3326 do_div(mbps, 1000000); in show_results() 3329 (unsigned long long)mbps, in show_results()
|
/linux/drivers/thunderbolt/ |
H A D | usb4.c | 2176 static u32 mbps_to_usb3_bw(unsigned int mbps, u8 scale) in mbps_to_usb3_bw() argument 2181 uframes = ((unsigned long)mbps * MEGA) / 8000; in mbps_to_usb3_bw()
|
/linux/drivers/net/wireless/intel/iwlegacy/ |
H A D | 4965-rs.c | 2650 il_rate_mcs[idx].mbps); in il4965_rs_sta_dbgfs_scale_table_read() 2657 il_rate_mcs[idx].mbps, in il4965_rs_sta_dbgfs_scale_table_read()
|
H A D | common.h | 2735 char mbps[IL_MAX_MCS_DISPLAY_SIZE]; member
|
/linux/drivers/scsi/lpfc/ |
H A D | lpfc_init.c | 5699 uint32_t mbps; in lpfc_cmf_stats_timer() local 5828 mbps = 0; in lpfc_cmf_stats_timer() 5833 mbps += le16_to_cpu(cp->cgn_bw_min[i]); in lpfc_cmf_stats_timer() 5838 if (mbps) /* Avg of Bandwidth averages */ in lpfc_cmf_stats_timer() 5839 mvalue = mbps / LPFC_MIN_HOUR; in lpfc_cmf_stats_timer() 5874 mbps = 0; in lpfc_cmf_stats_timer() 5880 mbps += le16_to_cpu(cp->cgn_bw_hr[i]); in lpfc_cmf_stats_timer() 5885 if (mbps) /* Avg of Bandwidth averages */ in lpfc_cmf_stats_timer() 5886 mvalue = mbps / LPFC_HOUR_DAY; in lpfc_cmf_stats_timer()
|