Lines Matching +full:clk +full:- +full:csr
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
4 Copyright (C) 2004 - 2010 Ivo van Doorn <IvDoorn@gmail.com>
5 Copyright (C) 2004 - 2009 Gertjan van Wingerde <gwingerde@gmail.com>
30 #include <linux/clk.h>
57 printk(KERN_ERR KBUILD_MODNAME ": %s: Error - " fmt, \
60 wiphy_err_ratelimited((dev)->hw->wiphy, "%s: Error - " fmt, \
63 wiphy_warn_ratelimited((dev)->hw->wiphy, "%s: Warning - " fmt, \
66 wiphy_info((dev)->hw->wiphy, "%s: Info - " fmt, \
71 wiphy_dbg((dev)->hw->wiphy, "%s: Debug - " fmt, \
74 wiphy_dbg((dev)->hw->wiphy, "%s: EEPROM recovery - " fmt, \
82 * real rate -> rate argument correction.
91 #define L2PAD_SIZE(__hdrlen) (-(__hdrlen) & 3)
95 * to make sure the 802.11 payload is padded to a 4-byte boundrary
100 (((unsigned long)((__skb)->data + (__header))) & 3)
351 * beacon->skb must be protected with the mutex.
378 return (struct rt2x00_intf *)vif->drv_priv; in vif_to_intf()
482 * to the drivers, copy the it into a endian-signed variable.
505 return (struct rt2x00_sta *)sta->drv_priv; in sta_to_rt2x00_sta()
787 * Access to these flags should occur non-atomically.
815 * csr.base: CSR base register address. (PCI)
816 * csr.cache: CSR cache for usb_control_msg. (USB)
818 union csr { union
821 } csr; member
827 * registers require multiple calls to the CSR registers.
829 * field is used for normal CSR access and it cannot support
847 * - Open ap interface count.
848 * - Open sta interface count.
849 * - Association count.
850 * - Beaconing enabled count.
900 * Rssi <-> Dbm offset
943 * which means it cannot be placed on the hw->workqueue
1016 struct clk *clk; member
1052 BUG_ON(word < 1 || word > rt2x00dev->ops->rf_size / sizeof(u32)); in rt2x00_rf_read()
1053 return rt2x00dev->rf[word - 1]; in rt2x00_rf_read()
1059 BUG_ON(word < 1 || word > rt2x00dev->ops->rf_size / sizeof(u32)); in rt2x00_rf_write()
1060 rt2x00dev->rf[word - 1] = data; in rt2x00_rf_write()
1069 return (void *)&rt2x00dev->eeprom[word]; in rt2x00_eeprom_addr()
1075 return le16_to_cpu(rt2x00dev->eeprom[word]); in rt2x00_eeprom_read()
1081 rt2x00dev->eeprom[word] = cpu_to_le16(data); in rt2x00_eeprom_write()
1087 return *(((u8 *)rt2x00dev->eeprom) + byte); in rt2x00_eeprom_byte()
1096 rt2x00dev->chip.rt = rt; in rt2x00_set_chip()
1097 rt2x00dev->chip.rf = rf; in rt2x00_set_chip()
1098 rt2x00dev->chip.rev = rev; in rt2x00_set_chip()
1100 rt2x00_info(rt2x00dev, "Chipset detected - rt: %04x, rf: %04x, rev: %04x\n", in rt2x00_set_chip()
1101 rt2x00dev->chip.rt, rt2x00dev->chip.rf, in rt2x00_set_chip()
1102 rt2x00dev->chip.rev); in rt2x00_set_chip()
1108 rt2x00dev->chip.rt = rt; in rt2x00_set_rt()
1109 rt2x00dev->chip.rev = rev; in rt2x00_set_rt()
1112 rt2x00dev->chip.rt, rt2x00dev->chip.rev); in rt2x00_set_rt()
1117 rt2x00dev->chip.rf = rf; in rt2x00_set_rf()
1120 rt2x00dev->chip.rf); in rt2x00_set_rf()
1125 return (rt2x00dev->chip.rt == rt); in rt2x00_rt()
1130 return (rt2x00dev->chip.rf == rf); in rt2x00_rf()
1135 return rt2x00dev->chip.rev; in rt2x00_rev()
1159 rt2x00dev->chip.intf = intf; in rt2x00_set_chip_intf()
1165 return (rt2x00dev->chip.intf == intf); in rt2x00_intf()
1195 return test_bit(cap_flag, &rt2x00dev->cap_flags); in rt2x00_has_cap_flag()
1289 * rt2x00queue_map_txskb - Map a skb into DMA for TX purposes.
1292 * Returns -ENOMEM if mapping fail, 0 otherwise.
1297 * rt2x00queue_unmap_skb - Unmap a skb from DMA.
1303 * rt2x00queue_get_tx_queue - Convert tx queue index to queue pointer
1313 if (queue >= rt2x00dev->ops->tx_queues && queue < IEEE80211_NUM_ACS) in rt2x00queue_get_tx_queue()
1314 queue = rt2x00dev->ops->tx_queues - 1; in rt2x00queue_get_tx_queue()
1316 if (queue < rt2x00dev->ops->tx_queues && rt2x00dev->tx) in rt2x00queue_get_tx_queue()
1317 return &rt2x00dev->tx[queue]; in rt2x00queue_get_tx_queue()
1320 return rt2x00dev->atim; in rt2x00queue_get_tx_queue()
1326 * rt2x00queue_get_entry - Get queue entry where the given index points to.
1334 * rt2x00queue_pause_queue - Pause a data queue
1344 * rt2x00queue_unpause_queue - unpause a data queue
1353 * rt2x00queue_start_queue - Start a data queue
1361 * rt2x00queue_stop_queue - Halt a data queue
1369 * rt2x00queue_flush_queue - Flush a data queue
1379 * rt2x00queue_start_queues - Start all data queues
1387 * rt2x00queue_stop_queues - Halt all data queues
1396 * rt2x00queue_flush_queues - Flush all data queues
1409 * rt2x00debug_dump_frame - Dump a frame to userspace through debugfs.