Lines Matching refs:ath5k_hw
84 _ath5k_printk(const struct ath5k_hw *ah, const char *level,
1182 struct ath5k_hw *ah; /* driver state */
1256 struct ath5k_hw { struct
1452 int (*ah_setup_tx_desc)(struct ath5k_hw *, struct ath5k_desc *, argument
1456 int (*ah_proc_tx_desc)(struct ath5k_hw *, struct ath5k_desc *, argument
1458 int (*ah_proc_rx_desc)(struct ath5k_hw *, struct ath5k_desc *, argument
1466 int (*eeprom_read_mac)(struct ath5k_hw *ah, u8 *mac);
1475 int ath5k_hw_init(struct ath5k_hw *ah);
1476 void ath5k_hw_deinit(struct ath5k_hw *ah);
1478 int ath5k_sysfs_register(struct ath5k_hw *ah);
1479 void ath5k_sysfs_unregister(struct ath5k_hw *ah);
1482 int ath5k_hw_read_srev(struct ath5k_hw *ah);
1485 int ath5k_init_leds(struct ath5k_hw *ah);
1486 void ath5k_led_enable(struct ath5k_hw *ah);
1487 void ath5k_led_off(struct ath5k_hw *ah);
1488 void ath5k_unregister_leds(struct ath5k_hw *ah);
1492 int ath5k_hw_nic_wakeup(struct ath5k_hw *ah, struct ieee80211_channel *channel);
1493 int ath5k_hw_on_hold(struct ath5k_hw *ah);
1494 int ath5k_hw_reset(struct ath5k_hw *ah, enum nl80211_iftype op_mode,
1496 int ath5k_hw_register_timeout(struct ath5k_hw *ah, u32 reg, u32 flag, u32 val,
1502 unsigned int ath5k_hw_htoclock(struct ath5k_hw *ah, unsigned int usec);
1503 unsigned int ath5k_hw_clocktoh(struct ath5k_hw *ah, unsigned int clock);
1504 void ath5k_hw_set_clockrate(struct ath5k_hw *ah);
1508 void ath5k_hw_start_rx_dma(struct ath5k_hw *ah);
1509 u32 ath5k_hw_get_rxdp(struct ath5k_hw *ah);
1510 int ath5k_hw_set_rxdp(struct ath5k_hw *ah, u32 phys_addr);
1511 int ath5k_hw_start_tx_dma(struct ath5k_hw *ah, unsigned int queue);
1512 int ath5k_hw_stop_beacon_queue(struct ath5k_hw *ah, unsigned int queue);
1513 u32 ath5k_hw_get_txdp(struct ath5k_hw *ah, unsigned int queue);
1514 int ath5k_hw_set_txdp(struct ath5k_hw *ah, unsigned int queue,
1516 int ath5k_hw_update_tx_triglevel(struct ath5k_hw *ah, bool increase);
1518 bool ath5k_hw_is_intr_pending(struct ath5k_hw *ah);
1519 int ath5k_hw_get_isr(struct ath5k_hw *ah, enum ath5k_int *interrupt_mask);
1520 enum ath5k_int ath5k_hw_set_imr(struct ath5k_hw *ah, enum ath5k_int new_mask);
1521 void ath5k_hw_update_mib_counters(struct ath5k_hw *ah);
1523 void ath5k_hw_dma_init(struct ath5k_hw *ah);
1524 int ath5k_hw_dma_stop(struct ath5k_hw *ah);
1527 int ath5k_eeprom_init(struct ath5k_hw *ah);
1528 void ath5k_eeprom_detach(struct ath5k_hw *ah);
1529 int ath5k_eeprom_mode_from_channel(struct ath5k_hw *ah,
1534 int ath5k_hw_get_frame_duration(struct ath5k_hw *ah, enum ieee80211_band band,
1536 unsigned int ath5k_hw_get_default_slottime(struct ath5k_hw *ah);
1537 unsigned int ath5k_hw_get_default_sifs(struct ath5k_hw *ah);
1538 int ath5k_hw_set_opmode(struct ath5k_hw *ah, enum nl80211_iftype opmode);
1539 void ath5k_hw_set_coverage_class(struct ath5k_hw *ah, u8 coverage_class);
1541 int ath5k_hw_set_lladdr(struct ath5k_hw *ah, const u8 *mac);
1542 void ath5k_hw_set_bssid(struct ath5k_hw *ah);
1543 void ath5k_hw_set_bssid_mask(struct ath5k_hw *ah, const u8 *mask);
1544 void ath5k_hw_set_mcast_filter(struct ath5k_hw *ah, u32 filter0, u32 filter1);
1545 u32 ath5k_hw_get_rx_filter(struct ath5k_hw *ah);
1546 void ath5k_hw_set_rx_filter(struct ath5k_hw *ah, u32 filter);
1548 void ath5k_hw_start_rx_pcu(struct ath5k_hw *ah);
1549 void ath5k_hw_stop_rx_pcu(struct ath5k_hw *ah);
1551 u64 ath5k_hw_get_tsf64(struct ath5k_hw *ah);
1552 void ath5k_hw_set_tsf64(struct ath5k_hw *ah, u64 tsf64);
1553 void ath5k_hw_reset_tsf(struct ath5k_hw *ah);
1554 void ath5k_hw_init_beacon_timers(struct ath5k_hw *ah, u32 next_beacon,
1556 bool ath5k_hw_check_beacon_timers(struct ath5k_hw *ah, int intval);
1558 void ath5k_hw_pcu_init(struct ath5k_hw *ah, enum nl80211_iftype op_mode);
1561 int ath5k_hw_get_tx_queueprops(struct ath5k_hw *ah, int queue,
1563 int ath5k_hw_set_tx_queueprops(struct ath5k_hw *ah, int queue,
1565 int ath5k_hw_setup_tx_queue(struct ath5k_hw *ah,
1568 void ath5k_hw_set_tx_retry_limits(struct ath5k_hw *ah,
1570 u32 ath5k_hw_num_tx_pending(struct ath5k_hw *ah, unsigned int queue);
1571 void ath5k_hw_release_tx_queue(struct ath5k_hw *ah, unsigned int queue);
1572 int ath5k_hw_reset_tx_queue(struct ath5k_hw *ah, unsigned int queue);
1573 int ath5k_hw_set_ifs_intervals(struct ath5k_hw *ah, unsigned int slot_time);
1575 int ath5k_hw_init_queues(struct ath5k_hw *ah);
1578 int ath5k_hw_init_desc_functions(struct ath5k_hw *ah);
1579 int ath5k_hw_setup_rx_desc(struct ath5k_hw *ah, struct ath5k_desc *desc,
1581 int ath5k_hw_setup_mrr_tx_desc(struct ath5k_hw *ah, struct ath5k_desc *desc,
1587 void ath5k_hw_set_ledstate(struct ath5k_hw *ah, unsigned int state);
1588 int ath5k_hw_set_gpio_input(struct ath5k_hw *ah, u32 gpio);
1589 int ath5k_hw_set_gpio_output(struct ath5k_hw *ah, u32 gpio);
1590 u32 ath5k_hw_get_gpio(struct ath5k_hw *ah, u32 gpio);
1591 int ath5k_hw_set_gpio(struct ath5k_hw *ah, u32 gpio, u32 val);
1592 void ath5k_hw_set_gpio_intr(struct ath5k_hw *ah, unsigned int gpio,
1597 void ath5k_rfkill_hw_start(struct ath5k_hw *ah);
1598 void ath5k_rfkill_hw_stop(struct ath5k_hw *ah);
1602 int ath5k_hw_set_capabilities(struct ath5k_hw *ah);
1603 int ath5k_hw_enable_pspoll(struct ath5k_hw *ah, u8 *bssid, u16 assoc_id);
1604 int ath5k_hw_disable_pspoll(struct ath5k_hw *ah);
1608 int ath5k_hw_write_initvals(struct ath5k_hw *ah, u8 mode, bool change_channel);
1613 u16 ath5k_hw_radio_revision(struct ath5k_hw *ah, enum ieee80211_band band);
1614 int ath5k_hw_phy_disable(struct ath5k_hw *ah);
1616 enum ath5k_rfgain ath5k_hw_gainf_calibrate(struct ath5k_hw *ah);
1617 int ath5k_hw_rfgain_opt_init(struct ath5k_hw *ah);
1619 bool ath5k_channel_ok(struct ath5k_hw *ah, struct ieee80211_channel *channel);
1621 void ath5k_hw_init_nfcal_hist(struct ath5k_hw *ah);
1622 int ath5k_hw_phy_calibrate(struct ath5k_hw *ah,
1624 void ath5k_hw_update_noise_floor(struct ath5k_hw *ah);
1626 bool ath5k_hw_chan_has_spur_noise(struct ath5k_hw *ah,
1629 void ath5k_hw_set_antenna_mode(struct ath5k_hw *ah, u8 ant_mode);
1630 void ath5k_hw_set_antenna_switch(struct ath5k_hw *ah, u8 ee_mode);
1632 int ath5k_hw_set_txpower_limit(struct ath5k_hw *ah, u8 txpower);
1634 int ath5k_hw_phy_init(struct ath5k_hw *ah, struct ieee80211_channel *channel,
1641 static inline struct ath_common *ath5k_hw_common(struct ath5k_hw *ah) in ath5k_hw_common()
1646 static inline struct ath_regulatory *ath5k_hw_regulatory(struct ath5k_hw *ah) in ath5k_hw_regulatory()
1654 static inline void __iomem *ath5k_ahb_reg(struct ath5k_hw *ah, u16 reg) in ath5k_ahb_reg()
1665 static inline u32 ath5k_hw_reg_read(struct ath5k_hw *ah, u16 reg) in ath5k_hw_reg_read()
1670 static inline void ath5k_hw_reg_write(struct ath5k_hw *ah, u32 val, u16 reg) in ath5k_hw_reg_write()
1677 static inline u32 ath5k_hw_reg_read(struct ath5k_hw *ah, u16 reg) in ath5k_hw_reg_read()
1682 static inline void ath5k_hw_reg_write(struct ath5k_hw *ah, u32 val, u16 reg) in ath5k_hw_reg_write()
1689 static inline enum ath_bus_type ath5k_get_bus_type(struct ath5k_hw *ah) in ath5k_get_bus_type()
1699 static inline bool ath5k_hw_nvram_read(struct ath5k_hw *ah, u32 off, u16 *data) in ath5k_hw_nvram_read()