/linux/drivers/net/wireless/ralink/rt2x00/ |
H A D | rt2800lib.c | 675 if (rt2x00_is_usb(rt2x00dev) || rt2x00_rt(rt2x00dev, RT3290)) in rt2800_check_firmware() 1021 struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev; in rt2800_txdone_entry() local 1413 struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev; in rt2800_write_beacon() local 1507 struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev; in rt2800_clear_beacon() local 1660 led->rt2x00dev = rt2x00dev; in rt2800_init_led() 3735 rt2800_bbp_write(rt2x00dev, 62, 0x37 - rt2x00dev->lna_gain); in rt2800_config_channel_rf55xx() 3736 rt2800_bbp_write(rt2x00dev, 63, 0x37 - rt2x00dev->lna_gain); in rt2800_config_channel_rf55xx() 5666 rt2x00dev->ops->lib->set_device_state(rt2x00dev, state); in rt2800_config_ps() 5674 rt2x00dev->ops->lib->set_device_state(rt2x00dev, state); in rt2800_config_ps() 10492 rt2800_rfcsr_write(rt2x00dev, 12, rt2x00dev->freq_offset); in rt2800_init_rfcsr_6352() [all …]
|
H A D | rt2800mmio.c | 29 struct rt2x00_dev *rt2x00dev = queue->rt2x00dev; in rt2800mmio_get_dma_done() local 215 struct rt2x00_dev *rt2x00dev = from_tasklet(rt2x00dev, t, in rt2800mmio_pretbtt_tasklet() local 260 struct rt2x00_dev *rt2x00dev = from_tasklet(rt2x00dev, t, in rt2800mmio_rxdone_tasklet() local 271 struct rt2x00_dev *rt2x00dev = from_tasklet(rt2x00dev, t, in rt2800mmio_autowake_tasklet() local 315 struct rt2x00_dev *rt2x00dev = from_tasklet(rt2x00dev, t, in rt2800mmio_txstatus_tasklet() local 426 struct rt2x00_dev *rt2x00dev = queue->rt2x00dev; in rt2800mmio_start_queue() local 457 struct rt2x00_dev *rt2x00dev = queue->rt2x00dev; in rt2800mmio_kick_queue() local 485 struct rt2x00_dev *rt2x00dev = queue->rt2x00dev; in rt2800mmio_flush_queue() local 529 struct rt2x00_dev *rt2x00dev = queue->rt2x00dev; in rt2800mmio_stop_queue() local 566 struct rt2x00_dev *rt2x00dev = queue->rt2x00dev; in rt2800mmio_queue_init() local [all …]
|
H A D | rt2x00dev.c | 263 struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev; in rt2x00lib_txdone_bar_status() local 413 struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev; in rt2x00lib_txdone_nomatch() local 463 struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev; in rt2x00lib_txdone() local 593 rt2x00lib_config(rt2x00dev, &rt2x00dev->hw->conf, in rt2x00lib_sleep() 688 queue_work(rt2x00dev->workqueue, &rt2x00dev->sleep_work); in rt2x00lib_rxdone_check_ps() 710 sband = &rt2x00dev->bands[rt2x00dev->curr_band]; in rt2x00lib_rxdone_read_signal() 739 struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev; in rt2x00lib_rxdone() local 1129 rt2x00dev->hw->queues = rt2x00dev->ops->tx_queues; in rt2x00lib_probe_hw() 1226 rt2x00dev->ops->lib->uninitialize(rt2x00dev); in rt2x00lib_uninitialize() 1251 status = rt2x00dev->ops->lib->initialize(rt2x00dev); in rt2x00lib_initialize() [all …]
|
H A D | rt2x00link.c | 191 if (!rt2x00dev->intf_sta_count) in rt2x00link_update_stats() 228 if (!rt2x00dev->intf_ap_count && !rt2x00dev->intf_sta_count) in rt2x00link_start_tuner() 268 rt2x00dev->link.count = 0; in rt2x00link_reset_tuner() 282 rt2x00dev->ops->lib->reset_tuner(rt2x00dev, qual); in rt2x00link_reset_tuner() 305 rt2x00dev->ops->lib->link_stats(rt2x00dev, qual); in rt2x00link_tuner_sta() 325 rt2x00dev->ops->lib->link_tuner(rt2x00dev, qual, link->count); in rt2x00link_tuner_sta() 343 struct rt2x00_dev *rt2x00dev = in rt2x00link_tuner() local 358 if (rt2x00dev->intf_sta_count) in rt2x00link_tuner() 363 rt2x00dev->ops->lib->gain_calibration(rt2x00dev); in rt2x00link_tuner() 368 rt2x00dev->ops->lib->vco_calibration(rt2x00dev); in rt2x00link_tuner() [all …]
|
H A D | rt61pci.c | 298 led->rt2x00dev = rt2x00dev; in rt61pci_init_led() 1043 struct rt2x00_dev *rt2x00dev = queue->rt2x00dev; in rt61pci_start_queue() local 1066 struct rt2x00_dev *rt2x00dev = queue->rt2x00dev; in rt61pci_kick_queue() local 1097 struct rt2x00_dev *rt2x00dev = queue->rt2x00dev; in rt61pci_stop_queue() local 1875 struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev; in rt61pci_write_beacon() local 1939 struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev; in rt61pci_clear_beacon() local 1997 struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev; in rt61pci_fill_rxdone() local 2195 struct rt2x00_dev *rt2x00dev = from_tasklet(rt2x00dev, t, in rt61pci_txstatus_tasklet() local 2213 struct rt2x00_dev *rt2x00dev = from_tasklet(rt2x00dev, t, in rt61pci_rxdone_tasklet() local 2509 rt61pci_init_led(rt2x00dev, &rt2x00dev->led_qual, in rt61pci_init_eeprom() [all …]
|
H A D | rt2400pci.c | 240 led->rt2x00dev = rt2x00dev; in rt2400pci_init_led() 538 rt2x00dev->ops->lib->set_device_state(rt2x00dev, state); in rt2400pci_config_ps() 629 struct rt2x00_dev *rt2x00dev = queue->rt2x00dev; in rt2400pci_start_queue() local 652 struct rt2x00_dev *rt2x00dev = queue->rt2x00dev; in rt2400pci_kick_queue() local 678 struct rt2x00_dev *rt2x00dev = queue->rt2x00dev; in rt2400pci_stop_queue() local 1168 struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev; in rt2400pci_write_beacon() local 1210 struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev; in rt2400pci_fill_rxdone() local 1239 tsf = rt2x00dev->ops->hw->get_tsf(rt2x00dev->hw, NULL); in rt2400pci_fill_rxdone() 1520 rt2400pci_init_led(rt2x00dev, &rt2x00dev->led_qual, in rt2400pci_init_eeprom() 1575 SET_IEEE80211_DEV(rt2x00dev->hw, rt2x00dev->dev); in rt2400pci_probe_hw_mode() [all …]
|
H A D | rt2500pci.c | 240 led->rt2x00dev = rt2x00dev; in rt2500pci_init_led() 447 if (rt2x00_rf(rt2x00dev, RF2525E) || rt2x00_rf(rt2x00dev, RF5222)) { in rt2500pci_config_ant() 586 rt2x00dev->ops->lib->set_device_state(rt2x00dev, state); in rt2500pci_config_ps() 718 struct rt2x00_dev *rt2x00dev = queue->rt2x00dev; in rt2500pci_start_queue() local 741 struct rt2x00_dev *rt2x00dev = queue->rt2x00dev; in rt2500pci_kick_queue() local 767 struct rt2x00_dev *rt2x00dev = queue->rt2x00dev; in rt2500pci_stop_queue() local 1320 struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev; in rt2500pci_write_beacon() local 1452 struct rt2x00_dev *rt2x00dev = from_tasklet(rt2x00dev, t, in rt2500pci_txstatus_tasklet() local 1489 struct rt2x00_dev *rt2x00dev = from_tasklet(rt2x00dev, t, in rt2500pci_rxdone_tasklet() local 1668 rt2500pci_init_led(rt2x00dev, &rt2x00dev->led_qual, in rt2500pci_init_eeprom() [all …]
|
H A D | rt2500usb.c | 303 led->rt2x00dev = rt2x00dev; in rt2500usb_init_led() 561 if (rt2x00_rf(rt2x00dev, RF2525E) || rt2x00_rf(rt2x00dev, RF5222)) { in rt2500usb_config_ant() 650 rt2x00dev->ops->lib->set_device_state(rt2x00dev, state); in rt2500usb_config_ps() 719 struct rt2x00_dev *rt2x00dev = queue->rt2x00dev; in rt2500usb_start_queue() local 742 struct rt2x00_dev *rt2x00dev = queue->rt2x00dev; in rt2500usb_stop_queue() local 832 if (rt2x00dev->ops->lib->set_device_state(rt2x00dev, STATE_AWAKE)) in rt2500usb_init_registers() 1121 struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev; in rt2500usb_write_beacon() local 1219 struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev; in rt2500usb_fill_rxdone() local 1323 rt2x00usb_eeprom_read(rt2x00dev, rt2x00dev->eeprom, EEPROM_SIZE); in rt2500usb_validate_eeprom() 1487 rt2500usb_init_led(rt2x00dev, &rt2x00dev->led_qual, in rt2500usb_init_eeprom() [all …]
|
H A D | rt73usb.c | 245 led->rt2x00dev = rt2x00dev; in rt73usb_init_led() 719 if (rt2x00_rf(rt2x00dev, RF5226) || rt2x00_rf(rt2x00dev, RF5225)) in rt73usb_config_ant() 1015 struct rt2x00_dev *rt2x00dev = queue->rt2x00dev; in rt73usb_start_queue() local 1038 struct rt2x00_dev *rt2x00dev = queue->rt2x00dev; in rt73usb_stop_queue() local 1233 if (rt2x00_rf(rt2x00dev, RF5225) || rt2x00_rf(rt2x00dev, RF2527)) in rt73usb_init_registers() 1524 struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev; in rt73usb_write_beacon() local 1590 struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev; in rt73usb_clear_beacon() local 1670 struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev; in rt73usb_fill_rxdone() local 1755 rt2x00usb_eeprom_read(rt2x00dev, rt2x00dev->eeprom, EEPROM_SIZE); in rt73usb_validate_eeprom() 1921 rt73usb_init_led(rt2x00dev, &rt2x00dev->led_qual, in rt73usb_init_eeprom() [all …]
|
H A D | rt2800lib.h | 51 u32 (*register_read)(struct rt2x00_dev *rt2x00dev, 55 void (*register_write)(struct rt2x00_dev *rt2x00dev, 67 int (*regbusy_read)(struct rt2x00_dev *rt2x00dev, 71 int (*read_eeprom)(struct rt2x00_dev *rt2x00dev); 86 return rt2800ops->register_read(rt2x00dev, offset); in rt2800_register_read() 148 return rt2800ops->read_eeprom(rt2x00dev); in rt2800_read_eeprom() 155 return rt2800ops->hwcrypt_disabled(rt2x00dev); in rt2800_hwcrypt_disabled() 170 return rt2800ops->drv_init_registers(rt2x00dev); in rt2800_drv_init_registers() 210 void rt2800_watchdog(struct rt2x00_dev *rt2x00dev); 235 void rt2800_config(struct rt2x00_dev *rt2x00dev, [all …]
|
H A D | rt2x00lib.h | 60 int rt2x00lib_enable_radio(struct rt2x00_dev *rt2x00dev); 66 int rt2x00lib_start(struct rt2x00_dev *rt2x00dev); 67 void rt2x00lib_stop(struct rt2x00_dev *rt2x00dev); 72 void rt2x00lib_config_intf(struct rt2x00_dev *rt2x00dev, 76 void rt2x00lib_config_erp(struct rt2x00_dev *rt2x00dev, 82 void rt2x00lib_config(struct rt2x00_dev *rt2x00dev, 188 int rt2x00queue_allocate(struct rt2x00_dev *rt2x00dev); 189 void rt2x00queue_free(struct rt2x00_dev *rt2x00dev); 375 wiphy_rfkill_start_polling(rt2x00dev->hw->wiphy); in rt2x00rfkill_register() 381 wiphy_rfkill_stop_polling(rt2x00dev->hw->wiphy); in rt2x00rfkill_unregister() [all …]
|
H A D | rt2x00mac.c | 116 rt2x00_err(rt2x00dev, in rt2x00mac_tx() 174 rt2x00dev->ops->lib->pre_reset_hw(rt2x00dev); in rt2x00mac_start() 175 rt2x00lib_stop(rt2x00dev); in rt2x00mac_start() 188 rt2x00lib_stop(rt2x00dev); in rt2x00mac_stop() 241 rt2x00dev->intf_ap_count++; in rt2x00mac_add_interface() 344 rt2x00lib_config_antenna(rt2x00dev, rt2x00dev->default_ant); in rt2x00mac_config() 400 rt2x00dev->ops->lib->config_filter(rt2x00dev, *total_flags); in rt2x00mac_configure_filter() 430 ieee80211_queue_work(rt2x00dev->hw, &rt2x00dev->intf_work); in rt2x00mac_set_tim() 664 rt2x00leds_led_assoc(rt2x00dev, !!rt2x00dev->intf_associated); in rt2x00mac_bss_info_changed() 707 rt2x00_dbg(rt2x00dev, in rt2x00mac_conf_tx() [all …]
|
H A D | rt2x00leds.c | 21 struct rt2x00_led *led = &rt2x00dev->led_qual; in rt2x00leds_led_quality() 31 rssi += rt2x00dev->rssi_offset; in rt2x00leds_led_quality() 122 rt2x00dev->ops->name, phy_name); in rt2x00leds_register() 124 retval = rt2x00leds_register_led(rt2x00dev, in rt2x00leds_register() 125 &rt2x00dev->led_radio, in rt2x00leds_register() 133 rt2x00dev->ops->name, phy_name); in rt2x00leds_register() 136 &rt2x00dev->led_assoc, in rt2x00leds_register() 144 rt2x00dev->ops->name, phy_name); in rt2x00leds_register() 147 &rt2x00dev->led_qual, in rt2x00leds_register() 161 rt2x00dev->led_radio.led_dev.blink_set( in rt2x00leds_register() [all …]
|
H A D | rt2x00usb.c | 209 rd->rt2x00dev = rt2x00dev; in rt2x00usb_register_read_async() 271 struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev; in rt2x00usb_interrupt_txdone() local 293 queue_work(rt2x00dev->workqueue, &rt2x00dev->txdone_work); in rt2x00usb_interrupt_txdone() 298 struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev; in rt2x00usb_kick_tx_entry() local 375 struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev; in rt2x00usb_interrupt_rxdone() local 396 queue_work(rt2x00dev->workqueue, &rt2x00dev->rxdone_work); in rt2x00usb_interrupt_rxdone() 401 struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev; in rt2x00usb_kick_rx_entry() local 457 struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev; in rt2x00usb_flush_entry() local 651 struct rt2x00_dev *rt2x00dev = queue->rt2x00dev; in rt2x00usb_alloc_entries() local 684 struct rt2x00_dev *rt2x00dev = queue->rt2x00dev; in rt2x00usb_free_entries() local [all …]
|
H A D | rt2x00soc.c | 25 kfree(rt2x00dev->rf); in rt2x00soc_free_reg() 26 rt2x00dev->rf = NULL; in rt2x00soc_free_reg() 28 kfree(rt2x00dev->eeprom); in rt2x00soc_free_reg() 29 rt2x00dev->eeprom = NULL; in rt2x00soc_free_reg() 47 rt2x00dev->eeprom = kzalloc(rt2x00dev->ops->eeprom_size, GFP_KERNEL); in rt2x00soc_alloc_reg() 48 if (!rt2x00dev->eeprom) in rt2x00soc_alloc_reg() 51 rt2x00dev->rf = kzalloc(rt2x00dev->ops->rf_size, GFP_KERNEL); in rt2x00soc_alloc_reg() 52 if (!rt2x00dev->rf) in rt2x00soc_alloc_reg() 78 rt2x00dev = hw->priv; in rt2x00soc_probe() 80 rt2x00dev->ops = ops; in rt2x00soc_probe() [all …]
|
H A D | rt2x00.h | 1096 rt2x00dev->chip.rt = rt; in rt2x00_set_chip() 1097 rt2x00dev->chip.rf = rf; in rt2x00_set_chip() 1101 rt2x00dev->chip.rt, rt2x00dev->chip.rf, in rt2x00_set_chip() 1108 rt2x00dev->chip.rt = rt; in rt2x00_set_rt() 1112 rt2x00dev->chip.rt, rt2x00dev->chip.rev); in rt2x00_set_rt() 1117 rt2x00dev->chip.rf = rf; in rt2x00_set_rf() 1141 return (rt2x00_rt(rt2x00dev, rt) && rt2x00_rev(rt2x00dev) == rev); in rt2x00_rt_rev() 1147 return (rt2x00_rt(rt2x00dev, rt) && rt2x00_rev(rt2x00dev) < rev); in rt2x00_rt_rev_lt() 1153 return (rt2x00_rt(rt2x00dev, rt) && rt2x00_rev(rt2x00dev) >= rev); in rt2x00_rt_rev_gte() 1316 if (queue < rt2x00dev->ops->tx_queues && rt2x00dev->tx) in rt2x00queue_get_tx_queue() [all …]
|
H A D | rt2x00pci.c | 27 kfree(rt2x00dev->rf); in rt2x00pci_free_reg() 28 rt2x00dev->rf = NULL; in rt2x00pci_free_reg() 30 kfree(rt2x00dev->eeprom); in rt2x00pci_free_reg() 31 rt2x00dev->eeprom = NULL; in rt2x00pci_free_reg() 47 rt2x00dev->eeprom = kzalloc(rt2x00dev->ops->eeprom_size, GFP_KERNEL); in rt2x00pci_alloc_reg() 48 if (!rt2x00dev->eeprom) in rt2x00pci_alloc_reg() 51 rt2x00dev->rf = kzalloc(rt2x00dev->ops->rf_size, GFP_KERNEL); in rt2x00pci_alloc_reg() 52 if (!rt2x00dev->rf) in rt2x00pci_alloc_reg() 104 rt2x00dev = hw->priv; in rt2x00pci_probe() 106 rt2x00dev->ops = ops; in rt2x00pci_probe() [all …]
|
H A D | rt2x00config.c | 60 if (mac || (!rt2x00dev->intf_ap_count && !rt2x00dev->intf_sta_count)) in rt2x00lib_config_intf() 62 if (bssid || (!rt2x00dev->intf_ap_count && !rt2x00dev->intf_sta_count)) in rt2x00lib_config_intf() 65 rt2x00dev->ops->lib->config_intf(rt2x00dev, intf, &conf, flags); in rt2x00lib_config_intf() 101 rt2x00dev->ops->lib->config_erp(rt2x00dev, &erp, changed); in rt2x00lib_config_erp() 148 rt2x00queue_stop_queue(rt2x00dev->rx); in rt2x00lib_config_antenna() 155 rt2x00dev->ops->lib->config_ant(rt2x00dev, &config); in rt2x00lib_config_antenna() 157 rt2x00link_reset_tuner(rt2x00dev, true); in rt2x00lib_config_antenna() 162 rt2x00queue_start_queue(rt2x00dev->rx); in rt2x00lib_config_antenna() 240 rt2x00dev->ops->lib->config(rt2x00dev, &libconf, ieee80211_flags); in rt2x00lib_config() 254 rt2x00dev->tx_power = conf->power_level; in rt2x00lib_config() [all …]
|
H A D | rt2x00firmware.c | 30 fw_name = rt2x00dev->ops->lib->get_firmware_name(rt2x00dev); in rt2x00lib_request_firmware() 32 rt2x00_err(rt2x00dev, in rt2x00lib_request_firmware() 58 retval = rt2x00dev->ops->lib->check_firmware(rt2x00dev, fw->data, fw->size); in rt2x00lib_request_firmware() 74 rt2x00dev->fw = fw; in rt2x00lib_request_firmware() 91 if (!rt2x00dev->fw) { in rt2x00lib_load_firmware() 100 retval = rt2x00dev->ops->lib->load_firmware(rt2x00dev, in rt2x00lib_load_firmware() 101 rt2x00dev->fw->data, in rt2x00lib_load_firmware() 102 rt2x00dev->fw->size); in rt2x00lib_load_firmware() 109 rt2x00leds_led_assoc(rt2x00dev, false); in rt2x00lib_load_firmware() 116 release_firmware(rt2x00dev->fw); in rt2x00lib_free_firmware() [all …]
|
H A D | rt2800pci.c | 57 if (rt2x00_is_soc(rt2x00dev)) in rt2800pci_mcu_status() 81 struct rt2x00_dev *rt2x00dev = eeprom->data; in rt2800pci_eepromregister_read() local 96 struct rt2x00_dev *rt2x00dev = eeprom->data; in rt2800pci_eepromregister_write() local 116 eeprom.data = rt2x00dev; in rt2800pci_read_eeprom_pci() 144 return rt2800_efuse_detect(rt2x00dev); in rt2800pci_efuse_detect() 149 return rt2800_read_eeprom_efuse(rt2x00dev); in rt2800pci_read_eeprom_efuse() 160 if (rt2x00_rt(rt2x00dev, RT3290)) in rt2800pci_get_firmware_name() 200 retval = rt2800mmio_enable_radio(rt2x00dev); in rt2800pci_enable_radio() 243 retval = rt2800pci_enable_radio(rt2x00dev); in rt2800pci_set_device_state() 254 rt2800mmio_toggle_irq(rt2x00dev, state); in rt2800pci_set_device_state() [all …]
|
H A D | rt2800usb.c | 48 struct rt2x00_dev *rt2x00dev = queue->rt2x00dev; in rt2800usb_start_queue() local 71 struct rt2x00_dev *rt2x00dev = queue->rt2x00dev; in rt2800usb_stop_queue() local 111 queue_work(rt2x00dev->workqueue, &rt2x00dev->txdone_work); in rt2800usb_tx_sta_fifo_read_completed() 119 queue_work(rt2x00dev->workqueue, &rt2x00dev->txdone_work); in rt2800usb_tx_sta_fifo_read_completed() 157 struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev; in rt2800usb_tx_dma_done() local 164 struct rt2x00_dev *rt2x00dev = in rt2800usb_tx_sta_fifo_timeout() local 238 rt2x00_info(rt2x00dev, in rt2800usb_write_firmware() 322 rt2800_disable_radio(rt2x00dev); in rt2800usb_disable_radio() 458 struct rt2x00_dev *rt2x00dev = in rt2800usb_work_txdone() local 604 retval = rt2x00usb_eeprom_read(rt2x00dev, rt2x00dev->eeprom, in rt2800usb_read_eeprom() [all …]
|
H A D | rt2x00queue.c | 26 struct rt2x00_dev *rt2x00dev = queue->rt2x00dev; in rt2x00queue_alloc_rxskb() local 488 struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev; in rt2x00queue_write_tx_data() local 497 rt2x00_err(rt2x00dev, in rt2x00queue_write_tx_data() 559 struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev; in rt2x00queue_bar_check() local 1219 queue->rt2x00dev = rt2x00dev; in rt2x00queue_init() 1245 rt2x00dev->data_queues = 2 + rt2x00dev->ops->tx_queues + req_atim; in rt2x00queue_allocate() 1256 rt2x00dev->bcn = &queue[1 + rt2x00dev->ops->tx_queues]; in rt2x00queue_allocate() 1268 rt2x00queue_init(rt2x00dev, rt2x00dev->rx, QID_RX); in rt2x00queue_allocate() 1274 rt2x00queue_init(rt2x00dev, rt2x00dev->bcn, QID_BEACON); in rt2x00queue_allocate() 1276 rt2x00queue_init(rt2x00dev, rt2x00dev->atim, QID_ATIM); in rt2x00queue_allocate() [all …]
|
H A D | rt2x00mmio.c | 51 struct data_queue *queue = rt2x00dev->rx; in rt2x00mmio_rxdone() 111 addr = dma_alloc_coherent(rt2x00dev->dev, in rt2x00mmio_alloc_queue_dma() 136 dma_free_coherent(rt2x00dev->dev, in rt2x00mmio_free_queue_dma() 150 queue_for_each(rt2x00dev, queue) { in rt2x00mmio_initialize() 159 status = request_irq(rt2x00dev->irq, in rt2x00mmio_initialize() 160 rt2x00dev->ops->lib->irq_handler, in rt2x00mmio_initialize() 161 IRQF_SHARED, rt2x00dev->name, rt2x00dev); in rt2x00mmio_initialize() 164 rt2x00dev->irq, status); in rt2x00mmio_initialize() 171 queue_for_each(rt2x00dev, queue) in rt2x00mmio_initialize() 185 free_irq(rt2x00dev->irq, rt2x00dev); in rt2x00mmio_uninitialize() [all …]
|
H A D | rt2x00usb.h | 91 int rt2x00usb_vendor_request(struct rt2x00_dev *rt2x00dev, 155 return rt2x00usb_vendor_request(rt2x00dev, request, in rt2x00usb_vendor_request_sw() 190 rt2x00usb_vendor_request_buff(rt2x00dev, USB_MULTI_READ, in rt2x00usb_register_read() 208 rt2x00usb_vendor_req_buff_lock(rt2x00dev, USB_MULTI_READ, in rt2x00usb_register_read_lock() 228 rt2x00usb_vendor_request_buff(rt2x00dev, USB_MULTI_READ, in rt2x00usb_register_multiread() 247 rt2x00usb_vendor_request_buff(rt2x00dev, USB_MULTI_WRITE, in rt2x00usb_register_write() 286 rt2x00usb_vendor_request_buff(rt2x00dev, USB_MULTI_WRITE, in rt2x00usb_register_multiwrite() 304 int rt2x00usb_regbusy_read(struct rt2x00_dev *rt2x00dev, 386 void rt2x00usb_watchdog(struct rt2x00_dev *rt2x00dev); 392 int rt2x00usb_initialize(struct rt2x00_dev *rt2x00dev); [all …]
|
H A D | rt2x00mmio.h | 21 static inline u32 rt2x00mmio_register_read(struct rt2x00_dev *rt2x00dev, in rt2x00mmio_register_read() argument 24 return readl(rt2x00dev->csr.base + offset); in rt2x00mmio_register_read() 27 static inline void rt2x00mmio_register_multiread(struct rt2x00_dev *rt2x00dev, in rt2x00mmio_register_multiread() argument 31 memcpy_fromio(value, rt2x00dev->csr.base + offset, length); in rt2x00mmio_register_multiread() 34 static inline void rt2x00mmio_register_write(struct rt2x00_dev *rt2x00dev, in rt2x00mmio_register_write() argument 38 writel(value, rt2x00dev->csr.base + offset); in rt2x00mmio_register_write() 46 __iowrite32_copy(rt2x00dev->csr.base + offset, value, length >> 2); in rt2x00mmio_register_multiwrite() 62 int rt2x00mmio_regbusy_read(struct rt2x00_dev *rt2x00dev, 85 bool rt2x00mmio_rxdone(struct rt2x00_dev *rt2x00dev); 100 int rt2x00mmio_initialize(struct rt2x00_dev *rt2x00dev); [all …]
|