/drivers/net/wireless/rt2x00/ |
D | rt2800lib.c | 68 static inline bool rt2800_is_305x_soc(struct rt2x00_dev *rt2x00dev) in rt2800_is_305x_soc() argument 71 if (!rt2x00_is_soc(rt2x00dev) || in rt2800_is_305x_soc() 72 !rt2x00_rt(rt2x00dev, RT2872)) in rt2800_is_305x_soc() 76 if (rt2x00_rf(rt2x00dev, RF3020) || in rt2800_is_305x_soc() 77 rt2x00_rf(rt2x00dev, RF3021) || in rt2800_is_305x_soc() 78 rt2x00_rf(rt2x00dev, RF3022)) in rt2800_is_305x_soc() 81 rt2x00_warn(rt2x00dev, "Unknown RF chipset on rt305x\n"); in rt2800_is_305x_soc() 85 static void rt2800_bbp_write(struct rt2x00_dev *rt2x00dev, in rt2800_bbp_write() argument 90 mutex_lock(&rt2x00dev->csr_mutex); in rt2800_bbp_write() 96 if (WAIT_FOR_BBP(rt2x00dev, ®)) { in rt2800_bbp_write() [all …]
|
D | rt2x00dev.c | 36 u32 rt2x00lib_get_bssidx(struct rt2x00_dev *rt2x00dev, in rt2x00lib_get_bssidx() argument 43 if (rt2x00dev->intf_sta_count) in rt2x00lib_get_bssidx() 45 return vif->addr[5] & (rt2x00dev->ops->max_ap_intf - 1); in rt2x00lib_get_bssidx() 52 int rt2x00lib_enable_radio(struct rt2x00_dev *rt2x00dev) in rt2x00lib_enable_radio() argument 60 if (test_bit(DEVICE_STATE_ENABLED_RADIO, &rt2x00dev->flags)) in rt2x00lib_enable_radio() 66 rt2x00queue_init_queues(rt2x00dev); in rt2x00lib_enable_radio() 72 rt2x00dev->ops->lib->set_device_state(rt2x00dev, STATE_RADIO_ON); in rt2x00lib_enable_radio() 76 rt2x00dev->ops->lib->set_device_state(rt2x00dev, STATE_RADIO_IRQ_ON); in rt2x00lib_enable_radio() 78 rt2x00leds_led_radio(rt2x00dev, true); in rt2x00lib_enable_radio() 79 rt2x00led_led_activity(rt2x00dev, true); in rt2x00lib_enable_radio() [all …]
|
D | rt2x00link.c | 47 static int rt2x00link_antenna_get_link_rssi(struct rt2x00_dev *rt2x00dev) in rt2x00link_antenna_get_link_rssi() argument 49 struct link_ant *ant = &rt2x00dev->link.ant; in rt2x00link_antenna_get_link_rssi() 51 if (rt2x00dev->link.qual.rx_success) in rt2x00link_antenna_get_link_rssi() 57 static int rt2x00link_antenna_get_rssi_history(struct rt2x00_dev *rt2x00dev) in rt2x00link_antenna_get_rssi_history() argument 59 struct link_ant *ant = &rt2x00dev->link.ant; in rt2x00link_antenna_get_rssi_history() 66 static void rt2x00link_antenna_update_rssi_history(struct rt2x00_dev *rt2x00dev, in rt2x00link_antenna_update_rssi_history() argument 69 struct link_ant *ant = &rt2x00dev->link.ant; in rt2x00link_antenna_update_rssi_history() 73 static void rt2x00link_antenna_reset(struct rt2x00_dev *rt2x00dev) in rt2x00link_antenna_reset() argument 75 ewma_rssi_init(&rt2x00dev->link.ant.rssi_ant); in rt2x00link_antenna_reset() 78 static void rt2x00lib_antenna_diversity_sample(struct rt2x00_dev *rt2x00dev) in rt2x00lib_antenna_diversity_sample() argument [all …]
|
D | rt61pci.c | 65 static void rt61pci_bbp_write(struct rt2x00_dev *rt2x00dev, in rt61pci_bbp_write() argument 70 mutex_lock(&rt2x00dev->csr_mutex); in rt61pci_bbp_write() 76 if (WAIT_FOR_BBP(rt2x00dev, ®)) { in rt61pci_bbp_write() 83 rt2x00mmio_register_write(rt2x00dev, PHY_CSR3, reg); in rt61pci_bbp_write() 86 mutex_unlock(&rt2x00dev->csr_mutex); in rt61pci_bbp_write() 89 static void rt61pci_bbp_read(struct rt2x00_dev *rt2x00dev, in rt61pci_bbp_read() argument 94 mutex_lock(&rt2x00dev->csr_mutex); in rt61pci_bbp_read() 104 if (WAIT_FOR_BBP(rt2x00dev, ®)) { in rt61pci_bbp_read() 110 rt2x00mmio_register_write(rt2x00dev, PHY_CSR3, reg); in rt61pci_bbp_read() 112 WAIT_FOR_BBP(rt2x00dev, ®); in rt61pci_bbp_read() [all …]
|
D | rt2800mmio.c | 161 static void rt2800mmio_wakeup(struct rt2x00_dev *rt2x00dev) in rt2800mmio_wakeup() argument 166 rt2800_config(rt2x00dev, &libconf, IEEE80211_CONF_CHANGE_PS); in rt2800mmio_wakeup() 250 static bool rt2800mmio_txdone(struct rt2x00_dev *rt2x00dev) in rt2800mmio_txdone() argument 257 while (kfifo_get(&rt2x00dev->txstatus_fifo, &status)) { in rt2800mmio_txdone() 264 rt2x00_warn(rt2x00dev, "Got TX status report with unexpected pid %u, dropping\n", in rt2800mmio_txdone() 269 queue = rt2x00queue_get_tx_queue(rt2x00dev, qid); in rt2800mmio_txdone() 275 rt2x00_warn(rt2x00dev, "Got TX status for an unavailable queue %u, dropping\n", in rt2800mmio_txdone() 285 rt2x00_warn(rt2x00dev, "Got TX status for an empty queue %u, dropping\n", in rt2800mmio_txdone() 304 rt2x00_warn(rt2x00dev, "No frame found for TX status on queue %u, dropping\n", in rt2800mmio_txdone() 324 static inline void rt2800mmio_enable_interrupt(struct rt2x00_dev *rt2x00dev, in rt2800mmio_enable_interrupt() argument [all …]
|
D | rt2400pci.c | 56 static void rt2400pci_bbp_write(struct rt2x00_dev *rt2x00dev, in rt2400pci_bbp_write() argument 61 mutex_lock(&rt2x00dev->csr_mutex); in rt2400pci_bbp_write() 67 if (WAIT_FOR_BBP(rt2x00dev, ®)) { in rt2400pci_bbp_write() 74 rt2x00mmio_register_write(rt2x00dev, BBPCSR, reg); in rt2400pci_bbp_write() 77 mutex_unlock(&rt2x00dev->csr_mutex); in rt2400pci_bbp_write() 80 static void rt2400pci_bbp_read(struct rt2x00_dev *rt2x00dev, in rt2400pci_bbp_read() argument 85 mutex_lock(&rt2x00dev->csr_mutex); in rt2400pci_bbp_read() 95 if (WAIT_FOR_BBP(rt2x00dev, ®)) { in rt2400pci_bbp_read() 101 rt2x00mmio_register_write(rt2x00dev, BBPCSR, reg); in rt2400pci_bbp_read() 103 WAIT_FOR_BBP(rt2x00dev, ®); in rt2400pci_bbp_read() [all …]
|
D | rt2500pci.c | 56 static void rt2500pci_bbp_write(struct rt2x00_dev *rt2x00dev, in rt2500pci_bbp_write() argument 61 mutex_lock(&rt2x00dev->csr_mutex); in rt2500pci_bbp_write() 67 if (WAIT_FOR_BBP(rt2x00dev, ®)) { in rt2500pci_bbp_write() 74 rt2x00mmio_register_write(rt2x00dev, BBPCSR, reg); in rt2500pci_bbp_write() 77 mutex_unlock(&rt2x00dev->csr_mutex); in rt2500pci_bbp_write() 80 static void rt2500pci_bbp_read(struct rt2x00_dev *rt2x00dev, in rt2500pci_bbp_read() argument 85 mutex_lock(&rt2x00dev->csr_mutex); in rt2500pci_bbp_read() 95 if (WAIT_FOR_BBP(rt2x00dev, ®)) { in rt2500pci_bbp_read() 101 rt2x00mmio_register_write(rt2x00dev, BBPCSR, reg); in rt2500pci_bbp_read() 103 WAIT_FOR_BBP(rt2x00dev, ®); in rt2500pci_bbp_read() [all …]
|
D | rt2500usb.c | 58 static inline void rt2500usb_register_read(struct rt2x00_dev *rt2x00dev, in rt2500usb_register_read() argument 63 rt2x00usb_vendor_request_buff(rt2x00dev, USB_MULTI_READ, in rt2500usb_register_read() 69 static inline void rt2500usb_register_read_lock(struct rt2x00_dev *rt2x00dev, in rt2500usb_register_read_lock() argument 74 rt2x00usb_vendor_req_buff_lock(rt2x00dev, USB_MULTI_READ, in rt2500usb_register_read_lock() 80 static inline void rt2500usb_register_multiread(struct rt2x00_dev *rt2x00dev, in rt2500usb_register_multiread() argument 84 rt2x00usb_vendor_request_buff(rt2x00dev, USB_MULTI_READ, in rt2500usb_register_multiread() 89 static inline void rt2500usb_register_write(struct rt2x00_dev *rt2x00dev, in rt2500usb_register_write() argument 94 rt2x00usb_vendor_request_buff(rt2x00dev, USB_MULTI_WRITE, in rt2500usb_register_write() 99 static inline void rt2500usb_register_write_lock(struct rt2x00_dev *rt2x00dev, in rt2500usb_register_write_lock() argument 104 rt2x00usb_vendor_req_buff_lock(rt2x00dev, USB_MULTI_WRITE, in rt2500usb_register_write_lock() [all …]
|
D | rt73usb.c | 63 static void rt73usb_bbp_write(struct rt2x00_dev *rt2x00dev, in rt73usb_bbp_write() argument 68 mutex_lock(&rt2x00dev->csr_mutex); in rt73usb_bbp_write() 74 if (WAIT_FOR_BBP(rt2x00dev, ®)) { in rt73usb_bbp_write() 81 rt2x00usb_register_write_lock(rt2x00dev, PHY_CSR3, reg); in rt73usb_bbp_write() 84 mutex_unlock(&rt2x00dev->csr_mutex); in rt73usb_bbp_write() 87 static void rt73usb_bbp_read(struct rt2x00_dev *rt2x00dev, in rt73usb_bbp_read() argument 92 mutex_lock(&rt2x00dev->csr_mutex); in rt73usb_bbp_read() 102 if (WAIT_FOR_BBP(rt2x00dev, ®)) { in rt73usb_bbp_read() 108 rt2x00usb_register_write_lock(rt2x00dev, PHY_CSR3, reg); in rt73usb_bbp_read() 110 WAIT_FOR_BBP(rt2x00dev, ®); in rt73usb_bbp_read() [all …]
|
D | rt2x00lib.h | 70 int rt2x00lib_enable_radio(struct rt2x00_dev *rt2x00dev); 71 void rt2x00lib_disable_radio(struct rt2x00_dev *rt2x00dev); 76 int rt2x00lib_start(struct rt2x00_dev *rt2x00dev); 77 void rt2x00lib_stop(struct rt2x00_dev *rt2x00dev); 82 void rt2x00lib_config_intf(struct rt2x00_dev *rt2x00dev, 86 void rt2x00lib_config_erp(struct rt2x00_dev *rt2x00dev, 90 void rt2x00lib_config_antenna(struct rt2x00_dev *rt2x00dev, 92 void rt2x00lib_config(struct rt2x00_dev *rt2x00dev, 155 int rt2x00queue_update_beacon(struct rt2x00_dev *rt2x00dev, 164 int rt2x00queue_update_beacon_locked(struct rt2x00_dev *rt2x00dev, [all …]
|
D | rt2800lib.h | 24 void (*register_read)(struct rt2x00_dev *rt2x00dev, 26 void (*register_read_lock)(struct rt2x00_dev *rt2x00dev, 28 void (*register_write)(struct rt2x00_dev *rt2x00dev, 30 void (*register_write_lock)(struct rt2x00_dev *rt2x00dev, 33 void (*register_multiread)(struct rt2x00_dev *rt2x00dev, 36 void (*register_multiwrite)(struct rt2x00_dev *rt2x00dev, 40 int (*regbusy_read)(struct rt2x00_dev *rt2x00dev, 44 int (*read_eeprom)(struct rt2x00_dev *rt2x00dev); 45 bool (*hwcrypt_disabled)(struct rt2x00_dev *rt2x00dev); 47 int (*drv_write_firmware)(struct rt2x00_dev *rt2x00dev, [all …]
|
D | rt2x00mac.c | 30 static int rt2x00mac_tx_rts_cts(struct rt2x00_dev *rt2x00dev, in rt2x00mac_tx_rts_cts() argument 45 skb = dev_alloc_skb(data_length + rt2x00dev->hw->extra_tx_headroom); in rt2x00mac_tx_rts_cts() 47 rt2x00_warn(rt2x00dev, "Failed to create RTS/CTS frame\n"); in rt2x00mac_tx_rts_cts() 51 skb_reserve(skb, rt2x00dev->hw->extra_tx_headroom); in rt2x00mac_tx_rts_cts() 80 data_length += rt2x00crypto_tx_overhead(rt2x00dev, skb); in rt2x00mac_tx_rts_cts() 83 ieee80211_ctstoself_get(rt2x00dev->hw, tx_info->control.vif, in rt2x00mac_tx_rts_cts() 87 ieee80211_rts_get(rt2x00dev->hw, tx_info->control.vif, in rt2x00mac_tx_rts_cts() 94 rt2x00_warn(rt2x00dev, "Failed to send RTS/CTS frame\n"); in rt2x00mac_tx_rts_cts() 104 struct rt2x00_dev *rt2x00dev = hw->priv; in rt2x00mac_tx() local 115 if (!test_bit(DEVICE_STATE_PRESENT, &rt2x00dev->flags)) in rt2x00mac_tx() [all …]
|
D | rt2x00.h | 536 int (*probe_hw) (struct rt2x00_dev *rt2x00dev); 537 char *(*get_firmware_name) (struct rt2x00_dev *rt2x00dev); 538 int (*check_firmware) (struct rt2x00_dev *rt2x00dev, 540 int (*load_firmware) (struct rt2x00_dev *rt2x00dev, 546 int (*initialize) (struct rt2x00_dev *rt2x00dev); 547 void (*uninitialize) (struct rt2x00_dev *rt2x00dev); 558 int (*set_device_state) (struct rt2x00_dev *rt2x00dev, 560 int (*rfkill_poll) (struct rt2x00_dev *rt2x00dev); 561 void (*link_stats) (struct rt2x00_dev *rt2x00dev, 563 void (*reset_tuner) (struct rt2x00_dev *rt2x00dev, [all …]
|
D | rt2x00leds.c | 30 void rt2x00leds_led_quality(struct rt2x00_dev *rt2x00dev, int rssi) in rt2x00leds_led_quality() argument 32 struct rt2x00_led *led = &rt2x00dev->led_qual; in rt2x00leds_led_quality() 42 rssi += rt2x00dev->rssi_offset; in rt2x00leds_led_quality() 84 void rt2x00led_led_activity(struct rt2x00_dev *rt2x00dev, bool enabled) in rt2x00led_led_activity() argument 86 if (rt2x00dev->led_qual.type == LED_TYPE_ACTIVITY) in rt2x00led_led_activity() 87 rt2x00led_led_simple(&rt2x00dev->led_qual, enabled); in rt2x00led_led_activity() 90 void rt2x00leds_led_assoc(struct rt2x00_dev *rt2x00dev, bool enabled) in rt2x00leds_led_assoc() argument 92 if (rt2x00dev->led_assoc.type == LED_TYPE_ASSOC) in rt2x00leds_led_assoc() 93 rt2x00led_led_simple(&rt2x00dev->led_assoc, enabled); in rt2x00leds_led_assoc() 96 void rt2x00leds_led_radio(struct rt2x00_dev *rt2x00dev, bool enabled) in rt2x00leds_led_radio() argument [all …]
|
D | rt2x00usb.c | 37 int rt2x00usb_vendor_request(struct rt2x00_dev *rt2x00dev, in rt2x00usb_vendor_request() argument 43 struct usb_device *usb_dev = to_usb_device_intf(rt2x00dev->dev); in rt2x00usb_vendor_request() 50 if (!test_bit(DEVICE_STATE_PRESENT, &rt2x00dev->flags)) in rt2x00usb_vendor_request() 62 clear_bit(DEVICE_STATE_PRESENT, &rt2x00dev->flags); in rt2x00usb_vendor_request() 67 rt2x00_err(rt2x00dev, in rt2x00usb_vendor_request() 75 int rt2x00usb_vendor_req_buff_lock(struct rt2x00_dev *rt2x00dev, in rt2x00usb_vendor_req_buff_lock() argument 82 BUG_ON(!mutex_is_locked(&rt2x00dev->csr_mutex)); in rt2x00usb_vendor_req_buff_lock() 87 if (unlikely(!rt2x00dev->csr.cache || buffer_length > CSR_CACHE_SIZE)) { in rt2x00usb_vendor_req_buff_lock() 88 rt2x00_err(rt2x00dev, "CSR cache not available\n"); in rt2x00usb_vendor_req_buff_lock() 93 memcpy(rt2x00dev->csr.cache, buffer, buffer_length); in rt2x00usb_vendor_req_buff_lock() [all …]
|
D | rt2x00soc.c | 34 static void rt2x00soc_free_reg(struct rt2x00_dev *rt2x00dev) in rt2x00soc_free_reg() argument 36 kfree(rt2x00dev->rf); in rt2x00soc_free_reg() 37 rt2x00dev->rf = NULL; in rt2x00soc_free_reg() 39 kfree(rt2x00dev->eeprom); in rt2x00soc_free_reg() 40 rt2x00dev->eeprom = NULL; in rt2x00soc_free_reg() 42 iounmap(rt2x00dev->csr.base); in rt2x00soc_free_reg() 45 static int rt2x00soc_alloc_reg(struct rt2x00_dev *rt2x00dev) in rt2x00soc_alloc_reg() argument 47 struct platform_device *pdev = to_platform_device(rt2x00dev->dev); in rt2x00soc_alloc_reg() 54 rt2x00dev->csr.base = ioremap(res->start, resource_size(res)); in rt2x00soc_alloc_reg() 55 if (!rt2x00dev->csr.base) in rt2x00soc_alloc_reg() [all …]
|
D | rt2x00config.c | 30 void rt2x00lib_config_intf(struct rt2x00_dev *rt2x00dev, in rt2x00lib_config_intf() argument 72 if (mac || (!rt2x00dev->intf_ap_count && !rt2x00dev->intf_sta_count)) in rt2x00lib_config_intf() 74 if (bssid || (!rt2x00dev->intf_ap_count && !rt2x00dev->intf_sta_count)) in rt2x00lib_config_intf() 77 rt2x00dev->ops->lib->config_intf(rt2x00dev, intf, &conf, flags); in rt2x00lib_config_intf() 80 void rt2x00lib_config_erp(struct rt2x00_dev *rt2x00dev, in rt2x00lib_config_erp() argument 102 rt2x00dev->aid = bss_conf->assoc ? bss_conf->aid : 0; in rt2x00lib_config_erp() 103 rt2x00dev->last_beacon = bss_conf->sync_tsf; in rt2x00lib_config_erp() 106 rt2x00dev->beacon_int = bss_conf->beacon_int; in rt2x00lib_config_erp() 111 rt2x00dev->ops->lib->config_erp(rt2x00dev, &erp, changed); in rt2x00lib_config_erp() 114 void rt2x00lib_config_antenna(struct rt2x00_dev *rt2x00dev, in rt2x00lib_config_antenna() argument [all …]
|
D | rt2x00pci.c | 36 static void rt2x00pci_free_reg(struct rt2x00_dev *rt2x00dev) in rt2x00pci_free_reg() argument 38 kfree(rt2x00dev->rf); in rt2x00pci_free_reg() 39 rt2x00dev->rf = NULL; in rt2x00pci_free_reg() 41 kfree(rt2x00dev->eeprom); in rt2x00pci_free_reg() 42 rt2x00dev->eeprom = NULL; in rt2x00pci_free_reg() 44 if (rt2x00dev->csr.base) { in rt2x00pci_free_reg() 45 iounmap(rt2x00dev->csr.base); in rt2x00pci_free_reg() 46 rt2x00dev->csr.base = NULL; in rt2x00pci_free_reg() 50 static int rt2x00pci_alloc_reg(struct rt2x00_dev *rt2x00dev) in rt2x00pci_alloc_reg() argument 52 struct pci_dev *pci_dev = to_pci_dev(rt2x00dev->dev); in rt2x00pci_alloc_reg() [all …]
|
D | rt2800usb.c | 49 static bool rt2800usb_hwcrypt_disabled(struct rt2x00_dev *rt2x00dev) in rt2800usb_hwcrypt_disabled() argument 59 struct rt2x00_dev *rt2x00dev = queue->rt2x00dev; in rt2800usb_start_queue() local 64 rt2x00usb_register_read(rt2x00dev, MAC_SYS_CTRL, ®); in rt2800usb_start_queue() 66 rt2x00usb_register_write(rt2x00dev, MAC_SYS_CTRL, reg); in rt2800usb_start_queue() 69 rt2x00usb_register_read(rt2x00dev, BCN_TIME_CFG, ®); in rt2800usb_start_queue() 73 rt2x00usb_register_write(rt2x00dev, BCN_TIME_CFG, reg); in rt2800usb_start_queue() 82 struct rt2x00_dev *rt2x00dev = queue->rt2x00dev; in rt2800usb_stop_queue() local 87 rt2x00usb_register_read(rt2x00dev, MAC_SYS_CTRL, ®); in rt2800usb_stop_queue() 89 rt2x00usb_register_write(rt2x00dev, MAC_SYS_CTRL, reg); in rt2800usb_stop_queue() 92 rt2x00usb_register_read(rt2x00dev, BCN_TIME_CFG, ®); in rt2800usb_stop_queue() [all …]
|
D | rt2x00firmware.c | 31 static int rt2x00lib_request_firmware(struct rt2x00_dev *rt2x00dev) in rt2x00lib_request_firmware() argument 33 struct device *device = wiphy_dev(rt2x00dev->hw->wiphy); in rt2x00lib_request_firmware() 41 fw_name = rt2x00dev->ops->lib->get_firmware_name(rt2x00dev); in rt2x00lib_request_firmware() 43 rt2x00_err(rt2x00dev, in rt2x00lib_request_firmware() 49 rt2x00_info(rt2x00dev, "Loading firmware file '%s'\n", fw_name); in rt2x00lib_request_firmware() 53 rt2x00_err(rt2x00dev, "Failed to request Firmware\n"); in rt2x00lib_request_firmware() 58 rt2x00_err(rt2x00dev, "Failed to read Firmware\n"); in rt2x00lib_request_firmware() 63 rt2x00_info(rt2x00dev, "Firmware detected - version: %d.%d\n", in rt2x00lib_request_firmware() 65 snprintf(rt2x00dev->hw->wiphy->fw_version, in rt2x00lib_request_firmware() 66 sizeof(rt2x00dev->hw->wiphy->fw_version), "%d.%d", in rt2x00lib_request_firmware() [all …]
|
D | rt2800pci.c | 55 static bool rt2800pci_hwcrypt_disabled(struct rt2x00_dev *rt2x00dev) in rt2800pci_hwcrypt_disabled() argument 60 static void rt2800pci_mcu_status(struct rt2x00_dev *rt2x00dev, const u8 token) in rt2800pci_mcu_status() argument 68 if (rt2x00_is_soc(rt2x00dev)) in rt2800pci_mcu_status() 72 rt2x00mmio_register_read(rt2x00dev, H2M_MAILBOX_CID, ®); in rt2800pci_mcu_status() 84 rt2x00_err(rt2x00dev, "MCU request failed, no response from hardware\n"); in rt2800pci_mcu_status() 86 rt2x00mmio_register_write(rt2x00dev, H2M_MAILBOX_STATUS, ~0); in rt2800pci_mcu_status() 87 rt2x00mmio_register_write(rt2x00dev, H2M_MAILBOX_CID, ~0); in rt2800pci_mcu_status() 92 struct rt2x00_dev *rt2x00dev = eeprom->data; in rt2800pci_eepromregister_read() local 95 rt2x00mmio_register_read(rt2x00dev, E2PROM_CSR, ®); in rt2800pci_eepromregister_read() 107 struct rt2x00_dev *rt2x00dev = eeprom->data; in rt2800pci_eepromregister_write() local [all …]
|
D | rt2x00queue.c | 37 struct rt2x00_dev *rt2x00dev = queue->rt2x00dev; in rt2x00queue_alloc_rxskb() local 62 if (rt2x00_has_cap_hw_crypto(rt2x00dev)) { in rt2x00queue_alloc_rxskb() 88 if (rt2x00_has_cap_flag(rt2x00dev, REQUIRE_DMA)) { in rt2x00queue_alloc_rxskb() 91 skb_dma = dma_map_single(rt2x00dev->dev, skb->data, skb->len, in rt2x00queue_alloc_rxskb() 93 if (unlikely(dma_mapping_error(rt2x00dev->dev, skb_dma))) { in rt2x00queue_alloc_rxskb() 107 struct device *dev = entry->queue->rt2x00dev->dev; in rt2x00queue_map_txskb() 123 struct device *dev = entry->queue->rt2x00dev->dev; in rt2x00queue_unmap_skb() 187 static void rt2x00queue_create_tx_descriptor_seq(struct rt2x00_dev *rt2x00dev, in rt2x00queue_create_tx_descriptor_seq() argument 201 if (!rt2x00_has_cap_flag(rt2x00dev, REQUIRE_SW_SEQNO)) { in rt2x00queue_create_tx_descriptor_seq() 208 if (test_bit(CONFIG_QOS_DISABLED, &rt2x00dev->flags)) in rt2x00queue_create_tx_descriptor_seq() [all …]
|
D | rt2x00mmio.c | 35 int rt2x00mmio_regbusy_read(struct rt2x00_dev *rt2x00dev, in rt2x00mmio_regbusy_read() argument 42 if (!test_bit(DEVICE_STATE_PRESENT, &rt2x00dev->flags)) in rt2x00mmio_regbusy_read() 46 rt2x00mmio_register_read(rt2x00dev, offset, reg); in rt2x00mmio_regbusy_read() 60 bool rt2x00mmio_rxdone(struct rt2x00_dev *rt2x00dev) in rt2x00mmio_rxdone() argument 62 struct data_queue *queue = rt2x00dev->rx; in rt2x00mmio_rxdone() 72 if (rt2x00dev->ops->lib->get_entry_state(entry)) in rt2x00mmio_rxdone() 111 static int rt2x00mmio_alloc_queue_dma(struct rt2x00_dev *rt2x00dev, in rt2x00mmio_alloc_queue_dma() argument 122 addr = dma_zalloc_coherent(rt2x00dev->dev, in rt2x00mmio_alloc_queue_dma() 140 static void rt2x00mmio_free_queue_dma(struct rt2x00_dev *rt2x00dev, in rt2x00mmio_free_queue_dma() argument 147 dma_free_coherent(rt2x00dev->dev, in rt2x00mmio_free_queue_dma() [all …]
|
D | rt2x00usb.h | 102 int rt2x00usb_vendor_request(struct rt2x00_dev *rt2x00dev, 125 int rt2x00usb_vendor_request_buff(struct rt2x00_dev *rt2x00dev, 143 int rt2x00usb_vendor_req_buff_lock(struct rt2x00_dev *rt2x00dev, 160 static inline int rt2x00usb_vendor_request_sw(struct rt2x00_dev *rt2x00dev, in rt2x00usb_vendor_request_sw() argument 166 return rt2x00usb_vendor_request(rt2x00dev, request, in rt2x00usb_vendor_request_sw() 181 static inline int rt2x00usb_eeprom_read(struct rt2x00_dev *rt2x00dev, in rt2x00usb_eeprom_read() argument 184 return rt2x00usb_vendor_request(rt2x00dev, USB_EEPROM_READ, in rt2x00usb_eeprom_read() 198 static inline void rt2x00usb_register_read(struct rt2x00_dev *rt2x00dev, in rt2x00usb_register_read() argument 203 rt2x00usb_vendor_request_buff(rt2x00dev, USB_MULTI_READ, in rt2x00usb_register_read() 218 static inline void rt2x00usb_register_read_lock(struct rt2x00_dev *rt2x00dev, in rt2x00usb_register_read_lock() argument [all …]
|
D | rt2x00mmio.h | 32 static inline void rt2x00mmio_register_read(struct rt2x00_dev *rt2x00dev, in rt2x00mmio_register_read() argument 36 *value = readl(rt2x00dev->csr.base + offset); in rt2x00mmio_register_read() 39 static inline void rt2x00mmio_register_multiread(struct rt2x00_dev *rt2x00dev, in rt2x00mmio_register_multiread() argument 43 memcpy_fromio(value, rt2x00dev->csr.base + offset, length); in rt2x00mmio_register_multiread() 46 static inline void rt2x00mmio_register_write(struct rt2x00_dev *rt2x00dev, in rt2x00mmio_register_write() argument 50 writel(value, rt2x00dev->csr.base + offset); in rt2x00mmio_register_write() 53 static inline void rt2x00mmio_register_multiwrite(struct rt2x00_dev *rt2x00dev, in rt2x00mmio_register_multiwrite() argument 58 __iowrite32_copy(rt2x00dev->csr.base + offset, value, length >> 2); in rt2x00mmio_register_multiwrite() 74 int rt2x00mmio_regbusy_read(struct rt2x00_dev *rt2x00dev, 99 bool rt2x00mmio_rxdone(struct rt2x00_dev *rt2x00dev); [all …]
|