Lines Matching refs:ath5k_hw

84 _ath5k_printk(const struct ath5k_hw *ah, const char *level,
1182 struct ath5k_hw *ah; /* driver state */
1258 struct ath5k_hw { struct
1453 int (*ah_setup_tx_desc)(struct ath5k_hw *, struct ath5k_desc *, argument
1457 int (*ah_proc_tx_desc)(struct ath5k_hw *, struct ath5k_desc *, argument
1459 int (*ah_proc_rx_desc)(struct ath5k_hw *, struct ath5k_desc *, argument
1467 int (*eeprom_read_mac)(struct ath5k_hw *ah, u8 *mac);
1476 int ath5k_hw_init(struct ath5k_hw *ah);
1477 void ath5k_hw_deinit(struct ath5k_hw *ah);
1479 int ath5k_sysfs_register(struct ath5k_hw *ah);
1480 void ath5k_sysfs_unregister(struct ath5k_hw *ah);
1483 int ath5k_hw_read_srev(struct ath5k_hw *ah);
1486 int ath5k_init_leds(struct ath5k_hw *ah);
1487 void ath5k_led_enable(struct ath5k_hw *ah);
1488 void ath5k_led_off(struct ath5k_hw *ah);
1489 void ath5k_unregister_leds(struct ath5k_hw *ah);
1493 int ath5k_hw_nic_wakeup(struct ath5k_hw *ah, struct ieee80211_channel *channel);
1494 int ath5k_hw_on_hold(struct ath5k_hw *ah);
1495 int ath5k_hw_reset(struct ath5k_hw *ah, enum nl80211_iftype op_mode,
1497 int ath5k_hw_register_timeout(struct ath5k_hw *ah, u32 reg, u32 flag, u32 val,
1503 unsigned int ath5k_hw_htoclock(struct ath5k_hw *ah, unsigned int usec);
1504 unsigned int ath5k_hw_clocktoh(struct ath5k_hw *ah, unsigned int clock);
1505 void ath5k_hw_set_clockrate(struct ath5k_hw *ah);
1509 void ath5k_hw_start_rx_dma(struct ath5k_hw *ah);
1510 u32 ath5k_hw_get_rxdp(struct ath5k_hw *ah);
1511 int ath5k_hw_set_rxdp(struct ath5k_hw *ah, u32 phys_addr);
1512 int ath5k_hw_start_tx_dma(struct ath5k_hw *ah, unsigned int queue);
1513 int ath5k_hw_stop_beacon_queue(struct ath5k_hw *ah, unsigned int queue);
1514 u32 ath5k_hw_get_txdp(struct ath5k_hw *ah, unsigned int queue);
1515 int ath5k_hw_set_txdp(struct ath5k_hw *ah, unsigned int queue,
1517 int ath5k_hw_update_tx_triglevel(struct ath5k_hw *ah, bool increase);
1519 bool ath5k_hw_is_intr_pending(struct ath5k_hw *ah);
1520 int ath5k_hw_get_isr(struct ath5k_hw *ah, enum ath5k_int *interrupt_mask);
1521 enum ath5k_int ath5k_hw_set_imr(struct ath5k_hw *ah, enum ath5k_int new_mask);
1522 void ath5k_hw_update_mib_counters(struct ath5k_hw *ah);
1524 void ath5k_hw_dma_init(struct ath5k_hw *ah);
1525 int ath5k_hw_dma_stop(struct ath5k_hw *ah);
1528 int ath5k_eeprom_init(struct ath5k_hw *ah);
1529 void ath5k_eeprom_detach(struct ath5k_hw *ah);
1530 int ath5k_eeprom_mode_from_channel(struct ath5k_hw *ah,
1535 int ath5k_hw_get_frame_duration(struct ath5k_hw *ah, enum ieee80211_band band,
1537 unsigned int ath5k_hw_get_default_slottime(struct ath5k_hw *ah);
1538 unsigned int ath5k_hw_get_default_sifs(struct ath5k_hw *ah);
1539 int ath5k_hw_set_opmode(struct ath5k_hw *ah, enum nl80211_iftype opmode);
1540 void ath5k_hw_set_coverage_class(struct ath5k_hw *ah, u8 coverage_class);
1542 int ath5k_hw_set_lladdr(struct ath5k_hw *ah, const u8 *mac);
1543 void ath5k_hw_set_bssid(struct ath5k_hw *ah);
1544 void ath5k_hw_set_bssid_mask(struct ath5k_hw *ah, const u8 *mask);
1545 void ath5k_hw_set_mcast_filter(struct ath5k_hw *ah, u32 filter0, u32 filter1);
1546 u32 ath5k_hw_get_rx_filter(struct ath5k_hw *ah);
1547 void ath5k_hw_set_rx_filter(struct ath5k_hw *ah, u32 filter);
1549 void ath5k_hw_start_rx_pcu(struct ath5k_hw *ah);
1550 void ath5k_hw_stop_rx_pcu(struct ath5k_hw *ah);
1552 u64 ath5k_hw_get_tsf64(struct ath5k_hw *ah);
1553 void ath5k_hw_set_tsf64(struct ath5k_hw *ah, u64 tsf64);
1554 void ath5k_hw_reset_tsf(struct ath5k_hw *ah);
1555 void ath5k_hw_init_beacon_timers(struct ath5k_hw *ah, u32 next_beacon,
1557 bool ath5k_hw_check_beacon_timers(struct ath5k_hw *ah, int intval);
1559 void ath5k_hw_pcu_init(struct ath5k_hw *ah, enum nl80211_iftype op_mode);
1562 int ath5k_hw_get_tx_queueprops(struct ath5k_hw *ah, int queue,
1564 int ath5k_hw_set_tx_queueprops(struct ath5k_hw *ah, int queue,
1566 int ath5k_hw_setup_tx_queue(struct ath5k_hw *ah,
1569 void ath5k_hw_set_tx_retry_limits(struct ath5k_hw *ah,
1571 u32 ath5k_hw_num_tx_pending(struct ath5k_hw *ah, unsigned int queue);
1572 void ath5k_hw_release_tx_queue(struct ath5k_hw *ah, unsigned int queue);
1573 int ath5k_hw_reset_tx_queue(struct ath5k_hw *ah, unsigned int queue);
1574 int ath5k_hw_set_ifs_intervals(struct ath5k_hw *ah, unsigned int slot_time);
1576 int ath5k_hw_init_queues(struct ath5k_hw *ah);
1579 int ath5k_hw_init_desc_functions(struct ath5k_hw *ah);
1580 int ath5k_hw_setup_rx_desc(struct ath5k_hw *ah, struct ath5k_desc *desc,
1582 int ath5k_hw_setup_mrr_tx_desc(struct ath5k_hw *ah, struct ath5k_desc *desc,
1588 void ath5k_hw_set_ledstate(struct ath5k_hw *ah, unsigned int state);
1589 int ath5k_hw_set_gpio_input(struct ath5k_hw *ah, u32 gpio);
1590 int ath5k_hw_set_gpio_output(struct ath5k_hw *ah, u32 gpio);
1591 u32 ath5k_hw_get_gpio(struct ath5k_hw *ah, u32 gpio);
1592 int ath5k_hw_set_gpio(struct ath5k_hw *ah, u32 gpio, u32 val);
1593 void ath5k_hw_set_gpio_intr(struct ath5k_hw *ah, unsigned int gpio,
1598 void ath5k_rfkill_hw_start(struct ath5k_hw *ah);
1599 void ath5k_rfkill_hw_stop(struct ath5k_hw *ah);
1603 int ath5k_hw_set_capabilities(struct ath5k_hw *ah);
1604 int ath5k_hw_enable_pspoll(struct ath5k_hw *ah, u8 *bssid, u16 assoc_id);
1605 int ath5k_hw_disable_pspoll(struct ath5k_hw *ah);
1609 int ath5k_hw_write_initvals(struct ath5k_hw *ah, u8 mode, bool change_channel);
1614 u16 ath5k_hw_radio_revision(struct ath5k_hw *ah, enum ieee80211_band band);
1615 int ath5k_hw_phy_disable(struct ath5k_hw *ah);
1617 enum ath5k_rfgain ath5k_hw_gainf_calibrate(struct ath5k_hw *ah);
1618 int ath5k_hw_rfgain_opt_init(struct ath5k_hw *ah);
1620 bool ath5k_channel_ok(struct ath5k_hw *ah, struct ieee80211_channel *channel);
1622 void ath5k_hw_init_nfcal_hist(struct ath5k_hw *ah);
1623 int ath5k_hw_phy_calibrate(struct ath5k_hw *ah,
1625 void ath5k_hw_update_noise_floor(struct ath5k_hw *ah);
1627 bool ath5k_hw_chan_has_spur_noise(struct ath5k_hw *ah,
1630 void ath5k_hw_set_antenna_mode(struct ath5k_hw *ah, u8 ant_mode);
1631 void ath5k_hw_set_antenna_switch(struct ath5k_hw *ah, u8 ee_mode);
1633 int ath5k_hw_set_txpower_limit(struct ath5k_hw *ah, u8 txpower);
1635 int ath5k_hw_phy_init(struct ath5k_hw *ah, struct ieee80211_channel *channel,
1642 static inline struct ath_common *ath5k_hw_common(struct ath5k_hw *ah) in ath5k_hw_common()
1647 static inline struct ath_regulatory *ath5k_hw_regulatory(struct ath5k_hw *ah) in ath5k_hw_regulatory()
1655 static inline void __iomem *ath5k_ahb_reg(struct ath5k_hw *ah, u16 reg) in ath5k_ahb_reg()
1666 static inline u32 ath5k_hw_reg_read(struct ath5k_hw *ah, u16 reg) in ath5k_hw_reg_read()
1671 static inline void ath5k_hw_reg_write(struct ath5k_hw *ah, u32 val, u16 reg) in ath5k_hw_reg_write()
1678 static inline u32 ath5k_hw_reg_read(struct ath5k_hw *ah, u16 reg) in ath5k_hw_reg_read()
1683 static inline void ath5k_hw_reg_write(struct ath5k_hw *ah, u32 val, u16 reg) in ath5k_hw_reg_write()
1690 static inline enum ath_bus_type ath5k_get_bus_type(struct ath5k_hw *ah) in ath5k_get_bus_type()
1700 static inline bool ath5k_hw_nvram_read(struct ath5k_hw *ah, u32 off, u16 *data) in ath5k_hw_nvram_read()