Home
last modified time | relevance | path

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

/linux-4.1.27/sound/pci/hda/
Dhda_controller.c55 static void azx_stream_start(struct azx *chip, struct azx_dev *azx_dev) in azx_stream_start() argument
60 azx_dev->insufficient = 1; in azx_stream_start()
64 azx_readl(chip, INTCTL) | (1 << azx_dev->index)); in azx_stream_start()
66 azx_sd_writeb(chip, azx_dev, SD_CTL, in azx_stream_start()
67 azx_sd_readb(chip, azx_dev, SD_CTL) | in azx_stream_start()
72 static void azx_stream_clear(struct azx *chip, struct azx_dev *azx_dev) in azx_stream_clear() argument
74 azx_sd_writeb(chip, azx_dev, SD_CTL, in azx_stream_clear()
75 azx_sd_readb(chip, azx_dev, SD_CTL) & in azx_stream_clear()
77 azx_sd_writeb(chip, azx_dev, SD_STS, SD_INT_MASK); /* to be sure */ in azx_stream_clear()
81 void azx_stream_stop(struct azx *chip, struct azx_dev *azx_dev) in azx_stream_stop() argument
[all …]
Dhda_controller.h189 struct azx_dev { struct
279 int (*position_check)(struct azx *chip, struct azx_dev *azx_dev);
290 typedef unsigned int (*azx_get_pos_callback_t)(struct azx *, struct azx_dev *);
291 typedef int (*azx_get_delay_callback_t)(struct azx *, struct azx_dev *, unsigned int pos);
325 struct azx_dev *azx_dev; member
366 struct azx_dev saved_azx_dev;
410 static inline struct azx_dev *get_azx_dev(struct snd_pcm_substream *substream) in get_azx_dev()
414 unsigned int azx_get_position(struct azx *chip, struct azx_dev *azx_dev);
415 unsigned int azx_get_pos_lpib(struct azx *chip, struct azx_dev *azx_dev);
416 unsigned int azx_get_pos_posbuf(struct azx *chip, struct azx_dev *azx_dev);
[all …]
Dhda_intel.c407 static inline void mark_runtime_wc(struct azx *chip, struct azx_dev *azx_dev, in mark_runtime_wc() argument
410 if (azx_dev->wc_marked != on) { in mark_runtime_wc()
412 azx_dev->wc_marked = on; in mark_runtime_wc()
421 static inline void mark_runtime_wc(struct azx *chip, struct azx_dev *azx_dev, in mark_runtime_wc() argument
505 static int azx_get_delay_from_lpib(struct azx *chip, struct azx_dev *azx_dev, in azx_get_delay_from_lpib() argument
508 struct snd_pcm_substream *substream = azx_dev->substream; in azx_get_delay_from_lpib()
510 unsigned int lpib_pos = azx_get_pos_lpib(chip, azx_dev); in azx_get_delay_from_lpib()
518 if (delay >= azx_dev->delay_negative_threshold) in azx_get_delay_from_lpib()
521 delay += azx_dev->bufsize; in azx_get_delay_from_lpib()
524 if (delay >= azx_dev->period_bytes) { in azx_get_delay_from_lpib()
[all …]
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.c105 struct azx_dev *azx_dev = get_azx_dev(substream); in substream_alloc_pages() local
107 azx_dev->bufsize = 0; in substream_alloc_pages()
108 azx_dev->period_bytes = 0; in substream_alloc_pages()
109 azx_dev->format_val = 0; in substream_alloc_pages()
295 azx_stream_stop(chip, &chip->azx_dev[i]); in hda_tegra_dev_free()
377 chip->azx_dev = devm_kcalloc(card->dev, chip->num_streams, in hda_tegra_first_init()
378 sizeof(*chip->azx_dev), GFP_KERNEL); in hda_tegra_first_init()
379 if (!chip->azx_dev) in hda_tegra_first_init()