• Home
  • Raw
  • Download

Lines Matching refs:reg

62 	__le16 reg;  in rt2500usb_register_read()  local
65 &reg, sizeof(reg)); in rt2500usb_register_read()
66 *value = le16_to_cpu(reg); in rt2500usb_register_read()
73 __le16 reg; in rt2500usb_register_read_lock() local
76 &reg, sizeof(reg), REGISTER_TIMEOUT); in rt2500usb_register_read_lock()
77 *value = le16_to_cpu(reg); in rt2500usb_register_read_lock()
93 __le16 reg = cpu_to_le16(value); in rt2500usb_register_write() local
96 &reg, sizeof(reg)); in rt2500usb_register_write()
103 __le16 reg = cpu_to_le16(value); in rt2500usb_register_write_lock() local
106 &reg, sizeof(reg), REGISTER_TIMEOUT); in rt2500usb_register_write_lock()
121 u16 *reg) in rt2500usb_regbusy_read() argument
126 rt2500usb_register_read_lock(rt2x00dev, offset, reg); in rt2500usb_regbusy_read()
127 if (!rt2x00_get_field16(*reg, field)) in rt2500usb_regbusy_read()
133 offset, *reg); in rt2500usb_regbusy_read()
134 *reg = ~0; in rt2500usb_regbusy_read()
147 u16 reg; in rt2500usb_bbp_write() local
155 if (WAIT_FOR_BBP(rt2x00dev, &reg)) { in rt2500usb_bbp_write()
156 reg = 0; in rt2500usb_bbp_write()
157 rt2x00_set_field16(&reg, PHY_CSR7_DATA, value); in rt2500usb_bbp_write()
158 rt2x00_set_field16(&reg, PHY_CSR7_REG_ID, word); in rt2500usb_bbp_write()
159 rt2x00_set_field16(&reg, PHY_CSR7_READ_CONTROL, 0); in rt2500usb_bbp_write()
161 rt2500usb_register_write_lock(rt2x00dev, PHY_CSR7, reg); in rt2500usb_bbp_write()
170 u16 reg; in rt2500usb_bbp_read() local
182 if (WAIT_FOR_BBP(rt2x00dev, &reg)) { in rt2500usb_bbp_read()
183 reg = 0; in rt2500usb_bbp_read()
184 rt2x00_set_field16(&reg, PHY_CSR7_REG_ID, word); in rt2500usb_bbp_read()
185 rt2x00_set_field16(&reg, PHY_CSR7_READ_CONTROL, 1); in rt2500usb_bbp_read()
187 rt2500usb_register_write_lock(rt2x00dev, PHY_CSR7, reg); in rt2500usb_bbp_read()
189 if (WAIT_FOR_BBP(rt2x00dev, &reg)) in rt2500usb_bbp_read()
190 rt2500usb_register_read_lock(rt2x00dev, PHY_CSR7, &reg); in rt2500usb_bbp_read()
193 *value = rt2x00_get_field16(reg, PHY_CSR7_DATA); in rt2500usb_bbp_read()
201 u16 reg; in rt2500usb_rf_write() local
209 if (WAIT_FOR_RF(rt2x00dev, &reg)) { in rt2500usb_rf_write()
210 reg = 0; in rt2500usb_rf_write()
211 rt2x00_set_field16(&reg, PHY_CSR9_RF_VALUE, value); in rt2500usb_rf_write()
212 rt2500usb_register_write_lock(rt2x00dev, PHY_CSR9, reg); in rt2500usb_rf_write()
214 reg = 0; in rt2500usb_rf_write()
215 rt2x00_set_field16(&reg, PHY_CSR10_RF_VALUE, value >> 16); in rt2500usb_rf_write()
216 rt2x00_set_field16(&reg, PHY_CSR10_RF_NUMBER_OF_BITS, 20); in rt2500usb_rf_write()
217 rt2x00_set_field16(&reg, PHY_CSR10_RF_IF_SELECT, 0); in rt2500usb_rf_write()
218 rt2x00_set_field16(&reg, PHY_CSR10_RF_BUSY, 1); in rt2500usb_rf_write()
220 rt2500usb_register_write_lock(rt2x00dev, PHY_CSR10, reg); in rt2500usb_rf_write()
281 u16 reg; in rt2500usb_rfkill_poll() local
283 rt2500usb_register_read(rt2x00dev, MAC_CSR19, &reg); in rt2500usb_rfkill_poll()
284 return rt2x00_get_field16(reg, MAC_CSR19_VAL7); in rt2500usb_rfkill_poll()
294 u16 reg; in rt2500usb_brightness_set() local
296 rt2500usb_register_read(led->rt2x00dev, MAC_CSR20, &reg); in rt2500usb_brightness_set()
299 rt2x00_set_field16(&reg, MAC_CSR20_LINK, enabled); in rt2500usb_brightness_set()
301 rt2x00_set_field16(&reg, MAC_CSR20_ACTIVITY, enabled); in rt2500usb_brightness_set()
303 rt2500usb_register_write(led->rt2x00dev, MAC_CSR20, reg); in rt2500usb_brightness_set()
312 u16 reg; in rt2500usb_blink_set() local
314 rt2500usb_register_read(led->rt2x00dev, MAC_CSR21, &reg); in rt2500usb_blink_set()
315 rt2x00_set_field16(&reg, MAC_CSR21_ON_PERIOD, *delay_on); in rt2500usb_blink_set()
316 rt2x00_set_field16(&reg, MAC_CSR21_OFF_PERIOD, *delay_off); in rt2500usb_blink_set()
317 rt2500usb_register_write(led->rt2x00dev, MAC_CSR21, reg); in rt2500usb_blink_set()
347 u16 reg; in rt2500usb_config_key() local
368 rt2500usb_register_read(rt2x00dev, TXRX_CSR0, &reg); in rt2500usb_config_key()
369 curr_cipher = rt2x00_get_field16(reg, TXRX_CSR0_ALGORITHM); in rt2500usb_config_key()
370 reg &= mask; in rt2500usb_config_key()
372 if (reg && reg == mask) in rt2500usb_config_key()
375 reg = rt2x00_get_field16(reg, TXRX_CSR0_KEY_ID); in rt2500usb_config_key()
377 key->hw_key_idx += reg ? ffz(reg) : 0; in rt2500usb_config_key()
407 rt2500usb_register_read(rt2x00dev, TXRX_CSR0, &reg); in rt2500usb_config_key()
408 rt2x00_set_field16(&reg, TXRX_CSR0_ALGORITHM, crypto->cipher); in rt2500usb_config_key()
409 rt2x00_set_field16(&reg, TXRX_CSR0_IV_OFFSET, IEEE80211_HEADER); in rt2500usb_config_key()
411 mask = rt2x00_get_field16(reg, TXRX_CSR0_KEY_ID); in rt2500usb_config_key()
416 rt2x00_set_field16(&reg, TXRX_CSR0_KEY_ID, mask); in rt2500usb_config_key()
417 rt2500usb_register_write(rt2x00dev, TXRX_CSR0, reg); in rt2500usb_config_key()
425 u16 reg; in rt2500usb_config_filter() local
433 rt2500usb_register_read(rt2x00dev, TXRX_CSR2, &reg); in rt2500usb_config_filter()
434 rt2x00_set_field16(&reg, TXRX_CSR2_DROP_CRC, in rt2500usb_config_filter()
436 rt2x00_set_field16(&reg, TXRX_CSR2_DROP_PHYSICAL, in rt2500usb_config_filter()
438 rt2x00_set_field16(&reg, TXRX_CSR2_DROP_CONTROL, in rt2500usb_config_filter()
440 rt2x00_set_field16(&reg, TXRX_CSR2_DROP_NOT_TO_ME, in rt2500usb_config_filter()
442 rt2x00_set_field16(&reg, TXRX_CSR2_DROP_TODS, in rt2500usb_config_filter()
445 rt2x00_set_field16(&reg, TXRX_CSR2_DROP_VERSION_ERROR, 1); in rt2500usb_config_filter()
446 rt2x00_set_field16(&reg, TXRX_CSR2_DROP_MULTICAST, in rt2500usb_config_filter()
448 rt2x00_set_field16(&reg, TXRX_CSR2_DROP_BROADCAST, 0); in rt2500usb_config_filter()
449 rt2500usb_register_write(rt2x00dev, TXRX_CSR2, reg); in rt2500usb_config_filter()
458 u16 reg; in rt2500usb_config_intf() local
465 rt2500usb_register_read(rt2x00dev, TXRX_CSR20, &reg); in rt2500usb_config_intf()
466 rt2x00_set_field16(&reg, TXRX_CSR20_OFFSET, bcn_preload >> 6); in rt2500usb_config_intf()
467 rt2x00_set_field16(&reg, TXRX_CSR20_BCN_EXPECT_WINDOW, in rt2500usb_config_intf()
469 rt2500usb_register_write(rt2x00dev, TXRX_CSR20, reg); in rt2500usb_config_intf()
474 rt2500usb_register_read(rt2x00dev, TXRX_CSR18, &reg); in rt2500usb_config_intf()
475 rt2x00_set_field16(&reg, TXRX_CSR18_OFFSET, 0); in rt2500usb_config_intf()
476 rt2500usb_register_write(rt2x00dev, TXRX_CSR18, reg); in rt2500usb_config_intf()
478 rt2500usb_register_read(rt2x00dev, TXRX_CSR19, &reg); in rt2500usb_config_intf()
479 rt2x00_set_field16(&reg, TXRX_CSR19_TSF_SYNC, conf->sync); in rt2500usb_config_intf()
480 rt2500usb_register_write(rt2x00dev, TXRX_CSR19, reg); in rt2500usb_config_intf()
496 u16 reg; in rt2500usb_config_erp() local
499 rt2500usb_register_read(rt2x00dev, TXRX_CSR10, &reg); in rt2500usb_config_erp()
500 rt2x00_set_field16(&reg, TXRX_CSR10_AUTORESPOND_PREAMBLE, in rt2500usb_config_erp()
502 rt2500usb_register_write(rt2x00dev, TXRX_CSR10, reg); in rt2500usb_config_erp()
510 rt2500usb_register_read(rt2x00dev, TXRX_CSR18, &reg); in rt2500usb_config_erp()
511 rt2x00_set_field16(&reg, TXRX_CSR18_INTERVAL, in rt2500usb_config_erp()
513 rt2500usb_register_write(rt2x00dev, TXRX_CSR18, reg); in rt2500usb_config_erp()
652 u16 reg; in rt2500usb_config_ps() local
655 rt2500usb_register_read(rt2x00dev, MAC_CSR18, &reg); in rt2500usb_config_ps()
656 rt2x00_set_field16(&reg, MAC_CSR18_DELAY_AFTER_BEACON, in rt2500usb_config_ps()
658 rt2x00_set_field16(&reg, MAC_CSR18_BEACONS_BEFORE_WAKEUP, in rt2500usb_config_ps()
662 rt2x00_set_field16(&reg, MAC_CSR18_AUTO_WAKE, 0); in rt2500usb_config_ps()
663 rt2500usb_register_write(rt2x00dev, MAC_CSR18, reg); in rt2500usb_config_ps()
665 rt2x00_set_field16(&reg, MAC_CSR18_AUTO_WAKE, 1); in rt2500usb_config_ps()
666 rt2500usb_register_write(rt2x00dev, MAC_CSR18, reg); in rt2500usb_config_ps()
668 rt2500usb_register_read(rt2x00dev, MAC_CSR18, &reg); in rt2500usb_config_ps()
669 rt2x00_set_field16(&reg, MAC_CSR18_AUTO_WAKE, 0); in rt2500usb_config_ps()
670 rt2500usb_register_write(rt2x00dev, MAC_CSR18, reg); in rt2500usb_config_ps()
697 u16 reg; in rt2500usb_link_stats() local
702 rt2500usb_register_read(rt2x00dev, STA_CSR0, &reg); in rt2500usb_link_stats()
703 qual->rx_failed = rt2x00_get_field16(reg, STA_CSR0_FCS_ERROR); in rt2500usb_link_stats()
708 rt2500usb_register_read(rt2x00dev, STA_CSR3, &reg); in rt2500usb_link_stats()
709 qual->false_cca = rt2x00_get_field16(reg, STA_CSR3_FALSE_CCA_ERROR); in rt2500usb_link_stats()
743 u16 reg; in rt2500usb_start_queue() local
747 rt2500usb_register_read(rt2x00dev, TXRX_CSR2, &reg); in rt2500usb_start_queue()
748 rt2x00_set_field16(&reg, TXRX_CSR2_DISABLE_RX, 0); in rt2500usb_start_queue()
749 rt2500usb_register_write(rt2x00dev, TXRX_CSR2, reg); in rt2500usb_start_queue()
752 rt2500usb_register_read(rt2x00dev, TXRX_CSR19, &reg); in rt2500usb_start_queue()
753 rt2x00_set_field16(&reg, TXRX_CSR19_TSF_COUNT, 1); in rt2500usb_start_queue()
754 rt2x00_set_field16(&reg, TXRX_CSR19_TBCN, 1); in rt2500usb_start_queue()
755 rt2x00_set_field16(&reg, TXRX_CSR19_BEACON_GEN, 1); in rt2500usb_start_queue()
756 rt2500usb_register_write(rt2x00dev, TXRX_CSR19, reg); in rt2500usb_start_queue()
766 u16 reg; in rt2500usb_stop_queue() local
770 rt2500usb_register_read(rt2x00dev, TXRX_CSR2, &reg); in rt2500usb_stop_queue()
771 rt2x00_set_field16(&reg, TXRX_CSR2_DISABLE_RX, 1); in rt2500usb_stop_queue()
772 rt2500usb_register_write(rt2x00dev, TXRX_CSR2, reg); in rt2500usb_stop_queue()
775 rt2500usb_register_read(rt2x00dev, TXRX_CSR19, &reg); in rt2500usb_stop_queue()
776 rt2x00_set_field16(&reg, TXRX_CSR19_TSF_COUNT, 0); in rt2500usb_stop_queue()
777 rt2x00_set_field16(&reg, TXRX_CSR19_TBCN, 0); in rt2500usb_stop_queue()
778 rt2x00_set_field16(&reg, TXRX_CSR19_BEACON_GEN, 0); in rt2500usb_stop_queue()
779 rt2500usb_register_write(rt2x00dev, TXRX_CSR19, reg); in rt2500usb_stop_queue()
791 u16 reg; in rt2500usb_init_registers() local
798 rt2500usb_register_read(rt2x00dev, TXRX_CSR2, &reg); in rt2500usb_init_registers()
799 rt2x00_set_field16(&reg, TXRX_CSR2_DISABLE_RX, 1); in rt2500usb_init_registers()
800 rt2500usb_register_write(rt2x00dev, TXRX_CSR2, reg); in rt2500usb_init_registers()
805 rt2500usb_register_read(rt2x00dev, MAC_CSR1, &reg); in rt2500usb_init_registers()
806 rt2x00_set_field16(&reg, MAC_CSR1_SOFT_RESET, 1); in rt2500usb_init_registers()
807 rt2x00_set_field16(&reg, MAC_CSR1_BBP_RESET, 1); in rt2500usb_init_registers()
808 rt2x00_set_field16(&reg, MAC_CSR1_HOST_READY, 0); in rt2500usb_init_registers()
809 rt2500usb_register_write(rt2x00dev, MAC_CSR1, reg); in rt2500usb_init_registers()
811 rt2500usb_register_read(rt2x00dev, MAC_CSR1, &reg); in rt2500usb_init_registers()
812 rt2x00_set_field16(&reg, MAC_CSR1_SOFT_RESET, 0); in rt2500usb_init_registers()
813 rt2x00_set_field16(&reg, MAC_CSR1_BBP_RESET, 0); in rt2500usb_init_registers()
814 rt2x00_set_field16(&reg, MAC_CSR1_HOST_READY, 0); in rt2500usb_init_registers()
815 rt2500usb_register_write(rt2x00dev, MAC_CSR1, reg); in rt2500usb_init_registers()
817 rt2500usb_register_read(rt2x00dev, TXRX_CSR5, &reg); in rt2500usb_init_registers()
818 rt2x00_set_field16(&reg, TXRX_CSR5_BBP_ID0, 13); in rt2500usb_init_registers()
819 rt2x00_set_field16(&reg, TXRX_CSR5_BBP_ID0_VALID, 1); in rt2500usb_init_registers()
820 rt2x00_set_field16(&reg, TXRX_CSR5_BBP_ID1, 12); in rt2500usb_init_registers()
821 rt2x00_set_field16(&reg, TXRX_CSR5_BBP_ID1_VALID, 1); in rt2500usb_init_registers()
822 rt2500usb_register_write(rt2x00dev, TXRX_CSR5, reg); in rt2500usb_init_registers()
824 rt2500usb_register_read(rt2x00dev, TXRX_CSR6, &reg); in rt2500usb_init_registers()
825 rt2x00_set_field16(&reg, TXRX_CSR6_BBP_ID0, 10); in rt2500usb_init_registers()
826 rt2x00_set_field16(&reg, TXRX_CSR6_BBP_ID0_VALID, 1); in rt2500usb_init_registers()
827 rt2x00_set_field16(&reg, TXRX_CSR6_BBP_ID1, 11); in rt2500usb_init_registers()
828 rt2x00_set_field16(&reg, TXRX_CSR6_BBP_ID1_VALID, 1); in rt2500usb_init_registers()
829 rt2500usb_register_write(rt2x00dev, TXRX_CSR6, reg); in rt2500usb_init_registers()
831 rt2500usb_register_read(rt2x00dev, TXRX_CSR7, &reg); in rt2500usb_init_registers()
832 rt2x00_set_field16(&reg, TXRX_CSR7_BBP_ID0, 7); in rt2500usb_init_registers()
833 rt2x00_set_field16(&reg, TXRX_CSR7_BBP_ID0_VALID, 1); in rt2500usb_init_registers()
834 rt2x00_set_field16(&reg, TXRX_CSR7_BBP_ID1, 6); in rt2500usb_init_registers()
835 rt2x00_set_field16(&reg, TXRX_CSR7_BBP_ID1_VALID, 1); in rt2500usb_init_registers()
836 rt2500usb_register_write(rt2x00dev, TXRX_CSR7, reg); in rt2500usb_init_registers()
838 rt2500usb_register_read(rt2x00dev, TXRX_CSR8, &reg); in rt2500usb_init_registers()
839 rt2x00_set_field16(&reg, TXRX_CSR8_BBP_ID0, 5); in rt2500usb_init_registers()
840 rt2x00_set_field16(&reg, TXRX_CSR8_BBP_ID0_VALID, 1); in rt2500usb_init_registers()
841 rt2x00_set_field16(&reg, TXRX_CSR8_BBP_ID1, 0); in rt2500usb_init_registers()
842 rt2x00_set_field16(&reg, TXRX_CSR8_BBP_ID1_VALID, 0); in rt2500usb_init_registers()
843 rt2500usb_register_write(rt2x00dev, TXRX_CSR8, reg); in rt2500usb_init_registers()
845 rt2500usb_register_read(rt2x00dev, TXRX_CSR19, &reg); in rt2500usb_init_registers()
846 rt2x00_set_field16(&reg, TXRX_CSR19_TSF_COUNT, 0); in rt2500usb_init_registers()
847 rt2x00_set_field16(&reg, TXRX_CSR19_TSF_SYNC, 0); in rt2500usb_init_registers()
848 rt2x00_set_field16(&reg, TXRX_CSR19_TBCN, 0); in rt2500usb_init_registers()
849 rt2x00_set_field16(&reg, TXRX_CSR19_BEACON_GEN, 0); in rt2500usb_init_registers()
850 rt2500usb_register_write(rt2x00dev, TXRX_CSR19, reg); in rt2500usb_init_registers()
858 rt2500usb_register_read(rt2x00dev, MAC_CSR1, &reg); in rt2500usb_init_registers()
859 rt2x00_set_field16(&reg, MAC_CSR1_SOFT_RESET, 0); in rt2500usb_init_registers()
860 rt2x00_set_field16(&reg, MAC_CSR1_BBP_RESET, 0); in rt2500usb_init_registers()
861 rt2x00_set_field16(&reg, MAC_CSR1_HOST_READY, 1); in rt2500usb_init_registers()
862 rt2500usb_register_write(rt2x00dev, MAC_CSR1, reg); in rt2500usb_init_registers()
865 rt2500usb_register_read(rt2x00dev, PHY_CSR2, &reg); in rt2500usb_init_registers()
866 rt2x00_set_field16(&reg, PHY_CSR2_LNA, 0); in rt2500usb_init_registers()
868 reg = 0; in rt2500usb_init_registers()
869 rt2x00_set_field16(&reg, PHY_CSR2_LNA, 1); in rt2500usb_init_registers()
870 rt2x00_set_field16(&reg, PHY_CSR2_LNA_MODE, 3); in rt2500usb_init_registers()
872 rt2500usb_register_write(rt2x00dev, PHY_CSR2, reg); in rt2500usb_init_registers()
879 rt2500usb_register_read(rt2x00dev, MAC_CSR8, &reg); in rt2500usb_init_registers()
880 rt2x00_set_field16(&reg, MAC_CSR8_MAX_FRAME_UNIT, in rt2500usb_init_registers()
882 rt2500usb_register_write(rt2x00dev, MAC_CSR8, reg); in rt2500usb_init_registers()
884 rt2500usb_register_read(rt2x00dev, TXRX_CSR0, &reg); in rt2500usb_init_registers()
885 rt2x00_set_field16(&reg, TXRX_CSR0_ALGORITHM, CIPHER_NONE); in rt2500usb_init_registers()
886 rt2x00_set_field16(&reg, TXRX_CSR0_IV_OFFSET, IEEE80211_HEADER); in rt2500usb_init_registers()
887 rt2x00_set_field16(&reg, TXRX_CSR0_KEY_ID, 0); in rt2500usb_init_registers()
888 rt2500usb_register_write(rt2x00dev, TXRX_CSR0, reg); in rt2500usb_init_registers()
890 rt2500usb_register_read(rt2x00dev, MAC_CSR18, &reg); in rt2500usb_init_registers()
891 rt2x00_set_field16(&reg, MAC_CSR18_DELAY_AFTER_BEACON, 90); in rt2500usb_init_registers()
892 rt2500usb_register_write(rt2x00dev, MAC_CSR18, reg); in rt2500usb_init_registers()
894 rt2500usb_register_read(rt2x00dev, PHY_CSR4, &reg); in rt2500usb_init_registers()
895 rt2x00_set_field16(&reg, PHY_CSR4_LOW_RF_LE, 1); in rt2500usb_init_registers()
896 rt2500usb_register_write(rt2x00dev, PHY_CSR4, reg); in rt2500usb_init_registers()
898 rt2500usb_register_read(rt2x00dev, TXRX_CSR1, &reg); in rt2500usb_init_registers()
899 rt2x00_set_field16(&reg, TXRX_CSR1_AUTO_SEQUENCE, 1); in rt2500usb_init_registers()
900 rt2500usb_register_write(rt2x00dev, TXRX_CSR1, reg); in rt2500usb_init_registers()
1007 u16 reg; in rt2500usb_set_state() local
1016 reg = 0; in rt2500usb_set_state()
1017 rt2x00_set_field16(&reg, MAC_CSR17_BBP_DESIRE_STATE, state); in rt2500usb_set_state()
1018 rt2x00_set_field16(&reg, MAC_CSR17_RF_DESIRE_STATE, state); in rt2500usb_set_state()
1019 rt2x00_set_field16(&reg, MAC_CSR17_PUT_TO_SLEEP, put_to_sleep); in rt2500usb_set_state()
1020 rt2500usb_register_write(rt2x00dev, MAC_CSR17, reg); in rt2500usb_set_state()
1021 rt2x00_set_field16(&reg, MAC_CSR17_SET_STATE, 1); in rt2500usb_set_state()
1022 rt2500usb_register_write(rt2x00dev, MAC_CSR17, reg); in rt2500usb_set_state()
1035 rt2500usb_register_write(rt2x00dev, MAC_CSR17, reg); in rt2500usb_set_state()
1149 u16 reg, reg0; in rt2500usb_write_beacon() local
1155 rt2500usb_register_read(rt2x00dev, TXRX_CSR19, &reg); in rt2500usb_write_beacon()
1156 rt2x00_set_field16(&reg, TXRX_CSR19_BEACON_GEN, 0); in rt2500usb_write_beacon()
1157 rt2500usb_register_write(rt2x00dev, TXRX_CSR19, reg); in rt2500usb_write_beacon()
1204 rt2x00_set_field16(&reg, TXRX_CSR19_TSF_COUNT, 1); in rt2500usb_write_beacon()
1205 rt2x00_set_field16(&reg, TXRX_CSR19_TBCN, 1); in rt2500usb_write_beacon()
1206 reg0 = reg; in rt2500usb_write_beacon()
1207 rt2x00_set_field16(&reg, TXRX_CSR19_BEACON_GEN, 1); in rt2500usb_write_beacon()
1215 rt2500usb_register_write(rt2x00dev, TXRX_CSR19, reg); in rt2500usb_write_beacon()
1217 rt2500usb_register_write(rt2x00dev, TXRX_CSR19, reg); in rt2500usb_write_beacon()
1219 rt2500usb_register_write(rt2x00dev, TXRX_CSR19, reg); in rt2500usb_write_beacon()
1453 u16 reg; in rt2500usb_init_eeprom() local
1466 rt2500usb_register_read(rt2x00dev, MAC_CSR0, &reg); in rt2500usb_init_eeprom()
1467 rt2x00_set_chip(rt2x00dev, RT2570, value, reg); in rt2500usb_init_eeprom()
1469 if (((reg & 0xfff0) != 0) || ((reg & 0x0000000f) == 0)) { in rt2500usb_init_eeprom()
1774 u16 reg; in rt2500usb_probe_hw() local
1791 rt2500usb_register_read(rt2x00dev, MAC_CSR19, &reg); in rt2500usb_probe_hw()
1792 rt2x00_set_field16(&reg, MAC_CSR19_DIR0, 0); in rt2500usb_probe_hw()
1793 rt2500usb_register_write(rt2x00dev, MAC_CSR19, reg); in rt2500usb_probe_hw()