Lines Matching refs:stream_ind
160 static void hda_stream_reset(struct hda_softc *sc, uint8_t stream_ind);
161 static int hda_stream_start(struct hda_softc *sc, uint8_t stream_ind);
162 static int hda_stream_stop(struct hda_softc *sc, uint8_t stream_ind);
179 static inline uint32_t hda_get_offset_stream(uint8_t stream_ind);
203 static void hda_set_pib(struct hda_softc *sc, uint8_t stream_ind, uint32_t pib);
575 hda_stream_reset(struct hda_softc *sc, uint8_t stream_ind) in hda_stream_reset() argument
577 struct hda_stream_desc *st = &sc->streams[stream_ind]; in hda_stream_reset()
578 uint32_t off = hda_get_offset_stream(stream_ind); in hda_stream_reset()
580 DPRINTF("Reset the HDA stream: 0x%x", stream_ind); in hda_stream_reset()
595 hda_stream_start(struct hda_softc *sc, uint8_t stream_ind) in hda_stream_start() argument
597 struct hda_stream_desc *st = &sc->streams[stream_ind]; in hda_stream_start()
611 uint32_t off = hda_get_offset_stream(stream_ind); in hda_stream_start()
634 stream_ind, bdl_cnt, bdl_paddr); in hda_stream_start()
663 dir = stream_ind >= HDA_ISS_NO; in hda_stream_start()
667 sc->stream_map[dir][strm] = stream_ind; in hda_stream_start()
673 hda_set_pib(sc, stream_ind, 0); in hda_stream_start()
683 hda_stream_stop(struct hda_softc *sc, uint8_t stream_ind) in hda_stream_stop() argument
685 struct hda_stream_desc *st = &sc->streams[stream_ind]; in hda_stream_stop()
689 DPRINTF("stream: 0x%x, strm: 0x%x, dir: 0x%x", stream_ind, strm, dir); in hda_stream_stop()
885 uint8_t stream_ind = (offset - reg_offset) >> 5; in hda_get_stream_by_offsets() local
887 assert(stream_ind < HDA_IOSS_NO); in hda_get_stream_by_offsets()
889 return (stream_ind); in hda_get_stream_by_offsets()
893 hda_get_offset_stream(uint8_t stream_ind) in hda_get_offset_stream() argument
895 return (stream_ind << 5); in hda_get_offset_stream()
1012 uint8_t stream_ind = hda_get_stream_by_offsets(offset, HDAC_SDCTL0); in hda_set_sdctl() local
1017 stream_ind, old, value); in hda_set_sdctl()
1020 hda_stream_reset(sc, stream_ind); in hda_set_sdctl()
1025 err = hda_stream_start(sc, stream_ind); in hda_set_sdctl()
1028 err = hda_stream_stop(sc, stream_ind); in hda_set_sdctl()
1122 uint8_t stream_ind = 0; in hda_transfer() local
1141 stream_ind = sc->stream_map[dir][stream]; in hda_transfer()
1144 assert(stream_ind < HDA_ISS_NO); in hda_transfer()
1146 assert(stream_ind >= HDA_ISS_NO && stream_ind < HDA_IOSS_NO); in hda_transfer()
1148 st = &sc->streams[stream_ind]; in hda_transfer()
1156 off = hda_get_offset_stream(stream_ind); in hda_transfer()
1194 hda_set_pib(sc, stream_ind, lpib); in hda_transfer()
1206 hda_set_pib(struct hda_softc *sc, uint8_t stream_ind, uint32_t pib) in hda_set_pib() argument
1208 uint32_t off = hda_get_offset_stream(stream_ind); in hda_set_pib()
1214 *(uint32_t *)((uint8_t *)sc->dma_pib_vaddr + stream_ind * in hda_set_pib()