/openbmc/linux/drivers/net/wireless/ath/ath12k/ |
H A D | hif.h | 13 u32 (*read32)(struct ath12k_base *ab, u32 address); 14 void (*write32)(struct ath12k_base *ab, u32 address, u32 data); 15 void (*irq_enable)(struct ath12k_base *ab); 16 void (*irq_disable)(struct ath12k_base *ab); 17 int (*start)(struct ath12k_base *ab); 18 void (*stop)(struct ath12k_base *ab); 19 int (*power_up)(struct ath12k_base *ab); 20 void (*power_down)(struct ath12k_base *ab); 21 int (*suspend)(struct ath12k_base *ab); 22 int (*resume)(struct ath12k_base *ab); [all …]
|
H A D | dp_rx.h | 33 struct ath12k_base *ab; 101 void ath12k_dp_htt_htc_t2h_msg_handler(struct ath12k_base *ab, 103 int ath12k_dp_rx_pdev_reo_setup(struct ath12k_base *ab); 104 void ath12k_dp_rx_pdev_reo_cleanup(struct ath12k_base *ab); 105 int ath12k_dp_rx_htt_setup(struct ath12k_base *ab); 106 int ath12k_dp_rx_alloc(struct ath12k_base *ab); 107 void ath12k_dp_rx_free(struct ath12k_base *ab); 108 int ath12k_dp_rx_pdev_alloc(struct ath12k_base *ab, int pdev_idx); 109 void ath12k_dp_rx_pdev_free(struct ath12k_base *ab, int pdev_idx); 110 void ath12k_dp_rx_reo_cmd_list_cleanup(struct ath12k_base *ab); [all …]
|
H A D | pci.h | 90 int (*wakeup)(struct ath12k_base *ab); 91 void (*release)(struct ath12k_base *ab); 96 struct ath12k_base *ab; 114 static inline struct ath12k_pci *ath12k_pci_priv(struct ath12k_base *ab) in ath12k_pci_priv() 119 int ath12k_pci_get_user_msi_assignment(struct ath12k_base *ab, char *user_name, 123 void ath12k_pci_write32(struct ath12k_base *ab, u32 offset, u32 value); 124 u32 ath12k_pci_read32(struct ath12k_base *ab, u32 offset); 125 int ath12k_pci_map_service_to_pipe(struct ath12k_base *ab, u16 service_id, 127 void ath12k_pci_get_msi_address(struct ath12k_base *ab, u32 *msi_addr_lo, 129 void ath12k_pci_get_ce_msi_idx(struct ath12k_base *ab, u32 ce_id, [all …]
|
H A D | ce.h | 52 struct ath12k_base; 94 void (*recv_cb)(struct ath12k_base *ab, struct sk_buff *skb); 142 struct ath12k_base *ab; 149 void (*recv_cb)(struct ath12k_base *ab, struct sk_buff *skb); 168 void ath12k_ce_cleanup_pipes(struct ath12k_base *ab); 170 void ath12k_ce_per_engine_service(struct ath12k_base *ab, u16 ce_id); 171 int ath12k_ce_send(struct ath12k_base *ab, struct sk_buff *skb, u8 pipe_id, 173 void ath12k_ce_rx_post_buf(struct ath12k_base *ab); 174 int ath12k_ce_init_pipes(struct ath12k_base *ab); 175 int ath12k_ce_alloc_pipes(struct ath12k_base *ab); [all …]
|
H A D | pci.c | 122 static int ath12k_pci_bus_wake_up(struct ath12k_base *ab) in ath12k_pci_bus_wake_up() 129 static void ath12k_pci_bus_release(struct ath12k_base *ab) in ath12k_pci_bus_release() 148 struct ath12k_base *ab = ab_pci->ab; in ath12k_pci_select_window() 182 static u32 ath12k_pci_get_window_start(struct ath12k_base *ab, in ath12k_pci_get_window_start() 205 static void ath12k_pci_soc_global_reset(struct ath12k_base *ab) in ath12k_pci_soc_global_reset() 231 static void ath12k_pci_clear_dbg_registers(struct ath12k_base *ab) in ath12k_pci_clear_dbg_registers() 261 static void ath12k_pci_enable_ltssm(struct ath12k_base *ab) in ath12k_pci_enable_ltssm() 289 static void ath12k_pci_clear_all_intrs(struct ath12k_base *ab) in ath12k_pci_clear_all_intrs() 299 static void ath12k_pci_set_wlaon_pwr_ctrl(struct ath12k_base *ab) in ath12k_pci_set_wlaon_pwr_ctrl() 308 static void ath12k_pci_force_wake(struct ath12k_base *ab) in ath12k_pci_force_wake() [all …]
|
H A D | mac.h | 14 struct ath12k_base; 50 void ath12k_mac_destroy(struct ath12k_base *ab); 51 void ath12k_mac_unregister(struct ath12k_base *ab); 52 int ath12k_mac_register(struct ath12k_base *ab); 53 int ath12k_mac_allocate(struct ath12k_base *ab); 65 struct ath12k_vif *ath12k_mac_get_arvif_by_vdev_id(struct ath12k_base *ab, 67 struct ath12k *ath12k_mac_get_ar_by_vdev_id(struct ath12k_base *ab, u32 vdev_id); 68 struct ath12k *ath12k_mac_get_ar_by_pdev_id(struct ath12k_base *ab, u32 pdev_id);
|
H A D | debug.h | 31 __printf(2, 3) void ath12k_info(struct ath12k_base *ab, const char *fmt, ...); 32 __printf(2, 3) void ath12k_err(struct ath12k_base *ab, const char *fmt, ...); 33 __printf(2, 3) void ath12k_warn(struct ath12k_base *ab, const char *fmt, ...); 38 __printf(3, 4) void __ath12k_dbg(struct ath12k_base *ab, 41 void ath12k_dbg_dump(struct ath12k_base *ab, 46 static inline void __ath12k_dbg(struct ath12k_base *ab, in __ath12k_dbg() 52 static inline void ath12k_dbg_dump(struct ath12k_base *ab, in ath12k_dbg_dump()
|
H A D | core.c | 22 int ath12k_core_suspend(struct ath12k_base *ab) in ath12k_core_suspend() 60 int ath12k_core_resume(struct ath12k_base *ab) in ath12k_core_resume() 86 static int ath12k_core_create_board_name(struct ath12k_base *ab, char *name, in ath12k_core_create_board_name() 107 const struct firmware *ath12k_core_firmware_request(struct ath12k_base *ab, in ath12k_core_firmware_request() 129 void ath12k_core_free_bdf(struct ath12k_base *ab, struct ath12k_board_data *bd) in ath12k_core_free_bdf() 137 static int ath12k_core_parse_bd_ie_board(struct ath12k_base *ab, in ath12k_core_parse_bd_ie_board() 218 static int ath12k_core_fetch_board_data_api_n(struct ath12k_base *ab, in ath12k_core_fetch_board_data_api_n() 324 int ath12k_core_fetch_board_data_api_1(struct ath12k_base *ab, in ath12k_core_fetch_board_data_api_1() 339 int ath12k_core_fetch_bdf(struct ath12k_base *ab, struct ath12k_board_data *bd) in ath12k_core_fetch_bdf() 368 static void ath12k_core_stop(struct ath12k_base *ab) in ath12k_core_stop() [all …]
|
H A D | peer.h | 52 void ath12k_peer_unmap_event(struct ath12k_base *ab, u16 peer_id); 53 void ath12k_peer_map_event(struct ath12k_base *ab, u8 vdev_id, u16 peer_id, 55 struct ath12k_peer *ath12k_peer_find(struct ath12k_base *ab, int vdev_id, 57 struct ath12k_peer *ath12k_peer_find_by_addr(struct ath12k_base *ab, 59 struct ath12k_peer *ath12k_peer_find_by_id(struct ath12k_base *ab, int peer_id); 67 bool ath12k_peer_exist_by_vdev_id(struct ath12k_base *ab, int vdev_id); 68 struct ath12k_peer *ath12k_peer_find_by_ast(struct ath12k_base *ab, int ast_hash);
|
H A D | hal.h | 13 struct ath12k_base; 1073 int (*create_srng_config)(struct ath12k_base *ab); 1089 void ath12k_hal_reo_init_cmd_ring(struct ath12k_base *ab, 1091 void ath12k_hal_reo_hw_setup(struct ath12k_base *ab, u32 ring_hash_map); 1092 void ath12k_hal_setup_link_idle_list(struct ath12k_base *ab, 1097 dma_addr_t ath12k_hal_srng_get_tp_addr(struct ath12k_base *ab, 1099 dma_addr_t ath12k_hal_srng_get_hp_addr(struct ath12k_base *ab, 1108 int ath12k_hal_srng_get_entrysize(struct ath12k_base *ab, u32 ring_type); 1109 int ath12k_hal_srng_get_max_entries(struct ath12k_base *ab, u32 ring_type); 1110 void ath12k_hal_srng_get_params(struct ath12k_base *ab, struct hal_srng *srng, [all …]
|
H A D | ce.c | 225 struct ath12k_base *ab = pipe->ab; in ath12k_ce_rx_buf_enqueue_pipe() 273 struct ath12k_base *ab = pipe->ab; in ath12k_ce_rx_post_pipe() 322 struct ath12k_base *ab = pipe->ab; in ath12k_ce_completed_recv_next() 371 struct ath12k_base *ab = pipe->ab; in ath12k_ce_recv_process_cb() 411 struct ath12k_base *ab = pipe->ab; in ath12k_ce_completed_send_next() 452 struct ath12k_base *ab = pipe->ab; in ath12k_ce_send_done_cb() 465 static void ath12k_ce_srng_msi_ring_params_setup(struct ath12k_base *ab, u32 ce_id, in ath12k_ce_srng_msi_ring_params_setup() 491 static int ath12k_ce_init_ring(struct ath12k_base *ab, in ath12k_ce_init_ring() 544 ath12k_ce_alloc_ring(struct ath12k_base *ab, int nentries, int desc_sz) in ath12k_ce_alloc_ring() 580 static int ath12k_ce_alloc_pipe(struct ath12k_base *ab, int ce_id) in ath12k_ce_alloc_pipe() [all …]
|
H A D | htc.h | 16 struct ath12k_base; 234 void (*ep_tx_complete)(struct ath12k_base *ab, struct sk_buff *skb); 235 void (*ep_rx_complete)(struct ath12k_base *ab, struct sk_buff *skb); 236 void (*ep_tx_credits)(struct ath12k_base *ab); 286 struct ath12k_base *ab; 304 int ath12k_htc_init(struct ath12k_base *ar); 312 struct sk_buff *ath12k_htc_alloc_skb(struct ath12k_base *ar, int size); 313 void ath12k_htc_rx_completion_handler(struct ath12k_base *ar,
|
H A D | dp.c | 17 static void ath12k_dp_htt_htc_tx_complete(struct ath12k_base *ab, in ath12k_dp_htt_htc_tx_complete() 25 struct ath12k_base *ab = ar->ab; in ath12k_dp_peer_cleanup() 47 struct ath12k_base *ab = ar->ab; in ath12k_dp_peer_setup() 102 void ath12k_dp_srng_cleanup(struct ath12k_base *ab, struct dp_srng *ring) in ath12k_dp_srng_cleanup() 127 static int ath12k_dp_srng_calculate_msi_group(struct ath12k_base *ab, in ath12k_dp_srng_calculate_msi_group() 188 static void ath12k_dp_srng_msi_setup(struct ath12k_base *ab, in ath12k_dp_srng_msi_setup() 228 int ath12k_dp_srng_setup(struct ath12k_base *ab, struct dp_srng *ring, in ath12k_dp_srng_setup() 325 u32 ath12k_dp_tx_get_vdev_bank_config(struct ath12k_base *ab, struct ath12k_vif *arvif) in ath12k_dp_tx_get_vdev_bank_config() 363 static int ath12k_dp_tx_get_bank_profile(struct ath12k_base *ab, struct ath12k_vif *arvif, in ath12k_dp_tx_get_bank_profile() 420 static void ath12k_dp_deinit_bank_profiles(struct ath12k_base *ab) in ath12k_dp_deinit_bank_profiles() [all …]
|
H A D | core.h | 123 struct ath12k_base *ab; 451 struct ath12k_base *ab; 659 struct ath12k_base { struct 780 int ath12k_core_qmi_firmware_ready(struct ath12k_base *ab); argument 781 int ath12k_core_pre_init(struct ath12k_base *ab); 782 int ath12k_core_init(struct ath12k_base *ath12k); 783 void ath12k_core_deinit(struct ath12k_base *ath12k); 784 struct ath12k_base *ath12k_core_alloc(struct device *dev, size_t priv_size, 786 void ath12k_core_free(struct ath12k_base *ath12k); 787 int ath12k_core_fetch_board_data_api_1(struct ath12k_base *ab, [all …]
|
H A D | debug.c | 11 void ath12k_info(struct ath12k_base *ab, const char *fmt, ...) in ath12k_info() 25 void ath12k_err(struct ath12k_base *ab, const char *fmt, ...) in ath12k_err() 39 void ath12k_warn(struct ath12k_base *ab, const char *fmt, ...) in ath12k_warn() 55 void __ath12k_dbg(struct ath12k_base *ab, enum ath12k_debug_mask mask, in __ath12k_dbg() 74 void ath12k_dbg_dump(struct ath12k_base *ab, in ath12k_dbg_dump()
|
H A D | peer.c | 11 struct ath12k_peer *ath12k_peer_find(struct ath12k_base *ab, int vdev_id, in ath12k_peer_find() 30 static struct ath12k_peer *ath12k_peer_find_by_pdev_idx(struct ath12k_base *ab, in ath12k_peer_find_by_pdev_idx() 49 struct ath12k_peer *ath12k_peer_find_by_addr(struct ath12k_base *ab, in ath12k_peer_find_by_addr() 66 struct ath12k_peer *ath12k_peer_find_by_id(struct ath12k_base *ab, in ath12k_peer_find_by_id() 80 bool ath12k_peer_exist_by_vdev_id(struct ath12k_base *ab, int vdev_id) in ath12k_peer_exist_by_vdev_id() 96 struct ath12k_peer *ath12k_peer_find_by_ast(struct ath12k_base *ab, in ath12k_peer_find_by_ast() 110 void ath12k_peer_unmap_event(struct ath12k_base *ab, u16 peer_id) in ath12k_peer_unmap_event() 134 void ath12k_peer_map_event(struct ath12k_base *ab, u8 vdev_id, u16 peer_id, in ath12k_peer_map_event() 162 static int ath12k_wait_for_peer_common(struct ath12k_base *ab, int vdev_id, in ath12k_wait_for_peer_common() 187 struct ath12k_base *ab = ar->ab; in ath12k_peer_cleanup()
|
H A D | dp_tx.h | 18 int ath12k_dp_tx_htt_h2t_ver_req_msg(struct ath12k_base *ab); 21 void ath12k_dp_tx_completion_handler(struct ath12k_base *ab, int ring_id); 30 int ath12k_dp_tx_htt_rx_filter_setup(struct ath12k_base *ab, u32 ring_id, 35 int ath12k_dp_tx_htt_tx_filter_setup(struct ath12k_base *ab, u32 ring_id,
|
H A D | dp_rx.c | 23 static enum hal_encrypt_type ath12k_dp_rx_h_enctype(struct ath12k_base *ab, in ath12k_dp_rx_h_enctype() 32 u8 ath12k_dp_rx_h_decap_type(struct ath12k_base *ab, in ath12k_dp_rx_h_decap_type() 38 static u8 ath12k_dp_rx_h_mesh_ctl_present(struct ath12k_base *ab, in ath12k_dp_rx_h_mesh_ctl_present() 44 static bool ath12k_dp_rx_h_seq_ctrl_valid(struct ath12k_base *ab, in ath12k_dp_rx_h_seq_ctrl_valid() 50 static bool ath12k_dp_rx_h_fc_valid(struct ath12k_base *ab, in ath12k_dp_rx_h_fc_valid() 56 static bool ath12k_dp_rx_h_more_frags(struct ath12k_base *ab, in ath12k_dp_rx_h_more_frags() 65 static u16 ath12k_dp_rx_h_frag_no(struct ath12k_base *ab, in ath12k_dp_rx_h_frag_no() 74 static u16 ath12k_dp_rx_h_seq_no(struct ath12k_base *ab, in ath12k_dp_rx_h_seq_no() 80 static bool ath12k_dp_rx_h_msdu_done(struct ath12k_base *ab, in ath12k_dp_rx_h_msdu_done() 86 static bool ath12k_dp_rx_h_l4_cksum_fail(struct ath12k_base *ab, in ath12k_dp_rx_h_l4_cksum_fail() [all …]
|
H A D | mhi.c | 203 void ath12k_mhi_set_mhictrl_reset(struct ath12k_base *ab) in ath12k_mhi_set_mhictrl_reset() 220 static void ath12k_mhi_reset_txvecdb(struct ath12k_base *ab) in ath12k_mhi_reset_txvecdb() 225 static void ath12k_mhi_reset_txvecstatus(struct ath12k_base *ab) in ath12k_mhi_reset_txvecstatus() 230 static void ath12k_mhi_reset_rxvecdb(struct ath12k_base *ab) in ath12k_mhi_reset_rxvecdb() 235 static void ath12k_mhi_reset_rxvecstatus(struct ath12k_base *ab) in ath12k_mhi_reset_rxvecstatus() 240 void ath12k_mhi_clear_vector(struct ath12k_base *ab) in ath12k_mhi_clear_vector() 250 struct ath12k_base *ab = ab_pci->ab; in ath12k_mhi_get_msi() 316 struct ath12k_base *ab = dev_get_drvdata(mhi_cntrl->cntrl_dev); in ath12k_mhi_op_status_cb() 352 struct ath12k_base *ab = ab_pci->ab; in ath12k_mhi_register() 440 struct ath12k_base *ab = ab_pci->ab; in ath12k_mhi_set_state_bit() [all …]
|
H A D | hal.c | 245 static unsigned int ath12k_hal_reo1_ring_id_offset(struct ath12k_base *ab) in ath12k_hal_reo1_ring_id_offset() 250 static unsigned int ath12k_hal_reo1_ring_msi1_base_lsb_offset(struct ath12k_base *ab) in ath12k_hal_reo1_ring_msi1_base_lsb_offset() 255 static unsigned int ath12k_hal_reo1_ring_msi1_base_msb_offset(struct ath12k_base *ab) in ath12k_hal_reo1_ring_msi1_base_msb_offset() 260 static unsigned int ath12k_hal_reo1_ring_msi1_data_offset(struct ath12k_base *ab) in ath12k_hal_reo1_ring_msi1_data_offset() 265 static unsigned int ath12k_hal_reo1_ring_base_msb_offset(struct ath12k_base *ab) in ath12k_hal_reo1_ring_base_msb_offset() 270 static unsigned int ath12k_hal_reo1_ring_producer_int_setup_offset(struct ath12k_base *ab) in ath12k_hal_reo1_ring_producer_int_setup_offset() 275 static unsigned int ath12k_hal_reo1_ring_hp_addr_lsb_offset(struct ath12k_base *ab) in ath12k_hal_reo1_ring_hp_addr_lsb_offset() 280 static unsigned int ath12k_hal_reo1_ring_hp_addr_msb_offset(struct ath12k_base *ab) in ath12k_hal_reo1_ring_hp_addr_msb_offset() 285 static unsigned int ath12k_hal_reo1_ring_misc_offset(struct ath12k_base *ab) in ath12k_hal_reo1_ring_misc_offset() 519 static int ath12k_hal_srng_create_config_qcn9274(struct ath12k_base *ab) in ath12k_hal_srng_create_config_qcn9274() [all …]
|
H A D | hal_rx.h | 662 void ath12k_hal_reo_status_queue_stats(struct ath12k_base *ab, 665 void ath12k_hal_reo_flush_queue_status(struct ath12k_base *ab, 668 void ath12k_hal_reo_flush_cache_status(struct ath12k_base *ab, 671 void ath12k_hal_reo_unblk_cache_status(struct ath12k_base *ab, 674 void ath12k_hal_reo_flush_timeout_list_status(struct ath12k_base *ab, 677 void ath12k_hal_reo_desc_thresh_reached_status(struct ath12k_base *ab, 680 void ath12k_hal_reo_update_rx_reo_queue_status(struct ath12k_base *ab, 686 void ath12k_hal_rx_msdu_link_desc_set(struct ath12k_base *ab, 695 int ath12k_hal_desc_reo_parse_err(struct ath12k_base *ab, 698 int ath12k_hal_wbm_desc_parse_err(struct ath12k_base *ab, void *desc, [all …]
|
H A D | htc.c | 12 struct sk_buff *ath12k_htc_alloc_skb(struct ath12k_base *ab, int size) in ath12k_htc_alloc_skb() 29 static void ath12k_htc_control_tx_complete(struct ath12k_base *ab, in ath12k_htc_control_tx_complete() 81 struct ath12k_base *ab = htc->ab; in ath12k_htc_send() 150 struct ath12k_base *ab = htc->ab; in ath12k_htc_process_credit_report() 184 struct ath12k_base *ab = htc->ab; in ath12k_htc_process_trailer() 235 static void ath12k_htc_suspend_complete(struct ath12k_base *ab, bool ack) in ath12k_htc_suspend_complete() 247 void ath12k_htc_rx_completion_handler(struct ath12k_base *ab, in ath12k_htc_rx_completion_handler() 374 static void ath12k_htc_control_rx_complete(struct ath12k_base *ab, in ath12k_htc_control_rx_complete() 488 struct ath12k_base *ab = htc->ab; in ath12k_htc_wait_target() 555 struct ath12k_base *ab = htc->ab; in ath12k_htc_connect_service() [all …]
|
H A D | dp.h | 15 struct ath12k_base; 271 struct ath12k_base *ab; 307 struct ath12k_base *ab; 1788 int ath12k_dp_service_srng(struct ath12k_base *ab, 1793 void ath12k_dp_free(struct ath12k_base *ab); 1794 int ath12k_dp_alloc(struct ath12k_base *ab); 1795 void ath12k_dp_cc_config(struct ath12k_base *ab); 1796 int ath12k_dp_pdev_alloc(struct ath12k_base *ab); 1797 void ath12k_dp_pdev_pre_alloc(struct ath12k_base *ab); 1798 void ath12k_dp_pdev_free(struct ath12k_base *ab); [all …]
|
H A D | dp_tx.c | 16 struct ath12k_base *ab = arvif->ar->ab; in ath12k_dp_tx_get_encap_type() 109 static void ath12k_hal_tx_cmd_ext_desc_setup(struct ath12k_base *ab, void *cmd, in ath12k_hal_tx_cmd_ext_desc_setup() 131 struct ath12k_base *ab = ar->ab; in ath12k_dp_tx() 347 static void ath12k_dp_tx_free_txbuf(struct ath12k_base *ab, in ath12k_dp_tx_free_txbuf() 370 ath12k_dp_tx_htt_tx_complete_buf(struct ath12k_base *ab, in ath12k_dp_tx_htt_tx_complete_buf() 409 ath12k_dp_tx_process_htt_tx_complete(struct ath12k_base *ab, in ath12k_dp_tx_process_htt_tx_complete() 451 struct ath12k_base *ab = ar->ab; in ath12k_dp_tx_complete_msdu() 508 static void ath12k_dp_tx_status_parse(struct ath12k_base *ab, in ath12k_dp_tx_status_parse() 532 void ath12k_dp_tx_completion_handler(struct ath12k_base *ab, int ring_id) in ath12k_dp_tx_completion_handler() 623 ath12k_dp_tx_get_ring_id_type(struct ath12k_base *ab, in ath12k_dp_tx_get_ring_id_type() [all …]
|
H A D | reg.h | 13 struct ath12k_base; 87 void ath12k_reg_free(struct ath12k_base *ab); 89 struct ieee80211_regdomain *ath12k_reg_build_regd(struct ath12k_base *ab,
|