Home
last modified time | relevance | path

Searched refs:ab (Results 1 – 25 of 222) sorted by relevance

123456789

/linux/drivers/usb/phy/
H A Dphy-ab8500-usb.c150 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 …]
/linux/drivers/net/wireless/ath/ath12k/
H A Dcore.c25 static int ath12k_core_rfkill_config(struct ath12k_base *ab) in ath12k_core_rfkill_config() argument
30 if (!(ab->target_caps.sys_cap_info & WMI_SYS_CAP_INFO_RFKILL)) in ath12k_core_rfkill_config()
33 for (i = 0; i < ab->num_radios; i++) { in ath12k_core_rfkill_config()
34 ar = ab->pdevs[i].ar; in ath12k_core_rfkill_config()
38 ath12k_warn(ab, "failed to configure rfkill: %d", ret); in ath12k_core_rfkill_config()
52 static int ath12k_core_continue_suspend_resume(struct ath12k_base *ab) in ath12k_core_continue_suspend_resume() argument
56 if (!ab->hw_params->supports_suspend) in ath12k_core_continue_suspend_resume()
62 ar = ab->pdevs[0].ar; in ath12k_core_continue_suspend_resume()
69 int ath12k_core_suspend(struct ath12k_base *ab) in ath12k_core_suspend() argument
74 ret = ath12k_core_continue_suspend_resume(ab); in ath12k_core_suspend()
[all …]
H A Dacpi.c11 static int ath12k_acpi_dsm_get_data(struct ath12k_base *ab, int func) in ath12k_acpi_dsm_get_data() argument
17 root_handle = ACPI_HANDLE(ab->dev); in ath12k_acpi_dsm_get_data()
19 ath12k_dbg(ab, ATH12K_DBG_BOOT, "invalid acpi handler\n"); in ath12k_acpi_dsm_get_data()
23 obj = acpi_evaluate_dsm(root_handle, ab->hw_params->acpi_guid, 0, func, in ath12k_acpi_dsm_get_data()
27 ath12k_dbg(ab, ATH12K_DBG_BOOT, "acpi_evaluate_dsm() failed\n"); in ath12k_acpi_dsm_get_data()
32 ab->acpi.func_bit = obj->integer.value; in ath12k_acpi_dsm_get_data()
37 ath12k_warn(ab, "invalid ACPI DSM TAS config size: %d\n", in ath12k_acpi_dsm_get_data()
43 memcpy(&ab->acpi.tas_cfg, obj->buffer.pointer, in ath12k_acpi_dsm_get_data()
49 ath12k_warn(ab, "invalid ACPI DSM TAS data size: %d\n", in ath12k_acpi_dsm_get_data()
55 memcpy(&ab->acpi.tas_sar_power_table, obj->buffer.pointer, in ath12k_acpi_dsm_get_data()
[all …]
H A Dhif.h13 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, bool is_suspend);
21 int (*suspend)(struct ath12k_base *ab);
22 int (*resume)(struct ath12k_base *ab);
[all …]
H A Dpci.c137 static int ath12k_pci_bus_wake_up(struct ath12k_base *ab) in ath12k_pci_bus_wake_up() argument
139 struct ath12k_pci *ab_pci = ath12k_pci_priv(ab); in ath12k_pci_bus_wake_up()
144 static void ath12k_pci_bus_release(struct ath12k_base *ab) in ath12k_pci_bus_release() argument
146 struct ath12k_pci *ab_pci = ath12k_pci_priv(ab); in ath12k_pci_bus_release()
163 struct ath12k_base *ab = ab_pci->ab; in ath12k_pci_select_window() local
176 ab->mem + WINDOW_REG_ADDRESS); in ath12k_pci_select_window()
177 ioread32(ab->mem + WINDOW_REG_ADDRESS); in ath12k_pci_select_window()
194 iowrite32(WINDOW_ENABLE_BIT | window, ab_pci->ab->mem + WINDOW_REG_ADDRESS); in ath12k_pci_select_static_window()
197 static u32 ath12k_pci_get_window_start(struct ath12k_base *ab, in ath12k_pci_get_window_start() argument
219 static void ath12k_pci_soc_global_reset(struct ath12k_base *ab) in ath12k_pci_soc_global_reset() argument
[all …]
H A Ddp.c22 static void ath12k_dp_htt_htc_tx_complete(struct ath12k_base *ab, in ath12k_dp_htt_htc_tx_complete() argument
30 struct ath12k_base *ab = ar->ab; in ath12k_dp_peer_cleanup() local
35 spin_lock_bh(&ab->base_lock); in ath12k_dp_peer_cleanup()
36 peer = ath12k_peer_find(ab, vdev_id, addr); in ath12k_dp_peer_cleanup()
38 ath12k_warn(ab, "failed to lookup peer %pM on vdev %d\n", in ath12k_dp_peer_cleanup()
40 spin_unlock_bh(&ab->base_lock); in ath12k_dp_peer_cleanup()
47 spin_unlock_bh(&ab->base_lock); in ath12k_dp_peer_cleanup()
52 struct ath12k_base *ab = ar->ab; in ath12k_dp_peer_setup() local
64 ath12k_warn(ab, "failed to set default routing %d peer :%pM vdev_id :%d\n", in ath12k_dp_peer_setup()
73 ath12k_warn(ab, "failed to setup rxd tid queue for tid %d: %d\n", in ath12k_dp_peer_setup()
[all …]
H A Dce.c225 struct ath12k_base *ab = pipe->ab; in ath12k_ce_rx_buf_enqueue_pipe() local
233 lockdep_assert_held(&ab->ce.ce_lock); in ath12k_ce_rx_buf_enqueue_pipe()
237 srng = &ab->hal.srng_list[ring->hal_ring_id]; in ath12k_ce_rx_buf_enqueue_pipe()
241 ath12k_hal_srng_access_begin(ab, srng); in ath12k_ce_rx_buf_enqueue_pipe()
243 if (unlikely(ath12k_hal_srng_src_num_free(ab, srng, false) < 1)) { in ath12k_ce_rx_buf_enqueue_pipe()
248 desc = ath12k_hal_srng_src_get_next_entry(ab, srng); in ath12k_ce_rx_buf_enqueue_pipe()
264 ath12k_hal_srng_access_end(ab, srng); in ath12k_ce_rx_buf_enqueue_pipe()
273 struct ath12k_base *ab = pipe->ab; in ath12k_ce_rx_post_pipe() local
281 spin_lock_bh(&ab->ce.ce_lock); in ath12k_ce_rx_post_pipe()
291 paddr = dma_map_single(ab->dev, skb->data, in ath12k_ce_rx_post_pipe()
[all …]
H A Dhal.h62 #define HAL_TCL1_RING_ID(ab) ((ab)->hw_params->regs->hal_tcl1_ring_id) argument
63 #define HAL_TCL1_RING_MISC(ab) \ argument
64 ((ab)->hw_params->regs->hal_tcl1_ring_misc)
65 #define HAL_TCL1_RING_TP_ADDR_LSB(ab) \ argument
66 ((ab)->hw_params->regs->hal_tcl1_ring_tp_addr_lsb)
67 #define HAL_TCL1_RING_TP_ADDR_MSB(ab) \ argument
68 ((ab)->hw_params->regs->hal_tcl1_ring_tp_addr_msb)
69 #define HAL_TCL1_RING_CONSUMER_INT_SETUP_IX0(ab) \ argument
70 ((ab)->hw_params->regs->hal_tcl1_ring_consumer_int_setup_ix0)
71 #define HAL_TCL1_RING_CONSUMER_INT_SETUP_IX1(ab) \ argument
[all …]
H A Dfw.c10 static int ath12k_fw_request_firmware_api_n(struct ath12k_base *ab, in ath12k_fw_request_firmware_api_n() argument
19 ab->fw.fw = ath12k_core_firmware_request(ab, name); in ath12k_fw_request_firmware_api_n()
20 if (IS_ERR(ab->fw.fw)) { in ath12k_fw_request_firmware_api_n()
21 ret = PTR_ERR(ab->fw.fw); in ath12k_fw_request_firmware_api_n()
22 ath12k_dbg(ab, ATH12K_DBG_BOOT, "failed to load %s: %d\n", name, ret); in ath12k_fw_request_firmware_api_n()
23 ab->fw.fw = NULL; in ath12k_fw_request_firmware_api_n()
27 data = ab->fw.fw->data; in ath12k_fw_request_firmware_api_n()
28 len = ab->fw.fw->size; in ath12k_fw_request_firmware_api_n()
34 ath12k_err(ab, "firmware image too small to contain magic: %zu\n", in ath12k_fw_request_firmware_api_n()
41 ath12k_err(ab, "Invalid firmware magic\n"); in ath12k_fw_request_firmware_api_n()
[all …]
H A Dpeer.c11 struct ath12k_peer *ath12k_peer_find(struct ath12k_base *ab, int vdev_id, in ath12k_peer_find() argument
16 lockdep_assert_held(&ab->base_lock); in ath12k_peer_find()
18 list_for_each_entry(peer, &ab->peers, list) { 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() argument
35 lockdep_assert_held(&ab->base_lock); in ath12k_peer_find_by_pdev_idx()
37 list_for_each_entry(peer, &ab->peers, list) { 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() argument
54 lockdep_assert_held(&ab->base_lock); in ath12k_peer_find_by_addr()
56 list_for_each_entry(peer, &ab->peers, list) { 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() argument
[all …]
H A Ddp_rx.c24 static enum hal_encrypt_type ath12k_dp_rx_h_enctype(struct ath12k_base *ab, in ath12k_dp_rx_h_enctype() argument
27 if (!ab->hal_rx_ops->rx_desc_encrypt_valid(desc)) in ath12k_dp_rx_h_enctype()
30 return ab->hal_rx_ops->rx_desc_get_encrypt_type(desc); in ath12k_dp_rx_h_enctype()
33 u8 ath12k_dp_rx_h_decap_type(struct ath12k_base *ab, in ath12k_dp_rx_h_decap_type() argument
36 return ab->hal_rx_ops->rx_desc_get_decap_type(desc); in ath12k_dp_rx_h_decap_type()
39 static u8 ath12k_dp_rx_h_mesh_ctl_present(struct ath12k_base *ab, in ath12k_dp_rx_h_mesh_ctl_present() argument
42 return ab->hal_rx_ops->rx_desc_get_mesh_ctl(desc); in ath12k_dp_rx_h_mesh_ctl_present()
45 static bool ath12k_dp_rx_h_seq_ctrl_valid(struct ath12k_base *ab, in ath12k_dp_rx_h_seq_ctrl_valid() argument
48 return ab->hal_rx_ops->rx_desc_get_mpdu_seq_ctl_vld(desc); in ath12k_dp_rx_h_seq_ctrl_valid()
51 static bool ath12k_dp_rx_h_fc_valid(struct ath12k_base *ab, in ath12k_dp_rx_h_fc_valid() argument
[all …]
/linux/drivers/net/wireless/ath/ath11k/
H A Dhif.h13 u32 (*read32)(struct ath11k_base *ab, u32 address);
14 void (*write32)(struct ath11k_base *ab, u32 address, u32 data);
15 int (*read)(struct ath11k_base *ab, void *buf, u32 start, u32 end);
16 void (*irq_enable)(struct ath11k_base *ab);
17 void (*irq_disable)(struct ath11k_base *ab);
18 int (*start)(struct ath11k_base *ab);
19 void (*stop)(struct ath11k_base *ab);
20 int (*power_up)(struct ath11k_base *ab);
21 void (*power_down)(struct ath11k_base *ab);
22 int (*suspend)(struct ath11k_base *ab);
[all …]
H A Dpci.c43 static int ath11k_pci_bus_wake_up(struct ath11k_base *ab) in ath11k_pci_bus_wake_up() argument
45 struct ath11k_pci *ab_pci = ath11k_pci_priv(ab); in ath11k_pci_bus_wake_up()
50 static void ath11k_pci_bus_release(struct ath11k_base *ab) in ath11k_pci_bus_release() argument
52 struct ath11k_pci *ab_pci = ath11k_pci_priv(ab); in ath11k_pci_bus_release()
57 static u32 ath11k_pci_get_window_start(struct ath11k_base *ab, u32 offset) in ath11k_pci_get_window_start() argument
59 if (!ab->hw_params.static_window_map) in ath11k_pci_get_window_start()
65 else if ((offset ^ HAL_SEQ_WCSS_UMAC_CE0_SRC_REG(ab)) < in ath11k_pci_get_window_start()
75 struct ath11k_base *ab = ab_pci->ab; in ath11k_pci_select_window() local
83 ab->mem + ATH11K_PCI_WINDOW_REG_ADDRESS); in ath11k_pci_select_window()
84 ioread32(ab->mem + ATH11K_PCI_WINDOW_REG_ADDRESS); in ath11k_pci_select_window()
[all …]
H A Dpeer.c11 static struct ath11k_peer *ath11k_peer_find_list_by_id(struct ath11k_base *ab, in ath11k_peer_find_list_by_id() argument
16 lockdep_assert_held(&ab->base_lock); in ath11k_peer_find_list_by_id()
18 list_for_each_entry(peer, &ab->peers, list) { in ath11k_peer_find_list_by_id()
28 struct ath11k_peer *ath11k_peer_find(struct ath11k_base *ab, int vdev_id, in ath11k_peer_find() argument
33 lockdep_assert_held(&ab->base_lock); in ath11k_peer_find()
35 list_for_each_entry(peer, &ab->peers, list) { in ath11k_peer_find()
47 struct ath11k_peer *ath11k_peer_find_by_addr(struct ath11k_base *ab, in ath11k_peer_find_by_addr() argument
52 lockdep_assert_held(&ab->base_lock); in ath11k_peer_find_by_addr()
54 if (!ab->rhead_peer_addr) in ath11k_peer_find_by_addr()
57 peer = rhashtable_lookup_fast(ab->rhead_peer_addr, addr, in ath11k_peer_find_by_addr()
[all …]
H A Dahb.c145 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 Dcore.c814 static inline struct ath11k_pdev *ath11k_core_get_single_pdev(struct ath11k_base *ab) in ath11k_core_get_single_pdev() argument
816 WARN_ON(!ab->hw_params.single_pdev_only); in ath11k_core_get_single_pdev()
818 return &ab->pdevs[0]; in ath11k_core_get_single_pdev()
867 bool ath11k_core_coldboot_cal_support(struct ath11k_base *ab) in ath11k_core_coldboot_cal_support() argument
873 return ab->hw_params.coldboot_cal_ftm; in ath11k_core_coldboot_cal_support()
876 return ab->hw_params.coldboot_cal_mm; in ath11k_core_coldboot_cal_support()
879 int ath11k_core_suspend(struct ath11k_base *ab) in ath11k_core_suspend() argument
885 if (!ab->hw_params.supports_suspend) in ath11k_core_suspend()
891 pdev = ath11k_core_get_single_pdev(ab); in ath11k_core_suspend()
896 ret = ath11k_dp_rx_pktlog_stop(ab, true); in ath11k_core_suspend()
[all …]
H A Dpcic.c131 int ath11k_pcic_init_msi_config(struct ath11k_base *ab) in ath11k_pcic_init_msi_config() argument
139 if (msi_config->hw_rev == ab->hw_rev) in ath11k_pcic_init_msi_config()
144 ath11k_err(ab, "failed to fetch msi config, unsupported hw version: 0x%x\n", in ath11k_pcic_init_msi_config()
145 ab->hw_rev); in ath11k_pcic_init_msi_config()
149 ab->pci.msi.config = msi_config; in ath11k_pcic_init_msi_config()
154 static void __ath11k_pcic_write32(struct ath11k_base *ab, u32 offset, u32 value) in __ath11k_pcic_write32() argument
157 iowrite32(value, ab->mem + offset); in __ath11k_pcic_write32()
159 ab->pci.ops->window_write32(ab, offset, value); in __ath11k_pcic_write32()
162 void ath11k_pcic_write32(struct ath11k_base *ab, u3 argument
182 __ath11k_pcic_read32(struct ath11k_base * ab,u32 offset) __ath11k_pcic_read32() argument
194 ath11k_pcic_read32(struct ath11k_base * ab,u32 offset) ath11k_pcic_read32() argument
217 ath11k_pcic_read(struct ath11k_base * ab,void * buf,u32 start,u32 end) ath11k_pcic_read() argument
255 ath11k_pcic_get_msi_address(struct ath11k_base * ab,u32 * msi_addr_lo,u32 * msi_addr_hi) ath11k_pcic_get_msi_address() argument
263 ath11k_pcic_get_user_msi_assignment(struct ath11k_base * ab,char * user_name,int * num_vectors,u32 * user_base_data,u32 * base_vector) ath11k_pcic_get_user_msi_assignment() argument
291 ath11k_pcic_get_ce_msi_idx(struct ath11k_base * ab,u32 ce_id,u32 * msi_idx) ath11k_pcic_get_ce_msi_idx() argument
308 ath11k_pcic_free_ext_irq(struct ath11k_base * ab) ath11k_pcic_free_ext_irq() argument
323 ath11k_pcic_free_irq(struct ath11k_base * ab) ath11k_pcic_free_irq() argument
338 ath11k_pcic_ce_irq_enable(struct ath11k_base * ab,u16 ce_id) ath11k_pcic_ce_irq_enable() argument
352 ath11k_pcic_ce_irq_disable(struct ath11k_base * ab,u16 ce_id) ath11k_pcic_ce_irq_disable() argument
366 ath11k_pcic_ce_irqs_disable(struct ath11k_base * ab) ath11k_pcic_ce_irqs_disable() argument
379 ath11k_pcic_sync_ce_irqs(struct ath11k_base * ab) ath11k_pcic_sync_ce_irqs() argument
406 struct ath11k_base *ab = ce_pipe->ab; ath11k_pcic_ce_interrupt_handler() local
424 struct ath11k_base *ab = irq_grp->ab; ath11k_pcic_ext_grp_disable() local
437 __ath11k_pcic_ext_irq_disable(struct ath11k_base * ab) __ath11k_pcic_ext_irq_disable() argument
458 struct ath11k_base *ab = irq_grp->ab; ath11k_pcic_ext_grp_enable() local
471 ath11k_pcic_ext_irq_enable(struct ath11k_base * ab) ath11k_pcic_ext_irq_enable() argument
489 ath11k_pcic_sync_ext_irqs(struct ath11k_base * ab) ath11k_pcic_sync_ext_irqs() argument
503 ath11k_pcic_ext_irq_disable(struct ath11k_base * ab) ath11k_pcic_ext_irq_disable() argument
515 struct ath11k_base *ab = irq_grp->ab; ath11k_pcic_ext_grp_napi_poll() local
535 struct ath11k_base *ab = irq_grp->ab; ath11k_pcic_ext_interrupt_handler() local
555 ath11k_pcic_get_msi_irq(struct ath11k_base * ab,unsigned int vector) ath11k_pcic_get_msi_irq() argument
560 ath11k_pcic_ext_irq_config(struct ath11k_base * ab) ath11k_pcic_ext_irq_config() argument
640 ath11k_pcic_config_irq(struct ath11k_base * ab) ath11k_pcic_config_irq() argument
697 ath11k_pcic_ce_irqs_enable(struct ath11k_base * ab) ath11k_pcic_ce_irqs_enable() argument
711 ath11k_pcic_kill_tasklets(struct ath11k_base * ab) ath11k_pcic_kill_tasklets() argument
725 ath11k_pcic_ce_irq_disable_sync(struct ath11k_base * ab) ath11k_pcic_ce_irq_disable_sync() argument
733 ath11k_pcic_stop(struct ath11k_base * ab) ath11k_pcic_stop() argument
740 ath11k_pcic_start(struct ath11k_base * ab) ath11k_pcic_start() argument
751 ath11k_pcic_map_service_to_pipe(struct ath11k_base * ab,u16 service_id,u8 * ul_pipe,u8 * dl_pipe) ath11k_pcic_map_service_to_pipe() argument
795 ath11k_pcic_register_pci_ops(struct ath11k_base * ab,const struct ath11k_pci_ops * pci_ops) ath11k_pcic_register_pci_ops() argument
811 ath11k_pci_enable_ce_irqs_except_wake_irq(struct ath11k_base * ab) ath11k_pci_enable_ce_irqs_except_wake_irq() argument
824 ath11k_pci_disable_ce_irqs_except_wake_irq(struct ath11k_base * ab) ath11k_pci_disable_ce_irqs_except_wake_irq() argument
[all...]
H A Dhal.h35 #define HAL_SHADOW_BASE_ADDR(ab) ab->hw_params.regs->hal_shadow_base_addr argument
40 #define HAL_SHADOW_REG(ab, x) (HAL_SHADOW_BASE_ADDR(ab) + (4 * (x))) argument
47 (ab->hw_params.regs->hal_seq_wcss_umac_ce0_src_reg)
49 (ab->hw_params.regs->hal_seq_wcss_umac_ce0_dst_reg)
51 (ab->hw_params.regs->hal_seq_wcss_umac_ce1_src_reg)
53 (ab->hw_params.regs->hal_seq_wcss_umac_ce1_dst_reg)
62 #define HAL_TCL1_RING_BASE_LSB(ab) ab->hw_params.regs->hal_tcl1_ring_base_lsb argument
63 #define HAL_TCL1_RING_BASE_MSB(ab) ab->hw_params.regs->hal_tcl1_ring_base_msb argument
64 #define HAL_TCL1_RING_ID(ab) ab->hw_params.regs->hal_tcl1_ring_id argument
65 #define HAL_TCL1_RING_MISC(ab) ab->hw_params.regs->hal_tcl1_ring_misc argument
[all …]
H A Ddp.c16 static void ath11k_dp_htt_htc_tx_complete(struct ath11k_base *ab, in ath11k_dp_htt_htc_tx_complete() argument
24 struct ath11k_base *ab = ar->ab; in ath11k_dp_peer_cleanup() local
29 spin_lock_bh(&ab->base_lock); in ath11k_dp_peer_cleanup()
30 peer = ath11k_peer_find(ab, vdev_id, addr); in ath11k_dp_peer_cleanup()
32 ath11k_warn(ab, "failed to lookup peer %pM on vdev %d\n", in ath11k_dp_peer_cleanup()
34 spin_unlock_bh(&ab->base_lock); in ath11k_dp_peer_cleanup()
41 spin_unlock_bh(&ab->base_lock); in ath11k_dp_peer_cleanup()
46 struct ath11k_base *ab = ar->ab; in ath11k_dp_peer_setup() local
58 ath11k_warn(ab, "failed to set default routing %d peer :%pM vdev_id :%d\n", in ath11k_dp_peer_setup()
67 ath11k_warn(ab, "failed to setup rxd tid queue for tid %d: %d\n", in ath11k_dp_peer_setup()
[all …]
H A Dce.c259 void ath11k_ce_stop_shadow_timers(struct ath11k_base *ab) in ath11k_ce_stop_shadow_timers() argument
263 if (!ab->hw_params.supports_shadow_regs) in ath11k_ce_stop_shadow_timers()
266 for (i = 0; i < ab->hw_params.ce_count; i++) in ath11k_ce_stop_shadow_timers()
268 ath11k_dp_shadow_stop_timer(ab, &ab->ce.hp_timer[i]); in ath11k_ce_stop_shadow_timers()
274 struct ath11k_base *ab = pipe->ab; in ath11k_ce_rx_buf_enqueue_pipe() local
282 lockdep_assert_held(&ab->ce.ce_lock); in ath11k_ce_rx_buf_enqueue_pipe()
286 srng = &ab->hal.srng_list[ring->hal_ring_id]; in ath11k_ce_rx_buf_enqueue_pipe()
290 ath11k_hal_srng_access_begin(ab, srng); in ath11k_ce_rx_buf_enqueue_pipe()
292 if (unlikely(ath11k_hal_srng_src_num_free(ab, srng, false) < 1)) { in ath11k_ce_rx_buf_enqueue_pipe()
297 desc = ath11k_hal_srng_src_get_next_entry(ab, srng); in ath11k_ce_rx_buf_enqueue_pipe()
[all …]
H A Dhal.c193 static int ath11k_hal_alloc_cont_rdp(struct ath11k_base *ab) in ath11k_hal_alloc_cont_rdp() argument
195 struct ath11k_hal *hal = &ab->hal; in ath11k_hal_alloc_cont_rdp()
199 hal->rdp.vaddr = dma_alloc_coherent(ab->dev, size, &hal->rdp.paddr, in ath11k_hal_alloc_cont_rdp()
207 static void ath11k_hal_free_cont_rdp(struct ath11k_base *ab) in ath11k_hal_free_cont_rdp() argument
209 struct ath11k_hal *hal = &ab->hal; in ath11k_hal_free_cont_rdp()
216 dma_free_coherent(ab->dev, size, in ath11k_hal_free_cont_rdp()
221 static int ath11k_hal_alloc_cont_wrp(struct ath11k_base *ab) in ath11k_hal_alloc_cont_wrp() argument
223 struct ath11k_hal *hal = &ab->hal; in ath11k_hal_alloc_cont_wrp()
227 hal->wrp.vaddr = dma_alloc_coherent(ab->dev, size, &hal->wrp.paddr, in ath11k_hal_alloc_cont_wrp()
235 static void ath11k_hal_free_cont_wrp(struct ath11k_base *ab) in ath11k_hal_free_cont_wrp() argument
[all …]
H A Dqmi.c1707 static int ath11k_qmi_host_cap_send(struct ath11k_base *ab) in ath11k_qmi_host_cap_send() argument
1719 req.mem_cfg_mode = ab->qmi.target_mem_mode; in ath11k_qmi_host_cap_send()
1724 if (ab->hw_params.m3_fw_support) { in ath11k_qmi_host_cap_send()
1737 req.cal_done = ab->qmi.cal_done; in ath11k_qmi_host_cap_send()
1739 if (ab->hw_params.internal_sleep_clock) { in ath11k_qmi_host_cap_send()
1753 if (ab->hw_params.global_reset) in ath11k_qmi_host_cap_send()
1758 ath11k_dbg(ab, ATH11K_DBG_QMI, "host cap request\n"); in ath11k_qmi_host_cap_send()
1760 ret = qmi_txn_init(&ab->qmi.handle, &txn, in ath11k_qmi_host_cap_send()
1765 ret = qmi_send_request(&ab->qmi.handle, NULL, &txn, in ath11k_qmi_host_cap_send()
1771 ath11k_warn(ab, "failed to send host capability request: %d\n", ret); in ath11k_qmi_host_cap_send()
[all …]
H A Dmhi.c154 void ath11k_mhi_set_mhictrl_reset(struct ath11k_base *ab) in ath11k_mhi_set_mhictrl_reset() argument
158 val = ath11k_pcic_read32(ab, MHISTATUS); in ath11k_mhi_set_mhictrl_reset()
160 ath11k_dbg(ab, ATH11K_DBG_PCI, "mhistatus 0x%x\n", val); in ath11k_mhi_set_mhictrl_reset()
165 ath11k_pcic_write32(ab, MHICTRL, MHICTRL_RESET_MASK); in ath11k_mhi_set_mhictrl_reset()
170 static void ath11k_mhi_reset_txvecdb(struct ath11k_base *ab) in ath11k_mhi_reset_txvecdb() argument
172 ath11k_pcic_write32(ab, PCIE_TXVECDB, 0); in ath11k_mhi_reset_txvecdb()
175 static void ath11k_mhi_reset_txvecstatus(struct ath11k_base *ab) in ath11k_mhi_reset_txvecstatus() argument
177 ath11k_pcic_write32(ab, PCIE_TXVECSTATUS, 0); in ath11k_mhi_reset_txvecstatus()
180 static void ath11k_mhi_reset_rxvecdb(struct ath11k_base *ab) in ath11k_mhi_reset_rxvecdb() argument
182 ath11k_pcic_write32(ab, PCIE_RXVECDB, 0); in ath11k_mhi_reset_rxvecdb()
[all …]
/linux/security/ipe/
H A Daudit.c69 static void audit_dmv_roothash(struct audit_buffer *ab, const void *rh) in audit_dmv_roothash() argument
71 audit_log_format(ab, "%s", audit_prop_names[IPE_PROP_DMV_ROOTHASH]); in audit_dmv_roothash()
72 ipe_digest_audit(ab, rh); in audit_dmv_roothash()
80 static void audit_fsv_digest(struct audit_buffer *ab, const void *d) in audit_fsv_digest() argument
82 audit_log_format(ab, "%s", audit_prop_names[IPE_PROP_FSV_DIGEST]); in audit_fsv_digest()
83 ipe_digest_audit(ab, d); in audit_fsv_digest()
91 static void audit_rule(struct audit_buffer *ab, const struct ipe_rule *r) in audit_rule() argument
95 audit_log_format(ab, " rule=\"op=%s ", audit_op_names[r->op]); in audit_rule()
100 audit_dmv_roothash(ab, ptr->value); in audit_rule()
103 audit_fsv_digest(ab, ptr->value); in audit_rule()
[all …]
/linux/include/linux/mfd/abx500/
H A Dab8500.h387 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 …]

123456789