Lines Matching +full:flags +full:- +full:mask

1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
16 u32 mask, u32 value) in snd_sof_pci_update_bits_unlocked() argument
18 struct pci_dev *pci = to_pci_dev(sdev->dev); in snd_sof_pci_update_bits_unlocked()
24 dev_dbg(sdev->dev, "Debug PCIR: %8.8x at %8.8x\n", old & mask, offset); in snd_sof_pci_update_bits_unlocked()
26 new = (old & ~mask) | (value & mask); in snd_sof_pci_update_bits_unlocked()
32 dev_dbg(sdev->dev, "Debug PCIW: %8.8x at %8.8x\n", value, in snd_sof_pci_update_bits_unlocked()
39 u32 mask, u32 value) in snd_sof_pci_update_bits() argument
41 unsigned long flags; in snd_sof_pci_update_bits() local
44 spin_lock_irqsave(&sdev->hw_lock, flags); in snd_sof_pci_update_bits()
45 change = snd_sof_pci_update_bits_unlocked(sdev, offset, mask, value); in snd_sof_pci_update_bits()
46 spin_unlock_irqrestore(&sdev->hw_lock, flags); in snd_sof_pci_update_bits()
52 u32 offset, u32 mask, u32 value) in snd_sof_dsp_update_bits_unlocked() argument
60 new = (old & ~mask) | (value & mask); in snd_sof_dsp_update_bits_unlocked()
72 u32 offset, u64 mask, u64 value) in snd_sof_dsp_update_bits64_unlocked() argument
78 new = (old & ~mask) | (value & mask); in snd_sof_dsp_update_bits64_unlocked()
91 u32 mask, u32 value) in snd_sof_dsp_update_bits() argument
93 unsigned long flags; in snd_sof_dsp_update_bits() local
96 spin_lock_irqsave(&sdev->hw_lock, flags); in snd_sof_dsp_update_bits()
97 change = snd_sof_dsp_update_bits_unlocked(sdev, bar, offset, mask, in snd_sof_dsp_update_bits()
99 spin_unlock_irqrestore(&sdev->hw_lock, flags); in snd_sof_dsp_update_bits()
105 u64 mask, u64 value) in snd_sof_dsp_update_bits64() argument
107 unsigned long flags; in snd_sof_dsp_update_bits64() local
110 spin_lock_irqsave(&sdev->hw_lock, flags); in snd_sof_dsp_update_bits64()
111 change = snd_sof_dsp_update_bits64_unlocked(sdev, bar, offset, mask, in snd_sof_dsp_update_bits64()
113 spin_unlock_irqrestore(&sdev->hw_lock, flags); in snd_sof_dsp_update_bits64()
120 u32 offset, u32 mask, u32 value) in snd_sof_dsp_update_bits_forced_unlocked() argument
128 new = (old & ~mask) | (value & mask); in snd_sof_dsp_update_bits_forced_unlocked()
135 u32 offset, u32 mask, u32 value) in snd_sof_dsp_update_bits_forced() argument
137 unsigned long flags; in snd_sof_dsp_update_bits_forced() local
139 spin_lock_irqsave(&sdev->hw_lock, flags); in snd_sof_dsp_update_bits_forced()
140 snd_sof_dsp_update_bits_forced_unlocked(sdev, bar, offset, mask, value); in snd_sof_dsp_update_bits_forced()
141 spin_unlock_irqrestore(&sdev->hw_lock, flags); in snd_sof_dsp_update_bits_forced()
146 * snd_sof_dsp_panic - handle a received DSP panic message
157 if (!sdev->dsp_oops_offset) in snd_sof_dsp_panic()
158 sdev->dsp_oops_offset = offset; in snd_sof_dsp_panic()
164 if (sdev->dsp_oops_offset != offset) in snd_sof_dsp_panic()
165 dev_warn(sdev->dev, in snd_sof_dsp_panic()
167 __func__, sdev->dsp_oops_offset, offset); in snd_sof_dsp_panic()
175 sdev->dbg_dump_printed = false; in snd_sof_dsp_panic()