Lines Matching refs:cnt
84 int i, cnt = 0;
86 for (i = 0; i < nis && cnt < HDAUDIO_MAX_STREAMS; i++) {
87 sc->sc_stream[cnt].st_host = sc;
88 sc->sc_stream[cnt].st_enable = true;
89 sc->sc_stream[cnt].st_shift = cnt;
90 sc->sc_stream[cnt++].st_type = HDAUDIO_STREAM_ISS;
92 for (i = 0; i < nos && cnt < HDAUDIO_MAX_STREAMS; i++) {
93 sc->sc_stream[cnt].st_host = sc;
94 sc->sc_stream[cnt].st_enable = true;
95 sc->sc_stream[cnt].st_shift = cnt;
96 sc->sc_stream[cnt++].st_type = HDAUDIO_STREAM_OSS;
98 for (i = 0; i < nbidir && cnt < HDAUDIO_MAX_STREAMS; i++) {
99 sc->sc_stream[cnt].st_host = sc;
100 sc->sc_stream[cnt].st_enable = true;
101 sc->sc_stream[cnt].st_shift = cnt;
102 sc->sc_stream[cnt++].st_type = HDAUDIO_STREAM_BSS;
105 for (i = 0; i < cnt; i++)
1207 int cnt, snum = st->st_shift;
1221 for (cnt = 0; cnt < HDAUDIO_BDL_MAX; cnt++) {
1222 bdl[cnt].address_lo = (uint32_t)dmaaddr;
1223 bdl[cnt].address_hi = dmaaddr >> 32;
1224 bdl[cnt].length = blksize;
1225 bdl[cnt].flags = HDAUDIO_BDL_ENTRY_IOC;
1228 cnt++;
1239 hda_write2(sc, HDAUDIO_SD_LVI(snum), (cnt - 1) & 0xff);