Home
last modified time | relevance | path

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

12

/drivers/net/wireless/rt2x00/
Drt2x00link.c55 if (rt2x00dev->link.qual.rx_success) in rt2x00link_antenna_get_link_rssi()
200 struct link_qual *qual = &rt2x00dev->link.qual; in rt2x00link_update_stats() local
214 qual->rx_success++; in rt2x00link_update_stats()
272 struct link_qual *qual = &rt2x00dev->link.qual; in rt2x00link_reset_tuner() local
273 u8 vgc_level = qual->vgc_level_reg; in rt2x00link_reset_tuner()
287 memset(qual, 0, sizeof(*qual)); in rt2x00link_reset_tuner()
296 qual->vgc_level_reg = vgc_level; in rt2x00link_reset_tuner()
301 rt2x00dev->ops->lib->reset_tuner(rt2x00dev, qual); in rt2x00link_reset_tuner()
309 struct link_qual *qual = &rt2x00dev->link.qual; in rt2x00link_reset_qual() local
311 qual->rx_success = 0; in rt2x00link_reset_qual()
[all …]
Drt2500pci.c618 struct link_qual *qual) in rt2500pci_link_stats() argument
626 qual->rx_failed = rt2x00_get_field32(reg, CNT0_FCS_ERROR); in rt2500pci_link_stats()
632 qual->false_cca = rt2x00_get_field32(reg, CNT3_FALSE_CCA); in rt2500pci_link_stats()
636 struct link_qual *qual, u8 vgc_level) in rt2500pci_set_vgc() argument
638 if (qual->vgc_level_reg != vgc_level) { in rt2500pci_set_vgc()
640 qual->vgc_level = vgc_level; in rt2500pci_set_vgc()
641 qual->vgc_level_reg = vgc_level; in rt2500pci_set_vgc()
646 struct link_qual *qual) in rt2500pci_reset_tuner() argument
648 rt2500pci_set_vgc(rt2x00dev, qual, 0x48); in rt2500pci_reset_tuner()
652 struct link_qual *qual, const u32 count) in rt2500pci_link_tuner() argument
[all …]
Drt73usb.c884 struct link_qual *qual) in rt73usb_link_stats() argument
892 qual->rx_failed = rt2x00_get_field32(reg, STA_CSR0_FCS_ERROR); in rt73usb_link_stats()
898 qual->false_cca = rt2x00_get_field32(reg, STA_CSR1_FALSE_CCA_ERROR); in rt73usb_link_stats()
902 struct link_qual *qual, u8 vgc_level) in rt73usb_set_vgc() argument
904 if (qual->vgc_level != vgc_level) { in rt73usb_set_vgc()
906 qual->vgc_level = vgc_level; in rt73usb_set_vgc()
907 qual->vgc_level_reg = vgc_level; in rt73usb_set_vgc()
912 struct link_qual *qual) in rt73usb_reset_tuner() argument
914 rt73usb_set_vgc(rt2x00dev, qual, 0x20); in rt73usb_reset_tuner()
918 struct link_qual *qual, const u32 count) in rt73usb_link_tuner() argument
[all …]
Drt61pci.c1009 struct link_qual *qual) in rt61pci_link_stats() argument
1017 qual->rx_failed = rt2x00_get_field32(reg, STA_CSR0_FCS_ERROR); in rt61pci_link_stats()
1023 qual->false_cca = rt2x00_get_field32(reg, STA_CSR1_FALSE_CCA_ERROR); in rt61pci_link_stats()
1027 struct link_qual *qual, u8 vgc_level) in rt61pci_set_vgc() argument
1029 if (qual->vgc_level != vgc_level) { in rt61pci_set_vgc()
1031 qual->vgc_level = vgc_level; in rt61pci_set_vgc()
1032 qual->vgc_level_reg = vgc_level; in rt61pci_set_vgc()
1037 struct link_qual *qual) in rt61pci_reset_tuner() argument
1039 rt61pci_set_vgc(rt2x00dev, qual, 0x20); in rt61pci_reset_tuner()
1043 struct link_qual *qual, const u32 count) in rt61pci_link_tuner() argument
[all …]
Drt2400pci.c579 struct link_qual *qual) in rt2400pci_link_stats() argument
588 qual->rx_failed = rt2x00_get_field32(reg, CNT0_FCS_ERROR); in rt2400pci_link_stats()
594 qual->false_cca = bbp; in rt2400pci_link_stats()
598 struct link_qual *qual, u8 vgc_level) in rt2400pci_set_vgc() argument
600 if (qual->vgc_level_reg != vgc_level) { in rt2400pci_set_vgc()
602 qual->vgc_level = vgc_level; in rt2400pci_set_vgc()
603 qual->vgc_level_reg = vgc_level; in rt2400pci_set_vgc()
608 struct link_qual *qual) in rt2400pci_reset_tuner() argument
610 rt2400pci_set_vgc(rt2x00dev, qual, 0x08); in rt2400pci_reset_tuner()
614 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.h307 struct link_qual qual; member
560 struct link_qual *qual);
562 struct link_qual *qual);
564 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/media/platform/vivid/
Dvivid-tpg.h111 enum tpg_quality qual; member
190 enum tpg_quality qual, unsigned qual_offset) in tpg_s_quality() argument
192 if (tpg->qual == qual && tpg->qual_offset == qual_offset) in tpg_s_quality()
194 tpg->qual = qual; in tpg_s_quality()
201 return tpg->qual; in tpg_g_quality()
/drivers/staging/vt6655/
Diwctl.c83 pDevice->wstats.qual.qual = (unsigned char)pDevice->scStatistic.LinkQuality; in iwctl_get_wireless_stats()
85 pDevice->wstats.qual.qual = pDevice->byCurrSQ; in iwctl_get_wireless_stats()
88 pDevice->wstats.qual.level = ldBm; in iwctl_get_wireless_stats()
89 pDevice->wstats.qual.noise = 0; in iwctl_get_wireless_stats()
90 pDevice->wstats.qual.updated = 1; in iwctl_get_wireless_stats()
267 iwe.u.qual.level = ldBm; in iwctl_giwscan()
268 iwe.u.qual.noise = 0; in iwctl_giwscan()
271 iwe.u.qual.qual = 100; in iwctl_giwscan()
273 iwe.u.qual.qual = 0; in iwctl_giwscan()
275 iwe.u.qual.qual = (40 - (-ldBm - 50)) * 100 / 40; in iwctl_giwscan()
[all …]
/drivers/staging/rtl8192u/
Dr8192U_wx.c269 range->max_qual.qual = 100; in rtl8180_wx_get_range()
275 range->avg_qual.qual = 92; /* > 8% missed beacons is 'bad' */ in rtl8180_wx_get_range()
974 wstats->qual.qual = 0; in r8192_get_wireless_stats()
975 wstats->qual.level = 0; in r8192_get_wireless_stats()
976 wstats->qual.noise = 0; in r8192_get_wireless_stats()
977 wstats->qual.updated = IW_QUAL_ALL_UPDATED | IW_QUAL_DBM; in r8192_get_wireless_stats()
985 wstats->qual.level = tmp_level; in r8192_get_wireless_stats()
986 wstats->qual.qual = tmp_qual; in r8192_get_wireless_stats()
987 wstats->qual.noise = tmp_noise; in r8192_get_wireless_stats()
988 wstats->qual.updated = IW_QUAL_ALL_UPDATED | IW_QUAL_DBM; in r8192_get_wireless_stats()
/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.c404 range->max_qual.qual = 100; in rtl8192_wx_get_range()
409 range->avg_qual.qual = 70; /* > 8% missed beacons is 'bad' */ in rtl8192_wx_get_range()
1321 wstats->qual.qual = 10; in r8192_get_wireless_stats()
1322 wstats->qual.level = 0; in r8192_get_wireless_stats()
1323 wstats->qual.noise = -100; in r8192_get_wireless_stats()
1324 wstats->qual.updated = IW_QUAL_ALL_UPDATED | IW_QUAL_DBM; in r8192_get_wireless_stats()
1332 wstats->qual.level = tmp_level; in r8192_get_wireless_stats()
1333 wstats->qual.qual = tmp_qual; in r8192_get_wireless_stats()
1334 wstats->qual.noise = tmp_noise; in r8192_get_wireless_stats()
1335 wstats->qual.updated = IW_QUAL_ALL_UPDATED | IW_QUAL_DBM; in r8192_get_wireless_stats()
/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/staging/rtl8192e/
Drtllib_wx.c192 iwe.u.qual.qual = network->stats.signal; in rtl819x_translate_scan()
193 iwe.u.qual.level = network->stats.rssi; in rtl819x_translate_scan()
194 iwe.u.qual.noise = network->stats.noise; in rtl819x_translate_scan()
195 iwe.u.qual.updated = network->stats.mask & RTLLIB_STATMASK_WEMASK; in rtl819x_translate_scan()
197 iwe.u.qual.updated |= IW_QUAL_LEVEL_INVALID; in rtl819x_translate_scan()
199 iwe.u.qual.updated |= IW_QUAL_NOISE_INVALID; in rtl819x_translate_scan()
201 iwe.u.qual.updated |= IW_QUAL_QUAL_INVALID; in rtl819x_translate_scan()
202 iwe.u.qual.updated = 7; in rtl819x_translate_scan()
/drivers/net/wireless/
Datmel.c1277 priv->wstats.qual.qual = 0; in atmel_get_wireless_stats()
1278 priv->wstats.qual.level = 0; in atmel_get_wireless_stats()
1279 priv->wstats.qual.updated = (IW_QUAL_QUAL_INVALID in atmel_get_wireless_stats()
1282 priv->wstats.qual.noise = 0; in atmel_get_wireless_stats()
1283 priv->wstats.qual.updated |= IW_QUAL_NOISE_INVALID; in atmel_get_wireless_stats()
1287 priv->wstats.qual.qual = 0; in atmel_get_wireless_stats()
1288 priv->wstats.qual.level = 0; in atmel_get_wireless_stats()
1289 priv->wstats.qual.noise = 0; in atmel_get_wireless_stats()
1290 priv->wstats.qual.updated = IW_QUAL_QUAL_INVALID in atmel_get_wireless_stats()
2387 iwe.u.qual.level = priv->BSSinfo[i].RSSI; in atmel_get_scan()
[all …]
Dairo.c3392 wstats.qual = hdr.rssi[0]; in airo_handle_rx()
3397 wstats.noise = ai->wstats.qual.noise; in airo_handle_rx()
3682 wstats.qual = 0; /* XXX Where do I get that info from ??? */ in mpi_receive_802_3()
3760 wstats.qual = hdr.rssi[0]; in mpi_receive_802_11()
3765 wstats.noise = ai->wstats.qual.noise; in mpi_receive_802_11()
6913 range->max_qual.qual = 100; /* % */ in airo_get_range()
6915 range->max_qual.qual = airo_get_max_quality(&cap_rid); in airo_get_range()
6923 range->avg_qual.qual = 50; /* % */ in airo_get_range()
6926 range->avg_qual.qual = airo_get_avg_quality(&cap_rid); in airo_get_range()
7140 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 …]
/drivers/staging/rtl8712/
Drtl871x_ioctl_linux.c357 iwe.u.qual.updated = (u8)(IW_QUAL_QUAL_INVALID | IW_QUAL_LEVEL_UPDATED | in translate_scan()
359 iwe.u.qual.level = rssi; /* signal strength */ in translate_scan()
360 iwe.u.qual.qual = 0; /* signal quality */ in translate_scan()
361 iwe.u.qual.noise = 0; /* noise level */ in translate_scan()
914 range->max_qual.qual = 100; in r8711_wx_get_range()
918 range->avg_qual.qual = 92; /* > 8% missed beacons is 'bad' */ in r8711_wx_get_range()
2350 piwstats->qual.qual = 0; in r871x_get_wireless_stats()
2351 piwstats->qual.level = 0; in r871x_get_wireless_stats()
2352 piwstats->qual.noise = 0; in r871x_get_wireless_stats()
2358 piwstats->qual.level = tmp_level; in r871x_get_wireless_stats()
[all …]
/drivers/usb/gadget/legacy/
Dinode.c1374 struct usb_qualifier_descriptor qual; in make_qualifier() local
1377 qual.bLength = sizeof qual; in make_qualifier()
1378 qual.bDescriptorType = USB_DT_DEVICE_QUALIFIER; in make_qualifier()
1379 qual.bcdUSB = cpu_to_le16 (0x0200); in make_qualifier()
1382 qual.bDeviceClass = desc->bDeviceClass; in make_qualifier()
1383 qual.bDeviceSubClass = desc->bDeviceSubClass; in make_qualifier()
1384 qual.bDeviceProtocol = desc->bDeviceProtocol; in make_qualifier()
1387 qual.bMaxPacketSize0 = dev->gadget->ep0->maxpacket; in make_qualifier()
1389 qual.bNumConfigurations = 1; in make_qualifier()
1390 qual.bRESERVED = 0; in make_qualifier()
[all …]
/drivers/usb/gadget/
Dcomposite.c601 struct usb_qualifier_descriptor *qual = cdev->req->buf; in device_qual() local
603 qual->bLength = sizeof(*qual); in device_qual()
604 qual->bDescriptorType = USB_DT_DEVICE_QUALIFIER; in device_qual()
606 qual->bcdUSB = cdev->desc.bcdUSB; in device_qual()
607 qual->bDeviceClass = cdev->desc.bDeviceClass; in device_qual()
608 qual->bDeviceSubClass = cdev->desc.bDeviceSubClass; in device_qual()
609 qual->bDeviceProtocol = cdev->desc.bDeviceProtocol; in device_qual()
611 qual->bMaxPacketSize0 = cdev->gadget->ep0->maxpacket; in device_qual()
612 qual->bNumConfigurations = count_configs(cdev, USB_DT_DEVICE_QUALIFIER); in device_qual()
613 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.c303 iwe.u.qual.updated = IW_QUAL_QUAL_UPDATED | IW_QUAL_LEVEL_UPDATED | IW_QUAL_NOISE_INVALID; in translate_scan()
314 iwe.u.qual.level = (u8)ss; in translate_scan()
315 iwe.u.qual.qual = (u8)sq; /* signal quality */ in translate_scan()
316 iwe.u.qual.noise = 0; /* noise level */ in translate_scan()
886 range->max_qual.qual = 100; in rtw_wx_get_range()
891 range->avg_qual.qual = 92; /* > 8% missed beacons is 'bad' */ in rtw_wx_get_range()
3081 piwstats->qual.qual = 0; in rtw_get_wireless_stats()
3082 piwstats->qual.level = 0; in rtw_get_wireless_stats()
3083 piwstats->qual.noise = 0; in rtw_get_wireless_stats()
3089 piwstats->qual.level = tmp_level; in rtw_get_wireless_stats()
[all …]
/drivers/staging/wlan-ng/
Dprism2sta.c375 qualmsg->link.data = le16_to_cpu(hw->qual.CQ_currBSS); in prism2sta_mlmerequest()
376 qualmsg->level.data = le16_to_cpu(hw->qual.ASL_currBSS); in prism2sta_mlmerequest()
377 qualmsg->noise.data = le16_to_cpu(hw->qual.ANL_currFC); in prism2sta_mlmerequest()
1950 &hw->qual, HFA384x_RID_DBMCOMMSQUALITY_LEN); in prism2sta_commsqual_defer()
1958 le16_to_cpu(hw->qual.CQ_currBSS), in prism2sta_commsqual_defer()
1959 le16_to_cpu(hw->qual.ASL_currBSS), in prism2sta_commsqual_defer()
1960 le16_to_cpu(hw->qual.ANL_currFC)); in prism2sta_commsqual_defer()

12