/linux-3.4.99/drivers/net/wireless/rt2x00/ |
D | rt2x00link.c | 80 if (ant->rssi_ant.avg && rt2x00dev->link.qual.rx_success) in rt2x00link_antenna_get_link_rssi() 224 struct link_qual *qual = &rt2x00dev->link.qual; in rt2x00link_update_stats() local 238 qual->rx_success++; in rt2x00link_update_stats() 296 struct link_qual *qual = &rt2x00dev->link.qual; in rt2x00link_reset_tuner() local 297 u8 vgc_level = qual->vgc_level_reg; in rt2x00link_reset_tuner() 311 memset(qual, 0, sizeof(*qual)); in rt2x00link_reset_tuner() 318 qual->vgc_level_reg = vgc_level; in rt2x00link_reset_tuner() 323 rt2x00dev->ops->lib->reset_tuner(rt2x00dev, qual); in rt2x00link_reset_tuner() 331 struct link_qual *qual = &rt2x00dev->link.qual; in rt2x00link_reset_qual() local 333 qual->rx_success = 0; in rt2x00link_reset_qual() [all …]
|
D | rt2500pci.c | 620 struct link_qual *qual) in rt2500pci_link_stats() argument 628 qual->rx_failed = rt2x00_get_field32(reg, CNT0_FCS_ERROR); in rt2500pci_link_stats() 634 qual->false_cca = rt2x00_get_field32(reg, CNT3_FALSE_CCA); in rt2500pci_link_stats() 638 struct link_qual *qual, u8 vgc_level) in rt2500pci_set_vgc() argument 640 if (qual->vgc_level_reg != vgc_level) { in rt2500pci_set_vgc() 642 qual->vgc_level = vgc_level; in rt2500pci_set_vgc() 643 qual->vgc_level_reg = vgc_level; in rt2500pci_set_vgc() 648 struct link_qual *qual) in rt2500pci_reset_tuner() argument 650 rt2500pci_set_vgc(rt2x00dev, qual, 0x48); in rt2500pci_reset_tuner() 654 struct link_qual *qual, const u32 count) in rt2500pci_link_tuner() argument [all …]
|
D | rt73usb.c | 887 struct link_qual *qual) in rt73usb_link_stats() argument 895 qual->rx_failed = rt2x00_get_field32(reg, STA_CSR0_FCS_ERROR); in rt73usb_link_stats() 901 qual->false_cca = rt2x00_get_field32(reg, STA_CSR1_FALSE_CCA_ERROR); in rt73usb_link_stats() 905 struct link_qual *qual, u8 vgc_level) in rt73usb_set_vgc() argument 907 if (qual->vgc_level != vgc_level) { in rt73usb_set_vgc() 909 qual->vgc_level = vgc_level; in rt73usb_set_vgc() 910 qual->vgc_level_reg = vgc_level; in rt73usb_set_vgc() 915 struct link_qual *qual) in rt73usb_reset_tuner() argument 917 rt73usb_set_vgc(rt2x00dev, qual, 0x20); in rt73usb_reset_tuner() 921 struct link_qual *qual, const u32 count) in rt73usb_link_tuner() argument [all …]
|
D | rt61pci.c | 1008 struct link_qual *qual) in rt61pci_link_stats() argument 1016 qual->rx_failed = rt2x00_get_field32(reg, STA_CSR0_FCS_ERROR); in rt61pci_link_stats() 1022 qual->false_cca = rt2x00_get_field32(reg, STA_CSR1_FALSE_CCA_ERROR); in rt61pci_link_stats() 1026 struct link_qual *qual, u8 vgc_level) in rt61pci_set_vgc() argument 1028 if (qual->vgc_level != vgc_level) { in rt61pci_set_vgc() 1030 qual->vgc_level = vgc_level; in rt61pci_set_vgc() 1031 qual->vgc_level_reg = vgc_level; in rt61pci_set_vgc() 1036 struct link_qual *qual) in rt61pci_reset_tuner() argument 1038 rt61pci_set_vgc(rt2x00dev, qual, 0x20); in rt61pci_reset_tuner() 1042 struct link_qual *qual, const u32 count) in rt61pci_link_tuner() argument [all …]
|
D | rt2400pci.c | 580 struct link_qual *qual) in rt2400pci_link_stats() argument 589 qual->rx_failed = rt2x00_get_field32(reg, CNT0_FCS_ERROR); in rt2400pci_link_stats() 595 qual->false_cca = bbp; in rt2400pci_link_stats() 599 struct link_qual *qual, u8 vgc_level) in rt2400pci_set_vgc() argument 601 if (qual->vgc_level_reg != vgc_level) { in rt2400pci_set_vgc() 603 qual->vgc_level = vgc_level; in rt2400pci_set_vgc() 604 qual->vgc_level_reg = vgc_level; in rt2400pci_set_vgc() 609 struct link_qual *qual) in rt2400pci_reset_tuner() argument 611 rt2400pci_set_vgc(rt2x00dev, qual, 0x08); in rt2400pci_reset_tuner() 615 struct link_qual *qual, const u32 count) in rt2400pci_link_tuner() argument [all …]
|
D | rt2800lib.h | 182 void rt2800_link_stats(struct rt2x00_dev *rt2x00dev, struct link_qual *qual); 183 void rt2800_reset_tuner(struct rt2x00_dev *rt2x00dev, struct link_qual *qual); 184 void rt2800_link_tuner(struct rt2x00_dev *rt2x00dev, struct link_qual *qual,
|
/linux-3.4.99/net/wireless/ |
D | wext-proc.c | 51 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()
|
D | wext-compat.c | 179 range->max_qual.qual = 70; in cfg80211_wext_giwrange() 180 range->avg_qual.qual = 35; in cfg80211_wext_giwrange() 187 range->max_qual.qual = 100; in cfg80211_wext_giwrange() 188 range->avg_qual.qual = 50; in cfg80211_wext_giwrange() 1347 wstats.qual.updated |= IW_QUAL_LEVEL_UPDATED; in cfg80211_wireless_stats() 1348 wstats.qual.updated |= IW_QUAL_QUAL_UPDATED; in cfg80211_wireless_stats() 1349 wstats.qual.updated |= IW_QUAL_DBM; in cfg80211_wireless_stats() 1350 wstats.qual.level = sig; in cfg80211_wireless_stats() 1355 wstats.qual.qual = sig + 110; in cfg80211_wireless_stats() 1360 wstats.qual.updated |= IW_QUAL_LEVEL_UPDATED; in cfg80211_wireless_stats() [all …]
|
/linux-3.4.99/drivers/s390/scsi/ |
D | zfcp_cfdc.c | 325 union fsf_status_qual *qual) in zfcp_cfdc_port_denied() argument 331 zfcp_act_eval_err(port->adapter, qual->halfword[0]); in zfcp_cfdc_port_denied() 332 zfcp_act_eval_err(port->adapter, qual->halfword[1]); in zfcp_cfdc_port_denied() 344 union fsf_status_qual *qual) in zfcp_cfdc_lun_denied() argument 352 zfcp_act_eval_err(zfcp_sdev->port->adapter, qual->halfword[0]); in zfcp_cfdc_lun_denied() 353 zfcp_act_eval_err(zfcp_sdev->port->adapter, qual->halfword[1]); in zfcp_cfdc_lun_denied() 368 union fsf_status_qual *qual) in zfcp_cfdc_lun_shrng_vltn() argument 372 if (qual->word[0]) in zfcp_cfdc_lun_shrng_vltn() 378 qual->fsf_queue_designator.cssid, in zfcp_cfdc_lun_shrng_vltn() 379 qual->fsf_queue_designator.hla); in zfcp_cfdc_lun_shrng_vltn() [all …]
|
/linux-3.4.99/drivers/net/wireless/ipw2x00/ |
D | libipw_wx.c | 157 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 …]
|
/linux-3.4.99/drivers/staging/vt6655/ |
D | iwctl.c | 107 pDevice->wstats.qual.qual =(unsigned char) pDevice->scStatistic.LinkQuality; in iwctl_get_wireless_stats() 109 pDevice->wstats.qual.qual = pDevice->byCurrSQ; in iwctl_get_wireless_stats() 112 pDevice->wstats.qual.level = ldBm; in iwctl_get_wireless_stats() 114 pDevice->wstats.qual.noise = 0; in iwctl_get_wireless_stats() 115 pDevice->wstats.qual.updated = 1; in iwctl_get_wireless_stats() 301 iwe.u.qual.level = ldBm; in iwctl_giwscan() 302 iwe.u.qual.noise = 0; in iwctl_giwscan() 305 iwe.u.qual.qual = 100; in iwctl_giwscan() 307 iwe.u.qual.qual = 0; in iwctl_giwscan() 309 iwe.u.qual.qual=(40-(-ldBm-50))*100/40; in iwctl_giwscan() [all …]
|
/linux-3.4.99/drivers/staging/vt6656/ |
D | iwctl.c | 73 pDevice->wstats.qual.qual =(BYTE) pDevice->scStatistic.LinkQuality; in iwctl_get_wireless_stats() 75 pDevice->wstats.qual.level = ldBm; in iwctl_get_wireless_stats() 76 pDevice->wstats.qual.noise = 0; in iwctl_get_wireless_stats() 77 pDevice->wstats.qual.updated = 1; in iwctl_get_wireless_stats() 254 iwe.u.qual.level = ldBm; in iwctl_giwscan() 255 iwe.u.qual.noise = 0; in iwctl_giwscan() 258 iwe.u.qual.qual = 100; in iwctl_giwscan() 260 iwe.u.qual.qual = 0; in iwctl_giwscan() 262 iwe.u.qual.qual=(40-(-ldBm-50))*100/40; in iwctl_giwscan() 264 iwe.u.qual.updated=7; in iwctl_giwscan() [all …]
|
/linux-3.4.99/drivers/staging/rtl8187se/ |
D | r8180_wx.c | 258 range->max_qual.qual = 100; in rtl8180_wx_get_range() 264 range->avg_qual.qual = 92; /* > 8% missed beacons is 'bad' */ in rtl8180_wx_get_range() 895 …*((int *)extra) = priv->wstats.qual.level;/*for interface test ,it should be the priv->wstats.qual… in r8180_wx_get_siglevel() 914 …*((int *)extra) = priv->wstats.qual.qual;/* for interface test ,it should be the priv->wstats.qual… in r8180_wx_get_sigqual() 1383 wstats->qual.qual = 0; in r8180_get_wireless_stats() 1384 wstats->qual.level = 0; in r8180_get_wireless_stats() 1385 wstats->qual.noise = 0; in r8180_get_wireless_stats() 1386 wstats->qual.updated = IW_QUAL_ALL_UPDATED | IW_QUAL_DBM; in r8180_get_wireless_stats() 1394 wstats->qual.level = tmp_level; in r8180_get_wireless_stats() 1395 wstats->qual.qual = tmp_qual; in r8180_get_wireless_stats() [all …]
|
/linux-3.4.99/drivers/net/wireless/orinoco/ |
D | wext.c | 119 memset(&wstats->qual, 0, sizeof(wstats->qual)); in orinoco_get_wireless_stats() 123 wstats->qual.qual = priv->spy_data.spy_stat[0].qual; in orinoco_get_wireless_stats() 124 wstats->qual.level = priv->spy_data.spy_stat[0].level; in orinoco_get_wireless_stats() 125 wstats->qual.noise = priv->spy_data.spy_stat[0].noise; in orinoco_get_wireless_stats() 126 wstats->qual.updated = in orinoco_get_wireless_stats() 131 __le16 qual, signal, noise, unused; in orinoco_get_wireless_stats() member 138 wstats->qual.qual = (int)le16_to_cpu(cq.qual); in orinoco_get_wireless_stats() 139 wstats->qual.level = (int)le16_to_cpu(cq.signal) - 0x95; in orinoco_get_wireless_stats() 140 wstats->qual.noise = (int)le16_to_cpu(cq.noise) - 0x95; in orinoco_get_wireless_stats() 141 wstats->qual.updated = in orinoco_get_wireless_stats()
|
/linux-3.4.99/drivers/staging/rtl8187se/ieee80211/ |
D | ieee80211_wx.c | 151 iwe.u.qual.qual = network->stats.signalstrength; in rtl818x_translate_scan() 152 iwe.u.qual.level = network->stats.signal; in rtl818x_translate_scan() 153 iwe.u.qual.noise = network->stats.noise; in rtl818x_translate_scan() 154 iwe.u.qual.updated = network->stats.mask & IEEE80211_STATMASK_WEMASK; in rtl818x_translate_scan() 156 iwe.u.qual.updated |= IW_QUAL_LEVEL_INVALID; in rtl818x_translate_scan() 158 iwe.u.qual.updated |= IW_QUAL_NOISE_INVALID; in rtl818x_translate_scan() 160 iwe.u.qual.updated |= IW_QUAL_QUAL_INVALID; in rtl818x_translate_scan() 161 iwe.u.qual.updated = 7; in rtl818x_translate_scan()
|
/linux-3.4.99/drivers/staging/rtl8192u/ |
D | r8192U_wx.c | 415 range->max_qual.qual = 100; in rtl8180_wx_get_range() 421 range->avg_qual.qual = 92; /* > 8% missed beacons is 'bad' */ in rtl8180_wx_get_range() 1191 wstats->qual.qual = 0; in r8192_get_wireless_stats() 1192 wstats->qual.level = 0; in r8192_get_wireless_stats() 1193 wstats->qual.noise = 0; in r8192_get_wireless_stats() 1194 wstats->qual.updated = IW_QUAL_ALL_UPDATED | IW_QUAL_DBM; in r8192_get_wireless_stats() 1203 wstats->qual.level = tmp_level; in r8192_get_wireless_stats() 1204 wstats->qual.qual = tmp_qual; in r8192_get_wireless_stats() 1205 wstats->qual.noise = tmp_noise; in r8192_get_wireless_stats() 1206 wstats->qual.updated = IW_QUAL_ALL_UPDATED| IW_QUAL_DBM; in r8192_get_wireless_stats()
|
/linux-3.4.99/drivers/staging/rtl8192e/rtl8192e/ |
D | rtl_wx.c | 400 range->max_qual.qual = 100; in rtl8192_wx_get_range() 405 range->avg_qual.qual = 70; /* > 8% missed beacons is 'bad' */ in rtl8192_wx_get_range() 1305 wstats->qual.qual = 10; in r8192_get_wireless_stats() 1306 wstats->qual.level = 0; in r8192_get_wireless_stats() 1307 wstats->qual.noise = -100; in r8192_get_wireless_stats() 1308 wstats->qual.updated = IW_QUAL_ALL_UPDATED | IW_QUAL_DBM; in r8192_get_wireless_stats() 1316 wstats->qual.level = tmp_level; in r8192_get_wireless_stats() 1317 wstats->qual.qual = tmp_qual; in r8192_get_wireless_stats() 1318 wstats->qual.noise = tmp_noise; in r8192_get_wireless_stats() 1319 wstats->qual.updated = IW_QUAL_ALL_UPDATED | IW_QUAL_DBM; in r8192_get_wireless_stats()
|
/linux-3.4.99/drivers/staging/rtl8192u/ieee80211/ |
D | ieee80211_wx.c | 179 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()
|
/linux-3.4.99/drivers/usb/gadget/ |
D | composite.c | 557 struct usb_qualifier_descriptor *qual = cdev->req->buf; in device_qual() local 559 qual->bLength = sizeof(*qual); in device_qual() 560 qual->bDescriptorType = USB_DT_DEVICE_QUALIFIER; in device_qual() 562 qual->bcdUSB = cdev->desc.bcdUSB; in device_qual() 563 qual->bDeviceClass = cdev->desc.bDeviceClass; in device_qual() 564 qual->bDeviceSubClass = cdev->desc.bDeviceSubClass; in device_qual() 565 qual->bDeviceProtocol = cdev->desc.bDeviceProtocol; in device_qual() 567 qual->bMaxPacketSize0 = cdev->gadget->ep0->maxpacket; in device_qual() 568 qual->bNumConfigurations = count_configs(cdev, USB_DT_DEVICE_QUALIFIER); in device_qual() 569 qual->bRESERVED = 0; in device_qual()
|
D | inode.c | 1330 struct usb_qualifier_descriptor qual; in make_qualifier() local 1333 qual.bLength = sizeof qual; in make_qualifier() 1334 qual.bDescriptorType = USB_DT_DEVICE_QUALIFIER; in make_qualifier() 1335 qual.bcdUSB = cpu_to_le16 (0x0200); in make_qualifier() 1338 qual.bDeviceClass = desc->bDeviceClass; in make_qualifier() 1339 qual.bDeviceSubClass = desc->bDeviceSubClass; in make_qualifier() 1340 qual.bDeviceProtocol = desc->bDeviceProtocol; in make_qualifier() 1343 qual.bMaxPacketSize0 = dev->gadget->ep0->maxpacket; in make_qualifier() 1345 qual.bNumConfigurations = 1; in make_qualifier() 1346 qual.bRESERVED = 0; in make_qualifier() [all …]
|
/linux-3.4.99/drivers/staging/rtl8192e/ |
D | rtllib_wx.c | 191 iwe.u.qual.qual = network->stats.signal; in rtl819x_translate_scan() 192 iwe.u.qual.level = network->stats.rssi; in rtl819x_translate_scan() 193 iwe.u.qual.noise = network->stats.noise; in rtl819x_translate_scan() 194 iwe.u.qual.updated = network->stats.mask & RTLLIB_STATMASK_WEMASK; in rtl819x_translate_scan() 196 iwe.u.qual.updated |= IW_QUAL_LEVEL_INVALID; in rtl819x_translate_scan() 198 iwe.u.qual.updated |= IW_QUAL_NOISE_INVALID; in rtl819x_translate_scan() 200 iwe.u.qual.updated |= IW_QUAL_QUAL_INVALID; in rtl819x_translate_scan() 201 iwe.u.qual.updated = 7; in rtl819x_translate_scan()
|
/linux-3.4.99/include/linux/ |
D | wireless.h | 726 __u8 qual; /* link quality (%retries, SNR, member 764 struct iw_quality qual; /* Quality of the link */ member 904 struct iw_quality qual; /* Quality of the link member 944 struct iw_quality qual; /* Quality part of statistics */ member
|
/linux-3.4.99/drivers/staging/wlags49_h2/ |
D | wl_wext.c | 657 range->max_qual.qual = (u_char)HCF_MAX_COMM_QUALITY; in wireless_get_range() 729 range->avg_qual = lp->wstats.qual; in wireless_get_range() 872 struct iw_quality *qual = NULL; in wireless_get_ap_list() local 951 qual = (struct iw_quality *) extra + in wireless_get_ap_list() 2802 iwe.u.qual.level = dbm(probe_resp->signal); in wireless_get_scan() 2803 iwe.u.qual.noise = dbm(probe_resp->silence); in wireless_get_scan() 2804 iwe.u.qual.qual = iwe.u.qual.level - iwe.u.qual.noise; in wireless_get_scan() 2805 iwe.u.qual.updated = lp->probe_results.scan_complete | IW_QUAL_DBM; in wireless_get_scan() 3252 pStats->qual.updated = 0x00; in wl_wireless_stats() 3271 pStats->qual.qual = (u_char) CNV_LITTLE_TO_INT( pQual->coms_qual ); in wl_wireless_stats() [all …]
|
/linux-3.4.99/drivers/net/wireless/hostap/ |
D | hostap_ioctl.c | 58 wstats->qual.updated = IW_QUAL_ALL_UPDATED | in hostap_get_wireless_stats() 61 wstats->qual.qual = local->comms_qual; in hostap_get_wireless_stats() 62 wstats->qual.level = local->avg_signal; in hostap_get_wireless_stats() 63 wstats->qual.noise = local->avg_noise; in hostap_get_wireless_stats() 65 wstats->qual.qual = 0; in hostap_get_wireless_stats() 66 wstats->qual.level = 0; in hostap_get_wireless_stats() 67 wstats->qual.noise = 0; in hostap_get_wireless_stats() 68 wstats->qual.updated = IW_QUAL_ALL_INVALID; in hostap_get_wireless_stats() 502 struct iw_quality *qual; in prism2_ioctl_giwaplist() local 515 qual = kmalloc(sizeof(struct iw_quality) * IW_MAX_AP, GFP_KERNEL); in prism2_ioctl_giwaplist() [all …]
|
/linux-3.4.99/drivers/net/wireless/ |
D | atmel.c | 1277 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() 2395 iwe.u.qual.level = priv->BSSinfo[i].RSSI; in atmel_get_scan() [all …]
|