/Linux-v6.1/drivers/net/wireless/ralink/rt2x00/ |
D | rt2800lib.c | 64 static inline bool rt2800_is_305x_soc(struct rt2x00_dev *rt2x00dev) in rt2800_is_305x_soc() argument 67 if (!rt2x00_is_soc(rt2x00dev) || in rt2800_is_305x_soc() 68 !rt2x00_rt(rt2x00dev, RT2872)) in rt2800_is_305x_soc() 72 if (rt2x00_rf(rt2x00dev, RF3020) || in rt2800_is_305x_soc() 73 rt2x00_rf(rt2x00dev, RF3021) || in rt2800_is_305x_soc() 74 rt2x00_rf(rt2x00dev, RF3022)) in rt2800_is_305x_soc() 77 rt2x00_warn(rt2x00dev, "Unknown RF chipset on rt305x\n"); in rt2800_is_305x_soc() 81 static void rt2800_bbp_write(struct rt2x00_dev *rt2x00dev, in rt2800_bbp_write() argument 86 mutex_lock(&rt2x00dev->csr_mutex); in rt2800_bbp_write() 92 if (WAIT_FOR_BBP(rt2x00dev, ®)) { in rt2800_bbp_write() [all …]
|
D | rt2800mmio.c | 29 struct rt2x00_dev *rt2x00dev = queue->rt2x00dev; in rt2800mmio_get_dma_done() local 39 idx = rt2x00mmio_register_read(rt2x00dev, TX_DTX_IDX(qid)); in rt2800mmio_get_dma_done() 42 idx = rt2x00mmio_register_read(rt2x00dev, TX_DTX_IDX(5)); in rt2800mmio_get_dma_done() 189 static void rt2800mmio_wakeup(struct rt2x00_dev *rt2x00dev) in rt2800mmio_wakeup() argument 194 rt2800_config(rt2x00dev, &libconf, IEEE80211_CONF_CHANGE_PS); in rt2800mmio_wakeup() 197 static inline void rt2800mmio_enable_interrupt(struct rt2x00_dev *rt2x00dev, in rt2800mmio_enable_interrupt() argument 206 spin_lock_irq(&rt2x00dev->irqmask_lock); in rt2800mmio_enable_interrupt() 207 reg = rt2x00mmio_register_read(rt2x00dev, INT_MASK_CSR); in rt2800mmio_enable_interrupt() 209 rt2x00mmio_register_write(rt2x00dev, INT_MASK_CSR, reg); in rt2800mmio_enable_interrupt() 210 spin_unlock_irq(&rt2x00dev->irqmask_lock); in rt2800mmio_enable_interrupt() [all …]
|
D | rt2x00dev.c | 27 u32 rt2x00lib_get_bssidx(struct rt2x00_dev *rt2x00dev, in rt2x00lib_get_bssidx() argument 34 if (rt2x00dev->intf_sta_count) in rt2x00lib_get_bssidx() 36 return vif->addr[5] & (rt2x00dev->ops->max_ap_intf - 1); in rt2x00lib_get_bssidx() 43 int rt2x00lib_enable_radio(struct rt2x00_dev *rt2x00dev) in rt2x00lib_enable_radio() argument 51 if (test_bit(DEVICE_STATE_ENABLED_RADIO, &rt2x00dev->flags)) in rt2x00lib_enable_radio() 57 rt2x00queue_init_queues(rt2x00dev); in rt2x00lib_enable_radio() 63 rt2x00dev->ops->lib->set_device_state(rt2x00dev, STATE_RADIO_ON); in rt2x00lib_enable_radio() 67 rt2x00dev->ops->lib->set_device_state(rt2x00dev, STATE_RADIO_IRQ_ON); in rt2x00lib_enable_radio() 69 rt2x00leds_led_radio(rt2x00dev, true); in rt2x00lib_enable_radio() 70 rt2x00led_led_activity(rt2x00dev, true); in rt2x00lib_enable_radio() [all …]
|
D | rt2x00link.c | 36 static int rt2x00link_antenna_get_link_rssi(struct rt2x00_dev *rt2x00dev) in rt2x00link_antenna_get_link_rssi() argument 38 struct link_ant *ant = &rt2x00dev->link.ant; in rt2x00link_antenna_get_link_rssi() 40 if (rt2x00dev->link.qual.rx_success) in rt2x00link_antenna_get_link_rssi() 46 static int rt2x00link_antenna_get_rssi_history(struct rt2x00_dev *rt2x00dev) in rt2x00link_antenna_get_rssi_history() argument 48 struct link_ant *ant = &rt2x00dev->link.ant; in rt2x00link_antenna_get_rssi_history() 55 static void rt2x00link_antenna_update_rssi_history(struct rt2x00_dev *rt2x00dev, in rt2x00link_antenna_update_rssi_history() argument 58 struct link_ant *ant = &rt2x00dev->link.ant; in rt2x00link_antenna_update_rssi_history() 62 static void rt2x00link_antenna_reset(struct rt2x00_dev *rt2x00dev) in rt2x00link_antenna_reset() argument 64 ewma_rssi_init(&rt2x00dev->link.ant.rssi_ant); in rt2x00link_antenna_reset() 67 static void rt2x00lib_antenna_diversity_sample(struct rt2x00_dev *rt2x00dev) in rt2x00lib_antenna_diversity_sample() argument [all …]
|
D | rt61pci.c | 54 static void rt61pci_bbp_write(struct rt2x00_dev *rt2x00dev, in rt61pci_bbp_write() argument 59 mutex_lock(&rt2x00dev->csr_mutex); in rt61pci_bbp_write() 65 if (WAIT_FOR_BBP(rt2x00dev, ®)) { in rt61pci_bbp_write() 72 rt2x00mmio_register_write(rt2x00dev, PHY_CSR3, reg); in rt61pci_bbp_write() 75 mutex_unlock(&rt2x00dev->csr_mutex); in rt61pci_bbp_write() 78 static u8 rt61pci_bbp_read(struct rt2x00_dev *rt2x00dev, in rt61pci_bbp_read() argument 84 mutex_lock(&rt2x00dev->csr_mutex); in rt61pci_bbp_read() 94 if (WAIT_FOR_BBP(rt2x00dev, ®)) { in rt61pci_bbp_read() 100 rt2x00mmio_register_write(rt2x00dev, PHY_CSR3, reg); in rt61pci_bbp_read() 102 WAIT_FOR_BBP(rt2x00dev, ®); in rt61pci_bbp_read() [all …]
|
D | rt2400pci.c | 45 static void rt2400pci_bbp_write(struct rt2x00_dev *rt2x00dev, in rt2400pci_bbp_write() argument 50 mutex_lock(&rt2x00dev->csr_mutex); in rt2400pci_bbp_write() 56 if (WAIT_FOR_BBP(rt2x00dev, ®)) { in rt2400pci_bbp_write() 63 rt2x00mmio_register_write(rt2x00dev, BBPCSR, reg); in rt2400pci_bbp_write() 66 mutex_unlock(&rt2x00dev->csr_mutex); in rt2400pci_bbp_write() 69 static u8 rt2400pci_bbp_read(struct rt2x00_dev *rt2x00dev, in rt2400pci_bbp_read() argument 75 mutex_lock(&rt2x00dev->csr_mutex); in rt2400pci_bbp_read() 85 if (WAIT_FOR_BBP(rt2x00dev, ®)) { in rt2400pci_bbp_read() 91 rt2x00mmio_register_write(rt2x00dev, BBPCSR, reg); in rt2400pci_bbp_read() 93 WAIT_FOR_BBP(rt2x00dev, ®); in rt2400pci_bbp_read() [all …]
|
D | rt2500pci.c | 45 static void rt2500pci_bbp_write(struct rt2x00_dev *rt2x00dev, in rt2500pci_bbp_write() argument 50 mutex_lock(&rt2x00dev->csr_mutex); in rt2500pci_bbp_write() 56 if (WAIT_FOR_BBP(rt2x00dev, ®)) { in rt2500pci_bbp_write() 63 rt2x00mmio_register_write(rt2x00dev, BBPCSR, reg); in rt2500pci_bbp_write() 66 mutex_unlock(&rt2x00dev->csr_mutex); in rt2500pci_bbp_write() 69 static u8 rt2500pci_bbp_read(struct rt2x00_dev *rt2x00dev, in rt2500pci_bbp_read() argument 75 mutex_lock(&rt2x00dev->csr_mutex); in rt2500pci_bbp_read() 85 if (WAIT_FOR_BBP(rt2x00dev, ®)) { in rt2500pci_bbp_read() 91 rt2x00mmio_register_write(rt2x00dev, BBPCSR, reg); in rt2500pci_bbp_read() 93 WAIT_FOR_BBP(rt2x00dev, ®); in rt2500pci_bbp_read() [all …]
|
D | rt2500usb.c | 47 static u16 rt2500usb_register_read(struct rt2x00_dev *rt2x00dev, in rt2500usb_register_read() argument 51 rt2x00usb_vendor_request_buff(rt2x00dev, USB_MULTI_READ, in rt2500usb_register_read() 57 static u16 rt2500usb_register_read_lock(struct rt2x00_dev *rt2x00dev, in rt2500usb_register_read_lock() argument 61 rt2x00usb_vendor_req_buff_lock(rt2x00dev, USB_MULTI_READ, in rt2500usb_register_read_lock() 67 static void rt2500usb_register_write(struct rt2x00_dev *rt2x00dev, in rt2500usb_register_write() argument 72 rt2x00usb_vendor_request_buff(rt2x00dev, USB_MULTI_WRITE, in rt2500usb_register_write() 77 static void rt2500usb_register_write_lock(struct rt2x00_dev *rt2x00dev, in rt2500usb_register_write_lock() argument 82 rt2x00usb_vendor_req_buff_lock(rt2x00dev, USB_MULTI_WRITE, in rt2500usb_register_write_lock() 87 static void rt2500usb_register_multiwrite(struct rt2x00_dev *rt2x00dev, in rt2500usb_register_multiwrite() argument 91 rt2x00usb_vendor_request_buff(rt2x00dev, USB_MULTI_WRITE, in rt2500usb_register_multiwrite() [all …]
|
D | rt73usb.c | 52 static void rt73usb_bbp_write(struct rt2x00_dev *rt2x00dev, in rt73usb_bbp_write() argument 57 mutex_lock(&rt2x00dev->csr_mutex); in rt73usb_bbp_write() 63 if (WAIT_FOR_BBP(rt2x00dev, ®)) { in rt73usb_bbp_write() 70 rt2x00usb_register_write_lock(rt2x00dev, PHY_CSR3, reg); in rt73usb_bbp_write() 73 mutex_unlock(&rt2x00dev->csr_mutex); in rt73usb_bbp_write() 76 static u8 rt73usb_bbp_read(struct rt2x00_dev *rt2x00dev, in rt73usb_bbp_read() argument 82 mutex_lock(&rt2x00dev->csr_mutex); in rt73usb_bbp_read() 92 if (WAIT_FOR_BBP(rt2x00dev, ®)) { in rt73usb_bbp_read() 98 rt2x00usb_register_write_lock(rt2x00dev, PHY_CSR3, reg); in rt73usb_bbp_read() 100 WAIT_FOR_BBP(rt2x00dev, ®); in rt73usb_bbp_read() [all …]
|
D | rt2800lib.h | 51 u32 (*register_read)(struct rt2x00_dev *rt2x00dev, 53 u32 (*register_read_lock)(struct rt2x00_dev *rt2x00dev, 55 void (*register_write)(struct rt2x00_dev *rt2x00dev, 57 void (*register_write_lock)(struct rt2x00_dev *rt2x00dev, 60 void (*register_multiread)(struct rt2x00_dev *rt2x00dev, 63 void (*register_multiwrite)(struct rt2x00_dev *rt2x00dev, 67 int (*regbusy_read)(struct rt2x00_dev *rt2x00dev, 71 int (*read_eeprom)(struct rt2x00_dev *rt2x00dev); 72 bool (*hwcrypt_disabled)(struct rt2x00_dev *rt2x00dev); 74 int (*drv_write_firmware)(struct rt2x00_dev *rt2x00dev, [all …]
|
D | rt2x00lib.h | 60 int rt2x00lib_enable_radio(struct rt2x00_dev *rt2x00dev); 61 void rt2x00lib_disable_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, 80 void rt2x00lib_config_antenna(struct rt2x00_dev *rt2x00dev, 82 void rt2x00lib_config(struct rt2x00_dev *rt2x00dev, 145 int rt2x00queue_update_beacon(struct rt2x00_dev *rt2x00dev, 154 int rt2x00queue_update_beacon_locked(struct rt2x00_dev *rt2x00dev, [all …]
|
D | rt2x00mac.c | 19 static int rt2x00mac_tx_rts_cts(struct rt2x00_dev *rt2x00dev, in rt2x00mac_tx_rts_cts() argument 34 skb = dev_alloc_skb(data_length + rt2x00dev->hw->extra_tx_headroom); in rt2x00mac_tx_rts_cts() 36 rt2x00_warn(rt2x00dev, "Failed to create RTS/CTS frame\n"); in rt2x00mac_tx_rts_cts() 40 skb_reserve(skb, rt2x00dev->hw->extra_tx_headroom); in rt2x00mac_tx_rts_cts() 69 data_length += rt2x00crypto_tx_overhead(rt2x00dev, skb); in rt2x00mac_tx_rts_cts() 72 ieee80211_ctstoself_get(rt2x00dev->hw, tx_info->control.vif, in rt2x00mac_tx_rts_cts() 76 ieee80211_rts_get(rt2x00dev->hw, tx_info->control.vif, in rt2x00mac_tx_rts_cts() 83 rt2x00_warn(rt2x00dev, "Failed to send RTS/CTS frame\n"); in rt2x00mac_tx_rts_cts() 93 struct rt2x00_dev *rt2x00dev = hw->priv; in rt2x00mac_tx() local 104 if (!test_bit(DEVICE_STATE_PRESENT, &rt2x00dev->flags)) in rt2x00mac_tx() [all …]
|
D | rt2x00leds.c | 19 void rt2x00leds_led_quality(struct rt2x00_dev *rt2x00dev, int rssi) in rt2x00leds_led_quality() argument 21 struct rt2x00_led *led = &rt2x00dev->led_qual; in rt2x00leds_led_quality() 31 rssi += rt2x00dev->rssi_offset; in rt2x00leds_led_quality() 73 void rt2x00led_led_activity(struct rt2x00_dev *rt2x00dev, bool enabled) in rt2x00led_led_activity() argument 75 if (rt2x00dev->led_qual.type == LED_TYPE_ACTIVITY) in rt2x00led_led_activity() 76 rt2x00led_led_simple(&rt2x00dev->led_qual, enabled); in rt2x00led_led_activity() 79 void rt2x00leds_led_assoc(struct rt2x00_dev *rt2x00dev, bool enabled) in rt2x00leds_led_assoc() argument 81 if (rt2x00dev->led_assoc.type == LED_TYPE_ASSOC) in rt2x00leds_led_assoc() 82 rt2x00led_led_simple(&rt2x00dev->led_assoc, enabled); in rt2x00leds_led_assoc() 85 void rt2x00leds_led_radio(struct rt2x00_dev *rt2x00dev, bool enabled) in rt2x00leds_led_radio() argument [all …]
|
D | rt2x00usb.c | 23 static bool rt2x00usb_check_usb_error(struct rt2x00_dev *rt2x00dev, int status) in rt2x00usb_check_usb_error() argument 28 if (!test_bit(DEVICE_STATE_STARTED, &rt2x00dev->flags)) in rt2x00usb_check_usb_error() 32 rt2x00dev->num_proto_errs++; in rt2x00usb_check_usb_error() 34 rt2x00dev->num_proto_errs = 0; in rt2x00usb_check_usb_error() 36 if (rt2x00dev->num_proto_errs > 3) in rt2x00usb_check_usb_error() 45 int rt2x00usb_vendor_request(struct rt2x00_dev *rt2x00dev, in rt2x00usb_vendor_request() argument 51 struct usb_device *usb_dev = to_usb_device_intf(rt2x00dev->dev); in rt2x00usb_vendor_request() 58 if (!test_bit(DEVICE_STATE_PRESENT, &rt2x00dev->flags)) in rt2x00usb_vendor_request() 68 if (rt2x00usb_check_usb_error(rt2x00dev, status)) { in rt2x00usb_vendor_request() 70 clear_bit(DEVICE_STATE_PRESENT, &rt2x00dev->flags); in rt2x00usb_vendor_request() [all …]
|
D | rt2x00soc.c | 23 static void rt2x00soc_free_reg(struct rt2x00_dev *rt2x00dev) in rt2x00soc_free_reg() argument 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() 31 iounmap(rt2x00dev->csr.base); in rt2x00soc_free_reg() 34 static int rt2x00soc_alloc_reg(struct rt2x00_dev *rt2x00dev) in rt2x00soc_alloc_reg() argument 36 struct platform_device *pdev = to_platform_device(rt2x00dev->dev); in rt2x00soc_alloc_reg() 43 rt2x00dev->csr.base = ioremap(res->start, resource_size(res)); in rt2x00soc_alloc_reg() 44 if (!rt2x00dev->csr.base) in rt2x00soc_alloc_reg() [all …]
|
D | rt2x00.h | 539 int (*probe_hw) (struct rt2x00_dev *rt2x00dev); 540 char *(*get_firmware_name) (struct rt2x00_dev *rt2x00dev); 541 int (*check_firmware) (struct rt2x00_dev *rt2x00dev, 543 int (*load_firmware) (struct rt2x00_dev *rt2x00dev, 549 int (*initialize) (struct rt2x00_dev *rt2x00dev); 550 void (*uninitialize) (struct rt2x00_dev *rt2x00dev); 561 int (*set_device_state) (struct rt2x00_dev *rt2x00dev, 563 int (*rfkill_poll) (struct rt2x00_dev *rt2x00dev); 564 void (*link_stats) (struct rt2x00_dev *rt2x00dev, 566 void (*reset_tuner) (struct rt2x00_dev *rt2x00dev, [all …]
|
D | rt2x00pci.c | 25 static void rt2x00pci_free_reg(struct rt2x00_dev *rt2x00dev) in rt2x00pci_free_reg() argument 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() 33 if (rt2x00dev->csr.base) { in rt2x00pci_free_reg() 34 iounmap(rt2x00dev->csr.base); in rt2x00pci_free_reg() 35 rt2x00dev->csr.base = NULL; in rt2x00pci_free_reg() 39 static int rt2x00pci_alloc_reg(struct rt2x00_dev *rt2x00dev) in rt2x00pci_alloc_reg() argument 41 struct pci_dev *pci_dev = to_pci_dev(rt2x00dev->dev); in rt2x00pci_alloc_reg() [all …]
|
D | rt2x00config.c | 19 void rt2x00lib_config_intf(struct rt2x00_dev *rt2x00dev, in rt2x00lib_config_intf() argument 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() 68 void rt2x00lib_config_erp(struct rt2x00_dev *rt2x00dev, in rt2x00lib_config_erp() argument 92 rt2x00dev->aid = vif->cfg.assoc ? vif->cfg.aid : 0; in rt2x00lib_config_erp() 93 rt2x00dev->last_beacon = bss_conf->sync_tsf; in rt2x00lib_config_erp() 96 rt2x00dev->beacon_int = bss_conf->beacon_int; in rt2x00lib_config_erp() 101 rt2x00dev->ops->lib->config_erp(rt2x00dev, &erp, changed); in rt2x00lib_config_erp() 104 void rt2x00lib_config_antenna(struct rt2x00_dev *rt2x00dev, in rt2x00lib_config_antenna() argument [all …]
|
D | rt2x00firmware.c | 20 static int rt2x00lib_request_firmware(struct rt2x00_dev *rt2x00dev) in rt2x00lib_request_firmware() argument 22 struct device *device = wiphy_dev(rt2x00dev->hw->wiphy); in rt2x00lib_request_firmware() 30 fw_name = rt2x00dev->ops->lib->get_firmware_name(rt2x00dev); in rt2x00lib_request_firmware() 32 rt2x00_err(rt2x00dev, in rt2x00lib_request_firmware() 38 rt2x00_info(rt2x00dev, "Loading firmware file '%s'\n", fw_name); in rt2x00lib_request_firmware() 42 rt2x00_err(rt2x00dev, "Failed to request Firmware\n"); in rt2x00lib_request_firmware() 47 rt2x00_err(rt2x00dev, "Failed to read Firmware\n"); in rt2x00lib_request_firmware() 52 rt2x00_info(rt2x00dev, "Firmware detected - version: %d.%d\n", in rt2x00lib_request_firmware() 54 snprintf(rt2x00dev->hw->wiphy->fw_version, in rt2x00lib_request_firmware() 55 sizeof(rt2x00dev->hw->wiphy->fw_version), "%d.%d", in rt2x00lib_request_firmware() [all …]
|
D | rt2800pci.c | 44 static bool rt2800pci_hwcrypt_disabled(struct rt2x00_dev *rt2x00dev) in rt2800pci_hwcrypt_disabled() argument 49 static void rt2800pci_mcu_status(struct rt2x00_dev *rt2x00dev, const u8 token) in rt2800pci_mcu_status() argument 57 if (rt2x00_is_soc(rt2x00dev)) in rt2800pci_mcu_status() 61 reg = rt2x00mmio_register_read(rt2x00dev, H2M_MAILBOX_CID); in rt2800pci_mcu_status() 73 rt2x00_err(rt2x00dev, "MCU request failed, no response from hardware\n"); in rt2800pci_mcu_status() 75 rt2x00mmio_register_write(rt2x00dev, H2M_MAILBOX_STATUS, ~0); in rt2800pci_mcu_status() 76 rt2x00mmio_register_write(rt2x00dev, H2M_MAILBOX_CID, ~0); in rt2800pci_mcu_status() 81 struct rt2x00_dev *rt2x00dev = eeprom->data; in rt2800pci_eepromregister_read() local 84 reg = rt2x00mmio_register_read(rt2x00dev, E2PROM_CSR); in rt2800pci_eepromregister_read() 96 struct rt2x00_dev *rt2x00dev = eeprom->data; in rt2800pci_eepromregister_write() local [all …]
|
D | rt2800usb.c | 38 static bool rt2800usb_hwcrypt_disabled(struct rt2x00_dev *rt2x00dev) in rt2800usb_hwcrypt_disabled() argument 48 struct rt2x00_dev *rt2x00dev = queue->rt2x00dev; in rt2800usb_start_queue() local 53 reg = rt2x00usb_register_read(rt2x00dev, MAC_SYS_CTRL); in rt2800usb_start_queue() 55 rt2x00usb_register_write(rt2x00dev, MAC_SYS_CTRL, reg); in rt2800usb_start_queue() 58 reg = rt2x00usb_register_read(rt2x00dev, BCN_TIME_CFG); in rt2800usb_start_queue() 62 rt2x00usb_register_write(rt2x00dev, BCN_TIME_CFG, reg); in rt2800usb_start_queue() 71 struct rt2x00_dev *rt2x00dev = queue->rt2x00dev; in rt2800usb_stop_queue() local 76 reg = rt2x00usb_register_read(rt2x00dev, MAC_SYS_CTRL); in rt2800usb_stop_queue() 78 rt2x00usb_register_write(rt2x00dev, MAC_SYS_CTRL, reg); in rt2800usb_stop_queue() 81 reg = rt2x00usb_register_read(rt2x00dev, BCN_TIME_CFG); in rt2800usb_stop_queue() [all …]
|
D | rt2x00queue.c | 26 struct rt2x00_dev *rt2x00dev = queue->rt2x00dev; in rt2x00queue_alloc_rxskb() local 51 if (rt2x00_has_cap_hw_crypto(rt2x00dev)) { in rt2x00queue_alloc_rxskb() 76 if (rt2x00_has_cap_flag(rt2x00dev, REQUIRE_DMA)) { in rt2x00queue_alloc_rxskb() 79 skb_dma = dma_map_single(rt2x00dev->dev, skb->data, skb->len, in rt2x00queue_alloc_rxskb() 81 if (unlikely(dma_mapping_error(rt2x00dev->dev, skb_dma))) { in rt2x00queue_alloc_rxskb() 95 struct device *dev = entry->queue->rt2x00dev->dev; in rt2x00queue_map_txskb() 112 struct device *dev = entry->queue->rt2x00dev->dev; in rt2x00queue_unmap_skb() 176 static void rt2x00queue_create_tx_descriptor_seq(struct rt2x00_dev *rt2x00dev, in rt2x00queue_create_tx_descriptor_seq() argument 190 if (!rt2x00_has_cap_flag(rt2x00dev, REQUIRE_SW_SEQNO)) { in rt2x00queue_create_tx_descriptor_seq() 227 static void rt2x00queue_create_tx_descriptor_plcp(struct rt2x00_dev *rt2x00dev, in rt2x00queue_create_tx_descriptor_plcp() argument [all …]
|
D | rt2x00mmio.c | 24 int rt2x00mmio_regbusy_read(struct rt2x00_dev *rt2x00dev, in rt2x00mmio_regbusy_read() argument 31 if (!test_bit(DEVICE_STATE_PRESENT, &rt2x00dev->flags)) in rt2x00mmio_regbusy_read() 35 *reg = rt2x00mmio_register_read(rt2x00dev, offset); in rt2x00mmio_regbusy_read() 49 bool rt2x00mmio_rxdone(struct rt2x00_dev *rt2x00dev) in rt2x00mmio_rxdone() argument 51 struct data_queue *queue = rt2x00dev->rx; in rt2x00mmio_rxdone() 61 if (rt2x00dev->ops->lib->get_entry_state(entry)) in rt2x00mmio_rxdone() 100 static int rt2x00mmio_alloc_queue_dma(struct rt2x00_dev *rt2x00dev, in rt2x00mmio_alloc_queue_dma() argument 111 addr = dma_alloc_coherent(rt2x00dev->dev, in rt2x00mmio_alloc_queue_dma() 129 static void rt2x00mmio_free_queue_dma(struct rt2x00_dev *rt2x00dev, in rt2x00mmio_free_queue_dma() argument 136 dma_free_coherent(rt2x00dev->dev, in rt2x00mmio_free_queue_dma() [all …]
|
D | rt2x00usb.h | 91 int rt2x00usb_vendor_request(struct rt2x00_dev *rt2x00dev, 114 int rt2x00usb_vendor_request_buff(struct rt2x00_dev *rt2x00dev, 132 int rt2x00usb_vendor_req_buff_lock(struct rt2x00_dev *rt2x00dev, 149 static inline int rt2x00usb_vendor_request_sw(struct rt2x00_dev *rt2x00dev, in rt2x00usb_vendor_request_sw() argument 155 return rt2x00usb_vendor_request(rt2x00dev, request, in rt2x00usb_vendor_request_sw() 170 static inline int rt2x00usb_eeprom_read(struct rt2x00_dev *rt2x00dev, in rt2x00usb_eeprom_read() argument 173 return rt2x00usb_vendor_request(rt2x00dev, USB_EEPROM_READ, in rt2x00usb_eeprom_read() 186 static inline u32 rt2x00usb_register_read(struct rt2x00_dev *rt2x00dev, in rt2x00usb_register_read() argument 190 rt2x00usb_vendor_request_buff(rt2x00dev, USB_MULTI_READ, in rt2x00usb_register_read() 204 static inline u32 rt2x00usb_register_read_lock(struct rt2x00_dev *rt2x00dev, in rt2x00usb_register_read_lock() argument [all …]
|
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() 41 static inline void rt2x00mmio_register_multiwrite(struct rt2x00_dev *rt2x00dev, in rt2x00mmio_register_multiwrite() argument 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); [all …]
|