Lines Matching refs:rxdata
222 memcpy(zd->rxdata, data, urb->actual_length); in zd1201_usbrx()
296 if (copylen+zd->rxlen > sizeof(zd->rxdata)) in zd1201_usbrx()
298 memcpy(zd->rxdata+zd->rxlen, data+i+4, copylen); in zd1201_usbrx()
429 code = le16_to_cpu(*(__le16*)(&zd->rxdata[4])); in zd1201_getconfig()
430 rid_fid = le16_to_cpu(*(__le16*)(&zd->rxdata[6])); in zd1201_getconfig()
431 length = le16_to_cpu(*(__le16*)(&zd->rxdata[8])); in zd1201_getconfig()
457 if (zd->rxdata[zd->rxlen - 1] != ZD1201_PACKET_RESOURCE) { in zd1201_getconfig()
459 zd->rxdata[zd->rxlen-1]); in zd1201_getconfig()
464 pdata = zd->rxdata; in zd1201_getconfig()
579 if (!zd->rxlen || le16_to_cpu(*(__le16*)&zd->rxdata[6]) != rid) { in zd1201_setconfig()
1134 if (le16_to_cpu(*(__le16*)&zd->rxdata[2]) != ZD1201_INQ_SCANRESULTS) in zd1201_get_scan()
1140 memcpy(iwe.u.ap_addr.sa_data, zd->rxdata+i+6, 6); in zd1201_get_scan()
1145 iwe.u.data.length = zd->rxdata[i+16]; in zd1201_get_scan()
1148 &iwe, zd->rxdata+i+18); in zd1201_get_scan()
1151 if (zd->rxdata[i+14]&0x01) in zd1201_get_scan()
1159 iwe.u.freq.m = zd->rxdata[i+0]; in zd1201_get_scan()
1167 for (j=0; j<10; j++) if (zd->rxdata[i+50+j]) { in zd1201_get_scan()
1168 iwe.u.bitrate.value = (zd->rxdata[i+50+j]&0x7f)*500000; in zd1201_get_scan()
1175 if (zd->rxdata[i+14]&0x10) in zd1201_get_scan()
1182 iwe.u.qual.qual = zd->rxdata[i+4]; in zd1201_get_scan()
1183 iwe.u.qual.noise= zd->rxdata[i+2]/10-100; in zd1201_get_scan()
1184 iwe.u.qual.level = (256+zd->rxdata[i+4]*100)/255-100; in zd1201_get_scan()