• Home
  • Raw
  • Download

Lines Matching refs:word

55 			      const unsigned int word, const u8 value)  in rt61pci_bbp_write()  argument
68 rt2x00_set_field32(&reg, PHY_CSR3_REGNUM, word); in rt61pci_bbp_write()
79 const unsigned int word) in rt61pci_bbp_read() argument
96 rt2x00_set_field32(&reg, PHY_CSR3_REGNUM, word); in rt61pci_bbp_read()
113 const unsigned int word, const u32 value) in rt61pci_rf_write() argument
131 rt2x00_rf_write(rt2x00dev, word, value); in rt61pci_rf_write()
673 u8 word; member
727 rt61pci_bbp_write(rt2x00dev, sel[i].word, sel[i].value[lna]); in rt61pci_config_ant()
1290 u32 word; in rt61pci_get_entry_state() local
1293 word = rt2x00_desc_read(entry_priv->desc, 0); in rt61pci_get_entry_state()
1295 return rt2x00_get_field32(word, RXD_W0_OWNER_NIC); in rt61pci_get_entry_state()
1297 word = rt2x00_desc_read(entry_priv->desc, 0); in rt61pci_get_entry_state()
1299 return (rt2x00_get_field32(word, TXD_W0_OWNER_NIC) || in rt61pci_get_entry_state()
1300 rt2x00_get_field32(word, TXD_W0_VALID)); in rt61pci_get_entry_state()
1308 u32 word; in rt61pci_clear_entry() local
1311 word = rt2x00_desc_read(entry_priv->desc, 5); in rt61pci_clear_entry()
1312 rt2x00_set_field32(&word, RXD_W5_BUFFER_PHYSICAL_ADDRESS, in rt61pci_clear_entry()
1314 rt2x00_desc_write(entry_priv->desc, 5, word); in rt61pci_clear_entry()
1316 word = rt2x00_desc_read(entry_priv->desc, 0); in rt61pci_clear_entry()
1317 rt2x00_set_field32(&word, RXD_W0_OWNER_NIC, 1); in rt61pci_clear_entry()
1318 rt2x00_desc_write(entry_priv->desc, 0, word); in rt61pci_clear_entry()
1320 word = rt2x00_desc_read(entry_priv->desc, 0); in rt61pci_clear_entry()
1321 rt2x00_set_field32(&word, TXD_W0_VALID, 0); in rt61pci_clear_entry()
1322 rt2x00_set_field32(&word, TXD_W0_OWNER_NIC, 0); in rt61pci_clear_entry()
1323 rt2x00_desc_write(entry_priv->desc, 0, word); in rt61pci_clear_entry()
1781 u32 word; in rt61pci_write_tx_desc() local
1786 word = rt2x00_desc_read(txd, 1); in rt61pci_write_tx_desc()
1787 rt2x00_set_field32(&word, TXD_W1_HOST_Q_ID, entry->queue->qid); in rt61pci_write_tx_desc()
1788 rt2x00_set_field32(&word, TXD_W1_AIFSN, entry->queue->aifs); in rt61pci_write_tx_desc()
1789 rt2x00_set_field32(&word, TXD_W1_CWMIN, entry->queue->cw_min); in rt61pci_write_tx_desc()
1790 rt2x00_set_field32(&word, TXD_W1_CWMAX, entry->queue->cw_max); in rt61pci_write_tx_desc()
1791 rt2x00_set_field32(&word, TXD_W1_IV_OFFSET, txdesc->iv_offset); in rt61pci_write_tx_desc()
1792 rt2x00_set_field32(&word, TXD_W1_HW_SEQUENCE, in rt61pci_write_tx_desc()
1794 rt2x00_set_field32(&word, TXD_W1_BUFFER_COUNT, 1); in rt61pci_write_tx_desc()
1795 rt2x00_desc_write(txd, 1, word); in rt61pci_write_tx_desc()
1797 word = rt2x00_desc_read(txd, 2); in rt61pci_write_tx_desc()
1798 rt2x00_set_field32(&word, TXD_W2_PLCP_SIGNAL, txdesc->u.plcp.signal); in rt61pci_write_tx_desc()
1799 rt2x00_set_field32(&word, TXD_W2_PLCP_SERVICE, txdesc->u.plcp.service); in rt61pci_write_tx_desc()
1800 rt2x00_set_field32(&word, TXD_W2_PLCP_LENGTH_LOW, in rt61pci_write_tx_desc()
1802 rt2x00_set_field32(&word, TXD_W2_PLCP_LENGTH_HIGH, in rt61pci_write_tx_desc()
1804 rt2x00_desc_write(txd, 2, word); in rt61pci_write_tx_desc()
1811 word = rt2x00_desc_read(txd, 5); in rt61pci_write_tx_desc()
1812 rt2x00_set_field32(&word, TXD_W5_PID_TYPE, entry->queue->qid); in rt61pci_write_tx_desc()
1813 rt2x00_set_field32(&word, TXD_W5_PID_SUBTYPE, entry->entry_idx); in rt61pci_write_tx_desc()
1814 rt2x00_set_field32(&word, TXD_W5_TX_POWER, in rt61pci_write_tx_desc()
1816 rt2x00_set_field32(&word, TXD_W5_WAITING_DMA_DONE_INT, 1); in rt61pci_write_tx_desc()
1817 rt2x00_desc_write(txd, 5, word); in rt61pci_write_tx_desc()
1820 word = rt2x00_desc_read(txd, 6); in rt61pci_write_tx_desc()
1821 rt2x00_set_field32(&word, TXD_W6_BUFFER_PHYSICAL_ADDRESS, in rt61pci_write_tx_desc()
1823 rt2x00_desc_write(txd, 6, word); in rt61pci_write_tx_desc()
1825 word = rt2x00_desc_read(txd, 11); in rt61pci_write_tx_desc()
1826 rt2x00_set_field32(&word, TXD_W11_BUFFER_LENGTH0, in rt61pci_write_tx_desc()
1828 rt2x00_desc_write(txd, 11, word); in rt61pci_write_tx_desc()
1836 word = rt2x00_desc_read(txd, 0); in rt61pci_write_tx_desc()
1837 rt2x00_set_field32(&word, TXD_W0_OWNER_NIC, 1); in rt61pci_write_tx_desc()
1838 rt2x00_set_field32(&word, TXD_W0_VALID, 1); in rt61pci_write_tx_desc()
1839 rt2x00_set_field32(&word, TXD_W0_MORE_FRAG, in rt61pci_write_tx_desc()
1841 rt2x00_set_field32(&word, TXD_W0_ACK, in rt61pci_write_tx_desc()
1843 rt2x00_set_field32(&word, TXD_W0_TIMESTAMP, in rt61pci_write_tx_desc()
1845 rt2x00_set_field32(&word, TXD_W0_OFDM, in rt61pci_write_tx_desc()
1847 rt2x00_set_field32(&word, TXD_W0_IFS, txdesc->u.plcp.ifs); in rt61pci_write_tx_desc()
1848 rt2x00_set_field32(&word, TXD_W0_RETRY_MODE, in rt61pci_write_tx_desc()
1850 rt2x00_set_field32(&word, TXD_W0_TKIP_MIC, in rt61pci_write_tx_desc()
1852 rt2x00_set_field32(&word, TXD_W0_KEY_TABLE, in rt61pci_write_tx_desc()
1854 rt2x00_set_field32(&word, TXD_W0_KEY_INDEX, txdesc->key_idx); in rt61pci_write_tx_desc()
1855 rt2x00_set_field32(&word, TXD_W0_DATABYTE_COUNT, txdesc->length); in rt61pci_write_tx_desc()
1856 rt2x00_set_field32(&word, TXD_W0_BURST, in rt61pci_write_tx_desc()
1858 rt2x00_set_field32(&word, TXD_W0_CIPHER_ALG, txdesc->cipher); in rt61pci_write_tx_desc()
1859 rt2x00_desc_write(txd, 0, word); in rt61pci_write_tx_desc()
2066 u32 word; in rt61pci_txdone() local
2105 word = rt2x00_desc_read(entry_priv->desc, 0); in rt61pci_txdone()
2107 if (rt2x00_get_field32(word, TXD_W0_OWNER_NIC) || in rt61pci_txdone()
2108 !rt2x00_get_field32(word, TXD_W0_VALID)) in rt61pci_txdone()
2303 u16 word; in rt61pci_validate_eeprom() local
2328 word = rt2x00_eeprom_read(rt2x00dev, EEPROM_ANTENNA); in rt61pci_validate_eeprom()
2329 if (word == 0xffff) { in rt61pci_validate_eeprom()
2330 rt2x00_set_field16(&word, EEPROM_ANTENNA_NUM, 2); in rt61pci_validate_eeprom()
2331 rt2x00_set_field16(&word, EEPROM_ANTENNA_TX_DEFAULT, in rt61pci_validate_eeprom()
2333 rt2x00_set_field16(&word, EEPROM_ANTENNA_RX_DEFAULT, in rt61pci_validate_eeprom()
2335 rt2x00_set_field16(&word, EEPROM_ANTENNA_FRAME_TYPE, 0); in rt61pci_validate_eeprom()
2336 rt2x00_set_field16(&word, EEPROM_ANTENNA_DYN_TXAGC, 0); in rt61pci_validate_eeprom()
2337 rt2x00_set_field16(&word, EEPROM_ANTENNA_HARDWARE_RADIO, 0); in rt61pci_validate_eeprom()
2338 rt2x00_set_field16(&word, EEPROM_ANTENNA_RF_TYPE, RF5225); in rt61pci_validate_eeprom()
2339 rt2x00_eeprom_write(rt2x00dev, EEPROM_ANTENNA, word); in rt61pci_validate_eeprom()
2340 rt2x00_eeprom_dbg(rt2x00dev, "Antenna: 0x%04x\n", word); in rt61pci_validate_eeprom()
2343 word = rt2x00_eeprom_read(rt2x00dev, EEPROM_NIC); in rt61pci_validate_eeprom()
2344 if (word == 0xffff) { in rt61pci_validate_eeprom()
2345 rt2x00_set_field16(&word, EEPROM_NIC_ENABLE_DIVERSITY, 0); in rt61pci_validate_eeprom()
2346 rt2x00_set_field16(&word, EEPROM_NIC_TX_DIVERSITY, 0); in rt61pci_validate_eeprom()
2347 rt2x00_set_field16(&word, EEPROM_NIC_RX_FIXED, 0); in rt61pci_validate_eeprom()
2348 rt2x00_set_field16(&word, EEPROM_NIC_TX_FIXED, 0); in rt61pci_validate_eeprom()
2349 rt2x00_set_field16(&word, EEPROM_NIC_EXTERNAL_LNA_BG, 0); in rt61pci_validate_eeprom()
2350 rt2x00_set_field16(&word, EEPROM_NIC_CARDBUS_ACCEL, 0); in rt61pci_validate_eeprom()
2351 rt2x00_set_field16(&word, EEPROM_NIC_EXTERNAL_LNA_A, 0); in rt61pci_validate_eeprom()
2352 rt2x00_eeprom_write(rt2x00dev, EEPROM_NIC, word); in rt61pci_validate_eeprom()
2353 rt2x00_eeprom_dbg(rt2x00dev, "NIC: 0x%04x\n", word); in rt61pci_validate_eeprom()
2356 word = rt2x00_eeprom_read(rt2x00dev, EEPROM_LED); in rt61pci_validate_eeprom()
2357 if (word == 0xffff) { in rt61pci_validate_eeprom()
2358 rt2x00_set_field16(&word, EEPROM_LED_LED_MODE, in rt61pci_validate_eeprom()
2360 rt2x00_eeprom_write(rt2x00dev, EEPROM_LED, word); in rt61pci_validate_eeprom()
2361 rt2x00_eeprom_dbg(rt2x00dev, "Led: 0x%04x\n", word); in rt61pci_validate_eeprom()
2364 word = rt2x00_eeprom_read(rt2x00dev, EEPROM_FREQ); in rt61pci_validate_eeprom()
2365 if (word == 0xffff) { in rt61pci_validate_eeprom()
2366 rt2x00_set_field16(&word, EEPROM_FREQ_OFFSET, 0); in rt61pci_validate_eeprom()
2367 rt2x00_set_field16(&word, EEPROM_FREQ_SEQ, 0); in rt61pci_validate_eeprom()
2368 rt2x00_eeprom_write(rt2x00dev, EEPROM_FREQ, word); in rt61pci_validate_eeprom()
2369 rt2x00_eeprom_dbg(rt2x00dev, "Freq: 0x%04x\n", word); in rt61pci_validate_eeprom()
2372 word = rt2x00_eeprom_read(rt2x00dev, EEPROM_RSSI_OFFSET_BG); in rt61pci_validate_eeprom()
2373 if (word == 0xffff) { in rt61pci_validate_eeprom()
2374 rt2x00_set_field16(&word, EEPROM_RSSI_OFFSET_BG_1, 0); in rt61pci_validate_eeprom()
2375 rt2x00_set_field16(&word, EEPROM_RSSI_OFFSET_BG_2, 0); in rt61pci_validate_eeprom()
2376 rt2x00_eeprom_write(rt2x00dev, EEPROM_RSSI_OFFSET_BG, word); in rt61pci_validate_eeprom()
2377 rt2x00_eeprom_dbg(rt2x00dev, "RSSI OFFSET BG: 0x%04x\n", word); in rt61pci_validate_eeprom()
2379 value = rt2x00_get_field16(word, EEPROM_RSSI_OFFSET_BG_1); in rt61pci_validate_eeprom()
2381 rt2x00_set_field16(&word, EEPROM_RSSI_OFFSET_BG_1, 0); in rt61pci_validate_eeprom()
2382 value = rt2x00_get_field16(word, EEPROM_RSSI_OFFSET_BG_2); in rt61pci_validate_eeprom()
2384 rt2x00_set_field16(&word, EEPROM_RSSI_OFFSET_BG_2, 0); in rt61pci_validate_eeprom()
2385 rt2x00_eeprom_write(rt2x00dev, EEPROM_RSSI_OFFSET_BG, word); in rt61pci_validate_eeprom()
2388 word = rt2x00_eeprom_read(rt2x00dev, EEPROM_RSSI_OFFSET_A); in rt61pci_validate_eeprom()
2389 if (word == 0xffff) { in rt61pci_validate_eeprom()
2390 rt2x00_set_field16(&word, EEPROM_RSSI_OFFSET_A_1, 0); in rt61pci_validate_eeprom()
2391 rt2x00_set_field16(&word, EEPROM_RSSI_OFFSET_A_2, 0); in rt61pci_validate_eeprom()
2392 rt2x00_eeprom_write(rt2x00dev, EEPROM_RSSI_OFFSET_A, word); in rt61pci_validate_eeprom()
2393 rt2x00_eeprom_dbg(rt2x00dev, "RSSI OFFSET A: 0x%04x\n", word); in rt61pci_validate_eeprom()
2395 value = rt2x00_get_field16(word, EEPROM_RSSI_OFFSET_A_1); in rt61pci_validate_eeprom()
2397 rt2x00_set_field16(&word, EEPROM_RSSI_OFFSET_A_1, 0); in rt61pci_validate_eeprom()
2398 value = rt2x00_get_field16(word, EEPROM_RSSI_OFFSET_A_2); in rt61pci_validate_eeprom()
2400 rt2x00_set_field16(&word, EEPROM_RSSI_OFFSET_A_2, 0); in rt61pci_validate_eeprom()
2401 rt2x00_eeprom_write(rt2x00dev, EEPROM_RSSI_OFFSET_A, word); in rt61pci_validate_eeprom()