Lines Matching refs:cnt
444 enum hdaudio_pindir dir, int index, int cnt)
463 if (found == cnt || cnt <= 0)
1119 int i, j, cnt, maxassocs, type, assoc, seq, first, hpredir;
1156 cnt = 0;
1157 for (j = 1; j < HDAUDIO_MAXPINS && cnt < maxassocs; j++) {
1170 KASSERT(cnt < maxassocs);
1186 if (as[cnt].as_pincnt == 0) {
1187 as[cnt].as_enable = true;
1188 as[cnt].as_activated = true;
1189 as[cnt].as_index = j;
1190 as[cnt].as_dir = dir;
1195 if (as[cnt].as_pins[seq] != 0) {
1197 as[cnt].as_enable = false;
1199 if (dir != as[cnt].as_dir) {
1203 as[cnt].as_enable = false;
1206 as[cnt].as_digital = HDAFG_AS_ANALOG;
1208 as[cnt].as_displaydev = true;
1210 as[cnt].as_digital = HDAFG_AS_HDMI;
1212 as[cnt].as_digital = HDAFG_AS_DISPLAYPORT;
1216 as[cnt].as_pins[seq] = w->w_nid;
1217 as[cnt].as_pincnt++;
1219 cnt++;
1221 if (j != 15 && cnt < maxassocs && as[cnt].as_pincnt > 0) {
1222 if (hpredir && as[cnt].as_pincnt > 1)
1223 as[cnt].as_hpredir = first;
1224 cnt++;
1237 int i, j, cnt, maxctls, ocap, icap;
1272 cnt = 0;
1273 for (i = sc->sc_startnode; cnt < maxctls && i < sc->sc_endnode; i++) {
1281 cnt, w->w_nid);
1286 ctl[cnt].ctl_enable = true;
1287 ctl[cnt].ctl_widget = w;
1288 ctl[cnt].ctl_mute = mute;
1289 ctl[cnt].ctl_step = step;
1290 ctl[cnt].ctl_size = size;
1291 ctl[cnt].ctl_offset = offset;
1292 ctl[cnt].ctl_left = offset;
1293 ctl[cnt].ctl_right = offset;
1296 ctl[cnt].ctl_ndir = HDAUDIO_PINDIR_IN;
1298 ctl[cnt].ctl_ndir = HDAUDIO_PINDIR_OUT;
1299 ctl[cnt++].ctl_dir = HDAUDIO_PINDIR_OUT;
1310 if (cnt >= maxctls)
1317 "%d:%02X:%02X\n", cnt, w->w_nid,
1319 ctl[cnt].ctl_enable = true;
1320 ctl[cnt].ctl_widget = w;
1321 ctl[cnt].ctl_childwidget = cw;
1322 ctl[cnt].ctl_index = j;
1323 ctl[cnt].ctl_mute = mute;
1324 ctl[cnt].ctl_step = step;
1325 ctl[cnt].ctl_size = size;
1326 ctl[cnt].ctl_offset = offset;
1327 ctl[cnt].ctl_left = offset;
1328 ctl[cnt].ctl_right = offset;
1329 ctl[cnt].ctl_ndir = HDAUDIO_PINDIR_IN;
1330 ctl[cnt++].ctl_dir = HDAUDIO_PINDIR_IN;
1334 if (cnt >= maxctls)
1337 "%d:%02X:FF\n", cnt, w->w_nid);
1338 ctl[cnt].ctl_enable = true;
1339 ctl[cnt].ctl_widget = w;
1340 ctl[cnt].ctl_mute = mute;
1341 ctl[cnt].ctl_step = step;
1342 ctl[cnt].ctl_size = size;
1343 ctl[cnt].ctl_offset = offset;
1344 ctl[cnt].ctl_left = offset;
1345 ctl[cnt].ctl_right = offset;
1347 ctl[cnt].ctl_ndir = HDAUDIO_PINDIR_OUT;
1349 ctl[cnt].ctl_ndir = HDAUDIO_PINDIR_IN;
1350 ctl[cnt++].ctl_dir = HDAUDIO_PINDIR_IN;
2284 enum hdaudio_pindir dir, int index, int cnt)
2302 if (found == cnt || cnt <= 0)