Home
last modified time | relevance | path

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

1234567

/linux-6.1.9/drivers/usb/phy/
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-6.1.9/drivers/net/wireless/ath/ath11k/
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 …]
Dcore.c603 static inline struct ath11k_pdev *ath11k_core_get_single_pdev(struct ath11k_base *ab) in ath11k_core_get_single_pdev() argument
605 WARN_ON(!ab->hw_params.single_pdev_only); in ath11k_core_get_single_pdev()
607 return &ab->pdevs[0]; in ath11k_core_get_single_pdev()
656 int ath11k_core_suspend(struct ath11k_base *ab) in ath11k_core_suspend() argument
662 if (!ab->hw_params.supports_suspend) in ath11k_core_suspend()
668 pdev = ath11k_core_get_single_pdev(ab); in ath11k_core_suspend()
673 ret = ath11k_dp_rx_pktlog_stop(ab, true); in ath11k_core_suspend()
675 ath11k_warn(ab, "failed to stop dp rx (and timer) pktlog during suspend: %d\n", in ath11k_core_suspend()
682 ath11k_warn(ab, "failed to wait tx complete: %d\n", ret); in ath11k_core_suspend()
686 ret = ath11k_wow_enable(ab); in ath11k_core_suspend()
[all …]
Dpci.c39 static int ath11k_pci_bus_wake_up(struct ath11k_base *ab) in ath11k_pci_bus_wake_up() argument
41 struct ath11k_pci *ab_pci = ath11k_pci_priv(ab); in ath11k_pci_bus_wake_up()
46 static void ath11k_pci_bus_release(struct ath11k_base *ab) in ath11k_pci_bus_release() argument
48 struct ath11k_pci *ab_pci = ath11k_pci_priv(ab); in ath11k_pci_bus_release()
53 static u32 ath11k_pci_get_window_start(struct ath11k_base *ab, u32 offset) in ath11k_pci_get_window_start() argument
55 if (!ab->hw_params.static_window_map) in ath11k_pci_get_window_start()
61 else if ((offset ^ HAL_SEQ_WCSS_UMAC_CE0_SRC_REG(ab)) < in ath11k_pci_get_window_start()
71 struct ath11k_base *ab = ab_pci->ab; in ath11k_pci_select_window() local
79 ab->mem + ATH11K_PCI_WINDOW_REG_ADDRESS); in ath11k_pci_select_window()
80 ioread32(ab->mem + ATH11K_PCI_WINDOW_REG_ADDRESS); in ath11k_pci_select_window()
[all …]
Dahb.c140 ath11k_ahb_get_msi_irq_wcn6750(struct ath11k_base *ab, unsigned int vector) in ath11k_ahb_get_msi_irq_wcn6750() argument
142 return ab->pci.msi.irqs[vector]; in ath11k_ahb_get_msi_irq_wcn6750()
146 ath11k_ahb_get_window_start_wcn6750(struct ath11k_base *ab, u32 offset) in ath11k_ahb_get_window_start_wcn6750() argument
154 else if ((offset ^ HAL_SEQ_WCSS_UMAC_CE0_SRC_REG(ab)) < in ath11k_ahb_get_window_start_wcn6750()
162 ath11k_ahb_window_write32_wcn6750(struct ath11k_base *ab, u32 offset, u32 value) in ath11k_ahb_window_write32_wcn6750() argument
167 window_start = ath11k_ahb_get_window_start_wcn6750(ab, offset); in ath11k_ahb_window_write32_wcn6750()
169 iowrite32(value, ab->mem + window_start + in ath11k_ahb_window_write32_wcn6750()
173 static u32 ath11k_ahb_window_read32_wcn6750(struct ath11k_base *ab, u32 offset) in ath11k_ahb_window_read32_wcn6750() argument
179 window_start = ath11k_ahb_get_window_start_wcn6750(ab, offset); in ath11k_ahb_window_read32_wcn6750()
181 val = ioread32(ab->mem + window_start + in ath11k_ahb_window_read32_wcn6750()
[all …]
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 …]
Dpcic.c120 int ath11k_pcic_init_msi_config(struct ath11k_base *ab) in ath11k_pcic_init_msi_config() argument
128 if (msi_config->hw_rev == ab->hw_rev) in ath11k_pcic_init_msi_config()
133 ath11k_err(ab, "failed to fetch msi config, unsupported hw version: 0x%x\n", in ath11k_pcic_init_msi_config()
134 ab->hw_rev); in ath11k_pcic_init_msi_config()
138 ab->pci.msi.config = msi_config; in ath11k_pcic_init_msi_config()
143 static void __ath11k_pcic_write32(struct ath11k_base *ab, u32 offset, u32 value) in __ath11k_pcic_write32() argument
146 iowrite32(value, ab->mem + offset); in __ath11k_pcic_write32()
148 ab->pci.ops->window_write32(ab, offset, value); in __ath11k_pcic_write32()
151 void ath11k_pcic_write32(struct ath11k_base *ab, u32 offset, u32 value) in ath11k_pcic_write32() argument
159 wakeup_required = test_bit(ATH11K_FLAG_DEVICE_INIT_DONE, &ab->dev_flags) && in ath11k_pcic_write32()
[all …]
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()
40 spin_unlock_bh(&ab->base_lock); in ath11k_dp_peer_cleanup()
45 struct ath11k_base *ab = ar->ab; in ath11k_dp_peer_setup() local
57 ath11k_warn(ab, "failed to set default routing %d peer :%pM vdev_id :%d\n", in ath11k_dp_peer_setup()
66 ath11k_warn(ab, "failed to setup rxd tid queue for tid %d: %d\n", in ath11k_dp_peer_setup()
[all …]
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 …]
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 …]
Dhif.h14 int (*read)(struct ath11k_base *ab, void *buf, u32 start, u32 end);
21 int (*suspend)(struct ath11k_base *ab);
22 int (*resume)(struct ath11k_base *ab);
25 int (*get_user_msi_vector)(struct ath11k_base *ab, char *user_name,
28 void (*get_msi_address)(struct ath11k_base *ab, u32 *msi_addr_lo,
30 void (*ce_irq_enable)(struct ath11k_base *ab);
31 void (*ce_irq_disable)(struct ath11k_base *ab);
32 void (*get_ce_msi_idx)(struct ath11k_base *ab, u32 ce_id, u32 *msi_idx);
35 static inline void ath11k_hif_ce_irq_enable(struct ath11k_base *ab) in ath11k_hif_ce_irq_enable() argument
37 if (ab->hif.ops->ce_irq_enable) in ath11k_hif_ce_irq_enable()
[all …]
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, "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 …]
Dtrace.h42 __string(device, dev_name(ar->ab->dev))
43 __string(driver, dev_driver_string(ar->ab->dev))
50 __assign_str(device, dev_name(ar->ab->dev));
51 __assign_str(driver, dev_driver_string(ar->ab->dev));
72 __string(device, dev_name(ar->ab->dev))
73 __string(driver, dev_driver_string(ar->ab->dev))
79 __assign_str(device, dev_name(ar->ab->dev));
80 __assign_str(driver, dev_driver_string(ar->ab->dev));
99 __string(device, dev_name(ar->ab->dev))
100 __string(driver, dev_driver_string(ar->ab->dev))
[all …]
Dmhi.c208 void ath11k_mhi_set_mhictrl_reset(struct ath11k_base *ab) in ath11k_mhi_set_mhictrl_reset() argument
212 val = ath11k_pcic_read32(ab, MHISTATUS); in ath11k_mhi_set_mhictrl_reset()
214 ath11k_dbg(ab, ATH11K_DBG_PCI, "MHISTATUS 0x%x\n", val); in ath11k_mhi_set_mhictrl_reset()
220 ath11k_pcic_write32(ab, MHICTRL, MHICTRL_RESET_MASK); in ath11k_mhi_set_mhictrl_reset()
225 static void ath11k_mhi_reset_txvecdb(struct ath11k_base *ab) in ath11k_mhi_reset_txvecdb() argument
227 ath11k_pcic_write32(ab, PCIE_TXVECDB, 0); in ath11k_mhi_reset_txvecdb()
230 static void ath11k_mhi_reset_txvecstatus(struct ath11k_base *ab) in ath11k_mhi_reset_txvecstatus() argument
232 ath11k_pcic_write32(ab, PCIE_TXVECSTATUS, 0); in ath11k_mhi_reset_txvecstatus()
235 static void ath11k_mhi_reset_rxvecdb(struct ath11k_base *ab) in ath11k_mhi_reset_rxvecdb() argument
237 ath11k_pcic_write32(ab, PCIE_RXVECDB, 0); in ath11k_mhi_reset_rxvecdb()
[all …]
Ddp_rx.c24 u8 *ath11k_dp_rx_h_80211_hdr(struct ath11k_base *ab, struct hal_rx_desc *desc) in ath11k_dp_rx_h_80211_hdr() argument
26 return ab->hw_params.hw_ops->rx_desc_get_hdr_status(desc); in ath11k_dp_rx_h_80211_hdr()
30 enum hal_encrypt_type ath11k_dp_rx_h_mpdu_start_enctype(struct ath11k_base *ab, in ath11k_dp_rx_h_mpdu_start_enctype() argument
33 if (!ab->hw_params.hw_ops->rx_desc_encrypt_valid(desc)) in ath11k_dp_rx_h_mpdu_start_enctype()
36 return ab->hw_params.hw_ops->rx_desc_get_encrypt_type(desc); in ath11k_dp_rx_h_mpdu_start_enctype()
39 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
42 return ab->hw_params.hw_ops->rx_desc_get_decap_type(desc); in ath11k_dp_rx_h_msdu_start_decap_type()
46 bool ath11k_dp_rx_h_msdu_start_ldpc_support(struct ath11k_base *ab, in ath11k_dp_rx_h_msdu_start_ldpc_support() argument
49 return ab->hw_params.hw_ops->rx_desc_get_ldpc_support(desc); in ath11k_dp_rx_h_msdu_start_ldpc_support()
53 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 …]
Dpcic.h29 int ath11k_pcic_get_user_msi_assignment(struct ath11k_base *ab, char *user_name,
32 void ath11k_pcic_write32(struct ath11k_base *ab, u32 offset, u32 value);
33 u32 ath11k_pcic_read32(struct ath11k_base *ab, u32 offset);
34 void ath11k_pcic_get_msi_address(struct ath11k_base *ab, u32 *msi_addr_lo,
36 void ath11k_pcic_get_ce_msi_idx(struct ath11k_base *ab, u32 ce_id, u32 *msi_idx);
37 void ath11k_pcic_free_irq(struct ath11k_base *ab);
38 int ath11k_pcic_config_irq(struct ath11k_base *ab);
39 void ath11k_pcic_ext_irq_enable(struct ath11k_base *ab);
40 void ath11k_pcic_ext_irq_disable(struct ath11k_base *ab);
41 void ath11k_pcic_stop(struct ath11k_base *ab);
[all …]
Dhtc.c11 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
84 bool credit_flow_enabled = (ab->hw_params.credit_flow && in ath11k_htc_send()
88 ath11k_warn(ab, "Invalid endpoint id: %d\n", eid); in ath11k_htc_send()
98 ath11k_dbg(ab, ATH11K_DBG_HTC, in ath11k_htc_send()
[all …]
Ddp_tx.c19 struct ath11k_base *ab = arvif->ar->ab; in ath11k_dp_tx_get_encap_type() local
21 if (test_bit(ATH11K_FLAG_RAW_MODE, &ab->dev_flags)) in ath11k_dp_tx_get_encap_type()
85 struct ath11k_base *ab = ar->ab; in ath11k_dp_tx() local
86 struct ath11k_dp *dp = &ab->dp; in ath11k_dp_tx()
101 if (unlikely(test_bit(ATH11K_FLAG_CRASH_FLUSH, &ar->ab->dev_flags))) in ath11k_dp_tx()
110 ring_selector = ab->hw_params.hw_ops->get_ring_selector(skb); in ath11k_dp_tx()
115 ti.ring_id = ring_selector % ab->hw_params.max_tx_ring; in ath11k_dp_tx()
116 ti.rbm_id = ab->hw_params.hal_params->tcl2wbm_rbm_map[ti.ring_id].rbm_id; in ath11k_dp_tx()
128 if (ring_map == (BIT(ab->hw_params.max_tx_ring) - 1) || in ath11k_dp_tx()
129 !ab->hw_params.tcl_ring_retry) { in ath11k_dp_tx()
[all …]
Dwmi.c165 ath11k_wmi_tlv_iter(struct ath11k_base *ab, const void *ptr, size_t len, in ath11k_wmi_tlv_iter() argument
166 int (*iter)(struct ath11k_base *ab, u16 tag, u16 len, in ath11k_wmi_tlv_iter() argument
177 ath11k_err(ab, "wmi tlv parse failure at byte %zd (%zu bytes left, %zu expected)\n", in ath11k_wmi_tlv_iter()
189 ath11k_err(ab, "wmi tlv parse failure of tag %u at byte %zd (%zu bytes left, %u expected)\n", in ath11k_wmi_tlv_iter()
197 …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()
203 ret = iter(ab, tlv_tag, tlv_len, ptr, data); in ath11k_wmi_tlv_iter()
214 static int ath11k_wmi_tlv_iter_parse(struct ath11k_base *ab, u16 tag, u16 len, in ath11k_wmi_tlv_iter_parse() argument
233 ath11k_wmi_tlv_parse_alloc(struct ath11k_base *ab, const void *ptr, in ath11k_wmi_tlv_parse_alloc() argument
243 ret = ath11k_wmi_tlv_parse(ab, tb, ptr, len); in ath11k_wmi_tlv_parse_alloc()
256 struct ath11k_base *ab = wmi->wmi_ab->ab; in ath11k_wmi_cmd_send_nowait() local
[all …]
Ddbring.c43 struct ath11k_base *ab = ar->ab; in ath11k_dbring_bufs_replenish() local
51 srng = &ab->hal.srng_list[ring->refill_srng.ring_id]; in ath11k_dbring_bufs_replenish()
55 ath11k_hal_srng_access_begin(ab, srng); in ath11k_dbring_bufs_replenish()
60 paddr = dma_map_single(ab->dev, ptr_aligned, ring->buf_sz, in ath11k_dbring_bufs_replenish()
63 ret = dma_mapping_error(ab->dev, paddr); in ath11k_dbring_bufs_replenish()
75 desc = ath11k_hal_srng_src_get_next_entry(ab, srng); in ath11k_dbring_bufs_replenish()
89 ath11k_hal_srng_access_end(ab, srng); in ath11k_dbring_bufs_replenish()
98 dma_unmap_single(ab->dev, paddr, ring->buf_sz, in ath11k_dbring_bufs_replenish()
101 ath11k_hal_srng_access_end(ab, srng); in ath11k_dbring_bufs_replenish()
115 srng = &ar->ab->hal.srng_list[ring->refill_srng.ring_id]; in ath11k_dbring_fill_bufs()
[all …]
/linux-6.1.9/include/linux/mfd/abx500/
Dab8500.h391 static inline int is_ab8500(struct ab8500 *ab) in is_ab8500() argument
393 return ab->version == AB8500_VERSION_AB8500; in is_ab8500()
396 static inline int is_ab8505(struct ab8500 *ab) in is_ab8505() argument
398 return ab->version == AB8500_VERSION_AB8505; in is_ab8505()
401 static inline int is_ab9540(struct ab8500 *ab) in is_ab9540() argument
403 return ab->version == AB8500_VERSION_AB9540; in is_ab9540()
406 static inline int is_ab8540(struct ab8500 *ab) in is_ab8540() argument
408 return ab->version == AB8500_VERSION_AB8540; in is_ab8540()
412 static inline int is_ab8500_1p0_or_earlier(struct ab8500 *ab) in is_ab8500_1p0_or_earlier() argument
414 return (is_ab8500(ab) && (ab->chip_id <= AB8500_CUT1P0)); in is_ab8500_1p0_or_earlier()
[all …]
/linux-6.1.9/security/
Dlsm_audit.c172 static inline void print_ipv6_addr(struct audit_buffer *ab, in print_ipv6_addr() argument
177 audit_log_format(ab, " %s=%pI6c", name1, addr); in print_ipv6_addr()
179 audit_log_format(ab, " %s=%d", name2, ntohs(port)); in print_ipv6_addr()
182 static inline void print_ipv4_addr(struct audit_buffer *ab, __be32 addr, in print_ipv4_addr() argument
186 audit_log_format(ab, " %s=%pI4", name1, &addr); in print_ipv4_addr()
188 audit_log_format(ab, " %s=%d", name2, ntohs(port)); in print_ipv4_addr()
196 static void dump_common_audit_data(struct audit_buffer *ab, in dump_common_audit_data() argument
208 audit_log_format(ab, " pid=%d comm=", task_tgid_nr(current)); in dump_common_audit_data()
209 audit_log_untrustedstring(ab, memcpy(comm, current->comm, sizeof(comm))); in dump_common_audit_data()
215 audit_log_format(ab, " ipc_key=%d ", a->u.ipc_id); in dump_common_audit_data()
[all …]
/linux-6.1.9/drivers/md/
Ddm-audit.c23 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-6.1.9/kernel/
Daudit.c387 struct audit_buffer *ab; in audit_log_config_change() local
390 ab = audit_log_start(audit_context(), GFP_KERNEL, AUDIT_CONFIG_CHANGE); in audit_log_config_change()
391 if (unlikely(!ab)) in audit_log_config_change()
393 audit_log_format(ab, "op=set %s=%u old=%u ", function_name, new, old); in audit_log_config_change()
394 audit_log_session_info(ab); in audit_log_config_change()
395 rc = audit_log_task_context(ab); in audit_log_config_change()
398 audit_log_format(ab, " res=%d", allow_changes); in audit_log_config_change()
399 audit_log_end(ab); in audit_log_config_change()
1077 struct audit_buffer **ab, u16 msg_type) in audit_log_common_recv_msg() argument
1083 *ab = NULL; in audit_log_common_recv_msg()
[all …]
/linux-6.1.9/security/integrity/
Dintegrity_audit.c41 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, " dev="); in integrity_audit_message()
[all …]

1234567