Home
last modified time | relevance | path

Searched refs:qual (Results 1 – 25 of 57) sorted by relevance

123

/linux-6.3-rc2/drivers/net/wireless/ralink/rt2x00/
A Drt2x00link.c184 struct link_qual *qual = &rt2x00dev->link.qual; in rt2x00link_update_stats() local
198 qual->rx_success++; in rt2x00link_update_stats()
254 struct link_qual *qual = &rt2x00dev->link.qual; in rt2x00link_reset_tuner() local
269 memset(qual, 0, sizeof(*qual)); in rt2x00link_reset_tuner()
290 struct link_qual *qual = &rt2x00dev->link.qual; in rt2x00link_reset_qual() local
292 qual->rx_success = 0; in rt2x00link_reset_qual()
293 qual->rx_failed = 0; in rt2x00link_reset_qual()
294 qual->tx_success = 0; in rt2x00link_reset_qual()
295 qual->tx_failed = 0; in rt2x00link_reset_qual()
300 struct link_qual *qual = &rt2x00dev->link.qual; in rt2x00link_tuner_sta() local
[all …]
A Drt2500pci.c610 struct link_qual *qual) in rt2500pci_link_stats() argument
632 qual->vgc_level = vgc_level; in rt2500pci_set_vgc()
638 struct link_qual *qual) in rt2500pci_reset_tuner() argument
672 rt2500pci_set_vgc(rt2x00dev, qual, qual->vgc_level); in rt2500pci_link_tuner()
679 if (qual->rssi >= -58) { in rt2500pci_link_tuner()
687 if (qual->rssi >= -74) { in rt2500pci_link_tuner()
697 rt2500pci_set_vgc(rt2x00dev, qual, qual->vgc_level); in rt2500pci_link_tuner()
707 if (qual->false_cca > 512 && qual->vgc_level_reg < 0x40) in rt2500pci_link_tuner()
708 rt2500pci_set_vgc(rt2x00dev, qual, ++qual->vgc_level_reg); in rt2500pci_link_tuner()
709 else if (qual->false_cca < 100 && qual->vgc_level_reg > 0x32) in rt2500pci_link_tuner()
[all …]
A Drt73usb.c876 struct link_qual *qual) in rt73usb_link_stats() argument
898 qual->vgc_level = vgc_level; in rt73usb_set_vgc()
904 struct link_qual *qual) in rt73usb_reset_tuner() argument
927 if (qual->rssi > -82) { in rt73usb_link_tuner()
930 } else if (qual->rssi > -84) { in rt73usb_link_tuner()
954 if (qual->rssi > -35) { in rt73usb_link_tuner()
962 if (qual->rssi >= -58) { in rt73usb_link_tuner()
970 if (qual->rssi >= -66) { in rt73usb_link_tuner()
978 if (qual->rssi >= -74) { in rt73usb_link_tuner()
1002 if ((qual->false_cca > 512) && (qual->vgc_level < up_bound)) in rt73usb_link_tuner()
[all …]
A Drt61pci.c916 struct link_qual *qual) in rt61pci_link_stats() argument
938 qual->vgc_level = vgc_level; in rt61pci_set_vgc()
944 struct link_qual *qual) in rt61pci_reset_tuner() argument
984 if (qual->rssi >= -35) { in rt61pci_link_tuner()
992 if (qual->rssi >= -58) { in rt61pci_link_tuner()
1000 if (qual->rssi >= -66) { in rt61pci_link_tuner()
1008 if (qual->rssi >= -74) { in rt61pci_link_tuner()
1032 if ((qual->false_cca > 512) && (qual->vgc_level < up_bound)) in rt61pci_link_tuner()
1033 rt61pci_set_vgc(rt2x00dev, qual, ++qual->vgc_level); in rt61pci_link_tuner()
1034 else if ((qual->false_cca < 100) && (qual->vgc_level > low_bound)) in rt61pci_link_tuner()
[all …]
A Drt2400pci.c571 struct link_qual *qual) in rt2400pci_link_stats() argument
586 qual->false_cca = bbp; in rt2400pci_link_stats()
592 if (qual->vgc_level_reg != vgc_level) { in rt2400pci_set_vgc()
594 qual->vgc_level = vgc_level; in rt2400pci_set_vgc()
595 qual->vgc_level_reg = vgc_level; in rt2400pci_set_vgc()
600 struct link_qual *qual) in rt2400pci_reset_tuner() argument
602 rt2400pci_set_vgc(rt2x00dev, qual, 0x08); in rt2400pci_reset_tuner()
618 if ((qual->false_cca > 512) && (qual->vgc_level < 0x20)) in rt2400pci_link_tuner()
619 rt2400pci_set_vgc(rt2x00dev, qual, ++qual->vgc_level); in rt2400pci_link_tuner()
620 else if ((qual->false_cca < 100) && (qual->vgc_level > 0x08)) in rt2400pci_link_tuner()
[all …]
A Drt2800lib.h238 void rt2800_link_stats(struct rt2x00_dev *rt2x00dev, struct link_qual *qual);
239 void rt2800_reset_tuner(struct rt2x00_dev *rt2x00dev, struct link_qual *qual);
240 void rt2800_link_tuner(struct rt2x00_dev *rt2x00dev, struct link_qual *qual,
/linux-6.3-rc2/net/wireless/
A Dwext-proc.c51 dev->name, stats->status, stats->qual.qual, in wireless_seq_printf_stats()
52 stats->qual.updated & IW_QUAL_QUAL_UPDATED in wireless_seq_printf_stats()
54 ((__s32) stats->qual.level) - in wireless_seq_printf_stats()
55 ((stats->qual.updated & IW_QUAL_DBM) ? 0x100 : 0), in wireless_seq_printf_stats()
56 stats->qual.updated & IW_QUAL_LEVEL_UPDATED in wireless_seq_printf_stats()
58 ((__s32) stats->qual.noise) - in wireless_seq_printf_stats()
59 ((stats->qual.updated & IW_QUAL_DBM) ? 0x100 : 0), in wireless_seq_printf_stats()
60 stats->qual.updated & IW_QUAL_NOISE_UPDATED in wireless_seq_printf_stats()
67 stats->qual.updated &= ~IW_QUAL_ALL_UPDATED; in wireless_seq_printf_stats()
A Dwext-compat.c147 range->max_qual.qual = 70; in cfg80211_wext_giwrange()
148 range->avg_qual.qual = 35; in cfg80211_wext_giwrange()
155 range->max_qual.qual = 100; in cfg80211_wext_giwrange()
156 range->avg_qual.qual = 50; in cfg80211_wext_giwrange()
1415 wstats.qual.updated |= IW_QUAL_DBM; in cfg80211_wireless_stats()
1416 wstats.qual.level = sig; in cfg80211_wireless_stats()
1421 wstats.qual.qual = sig + 110; in cfg80211_wireless_stats()
1429 wstats.qual.level = sinfo.signal; in cfg80211_wireless_stats()
1430 wstats.qual.qual = sinfo.signal; in cfg80211_wireless_stats()
1436 wstats.qual.updated |= IW_QUAL_QUAL_INVALID; in cfg80211_wireless_stats()
[all …]
/linux-6.3-rc2/drivers/net/wireless/intel/ipw2x00/
A Dlibipw_wx.c149 iwe.u.qual.qual = 0; in libipw_translate_scan()
152 iwe.u.qual.qual = 100; in libipw_translate_scan()
154 iwe.u.qual.qual = in libipw_translate_scan()
165 if (iwe.u.qual.qual > 100) in libipw_translate_scan()
166 iwe.u.qual.qual = 100; in libipw_translate_scan()
167 else if (iwe.u.qual.qual < 1) in libipw_translate_scan()
168 iwe.u.qual.qual = 0; in libipw_translate_scan()
173 iwe.u.qual.noise = 0; in libipw_translate_scan()
175 iwe.u.qual.noise = network->stats.noise; in libipw_translate_scan()
180 iwe.u.qual.level = 0; in libipw_translate_scan()
[all …]
/linux-6.3-rc2/arch/x86/include/asm/
A Dpercpu.h101 #define percpu_to_op(size, qual, op, _var, _val) \ argument
114 #define percpu_unary_op(size, qual, op, _var) \ argument
116 asm qual (__pcpu_op1_##size(op, __percpu_arg([var])) \
124 #define percpu_add_op(size, qual, var, val) \ argument
135 percpu_unary_op(size, qual, "inc", var); \
137 percpu_unary_op(size, qual, "dec", var); \
139 percpu_to_op(size, qual, "add", var, val); \
142 #define percpu_from_op(size, qual, op, _var) \ argument
166 asm qual (__pcpu_op2_##size("xadd", "%[tmp]", \
179 #define percpu_xchg_op(size, qual, _var, _nval) \ argument
[all …]
/linux-6.3-rc2/drivers/scsi/qla2xxx/
A Dqla_inline.h276 u16 qual; in qla2x00_set_retry_delay_timestamp() local
297 qual = sts_qual & SQ_QUAL_MASK; in qla2x00_set_retry_delay_timestamp()
298 if (qual < 1 || qual > 0x3fef) in qla2x00_set_retry_delay_timestamp()
300 qual = min(qual, (u16)SQ_MAX_WAIT_TIME); in qla2x00_set_retry_delay_timestamp()
303 fcport->retry_delay_timestamp = jiffies + (qual * HZ / 10); in qla2x00_set_retry_delay_timestamp()
307 fcport->port_name, sts_qual, qual * 100); in qla2x00_set_retry_delay_timestamp()
/linux-6.3-rc2/drivers/staging/rtl8192u/
A Dr8192U_wx.c256 range->max_qual.qual = 100; in rtl8180_wx_get_range()
262 range->avg_qual.qual = 92; /* > 8% missed beacons is 'bad' */ in rtl8180_wx_get_range()
917 wstats->qual.qual = 0; in r8192_get_wireless_stats()
918 wstats->qual.level = 0; in r8192_get_wireless_stats()
919 wstats->qual.noise = 0; in r8192_get_wireless_stats()
920 wstats->qual.updated = IW_QUAL_ALL_UPDATED | IW_QUAL_DBM; in r8192_get_wireless_stats()
928 wstats->qual.level = tmp_level; in r8192_get_wireless_stats()
929 wstats->qual.qual = tmp_qual; in r8192_get_wireless_stats()
930 wstats->qual.noise = tmp_noise; in r8192_get_wireless_stats()
931 wstats->qual.updated = IW_QUAL_ALL_UPDATED | IW_QUAL_DBM; in r8192_get_wireless_stats()
/linux-6.3-rc2/drivers/net/wireless/intersil/orinoco/
A Dwext.c120 memset(&wstats->qual, 0, sizeof(wstats->qual)); in orinoco_get_wireless_stats()
124 wstats->qual.qual = priv->spy_data.spy_stat[0].qual; in orinoco_get_wireless_stats()
125 wstats->qual.level = priv->spy_data.spy_stat[0].level; in orinoco_get_wireless_stats()
126 wstats->qual.noise = priv->spy_data.spy_stat[0].noise; in orinoco_get_wireless_stats()
127 wstats->qual.updated = in orinoco_get_wireless_stats()
132 __le16 qual, signal, noise, unused; in orinoco_get_wireless_stats() member
139 wstats->qual.qual = (int)le16_to_cpu(cq.qual); in orinoco_get_wireless_stats()
140 wstats->qual.level = (int)le16_to_cpu(cq.signal) - 0x95; in orinoco_get_wireless_stats()
141 wstats->qual.noise = (int)le16_to_cpu(cq.noise) - 0x95; in orinoco_get_wireless_stats()
142 wstats->qual.updated = in orinoco_get_wireless_stats()
/linux-6.3-rc2/include/media/tpg/
A Dv4l2-tpg.h151 enum tpg_quality qual; member
267 enum tpg_quality qual, unsigned qual_offset) in tpg_s_quality() argument
269 if (tpg->qual == qual && tpg->qual_offset == qual_offset) in tpg_s_quality()
271 tpg->qual = qual; in tpg_s_quality()
278 return tpg->qual; in tpg_g_quality()
/linux-6.3-rc2/drivers/staging/rtl8192e/rtl8192e/
A Drtl_wx.c318 range->max_qual.qual = 100; in _rtl92e_wx_get_range()
323 range->avg_qual.qual = 70; /* > 8% missed beacons is 'bad' */ in _rtl92e_wx_get_range()
1179 wstats->qual.qual = 10; in _rtl92e_get_wireless_stats()
1180 wstats->qual.level = 0; in _rtl92e_get_wireless_stats()
1181 wstats->qual.noise = 0x100 - 100; /* -100 dBm */ in _rtl92e_get_wireless_stats()
1182 wstats->qual.updated = IW_QUAL_ALL_UPDATED | IW_QUAL_DBM; in _rtl92e_get_wireless_stats()
1190 wstats->qual.level = tmp_level; in _rtl92e_get_wireless_stats()
1191 wstats->qual.qual = tmp_qual; in _rtl92e_get_wireless_stats()
1192 wstats->qual.noise = tmp_noise; in _rtl92e_get_wireless_stats()
1193 wstats->qual.updated = IW_QUAL_ALL_UPDATED | IW_QUAL_DBM; in _rtl92e_get_wireless_stats()
/linux-6.3-rc2/drivers/staging/rtl8192e/
A Drtllib_wx.c164 iwe.u.qual.qual = network->stats.signal; in rtl819x_translate_scan()
165 iwe.u.qual.level = network->stats.rssi; in rtl819x_translate_scan()
166 iwe.u.qual.noise = network->stats.noise; in rtl819x_translate_scan()
167 iwe.u.qual.updated = network->stats.mask & RTLLIB_STATMASK_WEMASK; in rtl819x_translate_scan()
169 iwe.u.qual.updated |= IW_QUAL_LEVEL_INVALID; in rtl819x_translate_scan()
171 iwe.u.qual.updated |= IW_QUAL_NOISE_INVALID; in rtl819x_translate_scan()
173 iwe.u.qual.updated |= IW_QUAL_QUAL_INVALID; in rtl819x_translate_scan()
174 iwe.u.qual.updated = 7; in rtl819x_translate_scan()
/linux-6.3-rc2/drivers/staging/rtl8192u/ieee80211/
A Dieee80211_wx.c163 iwe.u.qual.qual = network->stats.signal; in rtl819x_translate_scan()
164 iwe.u.qual.level = network->stats.rssi; in rtl819x_translate_scan()
165 iwe.u.qual.noise = network->stats.noise; in rtl819x_translate_scan()
166 iwe.u.qual.updated = network->stats.mask & IEEE80211_STATMASK_WEMASK; in rtl819x_translate_scan()
168 iwe.u.qual.updated |= IW_QUAL_LEVEL_INVALID; in rtl819x_translate_scan()
170 iwe.u.qual.updated |= IW_QUAL_NOISE_INVALID; in rtl819x_translate_scan()
172 iwe.u.qual.updated |= IW_QUAL_QUAL_INVALID; in rtl819x_translate_scan()
173 iwe.u.qual.updated = 7; in rtl819x_translate_scan()
/linux-6.3-rc2/include/uapi/linux/
A Dwireless.h717 __u8 qual; /* link quality (%retries, SNR, member
752 struct iw_quality qual; /* Quality of the link */ member
885 struct iw_quality qual; /* Quality of the link member
924 struct iw_quality qual; /* Quality part of statistics */ member
/linux-6.3-rc2/drivers/staging/ks7010/
A Dks_wlan_net.c937 range->max_qual.qual = 100; in ks_wlan_get_range()
1013 range->avg_qual.qual = 50; in ks_wlan_get_range()
1077 vwrq->qual.qual = 0; /* not supported */ in ks_wlan_get_iwstats()
1078 vwrq->qual.level = priv->wstats.qual.level; in ks_wlan_get_iwstats()
1079 vwrq->qual.noise = 0; /* not supported */ in ks_wlan_get_iwstats()
1080 vwrq->qual.updated = 0; in ks_wlan_get_iwstats()
1092 struct iw_quality qual[LOCAL_APLIST_MAX]; in ks_wlan_get_aplist() local
1102 qual[i].qual = priv->aplist.ap[i].sq; in ks_wlan_get_aplist()
1104 qual[i].updated = 7; in ks_wlan_get_aplist()
1229 iwe.u.qual.level = 256 - ap->rssi; in ks_wlan_translate_scan()
[all …]
/linux-6.3-rc2/drivers/usb/gadget/legacy/
A Dinode.c1281 struct usb_qualifier_descriptor qual; in make_qualifier() local
1284 qual.bLength = sizeof qual; in make_qualifier()
1285 qual.bDescriptorType = USB_DT_DEVICE_QUALIFIER; in make_qualifier()
1286 qual.bcdUSB = cpu_to_le16 (0x0200); in make_qualifier()
1289 qual.bDeviceClass = desc->bDeviceClass; in make_qualifier()
1290 qual.bDeviceSubClass = desc->bDeviceSubClass; in make_qualifier()
1291 qual.bDeviceProtocol = desc->bDeviceProtocol; in make_qualifier()
1294 qual.bMaxPacketSize0 = dev->gadget->ep0->maxpacket; in make_qualifier()
1296 qual.bNumConfigurations = 1; in make_qualifier()
1297 qual.bRESERVED = 0; in make_qualifier()
[all …]
/linux-6.3-rc2/drivers/net/wireless/intersil/hostap/
A Dhostap_ioctl.c52 wstats->qual.qual = local->comms_qual; in hostap_get_wireless_stats()
54 wstats->qual.noise = local->avg_noise; in hostap_get_wireless_stats()
56 wstats->qual.qual = 0; in hostap_get_wireless_stats()
57 wstats->qual.level = 0; in hostap_get_wireless_stats()
58 wstats->qual.noise = 0; in hostap_get_wireless_stats()
500 struct iw_quality *qual; in prism2_ioctl_giwaplist() local
516 kfree(qual); in prism2_ioctl_giwaplist()
529 kfree(qual); in prism2_ioctl_giwaplist()
1032 range->avg_qual.qual = 20; in prism2_ioctl_giwrange()
1878 iwe.u.qual.level = in __prism2_translate_scan()
[all …]
/linux-6.3-rc2/drivers/net/wireless/atmel/
A Datmel.c1273 priv->wstats.qual.qual = 0; in atmel_get_wireless_stats()
1274 priv->wstats.qual.level = 0; in atmel_get_wireless_stats()
1278 priv->wstats.qual.noise = 0; in atmel_get_wireless_stats()
1283 priv->wstats.qual.qual = 0; in atmel_get_wireless_stats()
1284 priv->wstats.qual.level = 0; in atmel_get_wireless_stats()
1285 priv->wstats.qual.noise = 0; in atmel_get_wireless_stats()
2387 iwe.u.qual.qual = iwe.u.qual.level; in atmel_get_scan()
2444 range->max_qual.qual = 100; in atmel_get_range()
2449 range->avg_qual.qual = 50; in atmel_get_range()
3291 priv->wstats.qual.qual = priv->wstats.qual.qual / 2; in atmel_smooth_qual()
[all …]
/linux-6.3-rc2/drivers/staging/rtl8712/
A Drtl871x_ioctl_linux.c329 iwe.u.qual.level = rssi; /* signal strength */ in translate_scan()
330 iwe.u.qual.qual = 0; /* signal quality */ in translate_scan()
331 iwe.u.qual.noise = 0; /* noise level */ in translate_scan()
875 range->max_qual.qual = 100; in r8711_wx_get_range()
2305 piwstats->qual.qual = 0; in r871x_get_wireless_stats()
2306 piwstats->qual.level = 0; in r871x_get_wireless_stats()
2307 piwstats->qual.noise = 0; in r871x_get_wireless_stats()
2313 piwstats->qual.level = tmp_level; in r871x_get_wireless_stats()
2314 piwstats->qual.qual = tmp_qual; in r871x_get_wireless_stats()
2315 piwstats->qual.noise = tmp_noise; in r871x_get_wireless_stats()
[all …]
/linux-6.3-rc2/drivers/net/wireless/cisco/
A Dairo.c7213 qual = kmalloc_array(IW_MAX_AP, sizeof(*qual), GFP_KERNEL); in airo_get_aplist()
7214 if (!qual) in airo_get_aplist()
7227 qual[i].qual = airo_dbm_to_pct(local->rssi, dBm); in airo_get_aplist()
7233 qual[i].qual = 0; in airo_get_aplist()
7238 qual[i].noise = local->wstats.qual.noise; in airo_get_aplist()
7271 kfree(qual); in airo_get_aplist()
7391 iwe.u.qual.qual = airo_dbm_to_pct(ai->rssi, dBm); in airo_translate_scan()
7397 iwe.u.qual.qual = 0; in airo_translate_scan()
7402 iwe.u.qual.noise = ai->wstats.qual.noise; in airo_translate_scan()
7784 local->wstats.qual.qual = in airo_read_wireless_stats()
[all …]
/linux-6.3-rc2/drivers/staging/wlan-ng/
A Dprism2sta.c371 qualmsg->link.data = le16_to_cpu(hw->qual.cq_curr_bss); in prism2sta_mlmerequest()
372 qualmsg->level.data = le16_to_cpu(hw->qual.asl_curr_bss); in prism2sta_mlmerequest()
373 qualmsg->noise.data = le16_to_cpu(hw->qual.anl_curr_fc); in prism2sta_mlmerequest()
1934 &hw->qual, HFA384x_RID_DBMCOMMSQUALITY_LEN); in prism2sta_commsqual_defer()
1942 le16_to_cpu(hw->qual.cq_curr_bss), in prism2sta_commsqual_defer()
1943 le16_to_cpu(hw->qual.asl_curr_bss), in prism2sta_commsqual_defer()
1944 le16_to_cpu(hw->qual.anl_curr_fc)); in prism2sta_commsqual_defer()

Completed in 125 milliseconds

123