/drivers/net/wireless/ralink/rt2x00/ |
D | rt2x00leds.c | 19 void rt2x00leds_led_quality(struct rt2x00_dev *rt2x00dev, int rssi) in rt2x00leds_led_quality() argument 31 rssi += rt2x00dev->rssi_offset; in rt2x00leds_led_quality() 37 if (rssi <= 30) in rt2x00leds_led_quality() 38 rssi = 0; in rt2x00leds_led_quality() 39 else if (rssi <= 39) in rt2x00leds_led_quality() 40 rssi = 1; in rt2x00leds_led_quality() 41 else if (rssi <= 49) in rt2x00leds_led_quality() 42 rssi = 2; in rt2x00leds_led_quality() 43 else if (rssi <= 53) in rt2x00leds_led_quality() 44 rssi = 3; in rt2x00leds_led_quality() [all …]
|
D | rt2x00link.c | 56 int rssi) in rt2x00link_antenna_update_rssi_history() argument 59 ant->rssi_history = rssi; in rt2x00link_antenna_update_rssi_history() 212 ewma_rssi_add(&link->avg_rssi, -rxdesc->rssi); in rt2x00link_update_stats() 217 ewma_rssi_add(&ant->rssi_ant, -rxdesc->rssi); in rt2x00link_update_stats() 315 qual->rssi = DEFAULT_RSSI; in rt2x00link_tuner_sta() 317 qual->rssi = rt2x00link_get_avg_rssi(&link->avg_rssi); in rt2x00link_tuner_sta() 330 rt2x00leds_led_quality(rt2x00dev, qual->rssi); in rt2x00link_tuner_sta()
|
/drivers/net/wireless/ath/ath9k/ |
D | dfs.c | 27 u8 rssi; member 204 u8 rssi; in ath9k_postprocess_radar_event() local 222 rssi = (ard->ext_rssi >= (ard->rssi + 3)) ? 0 : ard->rssi; in ath9k_postprocess_radar_event() 232 rssi = (ard->rssi >= (ard->ext_rssi + 12)) ? 0 : ard->ext_rssi; in ath9k_postprocess_radar_event() 249 rssi = (ard->rssi < ard->ext_rssi) ? ard->ext_rssi : ard->rssi; in ath9k_postprocess_radar_event() 260 if (rssi == 0) { in ath9k_postprocess_radar_event() 267 pe->rssi = rssi; in ath9k_postprocess_radar_event() 315 ard.rssi = rs->rs_rssi_ctl[0]; in ath9k_dfs_process_phyerr() 322 if (ard.rssi & 0x80) in ath9k_dfs_process_phyerr() 323 ard.rssi = 0; in ath9k_dfs_process_phyerr() [all …]
|
D | common.c | 220 int rssi = rx_stats->rs_rssi; in ath9k_cmn_process_rssi() local 241 s8 rssi; in ath9k_cmn_process_rssi() local 246 rssi = rx_stats->rs_rssi_ctl[i]; in ath9k_cmn_process_rssi() 247 if (rssi != ATH9K_RSSI_BAD) { in ath9k_cmn_process_rssi() 249 rxs->chain_signal[j] = ah->noise + rssi; in ath9k_cmn_process_rssi() 264 rssi = ATH_EP_RND(last_rssi, ATH_RSSI_EP_MULTIPLIER); in ath9k_cmn_process_rssi() 265 if (rssi < 0) in ath9k_cmn_process_rssi() 266 rssi = 0; in ath9k_cmn_process_rssi() 268 ah->stats.avgbrssi = rssi; in ath9k_cmn_process_rssi()
|
/drivers/net/wireless/realtek/rtw88/ |
D | coex.h | 38 #define COEX_RSSI_HIGH(rssi) \ argument 39 ({ typeof(rssi) __rssi__ = rssi; \ 43 #define COEX_RSSI_MEDIUM(rssi) \ argument 44 ({ typeof(rssi) __rssi__ = rssi; \ 48 #define COEX_RSSI_LOW(rssi) \ argument 49 ({ typeof(rssi) __rssi__ = rssi; \
|
D | bf.h | 90 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()
|
/drivers/net/wireless/mediatek/mt76/mt7615/ |
D | testmode.c | 328 void *rx, *rssi; in mt7615_tm_dump_stats() local 338 rssi = nla_nest_start(msg, MT76_TM_RX_ATTR_RCPI); in mt7615_tm_dump_stats() 339 if (!rssi) in mt7615_tm_dump_stats() 346 nla_nest_end(msg, rssi); in mt7615_tm_dump_stats() 348 rssi = nla_nest_start(msg, MT76_TM_RX_ATTR_IB_RSSI); in mt7615_tm_dump_stats() 349 if (!rssi) in mt7615_tm_dump_stats() 356 nla_nest_end(msg, rssi); in mt7615_tm_dump_stats() 358 rssi = nla_nest_start(msg, MT76_TM_RX_ATTR_WB_RSSI); in mt7615_tm_dump_stats() 359 if (!rssi) in mt7615_tm_dump_stats() 366 nla_nest_end(msg, rssi); in mt7615_tm_dump_stats()
|
/drivers/staging/vt6656/ |
D | rf.c | 575 s32 rssi = -priv->current_rssi; in vnt_rf_addpower() local 577 if (!rssi) in vnt_rf_addpower() 585 if (rssi < base) in vnt_rf_addpower() 586 return ((rssi - base + 1) / -5) * 2 + 5; in vnt_rf_addpower() 759 void vnt_rf_rssi_to_dbm(struct vnt_private *priv, u8 rssi, long *dbm) in vnt_rf_rssi_to_dbm() argument 761 u8 idx = ((rssi & 0xc0) >> 6) & 0x03; in vnt_rf_rssi_to_dbm() 762 long b = rssi & 0x3f; in vnt_rf_rssi_to_dbm()
|
/drivers/media/tuners/ |
D | mxl301rf.c | 75 struct dtv_fe_stats *rssi; in mxl301rf_get_rf_strength() local 77 rssi = &fe->dtv_property_cache.strength; in mxl301rf_get_rf_strength() 78 rssi->len = 1; in mxl301rf_get_rf_strength() 79 rssi->stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mxl301rf_get_rf_strength() 102 rssi->stat[0].svalue = level; in mxl301rf_get_rf_strength() 103 rssi->stat[0].scale = FE_SCALE_DECIBEL; in mxl301rf_get_rf_strength()
|
/drivers/net/wireless/intel/iwlegacy/ |
D | 3945-rs.c | 85 il3945_get_rate_idx_by_rssi(s32 rssi, enum nl80211_band band) in il3945_get_rate_idx_by_rssi() argument 91 if (rssi < IL_MIN_RSSI_VAL || rssi > IL_MAX_RSSI_VAL) in il3945_get_rate_idx_by_rssi() 92 rssi = IL_MIN_RSSI_VAL; in il3945_get_rate_idx_by_rssi() 108 while (idx < table_size && rssi < tpt_table[idx].min_rssi) in il3945_get_rate_idx_by_rssi() 882 s32 rssi = 0; in il3945_rate_scale_init() local 924 rssi = il->_3945.last_rx_rssi; in il3945_rate_scale_init() 925 if (rssi == 0) in il3945_rate_scale_init() 926 rssi = IL_MIN_RSSI_VAL; in il3945_rate_scale_init() 928 D_RATE("Network RSSI: %d\n", rssi); in il3945_rate_scale_init() 930 rs_sta->start_rate = il3945_get_rate_idx_by_rssi(rssi, il->band); in il3945_rate_scale_init() [all …]
|
/drivers/staging/vt6655/ |
D | dpc.c | 31 u8 *rsr, *new_rsr, *rssi; in vnt_rx_data() local 75 rssi = skb_data + bytes_received - 2; in vnt_rx_data() 80 RFvRSSITodBm(priv, *rssi, &rx_dbm); in vnt_rx_data() 83 priv->uCurrRSSI = *rssi; in vnt_rx_data()
|
/drivers/net/wireless/ath/ |
D | spectral_common.h | 56 s8 rssi; member 107 u8 rssi; member 123 __be16 rssi; member
|
/drivers/net/ethernet/cavium/thunder/ |
D | nic_main.c | 477 u64 cpi_base, cpi, rssi_base, rssi; in nic_config_cpi() local 505 rssi = rssi_base; in nic_config_cpi() 506 for (; rssi < (rssi_base + cfg->rq_cnt); rssi++) { in nic_config_cpi() 507 nic_reg_write(nic, NIC_PF_RSSI_0_4097_RQ | (rssi << 3), in nic_config_cpi() 512 rssi = 0; in nic_config_cpi() 525 (rssi_base + rssi)); in nic_config_cpi() 532 (vnic << 24) | (rssi_base + rssi)); in nic_config_cpi() 535 if ((rssi + 1) >= cfg->rq_cnt) in nic_config_cpi() 539 rssi++; in nic_config_cpi() 541 rssi = ((cpi - cpi_base) & 0xe) >> 1; in nic_config_cpi() [all …]
|
/drivers/net/wireless/ti/wl1251/ |
D | acx.c | 724 struct acx_low_rssi *rssi; in wl1251_acx_low_rssi() local 729 rssi = kzalloc(sizeof(*rssi), GFP_KERNEL); in wl1251_acx_low_rssi() 730 if (!rssi) in wl1251_acx_low_rssi() 733 rssi->threshold = threshold; in wl1251_acx_low_rssi() 734 rssi->weight = weight; in wl1251_acx_low_rssi() 735 rssi->depth = depth; in wl1251_acx_low_rssi() 736 rssi->type = type; in wl1251_acx_low_rssi() 738 ret = wl1251_cmd_configure(wl, ACX_LOW_RSSI, rssi, sizeof(*rssi)); in wl1251_acx_low_rssi() 742 kfree(rssi); in wl1251_acx_low_rssi()
|
/drivers/net/wireless/mediatek/mt76/mt7915/ |
D | testmode.c | 703 void *rx, *rssi; in mt7915_tm_dump_stats() local 714 rssi = nla_nest_start(msg, MT76_TM_RX_ATTR_RCPI); in mt7915_tm_dump_stats() 715 if (!rssi) in mt7915_tm_dump_stats() 722 nla_nest_end(msg, rssi); in mt7915_tm_dump_stats() 724 rssi = nla_nest_start(msg, MT76_TM_RX_ATTR_IB_RSSI); in mt7915_tm_dump_stats() 725 if (!rssi) in mt7915_tm_dump_stats() 732 nla_nest_end(msg, rssi); in mt7915_tm_dump_stats() 734 rssi = nla_nest_start(msg, MT76_TM_RX_ATTR_WB_RSSI); in mt7915_tm_dump_stats() 735 if (!rssi) in mt7915_tm_dump_stats() 742 nla_nest_end(msg, rssi); in mt7915_tm_dump_stats()
|
/drivers/net/wireless/intersil/p54/ |
D | fwio.c | 399 struct pda_rssi_cal_entry *rssi; in p54_scan() local 407 sizeof(*rate) + 2 * sizeof(*rssi), in p54_scan() 505 rssi = skb_put(skb, sizeof(*rssi)); in p54_scan() 507 rssi->mul = cpu_to_le16(rssi_data->mul); in p54_scan() 508 rssi->add = cpu_to_le16(rssi_data->add); in p54_scan() 511 rssi = skb_put(skb, sizeof(*rssi)); in p54_scan() 512 rssi->mul = cpu_to_le16(rssi_data->longbow_unkn); in p54_scan() 513 rssi->add = cpu_to_le16(rssi_data->longbow_unk2); in p54_scan()
|
D | txrx.c | 275 static int p54_rssi_to_dbm(struct p54_common *priv, int rssi) in p54_rssi_to_dbm() argument 278 return ((rssi * priv->cur_rssi->mul) / 64 + in p54_rssi_to_dbm() 284 return rssi / 2 - 110; in p54_rssi_to_dbm() 354 rx_status->signal = p54_rssi_to_dbm(priv, hdr->rssi); in p54_rx_data() 522 unsigned int i, rssi, tx, cca, dtime, dtotal, dcca, dtx, drssi, unit; in p54_rx_stats() local 553 rssi = 0; in p54_rx_stats() 555 rssi += le32_to_cpu(stats->sample_noise[i]); in p54_rx_stats() 558 drssi = rssi - priv->survey_raw.cached_rssi; in p54_rx_stats() 581 priv->survey_raw.rssi += drssi * unit; in p54_rx_stats() 582 priv->survey_raw.cached_rssi = rssi; in p54_rx_stats()
|
/drivers/net/wireless/ath/ath5k/ |
D | ani.c | 226 int rssi = ewma_beacon_rssi_read(&ah->ah_beacon_rssi_avg); in ath5k_ani_raise_immunity() local 257 if (rssi > ATH5K_ANI_RSSI_THR_HIGH) { in ath5k_ani_raise_immunity() 272 } else if (rssi > ATH5K_ANI_RSSI_THR_LOW) { in ath5k_ani_raise_immunity() 312 int rssi = ewma_beacon_rssi_read(&ah->ah_beacon_rssi_avg); in ath5k_ani_lower_immunity() local 324 if (rssi > ATH5K_ANI_RSSI_THR_HIGH) { in ath5k_ani_lower_immunity() 328 } else if (rssi > ATH5K_ANI_RSSI_THR_LOW) { in ath5k_ani_lower_immunity()
|
/drivers/net/wireless/ath/ath6kl/ |
D | wmi.c | 1355 static u8 ath6kl_wmi_get_upper_threshold(s16 rssi, in ath6kl_wmi_get_upper_threshold() argument 1364 if (rssi < sq_thresh->upper_threshold[index]) { in ath6kl_wmi_get_upper_threshold() 1373 static u8 ath6kl_wmi_get_lower_threshold(s16 rssi, in ath6kl_wmi_get_lower_threshold() argument 1382 if (rssi > sq_thresh->lower_threshold[index]) { in ath6kl_wmi_get_lower_threshold() 1416 s16 rssi; in ath6kl_wmi_rssi_threshold_event_rx() local 1424 rssi = a_sle16_to_cpu(reply->rssi); in ath6kl_wmi_rssi_threshold_event_rx() 1435 if (rssi < sq_thresh->upper_threshold[0]) { in ath6kl_wmi_rssi_threshold_event_rx() 1438 rssi); in ath6kl_wmi_rssi_threshold_event_rx() 1439 } else if ((rssi < sq_thresh->upper_threshold[1]) && in ath6kl_wmi_rssi_threshold_event_rx() 1440 (rssi >= sq_thresh->upper_threshold[0])) { in ath6kl_wmi_rssi_threshold_event_rx() [all …]
|
/drivers/net/wireless/mediatek/mt7601u/ |
D | mac.c | 444 u16 rate, int rssi) in mt7601u_rx_monitor_beacon() argument 448 ewma_rssi_add(&dev->avg_rssi, -rssi); in mt7601u_rx_monitor_beacon() 467 int rssi; in mt76_mac_process_rx() local 487 rssi = mt7601u_phy_get_rssi(dev, rxwi, rate); in mt76_mac_process_rx() 488 status->chain_signal[0] = status->signal = rssi; in mt76_mac_process_rx() 496 mt7601u_rx_monitor_beacon(dev, rxwi, rate, rssi); in mt76_mac_process_rx() 498 ewma_rssi_add(&dev->avg_rssi, -rssi); in mt76_mac_process_rx()
|
/drivers/net/wireless/ |
D | rndis_wlan.c | 243 __le32 rssi; member 1992 signal = level_to_qual(le32_to_cpu(bssid->rssi)); in rndis_bss_info_update() 2448 __le32 linkspeed, rssi; in rndis_fill_station_info() local 2460 len = sizeof(rssi); in rndis_fill_station_info() 2462 &rssi, &len); in rndis_fill_station_info() 2464 sinfo->signal = level_to_qual(le32_to_cpu(rssi)); in rndis_fill_station_info() 2632 __le32 rssi; in rndis_wlan_craft_connected_bss() local 2637 len = sizeof(rssi); in rndis_wlan_craft_connected_bss() 2638 rssi = 0; in rndis_wlan_craft_connected_bss() 2640 &rssi, &len); in rndis_wlan_craft_connected_bss() [all …]
|
/drivers/staging/rtl8723bs/hal/ |
D | odm_HWConfig.c | 109 u8 rssi, total_rssi = 0; in odm_rx_phy_status_parsing() local 191 rssi = odm_query_rx_pwr_percentage(rx_pwr[i]); in odm_rx_phy_status_parsing() 192 total_rssi += rssi; in odm_rx_phy_status_parsing() 194 phy_info->rx_mimo_signal_strength[i] = (u8)rssi; in odm_rx_phy_status_parsing()
|
/drivers/net/wireless/mediatek/mt76/mt7921/ |
D | mt7921.h | 49 #define to_rcpi(rssi) (2 * (rssi) + 220) argument 99 DECLARE_EWMA(rssi, 10, 8); 109 struct ewma_rssi rssi; member
|
/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/ |
D | phy_cmn.c | 2519 int rssi = rxh->PhyRxStatus_1 & PRXS1_JSSI_MASK; in wlc_phy_rssi_compute() local 2525 rssi = BRCMS_RSSI_INVALID; in wlc_phy_rssi_compute() 2533 if (rssi > 127) in wlc_phy_rssi_compute() 2534 rssi -= 256; in wlc_phy_rssi_compute() 2536 rssi = rssi + lcnphy_gain_index_offset_for_pkt_rssi[gidx]; in wlc_phy_rssi_compute() 2537 if ((rssi > -46) && (gidx > 18)) in wlc_phy_rssi_compute() 2538 rssi = rssi + 7; in wlc_phy_rssi_compute() 2540 rssi = rssi + pi_lcn->lcnphy_pkteng_rssi_slope; in wlc_phy_rssi_compute() 2542 rssi = rssi + 2; in wlc_phy_rssi_compute() 2547 if (rssi > 127) in wlc_phy_rssi_compute() [all …]
|
/drivers/net/wireless/ti/wlcore/ |
D | rx.c | 69 status->signal = ((desc->rssi & RSSI_LEVEL_BITMASK) | BIT(7)); in wl1271_rx_status() 70 status->antenna = ((desc->rssi & ANT_DIVERSITY_BITMASK) >> 7); in wl1271_rx_status() 77 wl->noise = desc->rssi - (desc->snr >> 1); in wl1271_rx_status()
|