Home
last modified time | relevance | path

Searched refs:azx_dev (Results 1 – 6 of 6) sorted by relevance

/sound/pci/hda/
Dhda_controller.c57 static void azx_stream_start(struct azx *chip, struct azx_dev *azx_dev) in azx_stream_start() argument
62 azx_dev->insufficient = 1; in azx_stream_start()
66 azx_readl(chip, INTCTL) | (1 << azx_dev->index)); in azx_stream_start()
68 azx_sd_writeb(chip, azx_dev, SD_CTL, in azx_stream_start()
69 azx_sd_readb(chip, azx_dev, SD_CTL) | in azx_stream_start()
74 static void azx_stream_clear(struct azx *chip, struct azx_dev *azx_dev) in azx_stream_clear() argument
76 azx_sd_writeb(chip, azx_dev, SD_CTL, in azx_stream_clear()
77 azx_sd_readb(chip, azx_dev, SD_CTL) & in azx_stream_clear()
79 azx_sd_writeb(chip, azx_dev, SD_STS, SD_INT_MASK); /* to be sure */ in azx_stream_clear()
83 void azx_stream_stop(struct azx *chip, struct azx_dev *azx_dev) in azx_stream_stop() argument
[all …]
Dhda_controller.h24 static inline struct azx_dev *get_azx_dev(struct snd_pcm_substream *substream) in get_azx_dev()
28 unsigned int azx_get_position(struct azx *chip, struct azx_dev *azx_dev);
29 unsigned int azx_get_pos_lpib(struct azx *chip, struct azx_dev *azx_dev);
30 unsigned int azx_get_pos_posbuf(struct azx *chip, struct azx_dev *azx_dev);
33 void azx_stream_stop(struct azx *chip, struct azx_dev *azx_dev);
Dhda_intel.c410 static inline void mark_runtime_wc(struct azx *chip, struct azx_dev *azx_dev, in mark_runtime_wc() argument
413 if (azx_dev->wc_marked != on) { in mark_runtime_wc()
415 azx_dev->wc_marked = on; in mark_runtime_wc()
424 static inline void mark_runtime_wc(struct azx *chip, struct azx_dev *azx_dev, in mark_runtime_wc() argument
508 static int azx_get_delay_from_lpib(struct azx *chip, struct azx_dev *azx_dev, in azx_get_delay_from_lpib() argument
511 struct snd_pcm_substream *substream = azx_dev->substream; in azx_get_delay_from_lpib()
513 unsigned int lpib_pos = azx_get_pos_lpib(chip, azx_dev); in azx_get_delay_from_lpib()
521 if (delay >= azx_dev->delay_negative_threshold) in azx_get_delay_from_lpib()
524 delay += azx_dev->bufsize; in azx_get_delay_from_lpib()
527 if (delay >= azx_dev->period_bytes) { in azx_get_delay_from_lpib()
[all …]
Dhda_priv.h185 struct azx_dev { struct
275 int (*position_check)(struct azx *chip, struct azx_dev *azx_dev);
286 typedef unsigned int (*azx_get_pos_callback_t)(struct azx *, struct azx_dev *);
287 typedef int (*azx_get_delay_callback_t)(struct azx *, struct azx_dev *, unsigned int pos);
321 struct azx_dev *azx_dev; member
365 struct azx_dev saved_azx_dev;
Dhda_intel_trace.h11 struct azx_dev;
15 TP_PROTO(struct azx *chip, struct azx_dev *dev, int cmd),
36 TP_PROTO(struct azx *chip, struct azx_dev *dev, unsigned int pos, unsigned int delay),
Dhda_tegra.c106 struct azx_dev *azx_dev = get_azx_dev(substream); in substream_alloc_pages() local
108 azx_dev->bufsize = 0; in substream_alloc_pages()
109 azx_dev->period_bytes = 0; in substream_alloc_pages()
110 azx_dev->format_val = 0; in substream_alloc_pages()
304 azx_stream_stop(chip, &chip->azx_dev[i]); in hda_tegra_dev_free()
397 chip->azx_dev = devm_kcalloc(card->dev, chip->num_streams, in hda_tegra_first_init()
398 sizeof(*chip->azx_dev), GFP_KERNEL); in hda_tegra_first_init()
399 if (!chip->azx_dev) in hda_tegra_first_init()