Lines Matching full:bar
195 * snd_sof_dsp_get_bar_index - Maps a section type with a BAR index
200 * Returns the corresponding BAR index (a positive integer) or -EINVAL
317 static inline void snd_sof_dsp_write8(struct snd_sof_dev *sdev, u32 bar, in snd_sof_dsp_write8() argument
321 sof_ops(sdev)->write8(sdev, sdev->bar[bar] + offset, value); in snd_sof_dsp_write8()
323 writeb(value, sdev->bar[bar] + offset); in snd_sof_dsp_write8()
326 static inline void snd_sof_dsp_write(struct snd_sof_dev *sdev, u32 bar, in snd_sof_dsp_write() argument
330 sof_ops(sdev)->write(sdev, sdev->bar[bar] + offset, value); in snd_sof_dsp_write()
332 writel(value, sdev->bar[bar] + offset); in snd_sof_dsp_write()
335 static inline void snd_sof_dsp_write64(struct snd_sof_dev *sdev, u32 bar, in snd_sof_dsp_write64() argument
339 sof_ops(sdev)->write64(sdev, sdev->bar[bar] + offset, value); in snd_sof_dsp_write64()
341 writeq(value, sdev->bar[bar] + offset); in snd_sof_dsp_write64()
344 static inline u8 snd_sof_dsp_read8(struct snd_sof_dev *sdev, u32 bar, in snd_sof_dsp_read8() argument
348 return sof_ops(sdev)->read8(sdev, sdev->bar[bar] + offset); in snd_sof_dsp_read8()
350 return readb(sdev->bar[bar] + offset); in snd_sof_dsp_read8()
353 static inline u32 snd_sof_dsp_read(struct snd_sof_dev *sdev, u32 bar, in snd_sof_dsp_read() argument
357 return sof_ops(sdev)->read(sdev, sdev->bar[bar] + offset); in snd_sof_dsp_read()
359 return readl(sdev->bar[bar] + offset); in snd_sof_dsp_read()
362 static inline u64 snd_sof_dsp_read64(struct snd_sof_dev *sdev, u32 bar, in snd_sof_dsp_read64() argument
366 return sof_ops(sdev)->read64(sdev, sdev->bar[bar] + offset); in snd_sof_dsp_read64()
368 return readq(sdev->bar[bar] + offset); in snd_sof_dsp_read64()
371 static inline void snd_sof_dsp_update8(struct snd_sof_dev *sdev, u32 bar, in snd_sof_dsp_update8() argument
376 reg = snd_sof_dsp_read8(sdev, bar, offset); in snd_sof_dsp_update8()
379 snd_sof_dsp_write8(sdev, bar, offset, reg); in snd_sof_dsp_update8()
611 #define snd_sof_dsp_read_poll_timeout(sdev, bar, offset, val, cond, sleep_us, timeout_us) \ argument
618 (val) = snd_sof_dsp_read(sdev, bar, offset); \
627 (val) = snd_sof_dsp_read(sdev, bar, offset); \
643 bool snd_sof_dsp_update_bits_unlocked(struct snd_sof_dev *sdev, u32 bar,
646 bool snd_sof_dsp_update_bits64_unlocked(struct snd_sof_dev *sdev, u32 bar,
649 bool snd_sof_dsp_update_bits(struct snd_sof_dev *sdev, u32 bar, u32 offset,
652 bool snd_sof_dsp_update_bits64(struct snd_sof_dev *sdev, u32 bar,
655 void snd_sof_dsp_update_bits_forced(struct snd_sof_dev *sdev, u32 bar,
658 int snd_sof_dsp_register_poll(struct snd_sof_dev *sdev, u32 bar, u32 offset,