/linux-6.6.21/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()
|
/linux-6.6.21/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 = max(ard->rssi, ard->ext_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()
|
/linux-6.6.21/drivers/net/wireless/realtek/rtw88/ |
D | coex.h | 39 #define COEX_RSSI_HIGH(rssi) \ argument 40 ({ typeof(rssi) __rssi__ = rssi; \ 44 #define COEX_RSSI_MEDIUM(rssi) \ argument 45 ({ typeof(rssi) __rssi__ = rssi; \ 49 #define COEX_RSSI_LOW(rssi) \ argument 50 ({ typeof(rssi) __rssi__ = rssi; \
|
D | bf.h | 93 void rtw_bf_cfg_csi_rate(struct rtw_dev *rtwdev, u8 rssi, u8 cur_rate, 110 static inline void rtw_chip_cfg_csi_rate(struct rtw_dev *rtwdev, u8 rssi, u8 cur_rate, in rtw_chip_cfg_csi_rate() argument 114 rtwdev->chip->ops->cfg_csi_rate(rtwdev, rssi, cur_rate, in rtw_chip_cfg_csi_rate()
|
/linux-6.6.21/drivers/staging/vt6656/ |
D | rf.c | 214 s32 rssi = -priv->current_rssi; in vnt_rf_addpower() local 216 if (!rssi) in vnt_rf_addpower() 224 if (rssi < base) in vnt_rf_addpower() 225 return ((rssi - base + 1) / -5) * 2 + 5; in vnt_rf_addpower() 375 void vnt_rf_rssi_to_dbm(struct vnt_private *priv, u8 rssi, long *dbm) in vnt_rf_rssi_to_dbm() argument 377 u8 idx = ((rssi & 0xc0) >> 6) & 0x03; in vnt_rf_rssi_to_dbm() 378 long b = rssi & 0x3f; in vnt_rf_rssi_to_dbm()
|
/linux-6.6.21/drivers/net/wireless/mediatek/mt76/mt7615/ |
D | testmode.c | 327 void *rx, *rssi; in mt7615_tm_dump_stats() local 337 rssi = nla_nest_start(msg, MT76_TM_RX_ATTR_RCPI); in mt7615_tm_dump_stats() 338 if (!rssi) in mt7615_tm_dump_stats() 345 nla_nest_end(msg, rssi); in mt7615_tm_dump_stats() 347 rssi = nla_nest_start(msg, MT76_TM_RX_ATTR_IB_RSSI); in mt7615_tm_dump_stats() 348 if (!rssi) in mt7615_tm_dump_stats() 355 nla_nest_end(msg, rssi); in mt7615_tm_dump_stats() 357 rssi = nla_nest_start(msg, MT76_TM_RX_ATTR_WB_RSSI); in mt7615_tm_dump_stats() 358 if (!rssi) in mt7615_tm_dump_stats() 365 nla_nest_end(msg, rssi); in mt7615_tm_dump_stats()
|
/linux-6.6.21/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()
|
/linux-6.6.21/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->current_rssi = *rssi; in vnt_rx_data()
|
/linux-6.6.21/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 …]
|
/linux-6.6.21/drivers/net/wireless/ath/ |
D | spectral_common.h | 55 s8 rssi; member 106 u8 rssi; member 122 __be16 rssi; member
|
/linux-6.6.21/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 …]
|
/linux-6.6.21/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()
|
D | rx.c | 59 status->signal = desc->rssi; in wl1251_rx_status() 65 wl->noise = desc->rssi - desc->snr / 2; in wl1251_rx_status()
|
/linux-6.6.21/drivers/net/wireless/intersil/p54/ |
D | fwio.c | 397 struct pda_rssi_cal_entry *rssi; in p54_scan() local 405 sizeof(*rate) + 2 * sizeof(*rssi), in p54_scan() 503 rssi = skb_put(skb, sizeof(*rssi)); in p54_scan() 505 rssi->mul = cpu_to_le16(rssi_data->mul); in p54_scan() 506 rssi->add = cpu_to_le16(rssi_data->add); in p54_scan() 509 rssi = skb_put(skb, sizeof(*rssi)); in p54_scan() 510 rssi->mul = cpu_to_le16(rssi_data->longbow_unkn); in p54_scan() 511 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() 518 unsigned int i, rssi, tx, cca, dtime, dtotal, dcca, dtx, drssi, unit; in p54_rx_stats() local 549 rssi = 0; in p54_rx_stats() 551 rssi += le32_to_cpu(stats->sample_noise[i]); in p54_rx_stats() 554 drssi = rssi - priv->survey_raw.cached_rssi; in p54_rx_stats() 577 priv->survey_raw.rssi += drssi * unit; in p54_rx_stats() 578 priv->survey_raw.cached_rssi = rssi; in p54_rx_stats()
|
/linux-6.6.21/drivers/net/wireless/mediatek/mt76/mt7915/ |
D | testmode.c | 726 void *rx, *rssi; in mt7915_tm_dump_stats() local 738 rssi = nla_nest_start(msg, MT76_TM_RX_ATTR_RCPI); in mt7915_tm_dump_stats() 739 if (!rssi) in mt7915_tm_dump_stats() 746 nla_nest_end(msg, rssi); in mt7915_tm_dump_stats() 748 rssi = nla_nest_start(msg, MT76_TM_RX_ATTR_IB_RSSI); in mt7915_tm_dump_stats() 749 if (!rssi) in mt7915_tm_dump_stats() 756 nla_nest_end(msg, rssi); in mt7915_tm_dump_stats() 758 rssi = nla_nest_start(msg, MT76_TM_RX_ATTR_WB_RSSI); in mt7915_tm_dump_stats() 759 if (!rssi) in mt7915_tm_dump_stats() 766 nla_nest_end(msg, rssi); in mt7915_tm_dump_stats()
|
/linux-6.6.21/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()
|
/linux-6.6.21/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 …]
|
/linux-6.6.21/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()
|
/linux-6.6.21/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()
|
/linux-6.6.21/drivers/net/wireless/legacy/ |
D | rndis_wlan.c | 243 __le32 rssi; member 1992 signal = level_to_qual(le32_to_cpu(bssid->rssi)); in rndis_bss_info_update() 2449 __le32 linkspeed, rssi; in rndis_fill_station_info() local 2461 len = sizeof(rssi); in rndis_fill_station_info() 2463 &rssi, &len); in rndis_fill_station_info() 2465 sinfo->signal = level_to_qual(le32_to_cpu(rssi)); in rndis_fill_station_info() 2633 __le32 rssi; in rndis_wlan_craft_connected_bss() local 2638 len = sizeof(rssi); in rndis_wlan_craft_connected_bss() 2639 rssi = 0; in rndis_wlan_craft_connected_bss() 2641 &rssi, &len); in rndis_wlan_craft_connected_bss() [all …]
|
/linux-6.6.21/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()
|
/linux-6.6.21/drivers/net/ethernet/toshiba/ |
D | ps3_gelic_wireless.h | 148 __be16 rssi; /* percentage */ member 183 __be16 rssi; member
|