Lines Matching refs:rt2x00_set_field32

65 		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()
132 rt2x00_set_field32(&reg, PHY_CSR4_BUSY, 1); in rt73usb_rf_write()
234 rt2x00_set_field32(&reg, MAC_CSR14_ON_PERIOD, *delay_on); in rt73usb_blink_set()
235 rt2x00_set_field32(&reg, MAC_CSR14_OFF_PERIOD, *delay_off); in rt73usb_blink_set()
312 rt2x00_set_field32(&reg, field, crypto->cipher); in rt73usb_config_shared_key()
319 rt2x00_set_field32(&reg, field, crypto->cipher); in rt73usb_config_shared_key()
469 rt2x00_set_field32(&reg, TXRX_CSR0_DROP_CRC, in rt73usb_config_filter()
471 rt2x00_set_field32(&reg, TXRX_CSR0_DROP_PHYSICAL, in rt73usb_config_filter()
473 rt2x00_set_field32(&reg, TXRX_CSR0_DROP_CONTROL, in rt73usb_config_filter()
475 rt2x00_set_field32(&reg, TXRX_CSR0_DROP_NOT_TO_ME, in rt73usb_config_filter()
477 rt2x00_set_field32(&reg, TXRX_CSR0_DROP_TO_DS, in rt73usb_config_filter()
480 rt2x00_set_field32(&reg, TXRX_CSR0_DROP_VERSION_ERROR, 1); in rt73usb_config_filter()
481 rt2x00_set_field32(&reg, TXRX_CSR0_DROP_MULTICAST, in rt73usb_config_filter()
483 rt2x00_set_field32(&reg, TXRX_CSR0_DROP_BROADCAST, 0); in rt73usb_config_filter()
484 rt2x00_set_field32(&reg, TXRX_CSR0_DROP_ACK_CTS, in rt73usb_config_filter()
501 rt2x00_set_field32(&reg, TXRX_CSR9_TSF_SYNC, conf->sync); in rt73usb_config_intf()
507 rt2x00_set_field32(&reg, MAC_CSR3_UNICAST_TO_ME_MASK, 0xff); in rt73usb_config_intf()
516 rt2x00_set_field32(&reg, MAC_CSR5_BSS_ID_MASK, 3); in rt73usb_config_intf()
531 rt2x00_set_field32(&reg, TXRX_CSR0_RX_ACK_TIMEOUT, 0x32); in rt73usb_config_erp()
532 rt2x00_set_field32(&reg, TXRX_CSR0_TSF_OFFSET, IEEE80211_HEADER); in rt73usb_config_erp()
537 rt2x00_set_field32(&reg, TXRX_CSR4_AUTORESPOND_ENABLE, 1); in rt73usb_config_erp()
538 rt2x00_set_field32(&reg, TXRX_CSR4_AUTORESPOND_PREAMBLE, in rt73usb_config_erp()
549 rt2x00_set_field32(&reg, TXRX_CSR9_BEACON_INTERVAL, in rt73usb_config_erp()
556 rt2x00_set_field32(&reg, MAC_CSR9_SLOT_TIME, erp->slot_time); in rt73usb_config_erp()
560 rt2x00_set_field32(&reg, MAC_CSR8_SIFS, erp->sifs); in rt73usb_config_erp()
561 rt2x00_set_field32(&reg, MAC_CSR8_SIFS_AFTER_RX_OFDM, 3); in rt73usb_config_erp()
562 rt2x00_set_field32(&reg, MAC_CSR8_EIFS, erp->eifs); in rt73usb_config_erp()
712 rt2x00_set_field32(&reg, PHY_CSR0_PA_PE_BG, in rt73usb_config_ant()
714 rt2x00_set_field32(&reg, PHY_CSR0_PA_PE_A, in rt73usb_config_ant()
752 rt2x00_set_field32(&rf->rf3, RF3_TXPOWER, TXPOWER_TO_DEV(txpower)); in rt73usb_config_channel()
753 rt2x00_set_field32(&rf->rf4, RF4_FREQ_OFFSET, rt2x00dev->freq_offset); in rt73usb_config_channel()
805 rt2x00_set_field32(&reg, TXRX_CSR4_OFDM_TX_RATE_DOWN, 1); in rt73usb_config_retry_limit()
806 rt2x00_set_field32(&reg, TXRX_CSR4_OFDM_TX_RATE_STEP, 0); in rt73usb_config_retry_limit()
807 rt2x00_set_field32(&reg, TXRX_CSR4_OFDM_TX_FALLBACK_CCK, 0); in rt73usb_config_retry_limit()
808 rt2x00_set_field32(&reg, TXRX_CSR4_LONG_RETRY_LIMIT, in rt73usb_config_retry_limit()
810 rt2x00_set_field32(&reg, TXRX_CSR4_SHORT_RETRY_LIMIT, in rt73usb_config_retry_limit()
825 rt2x00_set_field32(&reg, MAC_CSR11_DELAY_AFTER_TBCN, in rt73usb_config_ps()
827 rt2x00_set_field32(&reg, MAC_CSR11_TBCN_BEFORE_WAKEUP, in rt73usb_config_ps()
829 rt2x00_set_field32(&reg, MAC_CSR11_WAKEUP_LATENCY, 5); in rt73usb_config_ps()
832 rt2x00_set_field32(&reg, MAC_CSR11_AUTOWAKE, 0); in rt73usb_config_ps()
835 rt2x00_set_field32(&reg, MAC_CSR11_AUTOWAKE, 1); in rt73usb_config_ps()
842 rt2x00_set_field32(&reg, MAC_CSR11_DELAY_AFTER_TBCN, 0); in rt73usb_config_ps()
843 rt2x00_set_field32(&reg, MAC_CSR11_TBCN_BEFORE_WAKEUP, 0); in rt73usb_config_ps()
844 rt2x00_set_field32(&reg, MAC_CSR11_AUTOWAKE, 0); in rt73usb_config_ps()
845 rt2x00_set_field32(&reg, MAC_CSR11_WAKEUP_LATENCY, 0); in rt73usb_config_ps()
1021 rt2x00_set_field32(&reg, TXRX_CSR0_DISABLE_RX, 0); in rt73usb_start_queue()
1026 rt2x00_set_field32(&reg, TXRX_CSR9_TSF_TICKING, 1); in rt73usb_start_queue()
1027 rt2x00_set_field32(&reg, TXRX_CSR9_TBTT_ENABLE, 1); in rt73usb_start_queue()
1028 rt2x00_set_field32(&reg, TXRX_CSR9_BEACON_GEN, 1); in rt73usb_start_queue()
1044 rt2x00_set_field32(&reg, TXRX_CSR0_DISABLE_RX, 1); in rt73usb_stop_queue()
1049 rt2x00_set_field32(&reg, TXRX_CSR9_TSF_TICKING, 0); in rt73usb_stop_queue()
1050 rt2x00_set_field32(&reg, TXRX_CSR9_TBTT_ENABLE, 0); in rt73usb_stop_queue()
1051 rt2x00_set_field32(&reg, TXRX_CSR9_BEACON_GEN, 0); in rt73usb_stop_queue()
1146 rt2x00_set_field32(&reg, TXRX_CSR0_AUTO_TX_SEQ, 1); in rt73usb_init_registers()
1147 rt2x00_set_field32(&reg, TXRX_CSR0_DISABLE_RX, 0); in rt73usb_init_registers()
1148 rt2x00_set_field32(&reg, TXRX_CSR0_TX_WITHOUT_WAITING, 0); in rt73usb_init_registers()
1152 rt2x00_set_field32(&reg, TXRX_CSR1_BBP_ID0, 47); /* CCK Signal */ in rt73usb_init_registers()
1153 rt2x00_set_field32(&reg, TXRX_CSR1_BBP_ID0_VALID, 1); in rt73usb_init_registers()
1154 rt2x00_set_field32(&reg, TXRX_CSR1_BBP_ID1, 30); /* Rssi */ in rt73usb_init_registers()
1155 rt2x00_set_field32(&reg, TXRX_CSR1_BBP_ID1_VALID, 1); in rt73usb_init_registers()
1156 rt2x00_set_field32(&reg, TXRX_CSR1_BBP_ID2, 42); /* OFDM Rate */ in rt73usb_init_registers()
1157 rt2x00_set_field32(&reg, TXRX_CSR1_BBP_ID2_VALID, 1); in rt73usb_init_registers()
1158 rt2x00_set_field32(&reg, TXRX_CSR1_BBP_ID3, 30); /* Rssi */ in rt73usb_init_registers()
1159 rt2x00_set_field32(&reg, TXRX_CSR1_BBP_ID3_VALID, 1); in rt73usb_init_registers()
1166 rt2x00_set_field32(&reg, TXRX_CSR2_BBP_ID0, 13); in rt73usb_init_registers()
1167 rt2x00_set_field32(&reg, TXRX_CSR2_BBP_ID0_VALID, 1); in rt73usb_init_registers()
1168 rt2x00_set_field32(&reg, TXRX_CSR2_BBP_ID1, 12); in rt73usb_init_registers()
1169 rt2x00_set_field32(&reg, TXRX_CSR2_BBP_ID1_VALID, 1); in rt73usb_init_registers()
1170 rt2x00_set_field32(&reg, TXRX_CSR2_BBP_ID2, 11); in rt73usb_init_registers()
1171 rt2x00_set_field32(&reg, TXRX_CSR2_BBP_ID2_VALID, 1); in rt73usb_init_registers()
1172 rt2x00_set_field32(&reg, TXRX_CSR2_BBP_ID3, 10); in rt73usb_init_registers()
1173 rt2x00_set_field32(&reg, TXRX_CSR2_BBP_ID3_VALID, 1); in rt73usb_init_registers()
1180 rt2x00_set_field32(&reg, TXRX_CSR3_BBP_ID0, 7); in rt73usb_init_registers()
1181 rt2x00_set_field32(&reg, TXRX_CSR3_BBP_ID0_VALID, 1); in rt73usb_init_registers()
1182 rt2x00_set_field32(&reg, TXRX_CSR3_BBP_ID1, 6); in rt73usb_init_registers()
1183 rt2x00_set_field32(&reg, TXRX_CSR3_BBP_ID1_VALID, 1); in rt73usb_init_registers()
1184 rt2x00_set_field32(&reg, TXRX_CSR3_BBP_ID2, 5); in rt73usb_init_registers()
1185 rt2x00_set_field32(&reg, TXRX_CSR3_BBP_ID2_VALID, 1); in rt73usb_init_registers()
1189 rt2x00_set_field32(&reg, TXRX_CSR7_ACK_CTS_6MBS, 59); in rt73usb_init_registers()
1190 rt2x00_set_field32(&reg, TXRX_CSR7_ACK_CTS_9MBS, 53); in rt73usb_init_registers()
1191 rt2x00_set_field32(&reg, TXRX_CSR7_ACK_CTS_12MBS, 49); in rt73usb_init_registers()
1192 rt2x00_set_field32(&reg, TXRX_CSR7_ACK_CTS_18MBS, 46); in rt73usb_init_registers()
1196 rt2x00_set_field32(&reg, TXRX_CSR8_ACK_CTS_24MBS, 44); in rt73usb_init_registers()
1197 rt2x00_set_field32(&reg, TXRX_CSR8_ACK_CTS_36MBS, 42); in rt73usb_init_registers()
1198 rt2x00_set_field32(&reg, TXRX_CSR8_ACK_CTS_48MBS, 42); in rt73usb_init_registers()
1199 rt2x00_set_field32(&reg, TXRX_CSR8_ACK_CTS_54MBS, 42); in rt73usb_init_registers()
1203 rt2x00_set_field32(&reg, TXRX_CSR9_BEACON_INTERVAL, 0); in rt73usb_init_registers()
1204 rt2x00_set_field32(&reg, TXRX_CSR9_TSF_TICKING, 0); in rt73usb_init_registers()
1205 rt2x00_set_field32(&reg, TXRX_CSR9_TSF_SYNC, 0); in rt73usb_init_registers()
1206 rt2x00_set_field32(&reg, TXRX_CSR9_TBTT_ENABLE, 0); in rt73usb_init_registers()
1207 rt2x00_set_field32(&reg, TXRX_CSR9_BEACON_GEN, 0); in rt73usb_init_registers()
1208 rt2x00_set_field32(&reg, TXRX_CSR9_TIMESTAMP_COMPENSATE, 0); in rt73usb_init_registers()
1214 rt2x00_set_field32(&reg, MAC_CSR6_MAX_FRAME_UNIT, 0xfff); in rt73usb_init_registers()
1234 rt2x00_set_field32(&reg, PHY_CSR1_RF_RPI, 1); in rt73usb_init_registers()
1242 rt2x00_set_field32(&reg, MAC_CSR9_CW_SELECT, 0); in rt73usb_init_registers()
1269 rt2x00_set_field32(&reg, MAC_CSR1_SOFT_RESET, 1); in rt73usb_init_registers()
1270 rt2x00_set_field32(&reg, MAC_CSR1_BBP_RESET, 1); in rt73usb_init_registers()
1274 rt2x00_set_field32(&reg, MAC_CSR1_SOFT_RESET, 0); in rt73usb_init_registers()
1275 rt2x00_set_field32(&reg, MAC_CSR1_BBP_RESET, 0); in rt73usb_init_registers()
1279 rt2x00_set_field32(&reg, MAC_CSR1_HOST_READY, 1); in rt73usb_init_registers()
1386 rt2x00_set_field32(&reg, MAC_CSR12_FORCE_WAKEUP, !put_to_sleep); in rt73usb_set_state()
1387 rt2x00_set_field32(&reg, MAC_CSR12_PUT_TO_SLEEP, put_to_sleep); in rt73usb_set_state()
1455 rt2x00_set_field32(&word, TXD_W0_BURST, in rt73usb_write_tx_desc()
1457 rt2x00_set_field32(&word, TXD_W0_VALID, 1); in rt73usb_write_tx_desc()
1458 rt2x00_set_field32(&word, TXD_W0_MORE_FRAG, in rt73usb_write_tx_desc()
1460 rt2x00_set_field32(&word, TXD_W0_ACK, in rt73usb_write_tx_desc()
1462 rt2x00_set_field32(&word, TXD_W0_TIMESTAMP, in rt73usb_write_tx_desc()
1464 rt2x00_set_field32(&word, TXD_W0_OFDM, in rt73usb_write_tx_desc()
1466 rt2x00_set_field32(&word, TXD_W0_IFS, txdesc->u.plcp.ifs); in rt73usb_write_tx_desc()
1467 rt2x00_set_field32(&word, TXD_W0_RETRY_MODE, in rt73usb_write_tx_desc()
1469 rt2x00_set_field32(&word, TXD_W0_TKIP_MIC, in rt73usb_write_tx_desc()
1471 rt2x00_set_field32(&word, TXD_W0_KEY_TABLE, in rt73usb_write_tx_desc()
1473 rt2x00_set_field32(&word, TXD_W0_KEY_INDEX, txdesc->key_idx); in rt73usb_write_tx_desc()
1474 rt2x00_set_field32(&word, TXD_W0_DATABYTE_COUNT, txdesc->length); in rt73usb_write_tx_desc()
1475 rt2x00_set_field32(&word, TXD_W0_BURST2, in rt73usb_write_tx_desc()
1477 rt2x00_set_field32(&word, TXD_W0_CIPHER_ALG, txdesc->cipher); in rt73usb_write_tx_desc()
1481 rt2x00_set_field32(&word, TXD_W1_HOST_Q_ID, entry->queue->qid); in rt73usb_write_tx_desc()
1482 rt2x00_set_field32(&word, TXD_W1_AIFSN, entry->queue->aifs); in rt73usb_write_tx_desc()
1483 rt2x00_set_field32(&word, TXD_W1_CWMIN, entry->queue->cw_min); in rt73usb_write_tx_desc()
1484 rt2x00_set_field32(&word, TXD_W1_CWMAX, entry->queue->cw_max); in rt73usb_write_tx_desc()
1485 rt2x00_set_field32(&word, TXD_W1_IV_OFFSET, txdesc->iv_offset); in rt73usb_write_tx_desc()
1486 rt2x00_set_field32(&word, TXD_W1_HW_SEQUENCE, in rt73usb_write_tx_desc()
1491 rt2x00_set_field32(&word, TXD_W2_PLCP_SIGNAL, txdesc->u.plcp.signal); in rt73usb_write_tx_desc()
1492 rt2x00_set_field32(&word, TXD_W2_PLCP_SERVICE, txdesc->u.plcp.service); in rt73usb_write_tx_desc()
1493 rt2x00_set_field32(&word, TXD_W2_PLCP_LENGTH_LOW, in rt73usb_write_tx_desc()
1495 rt2x00_set_field32(&word, TXD_W2_PLCP_LENGTH_HIGH, in rt73usb_write_tx_desc()
1505 rt2x00_set_field32(&word, TXD_W5_TX_POWER, in rt73usb_write_tx_desc()
1507 rt2x00_set_field32(&word, TXD_W5_WAITING_DMA_DONE_INT, 1); in rt73usb_write_tx_desc()
1535 rt2x00_set_field32(&reg, TXRX_CSR9_BEACON_GEN, 0); in rt73usb_write_beacon()
1578 rt2x00_set_field32(&reg, TXRX_CSR9_BEACON_GEN, 1); in rt73usb_write_beacon()
1600 rt2x00_set_field32(&reg, TXRX_CSR9_BEACON_GEN, 0); in rt73usb_clear_beacon()
2184 rt2x00_set_field32(&reg, MAC_CSR13_DIR7, 0); in rt73usb_probe_hw()
2256 rt2x00_set_field32(&reg, field, queue->txop); in rt73usb_conf_tx()
2264 rt2x00_set_field32(&reg, field, queue->aifs); in rt73usb_conf_tx()
2268 rt2x00_set_field32(&reg, field, queue->cw_min); in rt73usb_conf_tx()
2272 rt2x00_set_field32(&reg, field, queue->cw_max); in rt73usb_conf_tx()