/drivers/usb/phy/ |
D | phy-ab8500-usb.c | 150 static void ab8500_usb_wd_workaround(struct ab8500_usb *ab) in ab8500_usb_wd_workaround() argument 152 abx500_set_register_interruptible(ab->dev, in ab8500_usb_wd_workaround() 159 abx500_set_register_interruptible(ab->dev, in ab8500_usb_wd_workaround() 167 abx500_set_register_interruptible(ab->dev, in ab8500_usb_wd_workaround() 173 static void ab8500_usb_regulator_enable(struct ab8500_usb *ab) in ab8500_usb_regulator_enable() argument 177 ret = regulator_enable(ab->v_ape); in ab8500_usb_regulator_enable() 179 dev_err(ab->dev, "Failed to enable v-ape\n"); in ab8500_usb_regulator_enable() 181 if (ab->flags & AB8500_USB_FLAG_REGULATOR_SET_VOLTAGE) { in ab8500_usb_regulator_enable() 182 ab->saved_v_ulpi = regulator_get_voltage(ab->v_ulpi); in ab8500_usb_regulator_enable() 183 if (ab->saved_v_ulpi < 0) in ab8500_usb_regulator_enable() [all …]
|
/drivers/net/wireless/ath/ath11k/ |
D | core.c | 241 int ath11k_core_suspend(struct ath11k_base *ab) in ath11k_core_suspend() argument 245 if (!ab->hw_params.supports_suspend) in ath11k_core_suspend() 253 ret = ath11k_dp_rx_pktlog_stop(ab, true); in ath11k_core_suspend() 255 ath11k_warn(ab, "failed to stop dp rx (and timer) pktlog during suspend: %d\n", in ath11k_core_suspend() 260 ret = ath11k_wow_enable(ab); in ath11k_core_suspend() 262 ath11k_warn(ab, "failed to enable wow during suspend: %d\n", ret); in ath11k_core_suspend() 266 ret = ath11k_dp_rx_pktlog_stop(ab, false); in ath11k_core_suspend() 268 ath11k_warn(ab, "failed to stop dp rx pktlog during suspend: %d\n", in ath11k_core_suspend() 273 ath11k_ce_stop_shadow_timers(ab); in ath11k_core_suspend() 274 ath11k_dp_stop_shadow_timers(ab); in ath11k_core_suspend() [all …]
|
D | pci.c | 135 struct ath11k_base *ab = ab_pci->ab; in ath11k_pci_select_window() local 143 ab->mem + WINDOW_REG_ADDRESS); in ath11k_pci_select_window() 144 ioread32(ab->mem + WINDOW_REG_ADDRESS); in ath11k_pci_select_window() 157 iowrite32(WINDOW_ENABLE_BIT | window, ab_pci->ab->mem + WINDOW_REG_ADDRESS); in ath11k_pci_select_static_window() 160 static inline u32 ath11k_pci_get_window_start(struct ath11k_base *ab, in ath11k_pci_get_window_start() argument 177 void ath11k_pci_write32(struct ath11k_base *ab, u32 offset, u32 value) in ath11k_pci_write32() argument 179 struct ath11k_pci *ab_pci = ath11k_pci_priv(ab); in ath11k_pci_write32() 185 if (ab->hw_params.wakeup_mhi && in ath11k_pci_write32() 191 iowrite32(value, ab->mem + offset); in ath11k_pci_write32() 193 if (ab->bus_params.static_window_map) in ath11k_pci_write32() [all …]
|
D | ahb.c | 137 static inline u32 ath11k_ahb_read32(struct ath11k_base *ab, u32 offset) in ath11k_ahb_read32() argument 139 return ioread32(ab->mem + offset); in ath11k_ahb_read32() 142 static inline void ath11k_ahb_write32(struct ath11k_base *ab, u32 offset, u32 value) in ath11k_ahb_write32() argument 144 iowrite32(value, ab->mem + offset); in ath11k_ahb_write32() 147 static void ath11k_ahb_kill_tasklets(struct ath11k_base *ab) in ath11k_ahb_kill_tasklets() argument 151 for (i = 0; i < ab->hw_params.ce_count; i++) { in ath11k_ahb_kill_tasklets() 152 struct ath11k_ce_pipe *ce_pipe = &ab->ce.ce_pipe[i]; in ath11k_ahb_kill_tasklets() 154 if (ath11k_ce_get_attr_flags(ab, i) & CE_ATTR_DIS_INTR) in ath11k_ahb_kill_tasklets() 166 disable_irq_nosync(irq_grp->ab->irq_num[irq_grp->irqs[i]]); in ath11k_ahb_ext_grp_disable() 169 static void __ath11k_ahb_ext_irq_disable(struct ath11k_base *ab) in __ath11k_ahb_ext_irq_disable() argument [all …]
|
D | hal.h | 46 (ab->hw_params.regs->hal_seq_wcss_umac_ce0_src_reg) 48 (ab->hw_params.regs->hal_seq_wcss_umac_ce0_dst_reg) 50 (ab->hw_params.regs->hal_seq_wcss_umac_ce1_src_reg) 52 (ab->hw_params.regs->hal_seq_wcss_umac_ce1_dst_reg) 61 #define HAL_TCL1_RING_BASE_LSB(ab) ab->hw_params.regs->hal_tcl1_ring_base_lsb argument 62 #define HAL_TCL1_RING_BASE_MSB(ab) ab->hw_params.regs->hal_tcl1_ring_base_msb argument 63 #define HAL_TCL1_RING_ID(ab) ab->hw_params.regs->hal_tcl1_ring_id argument 64 #define HAL_TCL1_RING_MISC(ab) ab->hw_params.regs->hal_tcl1_ring_misc argument 65 #define HAL_TCL1_RING_TP_ADDR_LSB(ab) \ argument 66 ab->hw_params.regs->hal_tcl1_ring_tp_addr_lsb [all …]
|
D | dp.c | 15 static void ath11k_dp_htt_htc_tx_complete(struct ath11k_base *ab, in ath11k_dp_htt_htc_tx_complete() argument 23 struct ath11k_base *ab = ar->ab; in ath11k_dp_peer_cleanup() local 28 spin_lock_bh(&ab->base_lock); in ath11k_dp_peer_cleanup() 29 peer = ath11k_peer_find(ab, vdev_id, addr); in ath11k_dp_peer_cleanup() 31 ath11k_warn(ab, "failed to lookup peer %pM on vdev %d\n", in ath11k_dp_peer_cleanup() 33 spin_unlock_bh(&ab->base_lock); in ath11k_dp_peer_cleanup() 39 spin_unlock_bh(&ab->base_lock); in ath11k_dp_peer_cleanup() 44 struct ath11k_base *ab = ar->ab; in ath11k_dp_peer_setup() local 56 ath11k_warn(ab, "failed to set default routing %d peer :%pM vdev_id :%d\n", in ath11k_dp_peer_setup() 65 ath11k_warn(ab, "failed to setup rxd tid queue for tid %d: %d\n", in ath11k_dp_peer_setup() [all …]
|
D | ce.c | 251 void ath11k_ce_stop_shadow_timers(struct ath11k_base *ab) in ath11k_ce_stop_shadow_timers() argument 255 if (!ab->hw_params.supports_shadow_regs) in ath11k_ce_stop_shadow_timers() 258 for (i = 0; i < ab->hw_params.ce_count; i++) in ath11k_ce_stop_shadow_timers() 260 ath11k_dp_shadow_stop_timer(ab, &ab->ce.hp_timer[i]); in ath11k_ce_stop_shadow_timers() 266 struct ath11k_base *ab = pipe->ab; in ath11k_ce_rx_buf_enqueue_pipe() local 274 lockdep_assert_held(&ab->ce.ce_lock); in ath11k_ce_rx_buf_enqueue_pipe() 278 srng = &ab->hal.srng_list[ring->hal_ring_id]; in ath11k_ce_rx_buf_enqueue_pipe() 282 ath11k_hal_srng_access_begin(ab, srng); in ath11k_ce_rx_buf_enqueue_pipe() 284 if (unlikely(ath11k_hal_srng_src_num_free(ab, srng, false) < 1)) { in ath11k_ce_rx_buf_enqueue_pipe() 289 desc = ath11k_hal_srng_src_get_next_entry(ab, srng); in ath11k_ce_rx_buf_enqueue_pipe() [all …]
|
D | hal.c | 192 static int ath11k_hal_alloc_cont_rdp(struct ath11k_base *ab) in ath11k_hal_alloc_cont_rdp() argument 194 struct ath11k_hal *hal = &ab->hal; in ath11k_hal_alloc_cont_rdp() 198 hal->rdp.vaddr = dma_alloc_coherent(ab->dev, size, &hal->rdp.paddr, in ath11k_hal_alloc_cont_rdp() 206 static void ath11k_hal_free_cont_rdp(struct ath11k_base *ab) in ath11k_hal_free_cont_rdp() argument 208 struct ath11k_hal *hal = &ab->hal; in ath11k_hal_free_cont_rdp() 215 dma_free_coherent(ab->dev, size, in ath11k_hal_free_cont_rdp() 220 static int ath11k_hal_alloc_cont_wrp(struct ath11k_base *ab) in ath11k_hal_alloc_cont_wrp() argument 222 struct ath11k_hal *hal = &ab->hal; in ath11k_hal_alloc_cont_wrp() 226 hal->wrp.vaddr = dma_alloc_coherent(ab->dev, size, &hal->wrp.paddr, in ath11k_hal_alloc_cont_wrp() 234 static void ath11k_hal_free_cont_wrp(struct ath11k_base *ab) in ath11k_hal_free_cont_wrp() argument [all …]
|
D | peer.c | 10 struct ath11k_peer *ath11k_peer_find(struct ath11k_base *ab, int vdev_id, in ath11k_peer_find() argument 15 lockdep_assert_held(&ab->base_lock); in ath11k_peer_find() 17 list_for_each_entry(peer, &ab->peers, list) { in ath11k_peer_find() 29 static struct ath11k_peer *ath11k_peer_find_by_pdev_idx(struct ath11k_base *ab, in ath11k_peer_find_by_pdev_idx() argument 34 lockdep_assert_held(&ab->base_lock); in ath11k_peer_find_by_pdev_idx() 36 list_for_each_entry(peer, &ab->peers, list) { in ath11k_peer_find_by_pdev_idx() 48 struct ath11k_peer *ath11k_peer_find_by_addr(struct ath11k_base *ab, in ath11k_peer_find_by_addr() argument 53 lockdep_assert_held(&ab->base_lock); in ath11k_peer_find_by_addr() 55 list_for_each_entry(peer, &ab->peers, list) { in ath11k_peer_find_by_addr() 65 struct ath11k_peer *ath11k_peer_find_by_id(struct ath11k_base *ab, in ath11k_peer_find_by_id() argument [all …]
|
D | qmi.c | 1513 static int ath11k_qmi_host_cap_send(struct ath11k_base *ab) in ath11k_qmi_host_cap_send() argument 1525 req.mem_cfg_mode = ab->qmi.target_mem_mode; in ath11k_qmi_host_cap_send() 1530 if (ab->bus_params.m3_fw_support) { in ath11k_qmi_host_cap_send() 1543 req.cal_done = ab->qmi.cal_done; in ath11k_qmi_host_cap_send() 1545 if (ab->hw_params.internal_sleep_clock) { in ath11k_qmi_host_cap_send() 1559 ath11k_dbg(ab, ATH11K_DBG_QMI, "qmi host cap request\n"); in ath11k_qmi_host_cap_send() 1561 ret = qmi_txn_init(&ab->qmi.handle, &txn, in ath11k_qmi_host_cap_send() 1566 ret = qmi_send_request(&ab->qmi.handle, NULL, &txn, in ath11k_qmi_host_cap_send() 1571 ath11k_warn(ab, "failed to send host capability request: %d\n", ret); in ath11k_qmi_host_cap_send() 1580 ath11k_warn(ab, "host capability request failed: %d %d\n", in ath11k_qmi_host_cap_send() [all …]
|
D | hif.h | 20 int (*suspend)(struct ath11k_base *ab); 21 int (*resume)(struct ath11k_base *ab); 24 int (*get_user_msi_vector)(struct ath11k_base *ab, char *user_name, 27 void (*get_msi_address)(struct ath11k_base *ab, u32 *msi_addr_lo, 29 void (*ce_irq_enable)(struct ath11k_base *ab); 30 void (*ce_irq_disable)(struct ath11k_base *ab); 31 void (*get_ce_msi_idx)(struct ath11k_base *ab, u32 ce_id, u32 *msi_idx); 34 static inline void ath11k_hif_ce_irq_enable(struct ath11k_base *ab) in ath11k_hif_ce_irq_enable() argument 36 if (ab->hif.ops->ce_irq_enable) in ath11k_hif_ce_irq_enable() 37 ab->hif.ops->ce_irq_enable(ab); in ath11k_hif_ce_irq_enable() [all …]
|
D | dp_rx.c | 23 static u8 *ath11k_dp_rx_h_80211_hdr(struct ath11k_base *ab, struct hal_rx_desc *desc) in ath11k_dp_rx_h_80211_hdr() argument 25 return ab->hw_params.hw_ops->rx_desc_get_hdr_status(desc); in ath11k_dp_rx_h_80211_hdr() 28 static enum hal_encrypt_type ath11k_dp_rx_h_mpdu_start_enctype(struct ath11k_base *ab, in ath11k_dp_rx_h_mpdu_start_enctype() argument 31 if (!ab->hw_params.hw_ops->rx_desc_encrypt_valid(desc)) in ath11k_dp_rx_h_mpdu_start_enctype() 34 return ab->hw_params.hw_ops->rx_desc_get_encrypt_type(desc); in ath11k_dp_rx_h_mpdu_start_enctype() 37 static u8 ath11k_dp_rx_h_msdu_start_decap_type(struct ath11k_base *ab, in ath11k_dp_rx_h_msdu_start_decap_type() argument 40 return ab->hw_params.hw_ops->rx_desc_get_decap_type(desc); in ath11k_dp_rx_h_msdu_start_decap_type() 43 static 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 46 return ab->hw_params.hw_ops->rx_desc_get_mesh_ctl(desc); in ath11k_dp_rx_h_msdu_start_mesh_ctl_present() 49 static bool ath11k_dp_rx_h_mpdu_start_seq_ctrl_valid(struct ath11k_base *ab, in ath11k_dp_rx_h_mpdu_start_seq_ctrl_valid() argument [all …]
|
D | htc.c | 11 struct sk_buff *ath11k_htc_alloc_skb(struct ath11k_base *ab, int size) in ath11k_htc_alloc_skb() argument 23 ath11k_warn(ab, "Unaligned HTC tx skb\n"); in ath11k_htc_alloc_skb() 28 static void ath11k_htc_control_tx_complete(struct ath11k_base *ab, in ath11k_htc_control_tx_complete() argument 34 static struct sk_buff *ath11k_htc_build_tx_ctrl_skb(void *ab) in ath11k_htc_build_tx_ctrl_skb() argument 49 ath11k_dbg(ab, ATH11K_DBG_HTC, "%s: skb %pK\n", __func__, skb); in ath11k_htc_build_tx_ctrl_skb() 80 struct device *dev = htc->ab->dev; in ath11k_htc_send() 81 struct ath11k_base *ab = htc->ab; in ath11k_htc_send() local 86 ath11k_warn(ab, "Invalid endpoint id: %d\n", eid); in ath11k_htc_send() 96 ath11k_dbg(ab, ATH11K_DBG_HTC, in ath11k_htc_send() 104 ath11k_dbg(ab, ATH11K_DBG_HTC, in ath11k_htc_send() [all …]
|
D | dp_tx.c | 17 struct ath11k_base *ab = arvif->ar->ab; in ath11k_dp_tx_get_encap_type() local 19 if (test_bit(ATH11K_FLAG_RAW_MODE, &ab->dev_flags)) in ath11k_dp_tx_get_encap_type() 83 struct ath11k_base *ab = ar->ab; in ath11k_dp_tx() local 84 struct ath11k_dp *dp = &ab->dp; in ath11k_dp_tx() 98 if (test_bit(ATH11K_FLAG_CRASH_FLUSH, &ar->ab->dev_flags)) in ath11k_dp_tx() 119 if (ar->ab->hw_params.tcl_0_only) in ath11k_dp_tx() 135 atomic_inc(&ab->soc_stats.tx_err.misc_fail); in ath11k_dp_tx() 192 if (!test_bit(ATH11K_FLAG_RAW_MODE, &ab->dev_flags)) { in ath11k_dp_tx() 204 atomic_inc(&ab->soc_stats.tx_err.misc_fail); in ath11k_dp_tx() 208 ti.paddr = dma_map_single(ab->dev, skb->data, skb->len, DMA_TO_DEVICE); in ath11k_dp_tx() [all …]
|
D | mhi.c | 200 void ath11k_mhi_set_mhictrl_reset(struct ath11k_base *ab) in ath11k_mhi_set_mhictrl_reset() argument 204 val = ath11k_pci_read32(ab, MHISTATUS); in ath11k_mhi_set_mhictrl_reset() 206 ath11k_dbg(ab, ATH11K_DBG_PCI, "MHISTATUS 0x%x\n", val); in ath11k_mhi_set_mhictrl_reset() 212 ath11k_pci_write32(ab, MHICTRL, MHICTRL_RESET_MASK); in ath11k_mhi_set_mhictrl_reset() 217 static void ath11k_mhi_reset_txvecdb(struct ath11k_base *ab) in ath11k_mhi_reset_txvecdb() argument 219 ath11k_pci_write32(ab, PCIE_TXVECDB, 0); in ath11k_mhi_reset_txvecdb() 222 static void ath11k_mhi_reset_txvecstatus(struct ath11k_base *ab) in ath11k_mhi_reset_txvecstatus() argument 224 ath11k_pci_write32(ab, PCIE_TXVECSTATUS, 0); in ath11k_mhi_reset_txvecstatus() 227 static void ath11k_mhi_reset_rxvecdb(struct ath11k_base *ab) in ath11k_mhi_reset_rxvecdb() argument 229 ath11k_pci_write32(ab, PCIE_RXVECDB, 0); in ath11k_mhi_reset_rxvecdb() [all …]
|
D | wmi.c | 148 ath11k_wmi_tlv_iter(struct ath11k_base *ab, const void *ptr, size_t len, in ath11k_wmi_tlv_iter() argument 149 int (*iter)(struct ath11k_base *ab, u16 tag, u16 len, in ath11k_wmi_tlv_iter() argument 160 ath11k_err(ab, "wmi tlv parse failure at byte %zd (%zu bytes left, %zu expected)\n", in ath11k_wmi_tlv_iter() 172 ath11k_err(ab, "wmi tlv parse failure of tag %u at byte %zd (%zu bytes left, %u expected)\n", in ath11k_wmi_tlv_iter() 180 …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() 186 ret = iter(ab, tlv_tag, tlv_len, ptr, data); in ath11k_wmi_tlv_iter() 197 static int ath11k_wmi_tlv_iter_parse(struct ath11k_base *ab, u16 tag, u16 len, in ath11k_wmi_tlv_iter_parse() argument 216 ath11k_wmi_tlv_parse_alloc(struct ath11k_base *ab, const void *ptr, in ath11k_wmi_tlv_parse_alloc() argument 226 ret = ath11k_wmi_tlv_parse(ab, tb, ptr, len); in ath11k_wmi_tlv_parse_alloc() 239 struct ath11k_base *ab = wmi->wmi_ab->ab; in ath11k_wmi_cmd_send_nowait() local [all …]
|
D | dbring.c | 13 struct ath11k_base *ab = ar->ab; in ath11k_dbring_bufs_replenish() local 21 srng = &ab->hal.srng_list[ring->refill_srng.ring_id]; in ath11k_dbring_bufs_replenish() 25 ath11k_hal_srng_access_begin(ab, srng); in ath11k_dbring_bufs_replenish() 29 paddr = dma_map_single(ab->dev, ptr_aligned, ring->buf_sz, in ath11k_dbring_bufs_replenish() 32 ret = dma_mapping_error(ab->dev, paddr); in ath11k_dbring_bufs_replenish() 44 desc = ath11k_hal_srng_src_get_next_entry(ab, srng); in ath11k_dbring_bufs_replenish() 57 ath11k_hal_srng_access_end(ab, srng); in ath11k_dbring_bufs_replenish() 66 dma_unmap_single(ab->dev, paddr, ring->buf_sz, in ath11k_dbring_bufs_replenish() 69 ath11k_hal_srng_access_end(ab, srng); in ath11k_dbring_bufs_replenish() 82 srng = &ar->ab->hal.srng_list[ring->refill_srng.ring_id]; in ath11k_dbring_fill_bufs() [all …]
|
D | wow.c | 15 int ath11k_wow_enable(struct ath11k_base *ab) in ath11k_wow_enable() argument 17 struct ath11k *ar = ath11k_ab_to_ar(ab, 0); in ath11k_wow_enable() 20 clear_bit(ATH11K_FLAG_HTC_SUSPEND_COMPLETE, &ab->dev_flags); in ath11k_wow_enable() 23 reinit_completion(&ab->htc_suspend); in ath11k_wow_enable() 27 ath11k_warn(ab, "failed to issue wow enable: %d\n", ret); in ath11k_wow_enable() 31 ret = wait_for_completion_timeout(&ab->htc_suspend, 3 * HZ); in ath11k_wow_enable() 33 ath11k_warn(ab, in ath11k_wow_enable() 38 if (test_bit(ATH11K_FLAG_HTC_SUSPEND_COMPLETE, &ab->dev_flags)) in ath11k_wow_enable() 42 ath11k_warn(ab, "htc suspend not complete, retrying (try %d)\n", in ath11k_wow_enable() 47 ath11k_warn(ab, "htc suspend not complete, failing after %d tries\n", i); in ath11k_wow_enable() [all …]
|
D | dp_rx.h | 59 void ath11k_dp_htt_htc_t2h_msg_handler(struct ath11k_base *ab, 61 int ath11k_dp_pdev_reo_setup(struct ath11k_base *ab); 62 void ath11k_dp_pdev_reo_cleanup(struct ath11k_base *ab); 63 int ath11k_dp_rx_pdev_alloc(struct ath11k_base *ab, int pdev_idx); 64 void ath11k_dp_rx_pdev_free(struct ath11k_base *ab, int pdev_idx); 65 void ath11k_dp_reo_cmd_list_cleanup(struct ath11k_base *ab); 66 void ath11k_dp_process_reo_status(struct ath11k_base *ab); 67 int ath11k_dp_process_rxdma_err(struct ath11k_base *ab, int mac_id, int budget); 68 int ath11k_dp_rx_process_wbm_err(struct ath11k_base *ab, 70 int ath11k_dp_process_rx_err(struct ath11k_base *ab, struct napi_struct *napi, [all …]
|
D | debugfs.c | 92 void ath11k_debugfs_fw_stats_process(struct ath11k_base *ab, struct sk_buff *skb) in ath11k_debugfs_fw_stats_process() argument 106 ret = ath11k_wmi_pull_fw_stats(ab, skb, &stats); in ath11k_debugfs_fw_stats_process() 108 ath11k_warn(ab, "failed to pull fw stats: %d\n", ret); in ath11k_debugfs_fw_stats_process() 113 ar = ath11k_mac_get_ar_by_pdev_id(ab, stats.pdev_id); in ath11k_debugfs_fw_stats_process() 116 ath11k_warn(ab, "failed to get ar for pdev_id %d: %d\n", in ath11k_debugfs_fw_stats_process() 131 ath11k_warn(ab, "empty vdev stats"); in ath11k_debugfs_fw_stats_process() 137 for (i = 0; i < ab->num_radios; i++) { in ath11k_debugfs_fw_stats_process() 138 pdev = rcu_dereference(ab->pdevs_active[i]); in ath11k_debugfs_fw_stats_process() 157 ath11k_warn(ab, "empty bcn stats"); in ath11k_debugfs_fw_stats_process() 187 struct ath11k_base *ab = ar->ab; in ath11k_debugfs_fw_stats_request() local [all …]
|
D | mac.c | 476 ath11k_warn(ar->ab, "No VIF found for vdev %d\n", vdev_id); in ath11k_mac_get_arvif() 483 struct ath11k_vif *ath11k_mac_get_arvif_by_vdev_id(struct ath11k_base *ab, in ath11k_mac_get_arvif_by_vdev_id() argument 490 for (i = 0; i < ab->num_radios; i++) { in ath11k_mac_get_arvif_by_vdev_id() 491 pdev = rcu_dereference(ab->pdevs_active[i]); in ath11k_mac_get_arvif_by_vdev_id() 502 struct ath11k *ath11k_mac_get_ar_by_vdev_id(struct ath11k_base *ab, u32 vdev_id) in ath11k_mac_get_ar_by_vdev_id() argument 507 for (i = 0; i < ab->num_radios; i++) { in ath11k_mac_get_ar_by_vdev_id() 508 pdev = rcu_dereference(ab->pdevs_active[i]); in ath11k_mac_get_ar_by_vdev_id() 518 struct ath11k *ath11k_mac_get_ar_by_pdev_id(struct ath11k_base *ab, u32 pdev_id) in ath11k_mac_get_ar_by_pdev_id() argument 523 if (ab->hw_params.single_pdev_only) { in ath11k_mac_get_ar_by_pdev_id() 524 pdev = rcu_dereference(ab->pdevs_active[0]); in ath11k_mac_get_ar_by_pdev_id() [all …]
|
D | ce.h | 151 struct ath11k_base *ab; member 178 void ath11k_ce_cleanup_pipes(struct ath11k_base *ab); 180 void ath11k_ce_per_engine_service(struct ath11k_base *ab, u16 ce_id); 181 int ath11k_ce_send(struct ath11k_base *ab, struct sk_buff *skb, u8 pipe_id, 183 void ath11k_ce_rx_post_buf(struct ath11k_base *ab); 184 int ath11k_ce_init_pipes(struct ath11k_base *ab); 185 int ath11k_ce_alloc_pipes(struct ath11k_base *ab); 186 void ath11k_ce_free_pipes(struct ath11k_base *ab); 187 int ath11k_ce_get_attr_flags(struct ath11k_base *ab, int ce_id); 188 void ath11k_ce_poll_send_completed(struct ath11k_base *ab, u8 pipe_id); [all …]
|
D | debug.c | 10 void ath11k_info(struct ath11k_base *ab, const char *fmt, ...) in ath11k_info() argument 19 dev_info(ab->dev, "%pV", &vaf); in ath11k_info() 25 void ath11k_err(struct ath11k_base *ab, const char *fmt, ...) in ath11k_err() argument 34 dev_err(ab->dev, "%pV", &vaf); in ath11k_err() 40 void ath11k_warn(struct ath11k_base *ab, const char *fmt, ...) in ath11k_warn() argument 49 dev_warn_ratelimited(ab->dev, "%pV", &vaf); in ath11k_warn() 57 void __ath11k_dbg(struct ath11k_base *ab, enum ath11k_debug_mask mask, in __ath11k_dbg() argument 69 dev_printk(KERN_DEBUG, ab->dev, "%pV", &vaf); in __ath11k_dbg() 77 void ath11k_dbg_dump(struct ath11k_base *ab, in ath11k_dbg_dump() argument 88 __ath11k_dbg(ab, mask, "%s\n", msg); in ath11k_dbg_dump() [all …]
|
D | trace.h | 30 __string(device, dev_name(ar->ab->dev)) 31 __string(driver, dev_driver_string(ar->ab->dev)) 38 __assign_str(device, dev_name(ar->ab->dev)); 39 __assign_str(driver, dev_driver_string(ar->ab->dev)); 60 __string(device, dev_name(ar->ab->dev)) 61 __string(driver, dev_driver_string(ar->ab->dev)) 67 __assign_str(device, dev_name(ar->ab->dev)); 68 __assign_str(driver, dev_driver_string(ar->ab->dev)); 87 __string(device, dev_name(ar->ab->dev)) 88 __string(driver, dev_driver_string(ar->ab->dev)) [all …]
|
/drivers/md/persistent-data/ |
D | dm-array.c | 96 static void *element_at(struct dm_array_info *info, struct array_block *ab, in element_at() argument 99 unsigned char *entry = (unsigned char *) (ab + 1); in element_at() 110 static void on_entries(struct dm_array_info *info, struct array_block *ab, in on_entries() argument 113 unsigned nr_entries = le32_to_cpu(ab->nr_entries); in on_entries() 114 fn(info->value_type.context, element_at(info, ab, 0), nr_entries); in on_entries() 120 static void inc_ablock_entries(struct dm_array_info *info, struct array_block *ab) in inc_ablock_entries() argument 125 on_entries(info, ab, vt->inc); in inc_ablock_entries() 131 static void dec_ablock_entries(struct dm_array_info *info, struct array_block *ab) in dec_ablock_entries() argument 136 on_entries(info, ab, vt->dec); in dec_ablock_entries() 152 struct dm_block **block, struct array_block **ab) in alloc_ablock() argument [all …]
|