| /linux/drivers/net/wireless/ath/ath12k/ |
| H A D | core.c | 75 static int ath12k_core_rfkill_config(struct ath12k_base *ab) in ath12k_core_rfkill_config() argument 80 if (!(ab->target_caps.sys_cap_info & WMI_SYS_CAP_INFO_RFKILL)) in ath12k_core_rfkill_config() 83 if (ath12k_acpi_get_disable_rfkill(ab)) in ath12k_core_rfkill_config() 86 for (i = 0; i < ab->num_radios; i++) { in ath12k_core_rfkill_config() 87 ar = ab->pdevs[i].ar; in ath12k_core_rfkill_config() 91 ath12k_warn(ab, "failed to configure rfkill: %d", ret); in ath12k_core_rfkill_config() 105 static int ath12k_core_continue_suspend_resume(struct ath12k_base *ab) in ath12k_core_continue_suspend_resume() argument 109 if (!ab->hw_params->supports_suspend) in ath12k_core_continue_suspend_resume() 115 ar = ab->pdevs[0].ar; in ath12k_core_continue_suspend_resume() 122 int ath12k_core_suspend(struct ath12k_base *ab) in ath12k_core_suspend() argument 165 ath12k_core_suspend_late(struct ath12k_base * ab) ath12k_core_suspend_late() argument 184 ath12k_core_resume_early(struct ath12k_base * ab) ath12k_core_resume_early() argument 201 ath12k_core_resume(struct ath12k_base * ab) ath12k_core_resume() argument 221 __ath12k_core_create_board_name(struct ath12k_base * ab,char * name,size_t name_len,bool with_variant,bool bus_type_mode,bool with_default) __ath12k_core_create_board_name() argument 265 ath12k_core_create_board_name(struct ath12k_base * ab,char * name,size_t name_len) ath12k_core_create_board_name() argument 271 ath12k_core_create_fallback_board_name(struct ath12k_base * ab,char * name,size_t name_len) ath12k_core_create_fallback_board_name() argument 277 ath12k_core_create_bus_type_board_name(struct ath12k_base * ab,char * name,size_t name_len) ath12k_core_create_bus_type_board_name() argument 283 ath12k_core_firmware_request(struct ath12k_base * ab,const char * file) ath12k_core_firmware_request() argument 305 ath12k_core_free_bdf(struct ath12k_base * ab,struct ath12k_board_data * bd) ath12k_core_free_bdf() argument 313 ath12k_core_parse_bd_ie_board(struct ath12k_base * ab,struct ath12k_board_data * bd,const void * buf,size_t buf_len,const char * boardname,int ie_id,int name_id,int data_id) ath12k_core_parse_bd_ie_board() argument 398 ath12k_core_fetch_board_data_api_n(struct ath12k_base * ab,struct ath12k_board_data * bd,const char * boardname,int ie_id_match,int name_id,int data_id) ath12k_core_fetch_board_data_api_n() argument 509 ath12k_core_fetch_board_data_api_1(struct ath12k_base * ab,struct ath12k_board_data * bd,char * filename) ath12k_core_fetch_board_data_api_1() argument 524 ath12k_core_fetch_bdf(struct ath12k_base * ab,struct ath12k_board_data * bd) ath12k_core_fetch_bdf() argument 582 ath12k_core_fetch_regdb(struct ath12k_base * ab,struct ath12k_board_data * bd) ath12k_core_fetch_regdb() argument 628 ath12k_core_get_max_station_per_radio(struct ath12k_base * ab) ath12k_core_get_max_station_per_radio() argument 637 ath12k_core_get_max_peers_per_radio(struct ath12k_base * ab) ath12k_core_get_max_peers_per_radio() argument 644 ath12k_core_to_group_ref_get(struct ath12k_base * ab) ath12k_core_to_group_ref_get() argument 664 ath12k_core_to_group_ref_put(struct ath12k_base * ab) ath12k_core_to_group_ref_put() argument 683 ath12k_core_stop(struct ath12k_base * ab) ath12k_core_stop() argument 706 struct ath12k_base *ab = data; ath12k_core_check_cc_code_bdfext() local 784 ath12k_core_check_smbios(struct ath12k_base * ab) ath12k_core_check_smbios() argument 795 ath12k_core_soc_create(struct ath12k_base * ab) ath12k_core_soc_create() argument 826 ath12k_core_soc_destroy(struct ath12k_base * ab) ath12k_core_soc_destroy() argument 834 ath12k_core_pdev_create(struct ath12k_base * ab) ath12k_core_pdev_create() argument 859 ath12k_core_pdev_destroy(struct ath12k_base * ab) ath12k_core_pdev_destroy() argument 865 ath12k_core_start(struct ath12k_base * ab) ath12k_core_start() argument 979 ath12k_core_device_cleanup(struct ath12k_base * ab) ath12k_core_device_cleanup() argument 989 ath12k_core_device_setup(struct ath12k_base * ab) ath12k_core_device_setup() argument 1012 struct ath12k_base *ab; ath12k_core_hw_group_stop() local 1040 struct ath12k_base *partner_ab, *ab = ar->ab; ath12k_get_num_partner_link() local 1137 struct ath12k_base *ab; ath12k_core_hw_group_start() local 1193 ath12k_core_start_firmware(struct ath12k_base * ab,enum ath12k_qmi_firmware_mode mode) ath12k_core_start_firmware() argument 1272 ath12k_core_trigger_partner(struct ath12k_base * ab) ath12k_core_trigger_partner() argument 1291 ath12k_core_qmi_firmware_ready(struct ath12k_base * ab) ath12k_core_qmi_firmware_ready() argument 1366 ath12k_core_reconfigure_on_crash(struct ath12k_base * ab) ath12k_core_reconfigure_on_crash() argument 1405 struct ath12k_base *ab = container_of(work, struct ath12k_base, rfkill_work); ath12k_rfkill_work() local 1438 struct ath12k_base *ab = ar->ab; ath12k_core_halt() local 1464 ath12k_core_pre_reconfigure_recovery(struct ath12k_base * ab) ath12k_core_pre_reconfigure_recovery() argument 1538 struct ath12k_base *ab = container_of(work, struct ath12k_base, update_11d_work); ath12k_update_11d() local 1567 ath12k_core_post_reconfigure_recovery(struct ath12k_base * ab) ath12k_core_post_reconfigure_recovery() argument 1621 struct ath12k_base *ab = container_of(work, struct ath12k_base, restart_work); ath12k_core_restart() local 1662 struct ath12k_base *ab = container_of(work, struct ath12k_base, reset_work); ath12k_core_reset() local 1753 ath12k_core_get_memory_mode(struct ath12k_base * ab) ath12k_core_get_memory_mode() argument 1768 ath12k_core_pre_init(struct ath12k_base * ab) ath12k_core_pre_init() argument 1782 struct ath12k_base *ab = container_of(nb, struct ath12k_base, ath12k_core_panic_handler() local 1788 ath12k_core_panic_notifier_register(struct ath12k_base * ab) ath12k_core_panic_notifier_register() argument 1796 ath12k_core_panic_notifier_unregister(struct ath12k_base * ab) ath12k_core_panic_notifier_unregister() argument 1810 ath12k_core_hw_group_alloc(struct ath12k_base * ab) ath12k_core_hw_group_alloc() argument 1854 ath12k_core_hw_group_find_by_dt(struct ath12k_base * ab) ath12k_core_hw_group_find_by_dt() argument 1871 ath12k_core_get_wsi_info(struct ath12k_hw_group * ag,struct ath12k_base * ab) ath12k_core_get_wsi_info() argument 1932 ath12k_core_get_wsi_index(struct ath12k_hw_group * ag,struct ath12k_base * ab) ath12k_core_get_wsi_index() argument 1962 ath12k_core_hw_group_assign(struct ath12k_base * ab) ath12k_core_hw_group_assign() argument 2044 ath12k_core_hw_group_unassign(struct ath12k_base * ab) ath12k_core_hw_group_unassign() argument 2084 struct ath12k_base *ab; ath12k_core_hw_group_destroy() local 2101 struct ath12k_base *ab; ath12k_core_hw_group_cleanup() local 2133 struct ath12k_base *ab; ath12k_core_hw_group_create() local 2173 struct ath12k_base *ab; ath12k_core_hw_group_set_mlo_capable() local 2212 ath12k_core_init(struct ath12k_base * ab) ath12k_core_init() argument 2259 ath12k_core_deinit(struct ath12k_base * ab) ath12k_core_deinit() argument 2266 ath12k_core_free(struct ath12k_base * ab) ath12k_core_free() argument 2278 struct ath12k_base *ab; ath12k_core_alloc() local [all...] |
| H A D | pci.c | 112 struct ath12k_base *ab = ab_pci->ab; in ath12k_pci_select_window() local 125 ab->mem + ab_pci->window_reg_addr); in ath12k_pci_select_window() 126 ioread32(ab->mem + ab_pci->window_reg_addr); in ath12k_pci_select_window() 145 iowrite32(WINDOW_ENABLE_BIT | window, ab_pci->ab->mem + ab_pci->window_reg_addr); in ath12k_pci_select_static_window() 148 static u32 ath12k_pci_get_window_start(struct ath12k_base *ab, in ath12k_pci_get_window_start() argument 151 struct ath12k_pci *ab_pci = ath12k_pci_priv(ab); in ath12k_pci_get_window_start() 171 static void ath12k_pci_restore_window(struct ath12k_base *ab) in ath12k_pci_restore_window() argument 173 struct ath12k_pci *ab_pci = ath12k_pci_priv(ab); in ath12k_pci_restore_window() 178 ab in ath12k_pci_restore_window() 184 ath12k_pci_soc_global_reset(struct ath12k_base * ab) ath12k_pci_soc_global_reset() argument 219 ath12k_pci_clear_dbg_registers(struct ath12k_base * ab) ath12k_pci_clear_dbg_registers() argument 249 ath12k_pci_enable_ltssm(struct ath12k_base * ab) ath12k_pci_enable_ltssm() argument 277 ath12k_pci_clear_all_intrs(struct ath12k_base * ab) ath12k_pci_clear_all_intrs() argument 287 ath12k_pci_set_wlaon_pwr_ctrl(struct ath12k_base * ab) ath12k_pci_set_wlaon_pwr_ctrl() argument 296 ath12k_pci_force_wake(struct ath12k_base * ab) ath12k_pci_force_wake() argument 302 ath12k_pci_sw_reset(struct ath12k_base * ab,bool power_on) ath12k_pci_sw_reset() argument 316 ath12k_pci_free_ext_irq(struct ath12k_base * ab) ath12k_pci_free_ext_irq() argument 331 ath12k_pci_free_irq(struct ath12k_base * ab) ath12k_pci_free_irq() argument 345 ath12k_pci_ce_irq_enable(struct ath12k_base * ab,u16 ce_id) ath12k_pci_ce_irq_enable() argument 360 ath12k_pci_ce_irq_disable(struct ath12k_base * ab,u16 ce_id) ath12k_pci_ce_irq_disable() argument 375 ath12k_pci_ce_irqs_disable(struct ath12k_base * ab) ath12k_pci_ce_irqs_disable() argument 388 ath12k_pci_sync_ce_irqs(struct ath12k_base * ab) ath12k_pci_sync_ce_irqs() argument 415 struct ath12k_base *ab = ce_pipe->ab; ath12k_pci_ce_interrupt_handler() local 446 __ath12k_pci_ext_irq_disable(struct ath12k_base * ab) __ath12k_pci_ext_irq_disable() argument 481 ath12k_pci_sync_ext_irqs(struct ath12k_base * ab) ath12k_pci_sync_ext_irqs() argument 500 struct ath12k_base *ab = irq_grp->ab; ath12k_pci_ext_grp_napi_poll() local 521 struct ath12k_base *ab = irq_grp->ab; ath12k_pci_ext_interrupt_handler() local 540 ath12k_pci_ext_irq_config(struct ath12k_base * ab) ath12k_pci_ext_irq_config() argument 638 ath12k_pci_config_irq(struct ath12k_base * ab) ath12k_pci_config_irq() argument 690 ath12k_pci_init_qmi_ce_config(struct ath12k_base * ab) ath12k_pci_init_qmi_ce_config() argument 712 ath12k_pci_ce_irqs_enable(struct ath12k_base * ab) ath12k_pci_ce_irqs_enable() argument 752 struct ath12k_base *ab = ab_pci->ab; ath12k_pci_msi_alloc() local 833 struct ath12k_base *ab = ab_pci->ab; ath12k_pci_claim() local 890 struct ath12k_base *ab = ab_pci->ab; ath12k_pci_free_region() local 902 struct ath12k_base *ab = ab_pci->ab; ath12k_pci_aspm_disable() local 919 ath12k_pci_update_qrtr_node_id(struct ath12k_base * ab) ath12k_pci_update_qrtr_node_id() argument 949 ath12k_pci_cancel_workqueue(struct ath12k_base * ab) ath12k_pci_cancel_workqueue() argument 963 ath12k_pci_ce_irq_disable_sync(struct ath12k_base * ab) ath12k_pci_ce_irq_disable_sync() argument 970 ath12k_pci_map_service_to_pipe(struct ath12k_base * ab,u16 service_id,u8 * ul_pipe,u8 * dl_pipe) ath12k_pci_map_service_to_pipe() argument 1020 ath12k_pci_get_user_msi_assignment(struct ath12k_base * ab,char * user_name,int * num_vectors,u32 * user_base_data,u32 * base_vector) ath12k_pci_get_user_msi_assignment() argument 1048 ath12k_pci_get_msi_address(struct ath12k_base * ab,u32 * msi_addr_lo,u32 * msi_addr_hi) ath12k_pci_get_msi_address() argument 1065 ath12k_pci_get_ce_msi_idx(struct ath12k_base * ab,u32 ce_id,u32 * msi_idx) ath12k_pci_get_ce_msi_idx() argument 1082 ath12k_pci_hif_ce_irq_enable(struct ath12k_base * ab) ath12k_pci_hif_ce_irq_enable() argument 1087 ath12k_pci_hif_ce_irq_disable(struct ath12k_base * ab) ath12k_pci_hif_ce_irq_disable() argument 1092 ath12k_pci_ext_irq_enable(struct ath12k_base * ab) ath12k_pci_ext_irq_enable() argument 1110 ath12k_pci_ext_irq_disable(struct ath12k_base * ab) ath12k_pci_ext_irq_disable() argument 1119 ath12k_pci_hif_suspend(struct ath12k_base * ab) ath12k_pci_hif_suspend() argument 1128 ath12k_pci_hif_resume(struct ath12k_base * ab) ath12k_pci_hif_resume() argument 1137 ath12k_pci_stop(struct ath12k_base * ab) ath12k_pci_stop() argument 1148 ath12k_pci_start(struct ath12k_base * ab) ath12k_pci_start() argument 1165 ath12k_pci_read32(struct ath12k_base * ab,u32 offset) ath12k_pci_read32() argument 1213 ath12k_pci_write32(struct ath12k_base * ab,u32 offset,u32 value) ath12k_pci_write32() argument 1260 ath12k_pci_coredump_calculate_size(struct ath12k_base * ab,u32 * dump_seg_sz) ath12k_pci_coredump_calculate_size() argument 1327 ath12k_pci_coredump_download(struct ath12k_base * ab) ath12k_pci_coredump_download() argument 1439 ath12k_pci_power_up(struct ath12k_base * ab) ath12k_pci_power_up() argument 1470 ath12k_pci_power_down(struct ath12k_base * ab,bool is_suspend) ath12k_pci_power_down() argument 1487 ath12k_pci_panic_handler(struct ath12k_base * ab) ath12k_pci_panic_handler() argument 1544 struct ath12k_base *ab; ath12k_pci_probe() local 1701 struct ath12k_base *ab = pci_get_drvdata(pdev); ath12k_pci_remove() local 1736 struct ath12k_base *ab; ath12k_pci_hw_group_power_down() local 1757 struct ath12k_base *ab = pci_get_drvdata(pdev); ath12k_pci_shutdown() local 1766 struct ath12k_base *ab = dev_get_drvdata(dev); ath12k_pci_pm_suspend() local 1778 struct ath12k_base *ab = dev_get_drvdata(dev); ath12k_pci_pm_resume() local 1790 struct ath12k_base *ab = dev_get_drvdata(dev); ath12k_pci_pm_suspend_late() local 1802 struct ath12k_base *ab = dev_get_drvdata(dev); ath12k_pci_pm_resume_early() local [all...] |
| H A D | ahb.c | 140 static u32 ath12k_ahb_read32(struct ath12k_base *ab, u32 offset) in ath12k_ahb_read32() argument 142 if (ab->ce_remap && offset < ab->cmem_offset) in ath12k_ahb_read32() 143 return ioread32(ab->mem_ce + offset); in ath12k_ahb_read32() 144 return ioread32(ab->mem + offset); in ath12k_ahb_read32() 147 static void ath12k_ahb_write32(struct ath12k_base *ab, u32 offset, in ath12k_ahb_write32() argument 150 if (ab->ce_remap && offset < ab->cmem_offset) in ath12k_ahb_write32() 151 iowrite32(value, ab->mem_ce + offset); in ath12k_ahb_write32() 153 iowrite32(value, ab->mem + offset); in ath12k_ahb_write32() 156 static void ath12k_ahb_cancel_workqueue(struct ath12k_base *ab) in ath12k_ahb_cancel_workqueue() argument 160 for (i = 0; i < ab->hw_params->ce_count; i++) { in ath12k_ahb_cancel_workqueue() [all …]
|
| H A D | ce.c | 14 struct ath12k_base *ab = pipe->ab; in ath12k_ce_rx_buf_enqueue_pipe() local 22 lockdep_assert_held(&ab->ce.ce_lock); in ath12k_ce_rx_buf_enqueue_pipe() 26 srng = &ab->hal.srng_list[ring->hal_ring_id]; in ath12k_ce_rx_buf_enqueue_pipe() 30 ath12k_hal_srng_access_begin(ab, srng); in ath12k_ce_rx_buf_enqueue_pipe() 32 if (unlikely(ath12k_hal_srng_src_num_free(ab, srng, false) < 1)) { in ath12k_ce_rx_buf_enqueue_pipe() 37 desc = ath12k_hal_srng_src_get_next_entry(ab, srng); in ath12k_ce_rx_buf_enqueue_pipe() 43 ath12k_hal_ce_dst_set_desc(&ab->hal, desc, paddr); in ath12k_ce_rx_buf_enqueue_pipe() 53 ath12k_hal_srng_access_end(ab, srng); in ath12k_ce_rx_buf_enqueue_pipe() 62 struct ath12k_base *ab = pipe->ab; in ath12k_ce_rx_post_pipe() local 70 spin_lock_bh(&ab->ce.ce_lock); in ath12k_ce_rx_post_pipe() [all …]
|
| H A D | dp.c | 22 struct ath12k_base *ab = ar->ab; in ath12k_dp_peer_cleanup() local 24 struct ath12k_dp *dp = ath12k_ab_to_dp(ab); in ath12k_dp_peer_cleanup() 31 ath12k_warn(ab, "failed to lookup peer %pM on vdev %d\n", in ath12k_dp_peer_cleanup() 49 struct ath12k_base *ab = ar->ab; in ath12k_dp_peer_setup() local 53 struct ath12k_dp *dp = ath12k_ab_to_dp(ab); in ath12k_dp_peer_setup() 62 ath12k_warn(ab, "failed to set default routing %d peer :%pM vdev_id :%d\n", in ath12k_dp_peer_setup() 71 ath12k_warn(ab, "failed to setup rxd tid queue for tid %d: %d\n", in ath12k_dp_peer_setup() 79 ath12k_warn(ab, "failed to setup rx defrag context\n"); in ath12k_dp_peer_setup() 92 ath12k_warn(ab, "failed to find the peer to del rx tid\n"); in ath12k_dp_peer_setup() 105 void ath12k_dp_srng_cleanup(struct ath12k_base *ab, struct dp_srng *ring) in ath12k_dp_srng_cleanup() argument [all …]
|
| H A D | mhi.c | 21 void ath12k_mhi_set_mhictrl_reset(struct ath12k_base *ab) in ath12k_mhi_set_mhictrl_reset() argument 25 val = ath12k_pci_read32(ab, MHISTATUS); in ath12k_mhi_set_mhictrl_reset() 27 ath12k_dbg(ab, ATH12K_DBG_PCI, "MHISTATUS 0x%x\n", val); in ath12k_mhi_set_mhictrl_reset() 33 ath12k_pci_write32(ab, MHICTRL, MHICTRL_RESET_MASK); in ath12k_mhi_set_mhictrl_reset() 38 static void ath12k_mhi_reset_txvecdb(struct ath12k_base *ab) in ath12k_mhi_reset_txvecdb() argument 40 ath12k_pci_write32(ab, PCIE_TXVECDB, 0); in ath12k_mhi_reset_txvecdb() 43 static void ath12k_mhi_reset_txvecstatus(struct ath12k_base *ab) in ath12k_mhi_reset_txvecstatus() argument 45 ath12k_pci_write32(ab, PCIE_TXVECSTATUS, 0); in ath12k_mhi_reset_txvecstatus() 48 static void ath12k_mhi_reset_rxvecdb(struct ath12k_base *ab) in ath12k_mhi_reset_rxvecdb() argument 50 ath12k_pci_write32(ab, PCIE_RXVECDB, 0); in ath12k_mhi_reset_rxvecdb() [all …]
|
| H A D | qmi.c | 2107 struct ath12k_base *ab, *partner_ab; in ath12k_host_cap_hw_link_id_init() local 2112 ab = ag->ab[i]; in ath12k_host_cap_hw_link_id_init() 2115 partner_ab = ag->ab[j]; in ath12k_host_cap_hw_link_id_init() 2117 if (partner_ab->wsi_info.index >= ab->wsi_info.index) in ath12k_host_cap_hw_link_id_init() 2123 ab->wsi_info.hw_link_id_base = hw_id_base; in ath12k_host_cap_hw_link_id_init() 2129 static int ath12k_host_cap_parse_mlo(struct ath12k_base *ab, in ath12k_host_cap_parse_mlo() argument 2133 struct ath12k_hw_group *ag = ab->ag; in ath12k_host_cap_parse_mlo() 2139 ath12k_dbg(ab, ATH12K_DBG_QMI, in ath12k_host_cap_parse_mlo() 2144 if (!ab->qmi.num_radios || ab->qmi.num_radios == U8_MAX) { in ath12k_host_cap_parse_mlo() 2146 ath12k_dbg(ab, ATH12K_DBG_QMI, in ath12k_host_cap_parse_mlo() [all …]
|
| H A D | hal.c | 10 static void ath12k_hal_ce_dst_setup(struct ath12k_base *ab, in ath12k_hal_ce_dst_setup() argument 13 ab->hal.ops->ce_dst_setup(ab, srng, ring_num); in ath12k_hal_ce_dst_setup() 16 static void ath12k_hal_srng_src_hw_init(struct ath12k_base *ab, in ath12k_hal_srng_src_hw_init() argument 19 ab->hal.ops->srng_src_hw_init(ab, srng); in ath12k_hal_srng_src_hw_init() 22 static void ath12k_hal_srng_dst_hw_init(struct ath12k_base *ab, in ath12k_hal_srng_dst_hw_init() argument 25 ab->hal.ops->srng_dst_hw_init(ab, srng); in ath12k_hal_srng_dst_hw_init() 28 static void ath12k_hal_set_umac_srng_ptr_addr(struct ath12k_base *ab, in ath12k_hal_set_umac_srng_ptr_addr() argument 31 ab->hal.ops->set_umac_srng_ptr_addr(ab, srng); in ath12k_hal_set_umac_srng_ptr_addr() 41 int ath12k_hal_srng_update_shadow_config(struct ath12k_base *ab, in ath12k_hal_srng_update_shadow_config() argument 45 return ab->hal.ops->srng_update_shadow_config(ab, ring_type, in ath12k_hal_srng_update_shadow_config() [all …]
|
| H A D | dp_rx.c | 25 static int ath12k_dp_rx_tid_delete_handler(struct ath12k_base *ab, 77 struct ath12k_base *ab = dp->ab; in ath12k_dp_rx_bufs_replenish() local 94 ath12k_hal_srng_access_begin(ab, srng); in ath12k_dp_rx_bufs_replenish() 96 num_free = ath12k_hal_srng_src_num_free(ab, srng, true); in ath12k_dp_rx_bufs_replenish() 144 desc = ath12k_hal_srng_src_get_next_entry(ab, srng); in ath12k_dp_rx_bufs_replenish() 165 ath12k_hal_srng_access_end(ab, srng); in ath12k_dp_rx_bufs_replenish() 176 static int ath12k_dp_rxdma_mon_buf_ring_free(struct ath12k_base *ab, in ath12k_dp_rxdma_mon_buf_ring_free() argument 188 dma_unmap_single(ab->dev, ATH12K_SKB_RXCB(skb)->paddr, in ath12k_dp_rxdma_mon_buf_ring_free() 199 static int ath12k_dp_rxdma_buf_free(struct ath12k_base *ab) in ath12k_dp_rxdma_buf_free() argument 201 struct ath12k_dp *dp = ath12k_ab_to_dp(ab); in ath12k_dp_rxdma_buf_free() [all …]
|
| H A D | peer.c | 47 ath12k_warn(ar->ab, "failed to find link peer with vdev id %u addr %pM\n", in ath12k_peer_delete_resp_signal() 61 static int ath12k_wait_for_dp_link_peer_common(struct ath12k_base *ab, int vdev_id, in ath12k_wait_for_dp_link_peer_common() argument 65 struct ath12k_dp *dp = ath12k_ab_to_dp(ab); in ath12k_wait_for_dp_link_peer_common() 67 ret = wait_event_timeout(ab->peer_mapping_wq, ({ in ath12k_wait_for_dp_link_peer_common() 77 test_bit(ATH12K_FLAG_CRASH_FLUSH, &ab->dev_flags)); in ath12k_wait_for_dp_link_peer_common() 89 struct ath12k_base *ab = ar->ab; in ath12k_peer_cleanup() local 90 struct ath12k_dp *dp = ath12k_ab_to_dp(ab); in ath12k_peer_cleanup() 99 ath12k_warn(ab, "removing stale peer %pM from vdev_id %d\n", in ath12k_peer_cleanup() 111 return ath12k_wait_for_dp_link_peer_common(ar->ab, vdev_id, addr, false); in ath12k_wait_for_peer_deleted() 122 ath12k_warn(ar->ab, "failed wait for peer deleted\n"); in ath12k_wait_for_peer_delete_done() [all …]
|
| H A D | wmi.c | 302 ath12k_wmi_tlv_iter(struct ath12k_base *ab, const void *ptr, size_t len, in ath12k_wmi_tlv_iter() argument 303 int (*iter)(struct ath12k_base *ab, u16 tag, u16 len, in ath12k_wmi_tlv_iter() argument 314 ath12k_err(ab, "wmi tlv parse failure at byte %zd (%zu bytes left, %zu expected)\n", in ath12k_wmi_tlv_iter() 326 ath12k_err(ab, "wmi tlv parse failure of tag %u at byte %zd (%zu bytes left, %u expected)\n", in ath12k_wmi_tlv_iter() 334 …ath12k_err(ab, "wmi tlv parse failure of tag %u at byte %zd (%u bytes is less than min length %zu)… in ath12k_wmi_tlv_iter() 340 ret = iter(ab, tlv_tag, tlv_len, ptr, data); in ath12k_wmi_tlv_iter() 351 static int ath12k_wmi_tlv_iter_parse(struct ath12k_base *ab, u16 tag, u16 len, in ath12k_wmi_tlv_iter_parse() argument 363 ath12k_wmi_tlv_parse(struct ath12k_base *ab, struct sk_buff *skb) in ath12k_wmi_tlv_parse() argument 371 ret = ath12k_wmi_tlv_iter(ab, skb->data, skb->len, in ath12k_wmi_tlv_parse() 390 struct ath12k_base *ab = wmi->wmi_ab->ab; in ath12k_wmi_cmd_send_nowait() local [all …]
|
| /linux/drivers/net/wireless/ath/ath11k/ |
| H A D | pci.c | 45 static int ath11k_pci_bus_wake_up(struct ath11k_base *ab) in ath11k_pci_bus_wake_up() argument 47 struct ath11k_pci *ab_pci = ath11k_pci_priv(ab); in ath11k_pci_bus_wake_up() 52 static void ath11k_pci_bus_release(struct ath11k_base *ab) in ath11k_pci_bus_release() argument 54 struct ath11k_pci *ab_pci = ath11k_pci_priv(ab); in ath11k_pci_bus_release() 59 static u32 ath11k_pci_get_window_start(struct ath11k_base *ab, u32 offset) in ath11k_pci_get_window_start() argument 61 if (!ab->hw_params.static_window_map) in ath11k_pci_get_window_start() 67 else if ((offset ^ HAL_SEQ_WCSS_UMAC_CE0_SRC_REG(ab)) < in ath11k_pci_get_window_start() 77 struct ath11k_base *ab = ab_pci->ab; in ath11k_pci_select_window() local 85 ab->mem + ATH11K_PCI_WINDOW_REG_ADDRESS); in ath11k_pci_select_window() 86 ioread32(ab->mem + ATH11K_PCI_WINDOW_REG_ADDRESS); in ath11k_pci_select_window() [all …]
|
| H A D | ahb.c | 145 ath11k_ahb_get_msi_irq_wcn6750(struct ath11k_base *ab, unsigned int vector) in ath11k_ahb_get_msi_irq_wcn6750() argument 147 return ab->pci.msi.irqs[vector]; in ath11k_ahb_get_msi_irq_wcn6750() 151 ath11k_ahb_get_window_start_wcn6750(struct ath11k_base *ab, u32 offset) in ath11k_ahb_get_window_start_wcn6750() argument 159 else if ((offset ^ HAL_SEQ_WCSS_UMAC_CE0_SRC_REG(ab)) < in ath11k_ahb_get_window_start_wcn6750() 167 ath11k_ahb_window_write32_wcn6750(struct ath11k_base *ab, u32 offset, u32 value) in ath11k_ahb_window_write32_wcn6750() argument 172 window_start = ath11k_ahb_get_window_start_wcn6750(ab, offset); in ath11k_ahb_window_write32_wcn6750() 174 iowrite32(value, ab->mem + window_start + in ath11k_ahb_window_write32_wcn6750() 178 static u32 ath11k_ahb_window_read32_wcn6750(struct ath11k_base *ab, u32 offset) in ath11k_ahb_window_read32_wcn6750() argument 184 window_start = ath11k_ahb_get_window_start_wcn6750(ab, offset); in ath11k_ahb_window_read32_wcn6750() 186 val = ioread32(ab->mem + window_start + in ath11k_ahb_window_read32_wcn6750() [all …]
|
| H A D | core.c | 1060 const char *ath11k_core_get_usecase_firmware(struct ath11k_base *ab) in ath11k_core_get_usecase_firmware() argument 1066 if (ab->hw_rev == entry->hw_rev && in ath11k_core_get_usecase_firmware() 1123 bool ath11k_core_coldboot_cal_support(struct ath11k_base *ab) in ath11k_core_coldboot_cal_support() argument 1129 return ab->hw_params.coldboot_cal_ftm; in ath11k_core_coldboot_cal_support() 1132 return ab->hw_params.coldboot_cal_mm; in ath11k_core_coldboot_cal_support() 1141 static int ath11k_core_continue_suspend_resume(struct ath11k_base *ab) in ath11k_core_continue_suspend_resume() argument 1145 if (!ab->hw_params.supports_suspend) in ath11k_core_continue_suspend_resume() 1151 ar = ab->pdevs[0].ar; in ath11k_core_continue_suspend_resume() 1158 static int ath11k_core_suspend_wow(struct ath11k_base *ab) in ath11k_core_suspend_wow() argument 1162 ret = ath11k_dp_rx_pktlog_stop(ab, true); in ath11k_core_suspend_wow() [all …]
|
| H A D | hal.c | 194 static int ath11k_hal_alloc_cont_rdp(struct ath11k_base *ab) in ath11k_hal_alloc_cont_rdp() argument 196 struct ath11k_hal *hal = &ab->hal; in ath11k_hal_alloc_cont_rdp() 200 hal->rdp.vaddr = dma_alloc_coherent(ab->dev, size, &hal->rdp.paddr, in ath11k_hal_alloc_cont_rdp() 208 static void ath11k_hal_free_cont_rdp(struct ath11k_base *ab) in ath11k_hal_free_cont_rdp() argument 210 struct ath11k_hal *hal = &ab->hal; in ath11k_hal_free_cont_rdp() 217 dma_free_coherent(ab->dev, size, in ath11k_hal_free_cont_rdp() 222 static int ath11k_hal_alloc_cont_wrp(struct ath11k_base *ab) in ath11k_hal_alloc_cont_wrp() argument 224 struct ath11k_hal *hal = &ab->hal; in ath11k_hal_alloc_cont_wrp() 228 hal->wrp.vaddr = dma_alloc_coherent(ab->dev, size, &hal->wrp.paddr, in ath11k_hal_alloc_cont_wrp() 236 static void ath11k_hal_free_cont_wrp(struct ath11k_base *ab) in ath11k_hal_free_cont_wrp() argument [all …]
|
| H A D | qmi.c | 1710 int ath11k_qmi_host_cap_send(struct ath11k_base *ab) in ath11k_qmi_host_cap_send() argument 1722 req.mem_cfg_mode = ab->qmi.target_mem_mode; in ath11k_qmi_host_cap_send() 1727 if (ab->hw_params.m3_fw_support) { in ath11k_qmi_host_cap_send() 1740 req.cal_done = ab->qmi.cal_done; in ath11k_qmi_host_cap_send() 1742 if (ab->hw_params.internal_sleep_clock) { in ath11k_qmi_host_cap_send() 1756 if (ab->hw_params.global_reset) in ath11k_qmi_host_cap_send() 1761 ath11k_dbg(ab, ATH11K_DBG_QMI, "host cap request\n"); in ath11k_qmi_host_cap_send() 1763 ret = qmi_txn_init(&ab->qmi.handle, &txn, in ath11k_qmi_host_cap_send() 1768 ret = qmi_send_request(&ab->qmi.handle, NULL, &txn, in ath11k_qmi_host_cap_send() 1774 ath11k_warn(ab, "failed to send host capability request: %d\n", ret); in ath11k_qmi_host_cap_send() [all …]
|
| H A D | dp_rx.c | 25 u8 *ath11k_dp_rx_h_80211_hdr(struct ath11k_base *ab, struct hal_rx_desc *desc) in ath11k_dp_rx_h_80211_hdr() argument 27 return ab->hw_params.hw_ops->rx_desc_get_hdr_status(desc); in ath11k_dp_rx_h_80211_hdr() 31 enum hal_encrypt_type ath11k_dp_rx_h_mpdu_start_enctype(struct ath11k_base *ab, in ath11k_dp_rx_h_mpdu_start_enctype() argument 34 if (!ab->hw_params.hw_ops->rx_desc_encrypt_valid(desc)) in ath11k_dp_rx_h_mpdu_start_enctype() 37 return ab->hw_params.hw_ops->rx_desc_get_encrypt_type(desc); in ath11k_dp_rx_h_mpdu_start_enctype() 40 static inline u8 ath11k_dp_rx_h_msdu_start_decap_type(struct ath11k_base *ab, in ath11k_dp_rx_h_msdu_start_decap_type() argument 43 return ab->hw_params.hw_ops->rx_desc_get_decap_type(desc); in ath11k_dp_rx_h_msdu_start_decap_type() 47 bool ath11k_dp_rx_h_msdu_start_ldpc_support(struct ath11k_base *ab, in ath11k_dp_rx_h_msdu_start_ldpc_support() argument 50 return ab->hw_params.hw_ops->rx_desc_get_ldpc_support(desc); in ath11k_dp_rx_h_msdu_start_ldpc_support() 54 u8 ath11k_dp_rx_h_msdu_start_mesh_ctl_present(struct ath11k_base *ab, in ath11k_dp_rx_h_msdu_start_mesh_ctl_present() argument [all …]
|
| H A D | dbring.c | 44 struct ath11k_base *ab = ar->ab; in ath11k_dbring_bufs_replenish() local 52 srng = &ab->hal.srng_list[ring->refill_srng.ring_id]; in ath11k_dbring_bufs_replenish() 56 ath11k_hal_srng_access_begin(ab, srng); in ath11k_dbring_bufs_replenish() 61 paddr = dma_map_single(ab->dev, ptr_aligned, ring->buf_sz, in ath11k_dbring_bufs_replenish() 64 ret = dma_mapping_error(ab->dev, paddr); in ath11k_dbring_bufs_replenish() 76 desc = ath11k_hal_srng_src_get_next_entry(ab, srng); in ath11k_dbring_bufs_replenish() 93 ath11k_hal_srng_access_end(ab, srng); in ath11k_dbring_bufs_replenish() 102 dma_unmap_single(ab->dev, paddr, ring->buf_sz, in ath11k_dbring_bufs_replenish() 105 ath11k_hal_srng_access_end(ab, srng); in ath11k_dbring_bufs_replenish() 119 srng = &ar->ab->hal.srng_list[ring->refill_srng.ring_id]; in ath11k_dbring_fill_bufs() [all …]
|
| H A D | wmi.c | 181 ath11k_wmi_tlv_iter(struct ath11k_base *ab, const void *ptr, size_t len, in ath11k_wmi_tlv_iter() argument 182 int (*iter)(struct ath11k_base *ab, u16 tag, u16 len, in ath11k_wmi_tlv_iter() argument 193 ath11k_err(ab, "wmi tlv parse failure at byte %zd (%zu bytes left, %zu expected)\n", in ath11k_wmi_tlv_iter() 205 ath11k_err(ab, "wmi tlv parse failure of tag %u at byte %zd (%zu bytes left, %u expected)\n", in ath11k_wmi_tlv_iter() 213 …ath11k_err(ab, "wmi tlv parse failure of tag %u at byte %zd (%u bytes is less than min length %zu)… in ath11k_wmi_tlv_iter() 219 ret = iter(ab, tlv_tag, tlv_len, ptr, data); in ath11k_wmi_tlv_iter() 230 static int ath11k_wmi_tlv_iter_parse(struct ath11k_base *ab, u16 tag, u16 len, in ath11k_wmi_tlv_iter_parse() argument 248 const void **ath11k_wmi_tlv_parse_alloc(struct ath11k_base *ab, in ath11k_wmi_tlv_parse_alloc() argument 258 ret = ath11k_wmi_tlv_parse(ab, tb, skb->data, skb->len); in ath11k_wmi_tlv_parse_alloc() 278 struct ath11k_base *ab = wmi->wmi_ab->ab; in ath11k_wmi_cmd_send_nowait() local [all …]
|
| H A D | reg.c | 55 ath11k_dbg(ar->ab, ATH11K_DBG_REG, in ath11k_reg_notifier() 59 ath11k_dbg(ar->ab, ATH11K_DBG_REG, in ath11k_reg_notifier() 66 ath11k_warn(ar->ab, "failed to update channel list: %d\n", ret); in ath11k_reg_notifier() 78 ath11k_warn(ar->ab, "Unexpected Regulatory event for this wiphy\n"); in ath11k_reg_notifier() 83 ath11k_dbg(ar->ab, ATH11K_DBG_REG, in ath11k_reg_notifier() 89 ath11k_dbg(ar->ab, ATH11K_DBG_REG, "Country is already set\n"); in ath11k_reg_notifier() 97 if (ar->ab->hw_params.current_cc_support) { in ath11k_reg_notifier() 101 ath11k_warn(ar->ab, in ath11k_reg_notifier() 110 ath11k_warn(ar->ab, in ath11k_reg_notifier() 195 ath11k_dbg(ar->ab, ATH11K_DBG_WMI, in ath11k_reg_update_chan_list() [all …]
|
| /linux/security/ipe/ |
| H A D | audit.c | 69 * @ab: Supplies a pointer to the audit_buffer to append to. 72 static void audit_dmv_roothash(struct audit_buffer *ab, const void *rh) in audit_dmv_roothash() argument 74 audit_log_format(ab, "%s", audit_prop_names[IPE_PROP_DMV_ROOTHASH]); in audit_dmv_roothash() 75 ipe_digest_audit(ab, rh); in audit_dmv_roothash() 80 * @ab: Supplies a pointer to the audit_buffer to append to. 83 static void audit_fsv_digest(struct audit_buffer *ab, const void *d) in audit_fsv_digest() argument 85 audit_log_format(ab, "%s", audit_prop_names[IPE_PROP_FSV_DIGEST]); in audit_fsv_digest() 86 ipe_digest_audit(ab, d); in audit_fsv_digest() 91 * @ab: Supplies a pointer to the audit_buffer to append to. 94 static void audit_rule(struct audit_buffer *ab, cons argument 134 struct audit_buffer *ab; ipe_audit_match() local 182 audit_policy(struct audit_buffer * ab,const char * audit_format,const struct ipe_policy * const p) audit_policy() argument 204 struct audit_buffer *ab; ipe_audit_policy_activation() local 236 struct audit_buffer *ab; ipe_audit_policy_load() local 265 struct audit_buffer *ab; ipe_audit_enforce() local [all...] |
| /linux/include/linux/mfd/abx500/ |
| H A D | ab8500.h | 387 static inline int is_ab8500(struct ab8500 *ab) in is_ab8500() argument 389 return ab->version == AB8500_VERSION_AB8500; in is_ab8500() 392 static inline int is_ab8505(struct ab8500 *ab) in is_ab8505() argument 394 return ab->version == AB8500_VERSION_AB8505; in is_ab8505() 397 static inline int is_ab9540(struct ab8500 *ab) in is_ab9540() argument 399 return ab->version == AB8500_VERSION_AB9540; in is_ab9540() 402 static inline int is_ab8540(struct ab8500 *ab) in is_ab8540() argument 404 return ab->version == AB8500_VERSION_AB8540; in is_ab8540() 408 static inline int is_ab8500_1p0_or_earlier(struct ab8500 *ab) in is_ab8500_1p0_or_earlier() argument 410 return (is_ab8500(ab) && (ab->chip_id <= AB8500_CUT1P0)); in is_ab8500_1p0_or_earlier() [all …]
|
| /linux/kernel/ |
| H A D | audit.c | 428 struct audit_buffer *ab; in audit_log_config_change() local 431 ab = audit_log_start(audit_context(), GFP_KERNEL, AUDIT_CONFIG_CHANGE); in audit_log_config_change() 432 if (unlikely(!ab)) in audit_log_config_change() 434 audit_log_format(ab, "op=set %s=%u old=%u ", function_name, new, old); in audit_log_config_change() 435 audit_log_session_info(ab); in audit_log_config_change() 436 rc = audit_log_task_context(ab); in audit_log_config_change() 439 audit_log_format(ab, " res=%d", allow_changes); in audit_log_config_change() 440 audit_log_end(ab); in audit_log_config_change() 1129 struct audit_buffer **ab, u16 msg_type) in audit_log_common_recv_msg() argument 1135 *ab = NULL; in audit_log_common_recv_msg() [all …]
|
| /linux/drivers/md/ |
| H A D | dm-audit.c | 23 struct audit_buffer *ab; in dm_audit_log_start() local 28 ab = audit_log_start(audit_context(), GFP_KERNEL, audit_type); in dm_audit_log_start() 29 if (unlikely(!ab)) in dm_audit_log_start() 32 audit_log_format(ab, "module=%s op=%s", dm_msg_prefix, op); in dm_audit_log_start() 33 return ab; in dm_audit_log_start() 39 struct audit_buffer *ab = NULL; in dm_audit_log_ti() local 46 ab = dm_audit_log_start(audit_type, dm_msg_prefix, op); in dm_audit_log_ti() 47 if (unlikely(!ab)) in dm_audit_log_ti() 49 audit_log_task_info(ab); in dm_audit_log_ti() 50 audit_log_format(ab, " dev=%d:%d error_msg='%s'", dev_major, in dm_audit_log_ti() [all …]
|
| /linux/security/integrity/ |
| H A D | integrity_audit.c | 41 struct audit_buffer *ab; in integrity_audit_message() local 47 ab = audit_log_start(audit_context(), GFP_KERNEL, audit_msgno); in integrity_audit_message() 48 if (!ab) in integrity_audit_message() 50 audit_log_format(ab, "pid=%d uid=%u auid=%u ses=%u", in integrity_audit_message() 55 audit_log_task_context(ab); in integrity_audit_message() 56 audit_log_format(ab, " op=%s cause=%s comm=", op, cause); in integrity_audit_message() 57 audit_log_untrustedstring(ab, get_task_comm(name, current)); in integrity_audit_message() 59 audit_log_format(ab, " name="); in integrity_audit_message() 60 audit_log_untrustedstring(ab, fname); in integrity_audit_message() 63 audit_log_format(ab, " de in integrity_audit_message() [all...] |