Lines Matching refs:hif_softc
87 static void hif_config_rri_on_ddr(struct hif_softc *scn);
448 struct hif_softc *scn = HIF_GET_SOFTC(hif_ctx); in hif_trigger_dump()
1365 void hif_set_ce_config_qcn9224(struct hif_softc *scn, in hif_set_ce_config_qcn9224()
1385 void hif_set_ce_config_qcn9224(struct hif_softc *scn, in hif_set_ce_config_qcn9224()
1410 hif_select_service_to_pipe_map_kiwi(struct hif_softc *scn, in hif_select_service_to_pipe_map_kiwi()
1425 hif_select_service_to_pipe_map_kiwi(struct hif_softc *scn, in hif_select_service_to_pipe_map_kiwi()
1434 static void hif_select_service_to_pipe_map(struct hif_softc *scn, in hif_select_service_to_pipe_map()
1597 static inline void ce_update_wrt_idx_offset(struct hif_softc *scn, in ce_update_wrt_idx_offset()
1637 static inline void ce_update_wrt_idx_offset(struct hif_softc *scn, in ce_update_wrt_idx_offset()
1664 struct hif_softc *scn = HIF_GET_SOFTC(hif_ctx); in hif_ce_print_ring_stats()
1714 struct hif_softc *scn = HIF_GET_SOFTC(hif_ctx); in hif_get_max_wmi_ep()
1768 static QDF_STATUS ce_alloc_desc_ring(struct hif_softc *scn, unsigned int CE_id, in ce_alloc_desc_ring()
1817 static void ce_free_desc_ring(struct hif_softc *scn, unsigned int CE_id, in ce_free_desc_ring()
1839 static QDF_STATUS ce_alloc_desc_ring(struct hif_softc *scn, unsigned int CE_id, in ce_alloc_desc_ring()
1861 static void ce_free_desc_ring(struct hif_softc *scn, unsigned int CE_id, in ce_free_desc_ring()
1900 bool ce_srng_based(struct hif_softc *scn) in ce_srng_based()
1933 static struct ce_ops *ce_services_attach(struct hif_softc *scn) in ce_services_attach()
1949 static struct ce_ops *ce_services_attach(struct hif_softc *scn) in ce_services_attach()
1958 static void hif_prepare_hal_shadow_register_cfg(struct hif_softc *scn, in hif_prepare_hal_shadow_register_cfg()
1971 hif_prepare_hal_shadow_reg_cfg_v3(struct hif_softc *scn, in hif_prepare_hal_shadow_reg_cfg_v3()
1985 hif_prepare_hal_shadow_reg_cfg_v3(struct hif_softc *scn, in hif_prepare_hal_shadow_reg_cfg_v3()
1991 static inline uint32_t ce_get_desc_size(struct hif_softc *scn, in ce_get_desc_size()
2027 struct hif_softc *scn = CE_state->scn; in ce_alloc_ring_state()
2087 static int ce_ring_setup(struct hif_softc *scn, uint8_t ring_type, in ce_ring_setup()
2097 static void ce_srng_cleanup(struct hif_softc *scn, struct CE_state *CE_state, in ce_srng_cleanup()
2107 int hif_ce_bus_early_suspend(struct hif_softc *scn) in hif_ce_bus_early_suspend()
2137 int hif_ce_bus_late_resume(struct hif_softc *scn) in hif_ce_bus_late_resume()
2182 struct hif_softc *scn = ce_state->scn; in ce_oom_recovery()
2202 QDF_STATUS alloc_mem_ce_debug_hist_data(struct hif_softc *scn, uint32_t ce_id) in alloc_mem_ce_debug_hist_data()
2236 void free_mem_ce_debug_hist_data(struct hif_softc *scn, uint32_t ce_id) in free_mem_ce_debug_hist_data()
2292 __hif_ce_desc_history_log_register(struct hif_softc *scn) in __hif_ce_desc_history_log_register()
2321 hif_ce_debug_history_buf_get(struct hif_softc *scn, unsigned int ce_id) in hif_ce_debug_history_buf_get()
2349 alloc_mem_ce_debug_history(struct hif_softc *scn, unsigned int ce_id, in alloc_mem_ce_debug_history()
2387 static void free_mem_ce_debug_history(struct hif_softc *scn, unsigned int ce_id) in free_mem_ce_debug_history()
2404 __hif_ce_desc_history_log_register(struct hif_softc *scn) in __hif_ce_desc_history_log_register()
2411 alloc_mem_ce_debug_history(struct hif_softc *scn, unsigned int CE_id, in alloc_mem_ce_debug_history()
2418 free_mem_ce_debug_history(struct hif_softc *scn, unsigned int CE_id) { } in free_mem_ce_debug_history()
2424 __hif_ce_desc_history_log_register(struct hif_softc *scn) in __hif_ce_desc_history_log_register()
2431 alloc_mem_ce_debug_history(struct hif_softc *scn, unsigned int CE_id, in alloc_mem_ce_debug_history()
2446 static void free_mem_ce_debug_history(struct hif_softc *scn, unsigned int CE_id) in free_mem_ce_debug_history()
2467 __hif_ce_desc_history_log_register(struct hif_softc *scn) in __hif_ce_desc_history_log_register()
2474 alloc_mem_ce_debug_history(struct hif_softc *scn, unsigned int CE_id, in alloc_mem_ce_debug_history()
2481 free_mem_ce_debug_history(struct hif_softc *scn, unsigned int CE_id) { } in free_mem_ce_debug_history()
2493 static inline void reset_ce_debug_history(struct hif_softc *scn) in reset_ce_debug_history()
2503 static inline void reset_ce_debug_history(struct hif_softc *scn) { } in reset_ce_debug_history()
2642 struct CE_handle *ce_init(struct hif_softc *scn, in ce_init()
2869 void hif_ce_desc_history_log_register(struct hif_softc *scn) in hif_ce_desc_history_log_register()
2885 struct hif_softc *scn = HIF_GET_SOFTC(hif_ctx); in hif_is_polled_mode_enabled()
2900 static int hif_get_pktlog_ce_num(struct hif_softc *scn) in hif_get_pktlog_ce_num()
2916 static qdf_nbuf_t hif_ce_rx_nbuf_alloc(struct hif_softc *scn, uint8_t ce_id) in hif_ce_rx_nbuf_alloc()
2942 hif_calc_wbuff_pool_size(struct hif_softc *scn, struct CE_state *ce_state) in hif_calc_wbuff_pool_size()
2982 static void hif_ce_rx_wbuff_register(struct hif_softc *scn) in hif_ce_rx_wbuff_register()
3014 static void hif_ce_rx_wbuff_deregister(struct hif_softc *scn) in hif_ce_rx_wbuff_deregister()
3021 hif_ce_rx_nbuf_alloc(struct hif_softc *scn, uint8_t ce_id) in hif_ce_rx_nbuf_alloc()
3034 static inline void hif_ce_rx_wbuff_register(struct hif_softc *scn) in hif_ce_rx_wbuff_register()
3038 static inline void hif_ce_rx_wbuff_deregister(struct hif_softc *scn) in hif_ce_rx_wbuff_deregister()
3054 struct hif_softc *scn = HIF_GET_SOFTC(hif_ctx); in hif_enable_fastpath()
3074 struct hif_softc *scn = HIF_GET_SOFTC(hif_ctx); in hif_is_fastpath_mode_enabled()
3090 struct hif_softc *scn = HIF_GET_SOFTC(hif_ctx); in hif_get_ce_handle()
3113 struct hif_softc *sc = ce_state->scn; in ce_h2t_tx_ce_cleanup()
3194 static void hif_update_fastpath_recv_bufs_cnt(struct hif_softc *scn) in hif_update_fastpath_recv_bufs_cnt()
3213 static inline void hif_update_fastpath_recv_bufs_cnt(struct hif_softc *scn) in hif_update_fastpath_recv_bufs_cnt()
3217 static inline bool ce_is_fastpath_enabled(struct hif_softc *scn) in ce_is_fastpath_enabled()
3227 struct hif_softc *scn = CE_state->scn; in ce_fini()
3320 struct hif_softc *scn = HIF_GET_SOFTC(hif_ctx); in hif_send_head()
3406 struct hif_softc *scn = HIF_GET_SOFTC(hif_ctx); in hif_send_complete_check()
3439 struct hif_softc *scn = HIF_GET_SOFTC(hif_ctx); in hif_register_ce_custom_cb()
3455 struct hif_softc *scn = HIF_GET_SOFTC(hif_ctx); in hif_unregister_ce_custom_cb()
3471 struct hif_softc *scn = HIF_GET_SOFTC(hif_ctx); in hif_enable_ce_custom_cb()
3488 struct hif_softc *scn = HIF_GET_SOFTC(hif_ctx); in hif_disable_ce_custom_cb()
3618 hif_ce_rtpm_mark_last_busy(struct hif_softc *scn, uint32_t ce_id) in hif_ce_rtpm_mark_last_busy()
3629 hif_ce_rtpm_mark_last_busy(struct hif_softc *scn, uint32_t ce_id) in hif_ce_rtpm_mark_last_busy()
3647 struct hif_softc *scn = HIF_GET_SOFTC(hif_state); in hif_pci_ce_recv_data()
3699 struct hif_softc *scn = HIF_GET_SOFTC(hif_state); in hif_completion_thread_startup_by_ceid()
3751 struct hif_softc *scn = HIF_GET_SOFTC(hif_state); in hif_completion_thread_startup()
3788 static void hif_msg_callbacks_install(struct hif_softc *scn) in hif_msg_callbacks_install()
3814 void hif_dump_pipe_debug_count(struct hif_softc *scn) in hif_dump_pipe_debug_count()
3848 struct hif_softc *scn = HIF_GET_SOFTC(pipe_info->HIF_CE_state); in hif_post_recv_buffers_failure()
3879 struct hif_softc *scn = HIF_GET_SOFTC(pipe_info->HIF_CE_state); in hif_post_recv_buffers_for_pipe()
3980 struct hif_softc *scn = HIF_GET_SOFTC(hif_ce_state); in hif_alloc_pages_for_direct_link_recv_pipe()
4032 struct hif_softc *scn = HIF_GET_SOFTC(hif_ce_state); in hif_free_pages_for_direct_link_recv_pipe()
4065 static QDF_STATUS hif_post_recv_buffers(struct hif_softc *scn) in hif_post_recv_buffers()
4117 struct hif_softc *scn = HIF_GET_SOFTC(hif_ctx); in hif_start()
4146 struct hif_softc *scn; in hif_recv_buffer_cleanup_on_pipe()
4191 struct hif_softc *scn; in hif_send_buffer_cleanup_on_pipe()
4253 struct hif_softc *scn = HIF_GET_SOFTC(hif_state); in hif_buffer_cleanup()
4274 struct hif_softc *scn = HIF_GET_SOFTC(hif_ctx); in hif_flush_surprise_remove()
4280 static void hif_destroy_oom_work(struct hif_softc *scn) in hif_destroy_oom_work()
4294 void hif_ce_stop(struct hif_softc *scn) in hif_ce_stop()
4354 void hif_preare_shadow_register_cfg_v3(struct hif_softc *scn) in hif_preare_shadow_register_cfg_v3()
4376 void hif_get_shadow_reg_config_v3(struct hif_softc *scn, in hif_get_shadow_reg_config_v3()
4386 static void hif_get_shadow_reg_cfg(struct hif_softc *scn, in hif_get_shadow_reg_cfg()
4414 void hif_get_target_ce_config(struct hif_softc *scn, in hif_get_target_ce_config()
4472 inline unsigned int hif_get_src_ring_read_index(struct hif_softc *scn, in hif_get_src_ring_read_index()
4502 inline unsigned int hif_get_dst_ring_read_index(struct hif_softc *scn, in hif_get_dst_ring_read_index()
4528 static inline QDF_STATUS hif_alloc_rri_on_ddr(struct hif_softc *scn) in hif_alloc_rri_on_ddr()
4563 static inline void hif_config_rri_on_ddr(struct hif_softc *scn) in hif_config_rri_on_ddr()
4588 static inline void hif_config_rri_on_ddr(struct hif_softc *scn) in hif_config_rri_on_ddr()
4633 static inline void hif_config_rri_on_ddr(struct hif_softc *scn) in hif_config_rri_on_ddr()
4648 static void hif_update_rri_over_ddr_config(struct hif_softc *scn, in hif_update_rri_over_ddr_config()
4661 static void hif_update_rri_over_ddr_config(struct hif_softc *scn, in hif_update_rri_over_ddr_config()
4676 int hif_wlan_enable(struct hif_softc *scn) in hif_wlan_enable()
4736 void hif_ce_prepare_epping_config(struct hif_softc *scn, in hif_ce_prepare_epping_config()
4753 void hif_set_ce_config_qcn7605(struct hif_softc *scn, in hif_set_ce_config_qcn7605()
4766 void hif_set_ce_config_qcn7605(struct hif_softc *scn, in hif_set_ce_config_qcn7605()
4802 struct hif_softc *hif_ctx = HIF_GET_SOFTC(hif_state); in hif_ce_select_config_kiwi()
4834 void hif_ce_prepare_config(struct hif_softc *scn) in hif_ce_prepare_config()
5047 QDF_STATUS hif_ce_open(struct hif_softc *hif_sc) in hif_ce_open()
5060 void hif_ce_close(struct hif_softc *hif_sc) in hif_ce_close()
5074 void hif_unconfig_ce(struct hif_softc *hif_sc) in hif_unconfig_ce()
5113 static void hif_post_static_buf_to_target(struct hif_softc *scn) in hif_post_static_buf_to_target()
5170 void hif_cleanup_static_buf_to_target(struct hif_softc *scn) in hif_cleanup_static_buf_to_target()
5189 static void hif_post_static_buf_to_target(struct hif_softc *scn) in hif_post_static_buf_to_target()
5214 void hif_cleanup_static_buf_to_target(struct hif_softc *scn) in hif_cleanup_static_buf_to_target()
5227 static inline void hif_post_static_buf_to_target(struct hif_softc *scn) in hif_post_static_buf_to_target()
5231 void hif_cleanup_static_buf_to_target(struct hif_softc *scn) in hif_cleanup_static_buf_to_target()
5236 static int hif_srng_sleep_state_adjust(struct hif_softc *scn, bool sleep_ok, in hif_srng_sleep_state_adjust()
5243 int hif_config_ce_by_id(struct hif_softc *scn, int pipe_num) in hif_config_ce_by_id()
5318 static inline void hif_gen_ce_id_history_idx_mapping(struct hif_softc *scn) in hif_gen_ce_id_history_idx_mapping()
5331 static inline void hif_gen_ce_id_history_idx_mapping(struct hif_softc *scn) in hif_gen_ce_id_history_idx_mapping()
5347 int hif_config_ce(struct hif_softc *scn) in hif_config_ce()
5429 struct hif_softc *scn = HIF_GET_SOFTC(hif_hdl); in hif_config_ce_pktlog()
5493 void hif_ce_ipa_get_ce_resource(struct hif_softc *scn, in hif_ce_ipa_get_ce_resource()
5579 u32 shadow_sr_wr_ind_addr(struct hif_softc *scn, u32 ctrl_addr) in shadow_sr_wr_ind_addr()
5608 u32 shadow_dst_wr_ind_addr(struct hif_softc *scn, u32 ctrl_addr) in shadow_dst_wr_ind_addr()
5647 u32 shadow_sr_wr_ind_addr(struct hif_softc *scn, u32 ctrl_addr) in shadow_sr_wr_ind_addr()
5672 u32 shadow_dst_wr_ind_addr(struct hif_softc *scn, u32 ctrl_addr) in shadow_dst_wr_ind_addr()
5719 struct hif_softc *scn = HIF_GET_SOFTC(hif_hdl); in hif_ce_get_lro_ctx()
5755 struct hif_softc *scn = HIF_GET_SOFTC(hif_hdl); in hif_map_service_to_pipe()
5791 inline uint32_t DEBUG_CE_SRC_RING_READ_IDX_GET(struct hif_softc *scn, in DEBUG_CE_SRC_RING_READ_IDX_GET()
5810 inline uint32_t DEBUG_CE_DEST_RING_READ_IDX_GET(struct hif_softc *scn, in DEBUG_CE_DEST_RING_READ_IDX_GET()
5838 int hif_dump_ce_registers(struct hif_softc *scn) in hif_dump_ce_registers()
5886 struct hif_softc *scn = HIF_GET_SOFTC(osc); in hif_get_addl_pipe_info()
5929 struct hif_softc *scn = HIF_GET_SOFTC(osc); in hif_set_nss_wifiol_mode()
5939 struct hif_softc *scn = HIF_GET_SOFTC(osc); in hif_set_attribute()
5947 struct hif_softc *scn = HIF_GET_SOFTC(osc); in hif_disable_interrupt()
5992 struct hif_softc *scn = arg; in hif_fw_interrupt_handler()
6049 void hif_wlan_disable(struct hif_softc *scn) in hif_wlan_disable()
6067 int hif_get_wake_ce_id(struct hif_softc *scn, uint8_t *ce_id) in hif_get_wake_ce_id()
6088 int hif_get_fw_diag_ce_id(struct hif_softc *scn, uint8_t *ce_id) in hif_get_fw_diag_ce_id()
6119 int ce_get_index_info(struct hif_softc *scn, void *ce_state, in ce_get_index_info()
6127 void hif_log_ce_info(struct hif_softc *scn, uint8_t *data, in hif_log_ce_info()
6172 struct hif_softc *hif_ctx = HIF_GET_SOFTC(scn); in hif_set_irq_config_by_ceid()
6189 struct hif_softc *hif_ctx = HIF_GET_SOFTC(scn); in hif_get_direct_link_ce_dest_srng_buffers()
6206 struct hif_softc *hif_ctx = HIF_GET_SOFTC(scn); in hif_get_direct_link_ce_srng_info()