Lines Matching refs:word

123 				const unsigned int word, const u8 value)  in rt2500usb_bbp_write()  argument
136 rt2x00_set_field16(&reg, PHY_CSR7_REG_ID, word); in rt2500usb_bbp_write()
146 const unsigned int word) in rt2500usb_bbp_read() argument
163 rt2x00_set_field16(&reg, PHY_CSR7_REG_ID, word); in rt2500usb_bbp_read()
180 const unsigned int word, const u32 value) in rt2500usb_rf_write() argument
202 rt2x00_rf_write(rt2x00dev, word, value); in rt2500usb_rf_write()
1061 u32 word; in rt2500usb_write_tx_desc() local
1066 word = rt2x00_desc_read(txd, 0); in rt2500usb_write_tx_desc()
1067 rt2x00_set_field32(&word, TXD_W0_RETRY_LIMIT, txdesc->retry_limit); in rt2500usb_write_tx_desc()
1068 rt2x00_set_field32(&word, TXD_W0_MORE_FRAG, in rt2500usb_write_tx_desc()
1070 rt2x00_set_field32(&word, TXD_W0_ACK, in rt2500usb_write_tx_desc()
1072 rt2x00_set_field32(&word, TXD_W0_TIMESTAMP, in rt2500usb_write_tx_desc()
1074 rt2x00_set_field32(&word, TXD_W0_OFDM, in rt2500usb_write_tx_desc()
1076 rt2x00_set_field32(&word, TXD_W0_NEW_SEQ, in rt2500usb_write_tx_desc()
1078 rt2x00_set_field32(&word, TXD_W0_IFS, txdesc->u.plcp.ifs); in rt2500usb_write_tx_desc()
1079 rt2x00_set_field32(&word, TXD_W0_DATABYTE_COUNT, txdesc->length); in rt2500usb_write_tx_desc()
1080 rt2x00_set_field32(&word, TXD_W0_CIPHER, !!txdesc->cipher); in rt2500usb_write_tx_desc()
1081 rt2x00_set_field32(&word, TXD_W0_KEY_ID, txdesc->key_idx); in rt2500usb_write_tx_desc()
1082 rt2x00_desc_write(txd, 0, word); in rt2500usb_write_tx_desc()
1084 word = rt2x00_desc_read(txd, 1); in rt2500usb_write_tx_desc()
1085 rt2x00_set_field32(&word, TXD_W1_IV_OFFSET, txdesc->iv_offset); in rt2500usb_write_tx_desc()
1086 rt2x00_set_field32(&word, TXD_W1_AIFS, entry->queue->aifs); in rt2500usb_write_tx_desc()
1087 rt2x00_set_field32(&word, TXD_W1_CWMIN, entry->queue->cw_min); in rt2500usb_write_tx_desc()
1088 rt2x00_set_field32(&word, TXD_W1_CWMAX, entry->queue->cw_max); in rt2500usb_write_tx_desc()
1089 rt2x00_desc_write(txd, 1, word); in rt2500usb_write_tx_desc()
1091 word = rt2x00_desc_read(txd, 2); in rt2500usb_write_tx_desc()
1092 rt2x00_set_field32(&word, TXD_W2_PLCP_SIGNAL, txdesc->u.plcp.signal); in rt2500usb_write_tx_desc()
1093 rt2x00_set_field32(&word, TXD_W2_PLCP_SERVICE, txdesc->u.plcp.service); in rt2500usb_write_tx_desc()
1094 rt2x00_set_field32(&word, TXD_W2_PLCP_LENGTH_LOW, in rt2500usb_write_tx_desc()
1096 rt2x00_set_field32(&word, TXD_W2_PLCP_LENGTH_HIGH, in rt2500usb_write_tx_desc()
1098 rt2x00_desc_write(txd, 2, word); in rt2500usb_write_tx_desc()
1319 u16 word; in rt2500usb_validate_eeprom() local
1331 word = rt2x00_eeprom_read(rt2x00dev, EEPROM_ANTENNA); in rt2500usb_validate_eeprom()
1332 if (word == 0xffff) { in rt2500usb_validate_eeprom()
1333 rt2x00_set_field16(&word, EEPROM_ANTENNA_NUM, 2); in rt2500usb_validate_eeprom()
1334 rt2x00_set_field16(&word, EEPROM_ANTENNA_TX_DEFAULT, in rt2500usb_validate_eeprom()
1336 rt2x00_set_field16(&word, EEPROM_ANTENNA_RX_DEFAULT, in rt2500usb_validate_eeprom()
1338 rt2x00_set_field16(&word, EEPROM_ANTENNA_LED_MODE, in rt2500usb_validate_eeprom()
1340 rt2x00_set_field16(&word, EEPROM_ANTENNA_DYN_TXAGC, 0); in rt2500usb_validate_eeprom()
1341 rt2x00_set_field16(&word, EEPROM_ANTENNA_HARDWARE_RADIO, 0); in rt2500usb_validate_eeprom()
1342 rt2x00_set_field16(&word, EEPROM_ANTENNA_RF_TYPE, RF2522); in rt2500usb_validate_eeprom()
1343 rt2x00_eeprom_write(rt2x00dev, EEPROM_ANTENNA, word); in rt2500usb_validate_eeprom()
1344 rt2x00_eeprom_dbg(rt2x00dev, "Antenna: 0x%04x\n", word); in rt2500usb_validate_eeprom()
1347 word = rt2x00_eeprom_read(rt2x00dev, EEPROM_NIC); in rt2500usb_validate_eeprom()
1348 if (word == 0xffff) { in rt2500usb_validate_eeprom()
1349 rt2x00_set_field16(&word, EEPROM_NIC_CARDBUS_ACCEL, 0); in rt2500usb_validate_eeprom()
1350 rt2x00_set_field16(&word, EEPROM_NIC_DYN_BBP_TUNE, 0); in rt2500usb_validate_eeprom()
1351 rt2x00_set_field16(&word, EEPROM_NIC_CCK_TX_POWER, 0); in rt2500usb_validate_eeprom()
1352 rt2x00_eeprom_write(rt2x00dev, EEPROM_NIC, word); in rt2500usb_validate_eeprom()
1353 rt2x00_eeprom_dbg(rt2x00dev, "NIC: 0x%04x\n", word); in rt2500usb_validate_eeprom()
1356 word = rt2x00_eeprom_read(rt2x00dev, EEPROM_CALIBRATE_OFFSET); in rt2500usb_validate_eeprom()
1357 if (word == 0xffff) { in rt2500usb_validate_eeprom()
1358 rt2x00_set_field16(&word, EEPROM_CALIBRATE_OFFSET_RSSI, in rt2500usb_validate_eeprom()
1360 rt2x00_eeprom_write(rt2x00dev, EEPROM_CALIBRATE_OFFSET, word); in rt2500usb_validate_eeprom()
1362 word); in rt2500usb_validate_eeprom()
1365 word = rt2x00_eeprom_read(rt2x00dev, EEPROM_BBPTUNE); in rt2500usb_validate_eeprom()
1366 if (word == 0xffff) { in rt2500usb_validate_eeprom()
1367 rt2x00_set_field16(&word, EEPROM_BBPTUNE_THRESHOLD, 45); in rt2500usb_validate_eeprom()
1368 rt2x00_eeprom_write(rt2x00dev, EEPROM_BBPTUNE, word); in rt2500usb_validate_eeprom()
1369 rt2x00_eeprom_dbg(rt2x00dev, "BBPtune: 0x%04x\n", word); in rt2500usb_validate_eeprom()
1379 word = rt2x00_eeprom_read(rt2x00dev, EEPROM_BBPTUNE_VGC); in rt2500usb_validate_eeprom()
1380 if (word == 0xffff) { in rt2500usb_validate_eeprom()
1381 rt2x00_set_field16(&word, EEPROM_BBPTUNE_VGCUPPER, 0x40); in rt2500usb_validate_eeprom()
1382 rt2x00_set_field16(&word, EEPROM_BBPTUNE_VGCLOWER, bbp); in rt2500usb_validate_eeprom()
1383 rt2x00_eeprom_write(rt2x00dev, EEPROM_BBPTUNE_VGC, word); in rt2500usb_validate_eeprom()
1384 rt2x00_eeprom_dbg(rt2x00dev, "BBPtune vgc: 0x%04x\n", word); in rt2500usb_validate_eeprom()
1386 rt2x00_set_field16(&word, EEPROM_BBPTUNE_VGCLOWER, bbp); in rt2500usb_validate_eeprom()
1387 rt2x00_eeprom_write(rt2x00dev, EEPROM_BBPTUNE_VGC, word); in rt2500usb_validate_eeprom()
1390 word = rt2x00_eeprom_read(rt2x00dev, EEPROM_BBPTUNE_R17); in rt2500usb_validate_eeprom()
1391 if (word == 0xffff) { in rt2500usb_validate_eeprom()
1392 rt2x00_set_field16(&word, EEPROM_BBPTUNE_R17_LOW, 0x48); in rt2500usb_validate_eeprom()
1393 rt2x00_set_field16(&word, EEPROM_BBPTUNE_R17_HIGH, 0x41); in rt2500usb_validate_eeprom()
1394 rt2x00_eeprom_write(rt2x00dev, EEPROM_BBPTUNE_R17, word); in rt2500usb_validate_eeprom()
1395 rt2x00_eeprom_dbg(rt2x00dev, "BBPtune r17: 0x%04x\n", word); in rt2500usb_validate_eeprom()
1398 word = rt2x00_eeprom_read(rt2x00dev, EEPROM_BBPTUNE_R24); in rt2500usb_validate_eeprom()
1399 if (word == 0xffff) { in rt2500usb_validate_eeprom()
1400 rt2x00_set_field16(&word, EEPROM_BBPTUNE_R24_LOW, 0x40); in rt2500usb_validate_eeprom()
1401 rt2x00_set_field16(&word, EEPROM_BBPTUNE_R24_HIGH, 0x80); in rt2500usb_validate_eeprom()
1402 rt2x00_eeprom_write(rt2x00dev, EEPROM_BBPTUNE_R24, word); in rt2500usb_validate_eeprom()
1403 rt2x00_eeprom_dbg(rt2x00dev, "BBPtune r24: 0x%04x\n", word); in rt2500usb_validate_eeprom()
1406 word = rt2x00_eeprom_read(rt2x00dev, EEPROM_BBPTUNE_R25); in rt2500usb_validate_eeprom()
1407 if (word == 0xffff) { in rt2500usb_validate_eeprom()
1408 rt2x00_set_field16(&word, EEPROM_BBPTUNE_R25_LOW, 0x40); in rt2500usb_validate_eeprom()
1409 rt2x00_set_field16(&word, EEPROM_BBPTUNE_R25_HIGH, 0x50); in rt2500usb_validate_eeprom()
1410 rt2x00_eeprom_write(rt2x00dev, EEPROM_BBPTUNE_R25, word); in rt2500usb_validate_eeprom()
1411 rt2x00_eeprom_dbg(rt2x00dev, "BBPtune r25: 0x%04x\n", word); in rt2500usb_validate_eeprom()
1414 word = rt2x00_eeprom_read(rt2x00dev, EEPROM_BBPTUNE_R61); in rt2500usb_validate_eeprom()
1415 if (word == 0xffff) { in rt2500usb_validate_eeprom()
1416 rt2x00_set_field16(&word, EEPROM_BBPTUNE_R61_LOW, 0x60); in rt2500usb_validate_eeprom()
1417 rt2x00_set_field16(&word, EEPROM_BBPTUNE_R61_HIGH, 0x6d); in rt2500usb_validate_eeprom()
1418 rt2x00_eeprom_write(rt2x00dev, EEPROM_BBPTUNE_R61, word); in rt2500usb_validate_eeprom()
1419 rt2x00_eeprom_dbg(rt2x00dev, "BBPtune r61: 0x%04x\n", word); in rt2500usb_validate_eeprom()