Home
last modified time | relevance | path

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

12

/drivers/net/wireless/ralink/rt2x00/
Drt2x00link.c40 if (rt2x00dev->link.qual.rx_success) in rt2x00link_antenna_get_link_rssi()
184 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
255 u8 vgc_level = qual->vgc_level_reg; in rt2x00link_reset_tuner()
269 memset(qual, 0, sizeof(*qual)); in rt2x00link_reset_tuner()
277 qual->vgc_level_reg = vgc_level; in rt2x00link_reset_tuner()
282 rt2x00dev->ops->lib->reset_tuner(rt2x00dev, 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()
[all …]
Drt2500pci.c610 struct link_qual *qual) in rt2500pci_link_stats() argument
618 qual->rx_failed = rt2x00_get_field32(reg, CNT0_FCS_ERROR); in rt2500pci_link_stats()
624 qual->false_cca = rt2x00_get_field32(reg, CNT3_FALSE_CCA); in rt2500pci_link_stats()
628 struct link_qual *qual, u8 vgc_level) in rt2500pci_set_vgc() argument
630 if (qual->vgc_level_reg != vgc_level) { in rt2500pci_set_vgc()
632 qual->vgc_level = vgc_level; in rt2500pci_set_vgc()
633 qual->vgc_level_reg = vgc_level; in rt2500pci_set_vgc()
638 struct link_qual *qual) in rt2500pci_reset_tuner() argument
640 rt2500pci_set_vgc(rt2x00dev, qual, 0x48); in rt2500pci_reset_tuner()
644 struct link_qual *qual, const u32 count) in rt2500pci_link_tuner() argument
[all …]
Drt73usb.c876 struct link_qual *qual) in rt73usb_link_stats() argument
884 qual->rx_failed = rt2x00_get_field32(reg, STA_CSR0_FCS_ERROR); in rt73usb_link_stats()
890 qual->false_cca = rt2x00_get_field32(reg, STA_CSR1_FALSE_CCA_ERROR); in rt73usb_link_stats()
894 struct link_qual *qual, u8 vgc_level) in rt73usb_set_vgc() argument
896 if (qual->vgc_level != vgc_level) { in rt73usb_set_vgc()
898 qual->vgc_level = vgc_level; in rt73usb_set_vgc()
899 qual->vgc_level_reg = vgc_level; in rt73usb_set_vgc()
904 struct link_qual *qual) in rt73usb_reset_tuner() argument
906 rt73usb_set_vgc(rt2x00dev, qual, 0x20); in rt73usb_reset_tuner()
910 struct link_qual *qual, const u32 count) in rt73usb_link_tuner() argument
[all …]
Drt61pci.c916 struct link_qual *qual) in rt61pci_link_stats() argument
924 qual->rx_failed = rt2x00_get_field32(reg, STA_CSR0_FCS_ERROR); in rt61pci_link_stats()
930 qual->false_cca = rt2x00_get_field32(reg, STA_CSR1_FALSE_CCA_ERROR); in rt61pci_link_stats()
934 struct link_qual *qual, u8 vgc_level) in rt61pci_set_vgc() argument
936 if (qual->vgc_level != vgc_level) { in rt61pci_set_vgc()
938 qual->vgc_level = vgc_level; in rt61pci_set_vgc()
939 qual->vgc_level_reg = vgc_level; in rt61pci_set_vgc()
944 struct link_qual *qual) in rt61pci_reset_tuner() argument
946 rt61pci_set_vgc(rt2x00dev, qual, 0x20); in rt61pci_reset_tuner()
950 struct link_qual *qual, const u32 count) in rt61pci_link_tuner() argument
[all …]
Drt2400pci.c571 struct link_qual *qual) in rt2400pci_link_stats() argument
580 qual->rx_failed = rt2x00_get_field32(reg, CNT0_FCS_ERROR); in rt2400pci_link_stats()
586 qual->false_cca = bbp; in rt2400pci_link_stats()
590 struct link_qual *qual, u8 vgc_level) in rt2400pci_set_vgc() argument
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()
606 struct link_qual *qual, const u32 count) in rt2400pci_link_tuner() argument
[all …]
Drt2800lib.h228 void rt2800_link_stats(struct rt2x00_dev *rt2x00dev, struct link_qual *qual);
229 void rt2800_reset_tuner(struct rt2x00_dev *rt2x00dev, struct link_qual *qual);
230 void rt2800_link_tuner(struct rt2x00_dev *rt2x00dev, struct link_qual *qual,
Drt2x00.h310 struct link_qual qual; member
565 struct link_qual *qual);
567 struct link_qual *qual);
569 struct link_qual *qual, const u32 count);
/drivers/net/wireless/intel/ipw2x00/
Dlibipw_wx.c143 iwe.u.qual.updated = IW_QUAL_QUAL_UPDATED | IW_QUAL_LEVEL_UPDATED | in libipw_translate_scan()
147 iwe.u.qual.updated |= IW_QUAL_QUAL_INVALID | in libipw_translate_scan()
149 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()
172 iwe.u.qual.updated |= IW_QUAL_NOISE_INVALID; in libipw_translate_scan()
[all …]
/drivers/staging/rtl8192u/
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()
/drivers/scsi/qla2xxx/
Dqla_inline.h279 u16 qual; in qla2x00_set_retry_delay_timestamp() local
300 qual = sts_qual & SQ_QUAL_MASK; in qla2x00_set_retry_delay_timestamp()
301 if (qual < 1 || qual > 0x3fef) in qla2x00_set_retry_delay_timestamp()
303 qual = min(qual, (u16)SQ_MAX_WAIT_TIME); in qla2x00_set_retry_delay_timestamp()
306 fcport->retry_delay_timestamp = jiffies + (qual * HZ / 10); in qla2x00_set_retry_delay_timestamp()
310 fcport->port_name, sts_qual, qual * 100); in qla2x00_set_retry_delay_timestamp()
/drivers/net/wireless/intersil/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.c324 range->max_qual.qual = 100; in _rtl92e_wx_get_range()
329 range->avg_qual.qual = 70; /* > 8% missed beacons is 'bad' */ in _rtl92e_wx_get_range()
1191 wstats->qual.qual = 10; in _rtl92e_get_wireless_stats()
1192 wstats->qual.level = 0; in _rtl92e_get_wireless_stats()
1193 wstats->qual.noise = 0x100 - 100; /* -100 dBm */ in _rtl92e_get_wireless_stats()
1194 wstats->qual.updated = IW_QUAL_ALL_UPDATED | IW_QUAL_DBM; in _rtl92e_get_wireless_stats()
1202 wstats->qual.level = tmp_level; in _rtl92e_get_wireless_stats()
1203 wstats->qual.qual = tmp_qual; in _rtl92e_get_wireless_stats()
1204 wstats->qual.noise = tmp_noise; in _rtl92e_get_wireless_stats()
1205 wstats->qual.updated = IW_QUAL_ALL_UPDATED | IW_QUAL_DBM; in _rtl92e_get_wireless_stats()
/drivers/staging/rtl8192u/ieee80211/
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()
/drivers/staging/rtl8192e/
Drtllib_wx.c172 iwe.u.qual.qual = network->stats.signal; in rtl819x_translate_scan()
173 iwe.u.qual.level = network->stats.rssi; in rtl819x_translate_scan()
174 iwe.u.qual.noise = network->stats.noise; in rtl819x_translate_scan()
175 iwe.u.qual.updated = network->stats.mask & RTLLIB_STATMASK_WEMASK; in rtl819x_translate_scan()
177 iwe.u.qual.updated |= IW_QUAL_LEVEL_INVALID; in rtl819x_translate_scan()
179 iwe.u.qual.updated |= IW_QUAL_NOISE_INVALID; in rtl819x_translate_scan()
181 iwe.u.qual.updated |= IW_QUAL_QUAL_INVALID; in rtl819x_translate_scan()
182 iwe.u.qual.updated = 7; in rtl819x_translate_scan()
/drivers/staging/ks7010/
Dks_wlan_net.c938 range->max_qual.qual = 100; in ks_wlan_get_range()
1014 range->avg_qual.qual = 50; in ks_wlan_get_range()
1078 vwrq->qual.qual = 0; /* not supported */ in ks_wlan_get_iwstats()
1079 vwrq->qual.level = priv->wstats.qual.level; in ks_wlan_get_iwstats()
1080 vwrq->qual.noise = 0; /* not supported */ in ks_wlan_get_iwstats()
1081 vwrq->qual.updated = 0; in ks_wlan_get_iwstats()
1093 struct iw_quality qual[LOCAL_APLIST_MAX]; in ks_wlan_get_aplist() local
1102 qual[i].level = 256 - priv->aplist.ap[i].rssi; in ks_wlan_get_aplist()
1103 qual[i].qual = priv->aplist.ap[i].sq; in ks_wlan_get_aplist()
1104 qual[i].noise = 0; /* invalid noise value */ in ks_wlan_get_aplist()
[all …]
/drivers/net/wireless/atmel/
Datmel.c1273 priv->wstats.qual.qual = 0; in atmel_get_wireless_stats()
1274 priv->wstats.qual.level = 0; in atmel_get_wireless_stats()
1275 priv->wstats.qual.updated = (IW_QUAL_QUAL_INVALID in atmel_get_wireless_stats()
1278 priv->wstats.qual.noise = 0; in atmel_get_wireless_stats()
1279 priv->wstats.qual.updated |= IW_QUAL_NOISE_INVALID; 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()
1286 priv->wstats.qual.updated = IW_QUAL_QUAL_INVALID in atmel_get_wireless_stats()
2366 iwe.u.qual.level = priv->BSSinfo[i].RSSI; in atmel_get_scan()
[all …]
/drivers/net/wireless/intersil/hostap/
Dhostap_ioctl.c49 wstats->qual.updated = IW_QUAL_ALL_UPDATED | in hostap_get_wireless_stats()
52 wstats->qual.qual = local->comms_qual; in hostap_get_wireless_stats()
53 wstats->qual.level = local->avg_signal; 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()
59 wstats->qual.updated = IW_QUAL_ALL_INVALID; in hostap_get_wireless_stats()
493 struct iw_quality *qual; in prism2_ioctl_giwaplist() local
506 qual = kmalloc_array(IW_MAX_AP, sizeof(struct iw_quality), GFP_KERNEL); in prism2_ioctl_giwaplist()
[all …]
Dhostap_ap.c2326 struct iw_quality qual[], int buf_size, in prism2_ap_get_sta_qual() argument
2344 qual[count].qual = sta->last_rx_signal < 27 ? in prism2_ap_get_sta_qual()
2347 qual[count].qual = sta->last_rx_signal - in prism2_ap_get_sta_qual()
2349 qual[count].level = HFA384X_LEVEL_TO_dBm(sta->last_rx_signal); in prism2_ap_get_sta_qual()
2350 qual[count].noise = HFA384X_LEVEL_TO_dBm(sta->last_rx_silence); in prism2_ap_get_sta_qual()
2351 qual[count].updated = sta->last_rx_updated; in prism2_ap_get_sta_qual()
2416 iwe.u.qual.qual = sta->last_rx_signal < 27 ? in prism2_ap_translate_scan()
2419 iwe.u.qual.qual = sta->last_rx_signal - in prism2_ap_translate_scan()
2421 iwe.u.qual.level = HFA384X_LEVEL_TO_dBm(sta->last_rx_signal); in prism2_ap_translate_scan()
2422 iwe.u.qual.noise = HFA384X_LEVEL_TO_dBm(sta->last_rx_silence); in prism2_ap_translate_scan()
[all …]
/drivers/usb/gadget/legacy/
Dinode.c1284 struct usb_qualifier_descriptor qual; in make_qualifier() local
1287 qual.bLength = sizeof qual; in make_qualifier()
1288 qual.bDescriptorType = USB_DT_DEVICE_QUALIFIER; in make_qualifier()
1289 qual.bcdUSB = cpu_to_le16 (0x0200); in make_qualifier()
1292 qual.bDeviceClass = desc->bDeviceClass; in make_qualifier()
1293 qual.bDeviceSubClass = desc->bDeviceSubClass; in make_qualifier()
1294 qual.bDeviceProtocol = desc->bDeviceProtocol; in make_qualifier()
1297 qual.bMaxPacketSize0 = dev->gadget->ep0->maxpacket; in make_qualifier()
1299 qual.bNumConfigurations = 1; in make_qualifier()
1300 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()
875 range->max_qual.qual = 100; in r8711_wx_get_range()
879 range->avg_qual.qual = 92; /* > 8% missed beacons is 'bad' */ 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()
[all …]
/drivers/net/wireless/cisco/
Dairo.c3408 wstats.qual = hdr.rssi[0]; in airo_handle_rx()
3413 wstats.noise = ai->wstats.qual.noise; in airo_handle_rx()
3703 wstats.qual = 0; /* XXX Where do I get that info from ??? */ in mpi_receive_802_3()
3781 wstats.qual = hdr.rssi[0]; in mpi_receive_802_11()
3786 wstats.noise = ai->wstats.qual.noise; in mpi_receive_802_11()
6958 range->max_qual.qual = 100; /* % */ in airo_get_range()
6960 range->max_qual.qual = airo_get_max_quality(&cap_rid); in airo_get_range()
6968 range->avg_qual.qual = 50; /* % */ in airo_get_range()
6971 range->avg_qual.qual = airo_get_avg_quality(&cap_rid); in airo_get_range()
7186 struct iw_quality *qual; in airo_get_aplist() local
[all …]
/drivers/staging/wlan-ng/
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()
1932 &hw->qual, HFA384x_RID_DBMCOMMSQUALITY_LEN); in prism2sta_commsqual_defer()
1940 le16_to_cpu(hw->qual.cq_curr_bss), in prism2sta_commsqual_defer()
1941 le16_to_cpu(hw->qual.asl_curr_bss), in prism2sta_commsqual_defer()
1942 le16_to_cpu(hw->qual.anl_curr_fc)); in prism2sta_commsqual_defer()
/drivers/usb/gadget/
Dcomposite.c842 struct usb_qualifier_descriptor *qual = cdev->req->buf; in device_qual() local
844 qual->bLength = sizeof(*qual); in device_qual()
845 qual->bDescriptorType = USB_DT_DEVICE_QUALIFIER; in device_qual()
847 qual->bcdUSB = cdev->desc.bcdUSB; in device_qual()
848 qual->bDeviceClass = cdev->desc.bDeviceClass; in device_qual()
849 qual->bDeviceSubClass = cdev->desc.bDeviceSubClass; in device_qual()
850 qual->bDeviceProtocol = cdev->desc.bDeviceProtocol; in device_qual()
852 qual->bMaxPacketSize0 = cdev->gadget->ep0->maxpacket; in device_qual()
853 qual->bNumConfigurations = count_configs(cdev, USB_DT_DEVICE_QUALIFIER); in device_qual()
854 qual->bRESERVED = 0; in device_qual()
/drivers/net/wireless/
Dray_cs.c1339 range->max_qual.qual = 0; in ray_get_range()
1409 local->wstats.qual.qual = local->spy_data.spy_stat[0].qual; in ray_get_wireless_stats()
1410 local->wstats.qual.level = local->spy_data.spy_stat[0].level; in ray_get_wireless_stats()
1411 local->wstats.qual.noise = local->spy_data.spy_stat[0].noise; in ray_get_wireless_stats()
1412 local->wstats.qual.updated = in ray_get_wireless_stats()
1418 local->wstats.qual.noise = readb(&p->rxnoise); in ray_get_wireless_stats()
1419 local->wstats.qual.updated |= 4; in ray_get_wireless_stats()
2258 local->wstats.qual.level = siglev; in rx_data()
2260 local->wstats.qual.updated = 0x2; in rx_data()
/drivers/net/wireless/zydas/
Dzd1201.c1051 range->max_qual.qual = 128; in zd1201_get_range()
1093 zd->iwstats.qual.level = le16_to_cpu(((__le16 *)buffer)[1]); in zd1201_get_wap()
1095 zd->iwstats.qual.updated = 2; in zd1201_get_wap()
1183 iwe.u.qual.qual = zd->rxdata[i+4]; in zd1201_get_scan()
1184 iwe.u.qual.noise= zd->rxdata[i+2]/10-100; in zd1201_get_scan()
1185 iwe.u.qual.level = (256+zd->rxdata[i+4]*100)/255-100; in zd1201_get_scan()
1186 iwe.u.qual.updated = 7; in zd1201_get_scan()

12