/linux/drivers/net/can/dev/ |
H A D | calc_bittiming.c | 69 unsigned int bitrate; /* current bitrate */ in can_calc_bittiming() local 85 if (bt->bitrate > 800 * KILO /* BPS */) in can_calc_bittiming() 87 else if (bt->bitrate > 500 * KILO /* BPS */) in can_calc_bittiming() 99 brp = priv->clock.freq / (tsegall * bt->bitrate) + tseg % 2; in can_calc_bittiming() 106 bitrate = priv->clock.freq / (brp * tsegall); in can_calc_bittiming() 107 bitrate_error = abs(bt->bitrate - bitrate); in can_calc_bittiming() 134 do_div(v64, bt->bitrate); in can_calc_bittiming() 168 bt->bitrate = priv->clock.freq / in can_calc_bittiming()
|
H A D | bittiming.c | 105 bt->bitrate = priv->clock.freq / (bt->brp * can_bit_time(bt)); in can_fixup_bittiming() 123 if (bt->bitrate == bitrate_const[i]) in can_validate_bitrate() 144 if (!bt->tq && bt->bitrate && btc) in can_get_bittiming() 146 if (bt->tq && !bt->bitrate && btc) in can_get_bittiming() 148 if (!bt->tq && bt->bitrate && bitrate_const) in can_get_bittiming()
|
H A D | netlink.c | 270 if (priv->bitrate_max && bt.bitrate > priv->bitrate_max) { in can_changelink() 273 bt.bitrate, priv->bitrate_max); in can_changelink() 329 if (priv->bitrate_max && dbt.bitrate > priv->bitrate_max) { in can_changelink() 332 dbt.bitrate, priv->bitrate_max); in can_changelink() 435 if (priv->bittiming.bitrate) /* IFLA_CAN_BITTIMING */ in can_get_size() 445 if (priv->data_bittiming.bitrate) /* IFLA_CAN_DATA_BITTIMING */ in can_get_size() 549 if ((priv->bittiming.bitrate != CAN_BITRATE_UNSET && in can_fill_info() 550 priv->bittiming.bitrate != CAN_BITRATE_UNKNOWN && in can_fill_info() 567 (priv->data_bittiming.bitrate && in can_fill_info()
|
/linux/drivers/net/can/rockchip/ |
H A D | rockchip_canfd-timestamp.c | 45 u32 bitrate, div, reg, rate; in rkcanfd_timestamp_init() local 56 bitrate = max(bt->bitrate, dbt->bitrate); in rkcanfd_timestamp_init() 57 div = min(DIV_ROUND_UP(priv->can.clock.freq, bitrate * 2), in rkcanfd_timestamp_init() 81 bitrate / MEGA, in rkcanfd_timestamp_init() 82 bitrate % MEGA / KILO / 100, in rkcanfd_timestamp_init()
|
/linux/drivers/net/hamradio/ |
H A D | yam.c | 98 int bitrate; member 137 int bitrate; member 337 static unsigned char *add_mcs(unsigned char *bits, int bitrate, in add_mcs() argument 381 if (p->bitrate == bitrate) { in add_mcs() 394 p->bitrate = bitrate; in add_mcs() 402 static unsigned char *get_mcs(int bitrate) in get_mcs() argument 408 if (p->bitrate == bitrate) in get_mcs() 414 switch (bitrate) { in get_mcs() 417 return add_mcs(NULL, bitrate, YAM_1200); in get_mcs() 420 return add_mcs(NULL, bitrate, YAM_9600); in get_mcs() [all …]
|
/linux/drivers/net/wireless/broadcom/b43/ |
H A D | xmit.c | 38 b43_tx_legacy_rate_phy_ctl_ent(u8 bitrate) in b43_tx_legacy_rate_phy_ctl_ent() argument 45 if (e->bitrate == bitrate) in b43_tx_legacy_rate_phy_ctl_ent() 96 u8 b43_plcp_get_ratecode_cck(const u8 bitrate) in b43_plcp_get_ratecode_cck() argument 98 switch (bitrate) { in b43_plcp_get_ratecode_cck() 112 u8 b43_plcp_get_ratecode_ofdm(const u8 bitrate) in b43_plcp_get_ratecode_ofdm() argument 114 switch (bitrate) { in b43_plcp_get_ratecode_ofdm() 137 const u16 octets, const u8 bitrate) in b43_generate_plcp_hdr() argument 141 if (b43_is_ofdm_rate(bitrate)) { in b43_generate_plcp_hdr() 144 d = b43_plcp_get_ratecode_ofdm(bitrate); in b43_generate_plcp_hdr() 151 plen = octets * 16 / bitrate; in b43_generate_plcp_hdr() [all …]
|
/linux/drivers/net/wireless/broadcom/b43legacy/ |
H A D | xmit.c | 71 u8 b43legacy_plcp_get_ratecode_cck(const u8 bitrate) in b43legacy_plcp_get_ratecode_cck() argument 73 switch (bitrate) { in b43legacy_plcp_get_ratecode_cck() 87 u8 b43legacy_plcp_get_ratecode_ofdm(const u8 bitrate) in b43legacy_plcp_get_ratecode_ofdm() argument 89 switch (bitrate) { in b43legacy_plcp_get_ratecode_ofdm() 112 const u16 octets, const u8 bitrate) in b43legacy_generate_plcp_hdr() argument 117 if (b43legacy_is_ofdm_rate(bitrate)) { in b43legacy_generate_plcp_hdr() 120 d = b43legacy_plcp_get_ratecode_ofdm(bitrate); in b43legacy_generate_plcp_hdr() 127 plen = octets * 16 / bitrate; in b43legacy_generate_plcp_hdr() 128 if ((octets * 16 % bitrate) > 0) { in b43legacy_generate_plcp_hdr() 130 if ((bitrate == B43legacy_CCK_RATE_11MB) in b43legacy_generate_plcp_hdr() [all …]
|
/linux/drivers/phy/starfive/ |
H A D | phy-jh7110-dphy-tx.c | 85 unsigned long bitrate; member 200 static u32 stf_dphy_get_config_index(u32 bitrate) in stf_dphy_get_config_index() argument 205 if (reg_configs[i].bitrate == bitrate) in stf_dphy_get_config_index() 237 u32 bitrate = opts->mipi_dphy.hs_clk_rate; in stf_dphy_configure() local 241 if (bitrate % alignment) in stf_dphy_configure() 242 bitrate += alignment - (bitrate % alignment); in stf_dphy_configure() 244 i = stf_dphy_get_config_index(bitrate); in stf_dphy_configure()
|
/linux/drivers/net/can/usb/ |
H A D | mcba_usb.c | 134 __be16 bitrate; member 392 static void mcba_usb_xmit_change_bitrate(struct mcba_priv *priv, u16 bitrate) in mcba_usb_xmit_change_bitrate() argument 398 put_unaligned_be16(bitrate, &usb_msg.bitrate); in mcba_usb_xmit_change_bitrate() 478 const u32 bitrate = get_unaligned_be16(&msg->can_bitrate); in convert_can2host_bitrate() local 480 if ((bitrate == 33) || (bitrate == 83)) in convert_can2host_bitrate() 481 return bitrate * 1000 + 333; in convert_can2host_bitrate() 483 return bitrate * 1000; in convert_can2host_bitrate() 497 const u32 bitrate = convert_can2host_bitrate(msg); in mcba_usb_process_ka_can() local 501 if (bitrate != priv->can.bittiming.bitrate) in mcba_usb_process_ka_can() 505 bitrate, priv->can.bittiming.bitrate); in mcba_usb_process_ka_can() [all …]
|
/linux/drivers/net/wireless/intersil/p54/ |
H A D | eeprom.c | 30 { .bitrate = 10, .hw_value = 0, }, 31 { .bitrate = 20, .hw_value = 1, .flags = IEEE80211_RATE_SHORT_PREAMBLE }, 32 { .bitrate = 55, .hw_value = 2, .flags = IEEE80211_RATE_SHORT_PREAMBLE }, 33 { .bitrate = 110, .hw_value = 3, .flags = IEEE80211_RATE_SHORT_PREAMBLE }, 34 { .bitrate = 60, .hw_value = 4, }, 35 { .bitrate = 90, .hw_value = 5, }, 36 { .bitrate = 120, .hw_value = 6, }, 37 { .bitrate = 180, .hw_value = 7, }, 38 { .bitrate = 240, .hw_value = 8, }, 39 { .bitrate = 360, .hw_value = 9, }, [all …]
|
/linux/drivers/net/wireless/quantenna/qtnfmac/ |
H A D | cfg80211.c | 19 {.bitrate = 10, .hw_value = 2, }, 20 {.bitrate = 20, .hw_value = 4, }, 21 {.bitrate = 55, .hw_value = 11, }, 22 {.bitrate = 110, .hw_value = 22, }, 23 {.bitrate = 60, .hw_value = 12, }, 24 {.bitrate = 90, .hw_value = 18, }, 25 {.bitrate = 120, .hw_value = 24, }, 26 {.bitrate = 180, .hw_value = 36, }, 27 {.bitrate = 240, .hw_value = 48, }, 28 {.bitrate = 360, .hw_value = 72, }, [all …]
|
/linux/drivers/net/wireless/purelifi/plfxlc/ |
H A D | mac.c | 18 { .bitrate = 10, 21 { .bitrate = 20, 26 { .bitrate = 55, 31 { .bitrate = 110, 36 { .bitrate = 60, 39 { .bitrate = 90, 42 { .bitrate = 120, 45 { .bitrate = 180, 48 { .bitrate = 240, 51 { .bitrate = 360, [all …]
|
/linux/drivers/net/wireless/marvell/libertas_tf/ |
H A D | main.c | 45 { .bitrate = 10, 47 { .bitrate = 20, 50 { .bitrate = 55, 53 { .bitrate = 110, 56 { .bitrate = 60, 59 { .bitrate = 90, 62 { .bitrate = 120, 65 { .bitrate = 180, 68 { .bitrate = 240, 71 { .bitrate = 360, [all …]
|
/linux/drivers/net/wireless/virtual/ |
H A D | virt_wifi.c | 34 { .bitrate = 10 }, 35 { .bitrate = 20 }, 36 { .bitrate = 55 }, 37 { .bitrate = 110 }, 38 { .bitrate = 60 }, 39 { .bitrate = 120 }, 40 { .bitrate = 240 }, 73 { .bitrate = 60 }, 74 { .bitrate = 120 }, 75 { .bitrate = 240 },
|
/linux/drivers/i2c/busses/ |
H A D | i2c-imx-lpi2c.c | 106 unsigned int bitrate; member 150 unsigned int bitrate = lpi2c_imx->bitrate; in lpi2c_imx_set_mode() local 153 if (bitrate < I2C_MAX_FAST_MODE_FREQ) in lpi2c_imx_set_mode() 155 else if (bitrate < I2C_MAX_FAST_MODE_PLUS_FREQ) in lpi2c_imx_set_mode() 157 else if (bitrate < I2C_MAX_HIGH_SPEED_MODE_FREQ) in lpi2c_imx_set_mode() 159 else if (bitrate < I2C_MAX_ULTRA_FAST_MODE_FREQ) in lpi2c_imx_set_mode() 224 clk_cycle = clk_rate / ((1 << prescale) * lpi2c_imx->bitrate) in lpi2c_imx_config() 597 "clock-frequency", &lpi2c_imx->bitrate); in lpi2c_imx_probe() 599 lpi2c_imx->bitrate = I2C_MAX_STANDARD_MODE_FREQ; in lpi2c_imx_probe()
|
/linux/sound/spi/ |
H A D | Kconfig | 28 int "Target bitrate for AT73C213" 33 Sets the target bitrate for the bitrate calculator in the driver.
|
/linux/net/wireless/ |
H A D | util.c | 29 u32 basic_rates, int bitrate) in ieee80211_get_response_rate() argument 37 if (sband->bitrates[i].bitrate > bitrate) in ieee80211_get_response_rate() 196 if (sband->bitrates[i].bitrate == 60 || in set_mandatory_flags_band() 197 sband->bitrates[i].bitrate == 120 || in set_mandatory_flags_band() 198 sband->bitrates[i].bitrate == 240) { in set_mandatory_flags_band() 210 switch (sband->bitrates[i].bitrate) { in set_mandatory_flags_band() 1267 int modulation, streams, bitrate; in cfg80211_calculate_bitrate_ht() local 1276 bitrate = (rate->bw == RATE_INFO_BW_40) ? 13500000 : 6500000; in cfg80211_calculate_bitrate_ht() 1279 bitrate *= (modulation + 1); in cfg80211_calculate_bitrate_ht() 1281 bitrate *= (modulation + 2); in cfg80211_calculate_bitrate_ht() [all …]
|
/linux/drivers/net/wireless/ath/ath5k/ |
H A D | pcu.c | 118 int bitrate, bits, symbols, symbol_bits; in ath5k_hw_get_frame_duration() local 134 bitrate = rate->bitrate; in ath5k_hw_get_frame_duration() 148 bitrate = DIV_ROUND_UP(bitrate, 2); in ath5k_hw_get_frame_duration() 154 bitrate = DIV_ROUND_UP(bitrate, 4); in ath5k_hw_get_frame_duration() 163 symbol_bits = bitrate * sym_time; in ath5k_hw_get_frame_duration()
|
/linux/drivers/media/platform/st/sti/hva/ |
H A D | hva-debugfs.c | 53 ctrls->bitrate, in format_ctx() 123 u32 bitrate; in hva_dbg_perf_begin() local 154 bitrate = (u32)div; in hva_dbg_perf_begin() 155 dbg->last_bitrate = bitrate; in hva_dbg_perf_begin() 156 dbg->min_bitrate = min(bitrate, in hva_dbg_perf_begin() 158 dbg->max_bitrate = max(bitrate, in hva_dbg_perf_begin()
|
/linux/drivers/net/wireless/intel/iwlwifi/dvm/ |
H A D | eeprom.c | 127 { .bitrate = 1 * 10, .hw_value = 0, .hw_value_short = 0, }, 128 { .bitrate = 2 * 10, .hw_value = 1, .hw_value_short = 1, 130 { .bitrate = 5.5 * 10, .hw_value = 2, .hw_value_short = 2, 132 { .bitrate = 11 * 10, .hw_value = 3, .hw_value_short = 3, 134 { .bitrate = 6 * 10, .hw_value = 4, .hw_value_short = 4, }, 135 { .bitrate = 9 * 10, .hw_value = 5, .hw_value_short = 5, }, 136 { .bitrate = 12 * 10, .hw_value = 6, .hw_value_short = 6, }, 137 { .bitrate = 18 * 10, .hw_value = 7, .hw_value_short = 7, }, 138 { .bitrate = 24 * 10, .hw_value = 8, .hw_value_short = 8, }, 139 { .bitrate = 36 * 10, .hw_value = 9, .hw_value_short = 9, }, [all …]
|
/linux/include/linux/ |
H A D | yam.h | 48 unsigned int bitrate; /* Bit rate of radio port */ member 65 unsigned int bitrate; member
|
/linux/drivers/media/pci/ddbridge/ |
H A D | ddbridge-ci.c | 306 .bitrate = 72000, 312 static int ci_cxd2099_attach(struct ddb_port *port, u32 bitrate) in ci_cxd2099_attach() argument 317 cxd_cfg.bitrate = bitrate; in ci_cxd2099_attach() 334 int ddb_ci_attach(struct ddb_port *port, u32 bitrate) in ddb_ci_attach() argument 340 ret = ci_cxd2099_attach(port, bitrate); in ddb_ci_attach()
|
/linux/drivers/net/wireless/ralink/rt2x00/ |
H A D | rt2x00dev.c | 716 (rate->bitrate == signal)) || in rt2x00lib_rxdone_read_signal() 882 .bitrate = 10, 889 .bitrate = 20, 896 .bitrate = 55, 903 .bitrate = 110, 910 .bitrate = 60, 917 .bitrate = 90, 924 .bitrate = 120, 931 .bitrate = 180, 938 .bitrate = 240, [all …]
|
/linux/drivers/net/can/slcan/ |
H A D | slcan-core.c | 662 if (sl->can.bittiming.bitrate && in slcan_netdev_close() 663 sl->can.bittiming.bitrate != CAN_BITRATE_UNKNOWN) { in slcan_netdev_close() 679 if (sl->can.bittiming.bitrate == CAN_BITRATE_UNKNOWN) in slcan_netdev_close() 680 sl->can.bittiming.bitrate = CAN_BITRATE_UNSET; in slcan_netdev_close() 697 if (sl->can.bittiming.bitrate == CAN_BITRATE_UNSET) in slcan_netdev_open() 698 sl->can.bittiming.bitrate = CAN_BITRATE_UNKNOWN; in slcan_netdev_open() 706 if (sl->can.bittiming.bitrate != CAN_BITRATE_UNKNOWN) { in slcan_netdev_open() 708 if (sl->can.bittiming.bitrate == slcan_bitrate_const[s]) in slcan_netdev_open()
|
/linux/drivers/staging/vc04_services/vchiq-mmal/ |
H A D | mmal-msg-format.h | 73 u32 bitrate; /* Bitrate in bits per second */ member 99 u32 bitrate; /* Bitrate in bits per second */ member
|