Home
last modified time | relevance | path

Searched refs:rt2x00_get_field32 (Results 1 – 12 of 12) sorted by relevance

/drivers/net/wireless/ralink/rt2x00/
Drt2800pci.c63 if ((rt2x00_get_field32(reg, H2M_MAILBOX_CID_CMD0) == token) || in rt2800pci_mcu_status()
64 (rt2x00_get_field32(reg, H2M_MAILBOX_CID_CMD1) == token) || in rt2800pci_mcu_status()
65 (rt2x00_get_field32(reg, H2M_MAILBOX_CID_CMD2) == token) || in rt2800pci_mcu_status()
66 (rt2x00_get_field32(reg, H2M_MAILBOX_CID_CMD3) == token)) in rt2800pci_mcu_status()
86 eeprom->reg_data_in = !!rt2x00_get_field32(reg, E2PROM_CSR_DATA_IN); in rt2800pci_eepromregister_read()
87 eeprom->reg_data_out = !!rt2x00_get_field32(reg, E2PROM_CSR_DATA_OUT); in rt2800pci_eepromregister_read()
89 !!rt2x00_get_field32(reg, E2PROM_CSR_DATA_CLOCK); in rt2800pci_eepromregister_read()
91 !!rt2x00_get_field32(reg, E2PROM_CSR_CHIP_SELECT); in rt2800pci_eepromregister_read()
119 switch (rt2x00_get_field32(reg, E2PROM_CSR_TYPE)) in rt2800pci_read_eeprom_pci()
Drt2400pci.c96 value = rt2x00_get_field32(reg, BBPCSR_VALUE); in rt2400pci_bbp_read()
135 eeprom->reg_data_in = !!rt2x00_get_field32(reg, CSR21_EEPROM_DATA_IN); in rt2400pci_eepromregister_read()
136 eeprom->reg_data_out = !!rt2x00_get_field32(reg, CSR21_EEPROM_DATA_OUT); in rt2400pci_eepromregister_read()
138 !!rt2x00_get_field32(reg, CSR21_EEPROM_DATA_CLOCK); in rt2400pci_eepromregister_read()
140 !!rt2x00_get_field32(reg, CSR21_EEPROM_CHIP_SELECT); in rt2400pci_eepromregister_read()
198 return rt2x00_get_field32(reg, GPIOCSR_VAL0); in rt2400pci_rfkill_poll()
580 qual->rx_failed = rt2x00_get_field32(reg, CNT0_FCS_ERROR); in rt2400pci_link_stats()
722 return rt2x00_get_field32(word, RXD_W0_OWNER_NIC); in rt2400pci_get_entry_state()
726 return (rt2x00_get_field32(word, TXD_W0_OWNER_NIC) || in rt2400pci_get_entry_state()
727 rt2x00_get_field32(word, TXD_W0_VALID)); in rt2400pci_get_entry_state()
[all …]
Drt2500pci.c96 value = rt2x00_get_field32(reg, BBPCSR_VALUE); in rt2500pci_bbp_read()
135 eeprom->reg_data_in = !!rt2x00_get_field32(reg, CSR21_EEPROM_DATA_IN); in rt2500pci_eepromregister_read()
136 eeprom->reg_data_out = !!rt2x00_get_field32(reg, CSR21_EEPROM_DATA_OUT); in rt2500pci_eepromregister_read()
138 !!rt2x00_get_field32(reg, CSR21_EEPROM_DATA_CLOCK); in rt2500pci_eepromregister_read()
140 !!rt2x00_get_field32(reg, CSR21_EEPROM_CHIP_SELECT); in rt2500pci_eepromregister_read()
198 return rt2x00_get_field32(reg, GPIOCSR_VAL0); in rt2500pci_rfkill_poll()
618 qual->rx_failed = rt2x00_get_field32(reg, CNT0_FCS_ERROR); in rt2500pci_link_stats()
624 qual->false_cca = rt2x00_get_field32(reg, CNT3_FALSE_CCA); in rt2500pci_link_stats()
811 return rt2x00_get_field32(word, RXD_W0_OWNER_NIC); in rt2500pci_get_entry_state()
815 return (rt2x00_get_field32(word, TXD_W0_OWNER_NIC) || in rt2500pci_get_entry_state()
[all …]
Drt2800mmio.c133 if (rt2x00_get_field32(word, RXD_W3_CRC_ERROR)) in rt2800mmio_fill_rxdone()
141 rxdesc->cipher_status = rt2x00_get_field32(word, RXD_W3_CIPHER_ERROR); in rt2800mmio_fill_rxdone()
143 if (rt2x00_get_field32(word, RXD_W3_DECRYPTED)) { in rt2800mmio_fill_rxdone()
173 if (rt2x00_get_field32(word, RXD_W3_MY_BSS)) in rt2800mmio_fill_rxdone()
176 if (rt2x00_get_field32(word, RXD_W3_L2PAD)) in rt2800mmio_fill_rxdone()
304 if (!rt2x00_get_field32(status, TX_STA_FIFO_VALID)) in rt2800mmio_fetch_txstatus()
348 if (rt2x00_get_field32(reg, INT_SOURCE_CSR_TX_FIFO_STATUS)) { in rt2800mmio_interrupt()
355 if (rt2x00_get_field32(reg, INT_SOURCE_CSR_PRE_TBTT)) in rt2800mmio_interrupt()
358 if (rt2x00_get_field32(reg, INT_SOURCE_CSR_TBTT)) in rt2800mmio_interrupt()
361 if (rt2x00_get_field32(reg, INT_SOURCE_CSR_RX_DONE)) in rt2800mmio_interrupt()
[all …]
Drt61pci.c105 value = rt2x00_get_field32(reg, PHY_CSR3_VALUE); in rt61pci_bbp_read()
173 eeprom->reg_data_in = !!rt2x00_get_field32(reg, E2PROM_CSR_DATA_IN); in rt61pci_eepromregister_read()
174 eeprom->reg_data_out = !!rt2x00_get_field32(reg, E2PROM_CSR_DATA_OUT); in rt61pci_eepromregister_read()
176 !!rt2x00_get_field32(reg, E2PROM_CSR_DATA_CLOCK); in rt61pci_eepromregister_read()
178 !!rt2x00_get_field32(reg, E2PROM_CSR_CHIP_SELECT); in rt61pci_eepromregister_read()
236 return rt2x00_get_field32(reg, MAC_CSR13_VAL5); in rt61pci_rfkill_poll()
924 qual->rx_failed = rt2x00_get_field32(reg, STA_CSR0_FCS_ERROR); in rt61pci_link_stats()
930 qual->false_cca = rt2x00_get_field32(reg, STA_CSR1_FALSE_CCA_ERROR); in rt61pci_link_stats()
1249 if (rt2x00_get_field32(reg, MCU_CNTL_CSR_READY)) in rt61pci_load_firmware()
1295 return rt2x00_get_field32(word, RXD_W0_OWNER_NIC); in rt61pci_get_entry_state()
[all …]
Drt73usb.c103 value = rt2x00_get_field32(reg, PHY_CSR3_VALUE); in rt73usb_bbp_read()
181 return rt2x00_get_field32(reg, MAC_CSR13_VAL7); in rt73usb_rfkill_poll()
884 qual->rx_failed = rt2x00_get_field32(reg, STA_CSR0_FCS_ERROR); in rt73usb_link_stats()
890 qual->false_cca = rt2x00_get_field32(reg, STA_CSR1_FALSE_CCA_ERROR); in rt73usb_link_stats()
1397 state = rt2x00_get_field32(reg2, MAC_CSR12_BBP_CURRENT_STATE); in rt73usb_set_state()
1637 lna = rt2x00_get_field32(rxd_w1, RXD_W1_RSSI_LNA); in rt73usb_agc_to_rssi()
1664 return rt2x00_get_field32(rxd_w1, RXD_W1_RSSI_AGC) * 2 - offset; in rt73usb_agc_to_rssi()
1689 if (rt2x00_get_field32(word0, RXD_W0_CRC_ERROR)) in rt73usb_fill_rxdone()
1692 rxdesc->cipher = rt2x00_get_field32(word0, RXD_W0_CIPHER_ALG); in rt73usb_fill_rxdone()
1693 rxdesc->cipher_status = rt2x00_get_field32(word0, RXD_W0_CIPHER_ERROR); in rt73usb_fill_rxdone()
[all …]
Drt2800usb.c106 valid = rt2x00_get_field32(tx_status, TX_STA_FIFO_VALID); in rt2800usb_tx_sta_fifo_read_completed()
502 rx_pkt_len = rt2x00_get_field32(word, RXINFO_W0_USB_DMA_RX_PKT_LEN); in rt2800usb_fill_rxdone()
527 if (rt2x00_get_field32(word, RXD_W0_CRC_ERROR)) in rt2800usb_fill_rxdone()
530 rxdesc->cipher_status = rt2x00_get_field32(word, RXD_W0_CIPHER_ERROR); in rt2800usb_fill_rxdone()
532 if (rt2x00_get_field32(word, RXD_W0_DECRYPTED)) { in rt2800usb_fill_rxdone()
562 if (rt2x00_get_field32(word, RXD_W0_MY_BSS)) in rt2800usb_fill_rxdone()
565 if (rt2x00_get_field32(word, RXD_W0_L2PAD)) in rt2800usb_fill_rxdone()
Drt2500usb.c1242 if (rt2x00_get_field32(word0, RXD_W0_CRC_ERROR)) in rt2500usb_fill_rxdone()
1244 if (rt2x00_get_field32(word0, RXD_W0_PHYSICAL_ERROR)) in rt2500usb_fill_rxdone()
1247 rxdesc->cipher = rt2x00_get_field32(word0, RXD_W0_CIPHER); in rt2500usb_fill_rxdone()
1248 if (rt2x00_get_field32(word0, RXD_W0_CIPHER_ERROR)) in rt2500usb_fill_rxdone()
1271 rxdesc->signal = rt2x00_get_field32(word1, RXD_W1_SIGNAL); in rt2500usb_fill_rxdone()
1273 rt2x00_get_field32(word1, RXD_W1_RSSI) - rt2x00dev->rssi_offset; in rt2500usb_fill_rxdone()
1274 rxdesc->size = rt2x00_get_field32(word0, RXD_W0_DATABYTE_COUNT); in rt2500usb_fill_rxdone()
1276 if (rt2x00_get_field32(word0, RXD_W0_OFDM)) in rt2500usb_fill_rxdone()
1280 if (rt2x00_get_field32(word0, RXD_W0_MY_BSS)) in rt2500usb_fill_rxdone()
Drt2800lib.c133 value = rt2x00_get_field32(reg, BBP_CSR_CFG_VALUE); in rt2800_bbp_read()
251 value = rt2x00_get_field32(reg, RF_CSR_CFG_DATA_MT7620); in rt2800_rfcsr_read()
266 value = rt2x00_get_field32(reg, RF_CSR_CFG_DATA); in rt2800_rfcsr_read()
476 if (rt2x00_get_field32(reg, PLL_LD) && in rt2800_enable_wlan_rt3290()
477 rt2x00_get_field32(reg, XTAL_RDY)) in rt2800_enable_wlan_rt3290()
575 if (!rt2x00_get_field32(reg, WPDMA_GLO_CFG_TX_DMA_BUSY) && in rt2800_wait_wpdma_ready()
576 !rt2x00_get_field32(reg, WPDMA_GLO_CFG_RX_DMA_BUSY)) in rt2800_wait_wpdma_ready()
762 if (rt2x00_get_field32(reg, PBF_SYS_CTRL_READY)) in rt2800_load_firmware()
856 s8 rssi0 = rt2x00_get_field32(rxwi_w2, RXWI_W2_RSSI0); in rt2800_agc_to_rssi()
857 s8 rssi1 = rt2x00_get_field32(rxwi_w2, RXWI_W2_RSSI1); in rt2800_agc_to_rssi()
[all …]
Drt2x00mmio.c36 if (!rt2x00_get_field32(*reg, field)) in rt2x00mmio_regbusy_read()
Drt2x00reg.h253 #define rt2x00_get_field32(__reg, __field) \ macro
Drt2x00usb.c157 if (!rt2x00_get_field32(*reg, field)) in rt2x00usb_regbusy_read()