Home
last modified time | relevance | path

Searched refs:rt2x00_set_field32 (Results 1 – 11 of 11) sorted by relevance

/linux-5.19.10/drivers/net/wireless/ralink/rt2x00/
Drt2500pci.c58 rt2x00_set_field32(&reg, BBPCSR_VALUE, value); in rt2500pci_bbp_write()
59 rt2x00_set_field32(&reg, BBPCSR_REGNUM, word); in rt2500pci_bbp_write()
60 rt2x00_set_field32(&reg, BBPCSR_BUSY, 1); in rt2500pci_bbp_write()
61 rt2x00_set_field32(&reg, BBPCSR_WRITE_CONTROL, 1); in rt2500pci_bbp_write()
87 rt2x00_set_field32(&reg, BBPCSR_REGNUM, word); in rt2500pci_bbp_read()
88 rt2x00_set_field32(&reg, BBPCSR_BUSY, 1); in rt2500pci_bbp_read()
89 rt2x00_set_field32(&reg, BBPCSR_WRITE_CONTROL, 0); in rt2500pci_bbp_read()
116 rt2x00_set_field32(&reg, RFCSR_VALUE, value); in rt2500pci_rf_write()
117 rt2x00_set_field32(&reg, RFCSR_NUMBER_OF_BITS, 20); in rt2500pci_rf_write()
118 rt2x00_set_field32(&reg, RFCSR_IF_SELECT, 0); in rt2500pci_rf_write()
[all …]
Drt2400pci.c58 rt2x00_set_field32(&reg, BBPCSR_VALUE, value); in rt2400pci_bbp_write()
59 rt2x00_set_field32(&reg, BBPCSR_REGNUM, word); in rt2400pci_bbp_write()
60 rt2x00_set_field32(&reg, BBPCSR_BUSY, 1); in rt2400pci_bbp_write()
61 rt2x00_set_field32(&reg, BBPCSR_WRITE_CONTROL, 1); in rt2400pci_bbp_write()
87 rt2x00_set_field32(&reg, BBPCSR_REGNUM, word); in rt2400pci_bbp_read()
88 rt2x00_set_field32(&reg, BBPCSR_BUSY, 1); in rt2400pci_bbp_read()
89 rt2x00_set_field32(&reg, BBPCSR_WRITE_CONTROL, 0); in rt2400pci_bbp_read()
116 rt2x00_set_field32(&reg, RFCSR_VALUE, value); in rt2400pci_rf_write()
117 rt2x00_set_field32(&reg, RFCSR_NUMBER_OF_BITS, 20); in rt2400pci_rf_write()
118 rt2x00_set_field32(&reg, RFCSR_IF_SELECT, 0); in rt2400pci_rf_write()
[all …]
Drt61pci.c67 rt2x00_set_field32(&reg, PHY_CSR3_VALUE, value); in rt61pci_bbp_write()
68 rt2x00_set_field32(&reg, PHY_CSR3_REGNUM, word); in rt61pci_bbp_write()
69 rt2x00_set_field32(&reg, PHY_CSR3_BUSY, 1); in rt61pci_bbp_write()
70 rt2x00_set_field32(&reg, PHY_CSR3_READ_CONTROL, 0); in rt61pci_bbp_write()
96 rt2x00_set_field32(&reg, PHY_CSR3_REGNUM, word); in rt61pci_bbp_read()
97 rt2x00_set_field32(&reg, PHY_CSR3_BUSY, 1); in rt61pci_bbp_read()
98 rt2x00_set_field32(&reg, PHY_CSR3_READ_CONTROL, 1); in rt61pci_bbp_read()
125 rt2x00_set_field32(&reg, PHY_CSR4_VALUE, value); in rt61pci_rf_write()
126 rt2x00_set_field32(&reg, PHY_CSR4_NUMBER_OF_BITS, 21); in rt61pci_rf_write()
127 rt2x00_set_field32(&reg, PHY_CSR4_IF_SELECT, 0); in rt61pci_rf_write()
[all …]
Drt73usb.c65 rt2x00_set_field32(&reg, PHY_CSR3_VALUE, value); in rt73usb_bbp_write()
66 rt2x00_set_field32(&reg, PHY_CSR3_REGNUM, word); in rt73usb_bbp_write()
67 rt2x00_set_field32(&reg, PHY_CSR3_BUSY, 1); in rt73usb_bbp_write()
68 rt2x00_set_field32(&reg, PHY_CSR3_READ_CONTROL, 0); in rt73usb_bbp_write()
94 rt2x00_set_field32(&reg, PHY_CSR3_REGNUM, word); in rt73usb_bbp_read()
95 rt2x00_set_field32(&reg, PHY_CSR3_BUSY, 1); in rt73usb_bbp_read()
96 rt2x00_set_field32(&reg, PHY_CSR3_READ_CONTROL, 1); in rt73usb_bbp_read()
123 rt2x00_set_field32(&reg, PHY_CSR4_VALUE, value); in rt73usb_rf_write()
128 rt2x00_set_field32(&reg, PHY_CSR4_NUMBER_OF_BITS, in rt73usb_rf_write()
131 rt2x00_set_field32(&reg, PHY_CSR4_IF_SELECT, 0); in rt73usb_rf_write()
[all …]
Drt2800lib.c94 rt2x00_set_field32(&reg, BBP_CSR_CFG_VALUE, value); in rt2800_bbp_write()
95 rt2x00_set_field32(&reg, BBP_CSR_CFG_REGNUM, word); in rt2800_bbp_write()
96 rt2x00_set_field32(&reg, BBP_CSR_CFG_BUSY, 1); in rt2800_bbp_write()
97 rt2x00_set_field32(&reg, BBP_CSR_CFG_READ_CONTROL, 0); in rt2800_bbp_write()
98 rt2x00_set_field32(&reg, BBP_CSR_CFG_BBP_RW_MODE, 1); in rt2800_bbp_write()
123 rt2x00_set_field32(&reg, BBP_CSR_CFG_REGNUM, word); in rt2800_bbp_read()
124 rt2x00_set_field32(&reg, BBP_CSR_CFG_BUSY, 1); in rt2800_bbp_read()
125 rt2x00_set_field32(&reg, BBP_CSR_CFG_READ_CONTROL, 1); in rt2800_bbp_read()
126 rt2x00_set_field32(&reg, BBP_CSR_CFG_BBP_RW_MODE, 1); in rt2800_bbp_read()
155 rt2x00_set_field32(&reg, RF_CSR_CFG_DATA_MT7620, value); in rt2800_rfcsr_write()
[all …]
Drt2800mmio.c88 rt2x00_set_field32(&word, TXD_W0_SD_PTR0, skbdesc->skb_dma); in rt2800mmio_write_tx_desc()
92 rt2x00_set_field32(&word, TXD_W1_SD_LEN1, entry->skb->len); in rt2800mmio_write_tx_desc()
93 rt2x00_set_field32(&word, TXD_W1_LAST_SEC1, in rt2800mmio_write_tx_desc()
95 rt2x00_set_field32(&word, TXD_W1_BURST, in rt2800mmio_write_tx_desc()
97 rt2x00_set_field32(&word, TXD_W1_SD_LEN0, txwi_size); in rt2800mmio_write_tx_desc()
98 rt2x00_set_field32(&word, TXD_W1_LAST_SEC0, 0); in rt2800mmio_write_tx_desc()
99 rt2x00_set_field32(&word, TXD_W1_DMA_DONE, 0); in rt2800mmio_write_tx_desc()
103 rt2x00_set_field32(&word, TXD_W2_SD_PTR1, in rt2800mmio_write_tx_desc()
108 rt2x00_set_field32(&word, TXD_W3_WIV, in rt2800mmio_write_tx_desc()
110 rt2x00_set_field32(&word, TXD_W3_QSEL, 2); in rt2800mmio_write_tx_desc()
[all …]
Drt2800usb.c54 rt2x00_set_field32(&reg, MAC_SYS_CTRL_ENABLE_RX, 1); in rt2800usb_start_queue()
59 rt2x00_set_field32(&reg, BCN_TIME_CFG_TSF_TICKING, 1); in rt2800usb_start_queue()
60 rt2x00_set_field32(&reg, BCN_TIME_CFG_TBTT_ENABLE, 1); in rt2800usb_start_queue()
61 rt2x00_set_field32(&reg, BCN_TIME_CFG_BEACON_GEN, 1); in rt2800usb_start_queue()
77 rt2x00_set_field32(&reg, MAC_SYS_CTRL_ENABLE_RX, 0); in rt2800usb_stop_queue()
82 rt2x00_set_field32(&reg, BCN_TIME_CFG_TSF_TICKING, 0); in rt2800usb_stop_queue()
83 rt2x00_set_field32(&reg, BCN_TIME_CFG_TBTT_ENABLE, 0); in rt2800usb_stop_queue()
84 rt2x00_set_field32(&reg, BCN_TIME_CFG_BEACON_GEN, 0); in rt2800usb_stop_queue()
284 rt2x00_set_field32(&reg, MAC_SYS_CTRL_RESET_CSR, 1); in rt2800usb_init_registers()
285 rt2x00_set_field32(&reg, MAC_SYS_CTRL_RESET_BBP, 1); in rt2800usb_init_registers()
[all …]
Drt2800pci.c99 rt2x00_set_field32(&reg, E2PROM_CSR_DATA_IN, !!eeprom->reg_data_in); in rt2800pci_eepromregister_write()
100 rt2x00_set_field32(&reg, E2PROM_CSR_DATA_OUT, !!eeprom->reg_data_out); in rt2800pci_eepromregister_write()
101 rt2x00_set_field32(&reg, E2PROM_CSR_DATA_CLOCK, in rt2800pci_eepromregister_write()
103 rt2x00_set_field32(&reg, E2PROM_CSR_CHIP_SELECT, in rt2800pci_eepromregister_write()
175 rt2x00_set_field32(&reg, PBF_SYS_CTRL_HOST_RAM_WRITE, 1); in rt2800pci_write_firmware()
Drt2500usb.c588 rt2x00_set_field32(&rf->rf3, RF3_TXPOWER, TXPOWER_TO_DEV(txpower)); in rt2500usb_config_channel()
619 rt2x00_set_field32(&rf3, RF3_TXPOWER, TXPOWER_TO_DEV(txpower)); in rt2500usb_config_txpower()
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()
[all …]
Drt2x00reg.h251 #define rt2x00_set_field32(__reg, __field, __value) \ macro
Drt2800soc.c49 rt2x00_set_field32(&reg, TX_PIN_CFG_RFTR_EN, 1); in rt2800soc_disable_radio()