Home
last modified time | relevance | path

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

12

/drivers/net/wireless/rt2x00/
Drt2x00link.c51 if (rt2x00dev->link.qual.rx_success) in rt2x00link_antenna_get_link_rssi()
195 struct link_qual *qual = &rt2x00dev->link.qual; in rt2x00link_update_stats() local
209 qual->rx_success++; in rt2x00link_update_stats()
267 struct link_qual *qual = &rt2x00dev->link.qual; in rt2x00link_reset_tuner() local
268 u8 vgc_level = qual->vgc_level_reg; in rt2x00link_reset_tuner()
282 memset(qual, 0, sizeof(*qual)); in rt2x00link_reset_tuner()
290 qual->vgc_level_reg = vgc_level; in rt2x00link_reset_tuner()
295 rt2x00dev->ops->lib->reset_tuner(rt2x00dev, qual); in rt2x00link_reset_tuner()
303 struct link_qual *qual = &rt2x00dev->link.qual; in rt2x00link_reset_qual() local
305 qual->rx_success = 0; in rt2x00link_reset_qual()
[all …]
Drt2500pci.c616 struct link_qual *qual) in rt2500pci_link_stats() argument
624 qual->rx_failed = rt2x00_get_field32(reg, CNT0_FCS_ERROR); in rt2500pci_link_stats()
630 qual->false_cca = rt2x00_get_field32(reg, CNT3_FALSE_CCA); in rt2500pci_link_stats()
634 struct link_qual *qual, u8 vgc_level) in rt2500pci_set_vgc() argument
636 if (qual->vgc_level_reg != vgc_level) { in rt2500pci_set_vgc()
638 qual->vgc_level = vgc_level; in rt2500pci_set_vgc()
639 qual->vgc_level_reg = vgc_level; in rt2500pci_set_vgc()
644 struct link_qual *qual) in rt2500pci_reset_tuner() argument
646 rt2500pci_set_vgc(rt2x00dev, qual, 0x48); in rt2500pci_reset_tuner()
650 struct link_qual *qual, const u32 count) in rt2500pci_link_tuner() argument
[all …]
Drt73usb.c882 struct link_qual *qual) in rt73usb_link_stats() argument
890 qual->rx_failed = rt2x00_get_field32(reg, STA_CSR0_FCS_ERROR); in rt73usb_link_stats()
896 qual->false_cca = rt2x00_get_field32(reg, STA_CSR1_FALSE_CCA_ERROR); in rt73usb_link_stats()
900 struct link_qual *qual, u8 vgc_level) in rt73usb_set_vgc() argument
902 if (qual->vgc_level != vgc_level) { in rt73usb_set_vgc()
904 qual->vgc_level = vgc_level; in rt73usb_set_vgc()
905 qual->vgc_level_reg = vgc_level; in rt73usb_set_vgc()
910 struct link_qual *qual) in rt73usb_reset_tuner() argument
912 rt73usb_set_vgc(rt2x00dev, qual, 0x20); in rt73usb_reset_tuner()
916 struct link_qual *qual, const u32 count) in rt73usb_link_tuner() argument
[all …]
Drt61pci.c1007 struct link_qual *qual) in rt61pci_link_stats() argument
1015 qual->rx_failed = rt2x00_get_field32(reg, STA_CSR0_FCS_ERROR); in rt61pci_link_stats()
1021 qual->false_cca = rt2x00_get_field32(reg, STA_CSR1_FALSE_CCA_ERROR); in rt61pci_link_stats()
1025 struct link_qual *qual, u8 vgc_level) in rt61pci_set_vgc() argument
1027 if (qual->vgc_level != vgc_level) { in rt61pci_set_vgc()
1029 qual->vgc_level = vgc_level; in rt61pci_set_vgc()
1030 qual->vgc_level_reg = vgc_level; in rt61pci_set_vgc()
1035 struct link_qual *qual) in rt61pci_reset_tuner() argument
1037 rt61pci_set_vgc(rt2x00dev, qual, 0x20); in rt61pci_reset_tuner()
1041 struct link_qual *qual, const u32 count) in rt61pci_link_tuner() argument
[all …]
Drt2400pci.c577 struct link_qual *qual) in rt2400pci_link_stats() argument
586 qual->rx_failed = rt2x00_get_field32(reg, CNT0_FCS_ERROR); in rt2400pci_link_stats()
592 qual->false_cca = bbp; in rt2400pci_link_stats()
596 struct link_qual *qual, u8 vgc_level) in rt2400pci_set_vgc() argument
598 if (qual->vgc_level_reg != vgc_level) { in rt2400pci_set_vgc()
600 qual->vgc_level = vgc_level; in rt2400pci_set_vgc()
601 qual->vgc_level_reg = vgc_level; in rt2400pci_set_vgc()
606 struct link_qual *qual) in rt2400pci_reset_tuner() argument
608 rt2400pci_set_vgc(rt2x00dev, qual, 0x08); in rt2400pci_reset_tuner()
612 struct link_qual *qual, const u32 count) in rt2400pci_link_tuner() argument
[all …]
Drt2800lib.h197 void rt2800_link_stats(struct rt2x00_dev *rt2x00dev, struct link_qual *qual);
198 void rt2800_reset_tuner(struct rt2x00_dev *rt2x00dev, struct link_qual *qual);
199 void rt2800_link_tuner(struct rt2x00_dev *rt2x00dev, struct link_qual *qual,
Drt2x00.h309 struct link_qual qual; member
562 struct link_qual *qual);
564 struct link_qual *qual);
566 struct link_qual *qual, const u32 count);
/drivers/net/wireless/ipw2x00/
Dlibipw_wx.c157 iwe.u.qual.updated = IW_QUAL_QUAL_UPDATED | IW_QUAL_LEVEL_UPDATED | in libipw_translate_scan()
161 iwe.u.qual.updated |= IW_QUAL_QUAL_INVALID | in libipw_translate_scan()
163 iwe.u.qual.qual = 0; in libipw_translate_scan()
166 iwe.u.qual.qual = 100; in libipw_translate_scan()
168 iwe.u.qual.qual = in libipw_translate_scan()
179 if (iwe.u.qual.qual > 100) in libipw_translate_scan()
180 iwe.u.qual.qual = 100; in libipw_translate_scan()
181 else if (iwe.u.qual.qual < 1) in libipw_translate_scan()
182 iwe.u.qual.qual = 0; in libipw_translate_scan()
186 iwe.u.qual.updated |= IW_QUAL_NOISE_INVALID; in libipw_translate_scan()
[all …]
/drivers/staging/rtl8192u/
Dr8192U_wx.c263 range->max_qual.qual = 100; in rtl8180_wx_get_range()
269 range->avg_qual.qual = 92; /* > 8% missed beacons is 'bad' */ in rtl8180_wx_get_range()
970 wstats->qual.qual = 0; in r8192_get_wireless_stats()
971 wstats->qual.level = 0; in r8192_get_wireless_stats()
972 wstats->qual.noise = 0; in r8192_get_wireless_stats()
973 wstats->qual.updated = IW_QUAL_ALL_UPDATED | IW_QUAL_DBM; in r8192_get_wireless_stats()
981 wstats->qual.level = tmp_level; in r8192_get_wireless_stats()
982 wstats->qual.qual = tmp_qual; in r8192_get_wireless_stats()
983 wstats->qual.noise = tmp_noise; in r8192_get_wireless_stats()
984 wstats->qual.updated = IW_QUAL_ALL_UPDATED | IW_QUAL_DBM; in r8192_get_wireless_stats()
/drivers/media/platform/vivid/
Dvivid-tpg.h114 enum tpg_quality qual; member
226 enum tpg_quality qual, unsigned qual_offset) in tpg_s_quality() argument
228 if (tpg->qual == qual && tpg->qual_offset == qual_offset) in tpg_s_quality()
230 tpg->qual = qual; in tpg_s_quality()
237 return tpg->qual; in tpg_g_quality()
/drivers/net/wireless/orinoco/
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()
/drivers/staging/rtl8192e/rtl8192e/
Drtl_wx.c337 range->max_qual.qual = 100; in _rtl92e_wx_get_range()
342 range->avg_qual.qual = 70; /* > 8% missed beacons is 'bad' */ in _rtl92e_wx_get_range()
1227 wstats->qual.qual = 10; in _rtl92e_get_wireless_stats()
1228 wstats->qual.level = 0; in _rtl92e_get_wireless_stats()
1229 wstats->qual.noise = 0x100 - 100; /* -100 dBm */ in _rtl92e_get_wireless_stats()
1230 wstats->qual.updated = IW_QUAL_ALL_UPDATED | IW_QUAL_DBM; in _rtl92e_get_wireless_stats()
1238 wstats->qual.level = tmp_level; in _rtl92e_get_wireless_stats()
1239 wstats->qual.qual = tmp_qual; in _rtl92e_get_wireless_stats()
1240 wstats->qual.noise = tmp_noise; in _rtl92e_get_wireless_stats()
1241 wstats->qual.updated = IW_QUAL_ALL_UPDATED | IW_QUAL_DBM; in _rtl92e_get_wireless_stats()
/drivers/staging/rtl8192e/
Drtllib_wx.c186 iwe.u.qual.qual = network->stats.signal; in rtl819x_translate_scan()
187 iwe.u.qual.level = network->stats.rssi; in rtl819x_translate_scan()
188 iwe.u.qual.noise = network->stats.noise; in rtl819x_translate_scan()
189 iwe.u.qual.updated = network->stats.mask & RTLLIB_STATMASK_WEMASK; in rtl819x_translate_scan()
191 iwe.u.qual.updated |= IW_QUAL_LEVEL_INVALID; in rtl819x_translate_scan()
193 iwe.u.qual.updated |= IW_QUAL_NOISE_INVALID; in rtl819x_translate_scan()
195 iwe.u.qual.updated |= IW_QUAL_QUAL_INVALID; in rtl819x_translate_scan()
196 iwe.u.qual.updated = 7; in rtl819x_translate_scan()
/drivers/staging/rtl8192u/ieee80211/
Dieee80211_wx.c179 iwe.u.qual.qual = network->stats.signal; in rtl819x_translate_scan()
180 iwe.u.qual.level = network->stats.rssi; in rtl819x_translate_scan()
181 iwe.u.qual.noise = network->stats.noise; in rtl819x_translate_scan()
182 iwe.u.qual.updated = network->stats.mask & IEEE80211_STATMASK_WEMASK; in rtl819x_translate_scan()
184 iwe.u.qual.updated |= IW_QUAL_LEVEL_INVALID; in rtl819x_translate_scan()
186 iwe.u.qual.updated |= IW_QUAL_NOISE_INVALID; in rtl819x_translate_scan()
188 iwe.u.qual.updated |= IW_QUAL_QUAL_INVALID; in rtl819x_translate_scan()
189 iwe.u.qual.updated = 7; in rtl819x_translate_scan()
/drivers/net/wireless/
Datmel.c1276 priv->wstats.qual.qual = 0; in atmel_get_wireless_stats()
1277 priv->wstats.qual.level = 0; in atmel_get_wireless_stats()
1278 priv->wstats.qual.updated = (IW_QUAL_QUAL_INVALID in atmel_get_wireless_stats()
1281 priv->wstats.qual.noise = 0; in atmel_get_wireless_stats()
1282 priv->wstats.qual.updated |= IW_QUAL_NOISE_INVALID; in atmel_get_wireless_stats()
1286 priv->wstats.qual.qual = 0; in atmel_get_wireless_stats()
1287 priv->wstats.qual.level = 0; in atmel_get_wireless_stats()
1288 priv->wstats.qual.noise = 0; in atmel_get_wireless_stats()
1289 priv->wstats.qual.updated = IW_QUAL_QUAL_INVALID in atmel_get_wireless_stats()
2386 iwe.u.qual.level = priv->BSSinfo[i].RSSI; in atmel_get_scan()
[all …]
Dairo.c3397 wstats.qual = hdr.rssi[0]; in airo_handle_rx()
3402 wstats.noise = ai->wstats.qual.noise; in airo_handle_rx()
3689 wstats.qual = 0; /* XXX Where do I get that info from ??? */ in mpi_receive_802_3()
3767 wstats.qual = hdr.rssi[0]; in mpi_receive_802_11()
3772 wstats.noise = ai->wstats.qual.noise; in mpi_receive_802_11()
6918 range->max_qual.qual = 100; /* % */ in airo_get_range()
6920 range->max_qual.qual = airo_get_max_quality(&cap_rid); in airo_get_range()
6928 range->avg_qual.qual = 50; /* % */ in airo_get_range()
6931 range->avg_qual.qual = airo_get_avg_quality(&cap_rid); in airo_get_range()
7145 struct iw_quality *qual; in airo_get_aplist() local
[all …]
/drivers/net/wireless/hostap/
Dhostap_ioctl.c59 wstats->qual.updated = IW_QUAL_ALL_UPDATED | in hostap_get_wireless_stats()
62 wstats->qual.qual = local->comms_qual; in hostap_get_wireless_stats()
63 wstats->qual.level = local->avg_signal; in hostap_get_wireless_stats()
64 wstats->qual.noise = local->avg_noise; in hostap_get_wireless_stats()
66 wstats->qual.qual = 0; in hostap_get_wireless_stats()
67 wstats->qual.level = 0; in hostap_get_wireless_stats()
68 wstats->qual.noise = 0; in hostap_get_wireless_stats()
69 wstats->qual.updated = IW_QUAL_ALL_INVALID; in hostap_get_wireless_stats()
503 struct iw_quality *qual; in prism2_ioctl_giwaplist() local
516 qual = kmalloc(sizeof(struct iw_quality) * IW_MAX_AP, GFP_KERNEL); in prism2_ioctl_giwaplist()
[all …]
Dhostap_ap.c2388 struct iw_quality qual[], int buf_size, in prism2_ap_get_sta_qual() argument
2406 qual[count].qual = sta->last_rx_signal < 27 ? in prism2_ap_get_sta_qual()
2409 qual[count].qual = sta->last_rx_signal - in prism2_ap_get_sta_qual()
2411 qual[count].level = HFA384X_LEVEL_TO_dBm(sta->last_rx_signal); in prism2_ap_get_sta_qual()
2412 qual[count].noise = HFA384X_LEVEL_TO_dBm(sta->last_rx_silence); in prism2_ap_get_sta_qual()
2413 qual[count].updated = sta->last_rx_updated; in prism2_ap_get_sta_qual()
2478 iwe.u.qual.qual = sta->last_rx_signal < 27 ? in prism2_ap_translate_scan()
2481 iwe.u.qual.qual = sta->last_rx_signal - in prism2_ap_translate_scan()
2483 iwe.u.qual.level = HFA384X_LEVEL_TO_dBm(sta->last_rx_signal); in prism2_ap_translate_scan()
2484 iwe.u.qual.noise = HFA384X_LEVEL_TO_dBm(sta->last_rx_silence); in prism2_ap_translate_scan()
[all …]
/drivers/usb/gadget/legacy/
Dinode.c1280 struct usb_qualifier_descriptor qual; in make_qualifier() local
1283 qual.bLength = sizeof qual; in make_qualifier()
1284 qual.bDescriptorType = USB_DT_DEVICE_QUALIFIER; in make_qualifier()
1285 qual.bcdUSB = cpu_to_le16 (0x0200); in make_qualifier()
1288 qual.bDeviceClass = desc->bDeviceClass; in make_qualifier()
1289 qual.bDeviceSubClass = desc->bDeviceSubClass; in make_qualifier()
1290 qual.bDeviceProtocol = desc->bDeviceProtocol; in make_qualifier()
1293 qual.bMaxPacketSize0 = dev->gadget->ep0->maxpacket; in make_qualifier()
1295 qual.bNumConfigurations = 1; in make_qualifier()
1296 qual.bRESERVED = 0; in make_qualifier()
[all …]
/drivers/staging/rtl8712/
Drtl871x_ioctl_linux.c327 iwe.u.qual.updated = (u8)(IW_QUAL_QUAL_INVALID | IW_QUAL_LEVEL_UPDATED | in translate_scan()
329 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()
888 range->max_qual.qual = 100; in r8711_wx_get_range()
892 range->avg_qual.qual = 92; /* > 8% missed beacons is 'bad' */ in r8711_wx_get_range()
2323 piwstats->qual.qual = 0; in r871x_get_wireless_stats()
2324 piwstats->qual.level = 0; in r871x_get_wireless_stats()
2325 piwstats->qual.noise = 0; in r871x_get_wireless_stats()
2331 piwstats->qual.level = tmp_level; in r871x_get_wireless_stats()
[all …]
/drivers/usb/gadget/
Dcomposite.c619 struct usb_qualifier_descriptor *qual = cdev->req->buf; in device_qual() local
621 qual->bLength = sizeof(*qual); in device_qual()
622 qual->bDescriptorType = USB_DT_DEVICE_QUALIFIER; in device_qual()
624 qual->bcdUSB = cdev->desc.bcdUSB; in device_qual()
625 qual->bDeviceClass = cdev->desc.bDeviceClass; in device_qual()
626 qual->bDeviceSubClass = cdev->desc.bDeviceSubClass; in device_qual()
627 qual->bDeviceProtocol = cdev->desc.bDeviceProtocol; in device_qual()
629 qual->bMaxPacketSize0 = cdev->gadget->ep0->maxpacket; in device_qual()
630 qual->bNumConfigurations = count_configs(cdev, USB_DT_DEVICE_QUALIFIER); in device_qual()
631 qual->bRESERVED = 0; in device_qual()
/drivers/net/wireless/prism54/
Disl_ioctl.c177 priv->local_iwstatistics.qual.noise = r.u; in prism54_update_stats()
195 priv->local_iwstatistics.qual.level = bss2->rssi; in prism54_update_stats()
196 priv->local_iwstatistics.qual.qual = in prism54_update_stats()
197 bss2->rssi - priv->iwstatistics.qual.noise; in prism54_update_stats()
202 priv->local_iwstatistics.qual.updated = 0x7; in prism54_update_stats()
225 priv->local_iwstatistics.qual.updated = 0; in prism54_get_wireless_stats()
228 priv->iwstatistics.qual.updated = 0; in prism54_get_wireless_stats()
449 range->max_qual.qual = 0; in prism54_get_range()
453 range->avg_qual.qual = 0; in prism54_get_range()
635 iwe.u.qual.level = bss->rssi; in prism54_translate_bss()
[all …]
Dislpci_eth.c295 …avs->ssi_noise = cpu_to_be32(priv->local_iwstatistics.qual.noise); /*better than 'undefined', I as… in islpci_monitor_rx()
388 wstats.noise = priv->local_iwstatistics.qual.noise; in islpci_eth_receive()
389 wstats.qual = wstats.level - wstats.noise; in islpci_eth_receive()
/drivers/staging/rtl8188eu/os_dep/
Dioctl_linux.c307 iwe.u.qual.updated = IW_QUAL_QUAL_UPDATED | IW_QUAL_LEVEL_UPDATED | IW_QUAL_NOISE_INVALID; in translate_scan()
318 iwe.u.qual.level = (u8)ss; in translate_scan()
319 iwe.u.qual.qual = (u8)sq; /* signal quality */ in translate_scan()
320 iwe.u.qual.noise = 0; /* noise level */ in translate_scan()
888 range->max_qual.qual = 100; in rtw_wx_get_range()
893 range->avg_qual.qual = 92; /* > 8% missed beacons is 'bad' */ in rtw_wx_get_range()
3072 piwstats->qual.qual = 0; in rtw_get_wireless_stats()
3073 piwstats->qual.level = 0; in rtw_get_wireless_stats()
3074 piwstats->qual.noise = 0; in rtw_get_wireless_stats()
3080 piwstats->qual.level = tmp_level; in rtw_get_wireless_stats()
[all …]
/drivers/staging/wlan-ng/
Dprism2sta.c372 qualmsg->link.data = le16_to_cpu(hw->qual.CQ_currBSS); in prism2sta_mlmerequest()
373 qualmsg->level.data = le16_to_cpu(hw->qual.ASL_currBSS); in prism2sta_mlmerequest()
374 qualmsg->noise.data = le16_to_cpu(hw->qual.ANL_currFC); in prism2sta_mlmerequest()
1959 &hw->qual, HFA384x_RID_DBMCOMMSQUALITY_LEN); in prism2sta_commsqual_defer()
1967 le16_to_cpu(hw->qual.CQ_currBSS), in prism2sta_commsqual_defer()
1968 le16_to_cpu(hw->qual.ASL_currBSS), in prism2sta_commsqual_defer()
1969 le16_to_cpu(hw->qual.ANL_currFC)); in prism2sta_commsqual_defer()

12