Lines Matching defs:htt
1453 /* real is 16 but it wouldn't fit in the max htt message size
1931 int (*htt_send_rx_ring_cfg)(struct ath10k_htt *htt);
1932 int (*htt_send_frag_desc_bank_cfg)(struct ath10k_htt *htt);
1933 int (*htt_alloc_frag_desc)(struct ath10k_htt *htt);
1934 void (*htt_free_frag_desc)(struct ath10k_htt *htt);
1935 int (*htt_tx)(struct ath10k_htt *htt, enum ath10k_hw_txrx_mode txmode,
1937 int (*htt_alloc_txbuff)(struct ath10k_htt *htt);
1938 void (*htt_free_txbuff)(struct ath10k_htt *htt);
1939 int (*htt_h2t_aggr_cfg_msg)(struct ath10k_htt *htt,
1942 void (*htt_flush_tx)(struct ath10k_htt *htt);
1945 static inline int ath10k_htt_send_rx_ring_cfg(struct ath10k_htt *htt)
1947 if (!htt->tx_ops->htt_send_rx_ring_cfg)
1950 return htt->tx_ops->htt_send_rx_ring_cfg(htt);
1953 static inline int ath10k_htt_send_frag_desc_bank_cfg(struct ath10k_htt *htt)
1955 if (!htt->tx_ops->htt_send_frag_desc_bank_cfg)
1958 return htt->tx_ops->htt_send_frag_desc_bank_cfg(htt);
1961 static inline int ath10k_htt_alloc_frag_desc(struct ath10k_htt *htt)
1963 if (!htt->tx_ops->htt_alloc_frag_desc)
1966 return htt->tx_ops->htt_alloc_frag_desc(htt);
1969 static inline void ath10k_htt_free_frag_desc(struct ath10k_htt *htt)
1971 if (htt->tx_ops->htt_free_frag_desc)
1972 htt->tx_ops->htt_free_frag_desc(htt);
1975 static inline int ath10k_htt_tx(struct ath10k_htt *htt,
1979 return htt->tx_ops->htt_tx(htt, txmode, msdu);
1982 static inline void ath10k_htt_flush_tx(struct ath10k_htt *htt)
1984 if (htt->tx_ops->htt_flush_tx)
1985 htt->tx_ops->htt_flush_tx(htt);
1988 static inline int ath10k_htt_alloc_txbuff(struct ath10k_htt *htt)
1990 if (!htt->tx_ops->htt_alloc_txbuff)
1993 return htt->tx_ops->htt_alloc_txbuff(htt);
1996 static inline void ath10k_htt_free_txbuff(struct ath10k_htt *htt)
1998 if (htt->tx_ops->htt_free_txbuff)
1999 htt->tx_ops->htt_free_txbuff(htt);
2002 static inline int ath10k_htt_h2t_aggr_cfg_msg(struct ath10k_htt *htt,
2007 if (!htt->tx_ops->htt_h2t_aggr_cfg_msg)
2010 return htt->tx_ops->htt_h2t_aggr_cfg_msg(htt,
2016 size_t (*htt_get_rx_ring_size)(struct ath10k_htt *htt);
2017 void (*htt_config_paddrs_ring)(struct ath10k_htt *htt, void *vaddr);
2018 void (*htt_set_paddrs_ring)(struct ath10k_htt *htt, dma_addr_t paddr,
2020 void* (*htt_get_vaddr_ring)(struct ath10k_htt *htt);
2021 void (*htt_reset_paddrs_ring)(struct ath10k_htt *htt, int idx);
2022 bool (*htt_rx_proc_rx_frag_ind)(struct ath10k_htt *htt,
2027 static inline size_t ath10k_htt_get_rx_ring_size(struct ath10k_htt *htt)
2029 if (!htt->rx_ops->htt_get_rx_ring_size)
2032 return htt->rx_ops->htt_get_rx_ring_size(htt);
2035 static inline void ath10k_htt_config_paddrs_ring(struct ath10k_htt *htt,
2038 if (htt->rx_ops->htt_config_paddrs_ring)
2039 htt->rx_ops->htt_config_paddrs_ring(htt, vaddr);
2042 static inline void ath10k_htt_set_paddrs_ring(struct ath10k_htt *htt,
2046 if (htt->rx_ops->htt_set_paddrs_ring)
2047 htt->rx_ops->htt_set_paddrs_ring(htt, paddr, idx);
2050 static inline void *ath10k_htt_get_vaddr_ring(struct ath10k_htt *htt)
2052 if (!htt->rx_ops->htt_get_vaddr_ring)
2055 return htt->rx_ops->htt_get_vaddr_ring(htt);
2058 static inline void ath10k_htt_reset_paddrs_ring(struct ath10k_htt *htt, int idx)
2060 if (htt->rx_ops->htt_reset_paddrs_ring)
2061 htt->rx_ops->htt_reset_paddrs_ring(htt, idx);
2064 static inline bool ath10k_htt_rx_proc_rx_frag_ind(struct ath10k_htt *htt,
2068 if (!htt->rx_ops->htt_rx_proc_rx_frag_ind)
2071 return htt->rx_ops->htt_rx_proc_rx_frag_ind(htt, rx, skb);
2414 int ath10k_htt_connect(struct ath10k_htt *htt);
2416 int ath10k_htt_setup(struct ath10k_htt *htt);
2418 int ath10k_htt_tx_start(struct ath10k_htt *htt);
2419 void ath10k_htt_tx_stop(struct ath10k_htt *htt);
2420 void ath10k_htt_tx_destroy(struct ath10k_htt *htt);
2421 void ath10k_htt_tx_free(struct ath10k_htt *htt);
2423 int ath10k_htt_rx_alloc(struct ath10k_htt *htt);
2425 void ath10k_htt_rx_free(struct ath10k_htt *htt);
2430 int ath10k_htt_h2t_ver_req_msg(struct ath10k_htt *htt);
2431 int ath10k_htt_h2t_stats_req(struct ath10k_htt *htt, u32 mask, u32 reset_mask,
2446 void ath10k_htt_tx_dec_pending(struct ath10k_htt *htt);
2447 int ath10k_htt_tx_inc_pending(struct ath10k_htt *htt);
2448 void ath10k_htt_tx_mgmt_dec_pending(struct ath10k_htt *htt);
2449 int ath10k_htt_tx_mgmt_inc_pending(struct ath10k_htt *htt, bool is_mgmt,
2452 int ath10k_htt_tx_alloc_msdu_id(struct ath10k_htt *htt, struct sk_buff *skb);
2453 void ath10k_htt_tx_free_msdu_id(struct ath10k_htt *htt, u16 msdu_id);
2454 int ath10k_htt_mgmt_tx(struct ath10k_htt *htt, struct sk_buff *msdu);
2459 void ath10k_htt_set_tx_ops(struct ath10k_htt *htt);
2460 void ath10k_htt_set_rx_ops(struct ath10k_htt *htt);