Lines Matching refs:word
57 const unsigned int word, const u8 value) in rt2500pci_bbp_write() argument
70 rt2x00_set_field32(®, BBPCSR_REGNUM, word); in rt2500pci_bbp_write()
81 const unsigned int word, u8 *value) in rt2500pci_bbp_read() argument
97 rt2x00_set_field32(®, BBPCSR_REGNUM, word); in rt2500pci_bbp_read()
112 const unsigned int word, const u32 value) in rt2500pci_rf_write() argument
130 rt2x00_rf_write(rt2x00dev, word, value); in rt2500pci_rf_write()
812 u32 word; in rt2500pci_get_entry_state() local
815 rt2x00_desc_read(entry_priv->desc, 0, &word); in rt2500pci_get_entry_state()
817 return rt2x00_get_field32(word, RXD_W0_OWNER_NIC); in rt2500pci_get_entry_state()
819 rt2x00_desc_read(entry_priv->desc, 0, &word); in rt2500pci_get_entry_state()
821 return (rt2x00_get_field32(word, TXD_W0_OWNER_NIC) || in rt2500pci_get_entry_state()
822 rt2x00_get_field32(word, TXD_W0_VALID)); in rt2500pci_get_entry_state()
830 u32 word; in rt2500pci_clear_entry() local
833 rt2x00_desc_read(entry_priv->desc, 1, &word); in rt2500pci_clear_entry()
834 rt2x00_set_field32(&word, RXD_W1_BUFFER_ADDRESS, skbdesc->skb_dma); in rt2500pci_clear_entry()
835 rt2x00_desc_write(entry_priv->desc, 1, word); in rt2500pci_clear_entry()
837 rt2x00_desc_read(entry_priv->desc, 0, &word); in rt2500pci_clear_entry()
838 rt2x00_set_field32(&word, RXD_W0_OWNER_NIC, 1); in rt2500pci_clear_entry()
839 rt2x00_desc_write(entry_priv->desc, 0, word); in rt2500pci_clear_entry()
841 rt2x00_desc_read(entry_priv->desc, 0, &word); in rt2500pci_clear_entry()
842 rt2x00_set_field32(&word, TXD_W0_VALID, 0); in rt2500pci_clear_entry()
843 rt2x00_set_field32(&word, TXD_W0_OWNER_NIC, 0); in rt2500pci_clear_entry()
844 rt2x00_desc_write(entry_priv->desc, 0, word); in rt2500pci_clear_entry()
1259 u32 word; in rt2500pci_write_tx_desc() local
1264 rt2x00_desc_read(txd, 1, &word); in rt2500pci_write_tx_desc()
1265 rt2x00_set_field32(&word, TXD_W1_BUFFER_ADDRESS, skbdesc->skb_dma); in rt2500pci_write_tx_desc()
1266 rt2x00_desc_write(txd, 1, word); in rt2500pci_write_tx_desc()
1268 rt2x00_desc_read(txd, 2, &word); in rt2500pci_write_tx_desc()
1269 rt2x00_set_field32(&word, TXD_W2_IV_OFFSET, IEEE80211_HEADER); in rt2500pci_write_tx_desc()
1270 rt2x00_set_field32(&word, TXD_W2_AIFS, entry->queue->aifs); in rt2500pci_write_tx_desc()
1271 rt2x00_set_field32(&word, TXD_W2_CWMIN, entry->queue->cw_min); in rt2500pci_write_tx_desc()
1272 rt2x00_set_field32(&word, TXD_W2_CWMAX, entry->queue->cw_max); in rt2500pci_write_tx_desc()
1273 rt2x00_desc_write(txd, 2, word); in rt2500pci_write_tx_desc()
1275 rt2x00_desc_read(txd, 3, &word); in rt2500pci_write_tx_desc()
1276 rt2x00_set_field32(&word, TXD_W3_PLCP_SIGNAL, txdesc->u.plcp.signal); in rt2500pci_write_tx_desc()
1277 rt2x00_set_field32(&word, TXD_W3_PLCP_SERVICE, txdesc->u.plcp.service); in rt2500pci_write_tx_desc()
1278 rt2x00_set_field32(&word, TXD_W3_PLCP_LENGTH_LOW, in rt2500pci_write_tx_desc()
1280 rt2x00_set_field32(&word, TXD_W3_PLCP_LENGTH_HIGH, in rt2500pci_write_tx_desc()
1282 rt2x00_desc_write(txd, 3, word); in rt2500pci_write_tx_desc()
1284 rt2x00_desc_read(txd, 10, &word); in rt2500pci_write_tx_desc()
1285 rt2x00_set_field32(&word, TXD_W10_RTS, in rt2500pci_write_tx_desc()
1287 rt2x00_desc_write(txd, 10, word); in rt2500pci_write_tx_desc()
1294 rt2x00_desc_read(txd, 0, &word); in rt2500pci_write_tx_desc()
1295 rt2x00_set_field32(&word, TXD_W0_OWNER_NIC, 1); in rt2500pci_write_tx_desc()
1296 rt2x00_set_field32(&word, TXD_W0_VALID, 1); in rt2500pci_write_tx_desc()
1297 rt2x00_set_field32(&word, TXD_W0_MORE_FRAG, in rt2500pci_write_tx_desc()
1299 rt2x00_set_field32(&word, TXD_W0_ACK, in rt2500pci_write_tx_desc()
1301 rt2x00_set_field32(&word, TXD_W0_TIMESTAMP, in rt2500pci_write_tx_desc()
1303 rt2x00_set_field32(&word, TXD_W0_OFDM, in rt2500pci_write_tx_desc()
1305 rt2x00_set_field32(&word, TXD_W0_CIPHER_OWNER, 1); in rt2500pci_write_tx_desc()
1306 rt2x00_set_field32(&word, TXD_W0_IFS, txdesc->u.plcp.ifs); in rt2500pci_write_tx_desc()
1307 rt2x00_set_field32(&word, TXD_W0_RETRY_MODE, in rt2500pci_write_tx_desc()
1309 rt2x00_set_field32(&word, TXD_W0_DATABYTE_COUNT, txdesc->length); in rt2500pci_write_tx_desc()
1310 rt2x00_set_field32(&word, TXD_W0_CIPHER_ALG, CIPHER_NONE); in rt2500pci_write_tx_desc()
1311 rt2x00_desc_write(txd, 0, word); in rt2500pci_write_tx_desc()
1406 u32 word; in rt2500pci_txdone() local
1411 rt2x00_desc_read(entry_priv->desc, 0, &word); in rt2500pci_txdone()
1413 if (rt2x00_get_field32(word, TXD_W0_OWNER_NIC) || in rt2500pci_txdone()
1414 !rt2x00_get_field32(word, TXD_W0_VALID)) in rt2500pci_txdone()
1421 switch (rt2x00_get_field32(word, TXD_W0_RESULT)) { in rt2500pci_txdone()
1432 txdesc.retry = rt2x00_get_field32(word, TXD_W0_RETRY_COUNT); in rt2500pci_txdone()
1564 u16 word; in rt2500pci_validate_eeprom() local
1591 rt2x00_eeprom_read(rt2x00dev, EEPROM_ANTENNA, &word); in rt2500pci_validate_eeprom()
1592 if (word == 0xffff) { in rt2500pci_validate_eeprom()
1593 rt2x00_set_field16(&word, EEPROM_ANTENNA_NUM, 2); in rt2500pci_validate_eeprom()
1594 rt2x00_set_field16(&word, EEPROM_ANTENNA_TX_DEFAULT, in rt2500pci_validate_eeprom()
1596 rt2x00_set_field16(&word, EEPROM_ANTENNA_RX_DEFAULT, in rt2500pci_validate_eeprom()
1598 rt2x00_set_field16(&word, EEPROM_ANTENNA_LED_MODE, in rt2500pci_validate_eeprom()
1600 rt2x00_set_field16(&word, EEPROM_ANTENNA_DYN_TXAGC, 0); in rt2500pci_validate_eeprom()
1601 rt2x00_set_field16(&word, EEPROM_ANTENNA_HARDWARE_RADIO, 0); in rt2500pci_validate_eeprom()
1602 rt2x00_set_field16(&word, EEPROM_ANTENNA_RF_TYPE, RF2522); in rt2500pci_validate_eeprom()
1603 rt2x00_eeprom_write(rt2x00dev, EEPROM_ANTENNA, word); in rt2500pci_validate_eeprom()
1604 rt2x00_eeprom_dbg(rt2x00dev, "Antenna: 0x%04x\n", word); in rt2500pci_validate_eeprom()
1607 rt2x00_eeprom_read(rt2x00dev, EEPROM_NIC, &word); in rt2500pci_validate_eeprom()
1608 if (word == 0xffff) { in rt2500pci_validate_eeprom()
1609 rt2x00_set_field16(&word, EEPROM_NIC_CARDBUS_ACCEL, 0); in rt2500pci_validate_eeprom()
1610 rt2x00_set_field16(&word, EEPROM_NIC_DYN_BBP_TUNE, 0); in rt2500pci_validate_eeprom()
1611 rt2x00_set_field16(&word, EEPROM_NIC_CCK_TX_POWER, 0); in rt2500pci_validate_eeprom()
1612 rt2x00_eeprom_write(rt2x00dev, EEPROM_NIC, word); in rt2500pci_validate_eeprom()
1613 rt2x00_eeprom_dbg(rt2x00dev, "NIC: 0x%04x\n", word); in rt2500pci_validate_eeprom()
1616 rt2x00_eeprom_read(rt2x00dev, EEPROM_CALIBRATE_OFFSET, &word); in rt2500pci_validate_eeprom()
1617 if (word == 0xffff) { in rt2500pci_validate_eeprom()
1618 rt2x00_set_field16(&word, EEPROM_CALIBRATE_OFFSET_RSSI, in rt2500pci_validate_eeprom()
1620 rt2x00_eeprom_write(rt2x00dev, EEPROM_CALIBRATE_OFFSET, word); in rt2500pci_validate_eeprom()
1622 word); in rt2500pci_validate_eeprom()