Lines Matching defs:port_cnt
343 int port_cnt)
351 for (j = 0; j < port_cnt; j++) {
382 int i, ret, port_cnt = 0, cnt_4ch_grp1 = 0, cnt_4ch_grp2 = 4;
396 tmp_port_matrix[port_cnt].exist = true;
397 tmp_port_matrix[port_cnt].is_4p = true;
398 tmp_port_matrix[port_cnt].pi_id = i;
399 tmp_port_matrix[port_cnt].hw_chan[0] = port_matrix[i].hw_chan[0];
400 tmp_port_matrix[port_cnt].hw_chan[1] = port_matrix[i].hw_chan[1];
405 tmp_port_matrix[port_cnt].lgcl_chan[0] = (*cnt)++;
406 tmp_port_matrix[port_cnt].lgcl_chan[1] = (*cnt)++;
408 port_cnt++;
423 tmp_port_matrix[port_cnt].exist = true;
424 tmp_port_matrix[port_cnt].pi_id = i;
425 tmp_port_matrix[port_cnt].lgcl_chan[0] = (*cnt)++;
426 tmp_port_matrix[port_cnt].hw_chan[0] = port_matrix[i].hw_chan[0];
428 port_cnt++;
435 ret = tps23881_get_unused_chan(tmp_port_matrix, port_cnt);
441 if (port_cnt >= TPS23881_MAX_CHANS) {
445 tmp_port_matrix[port_cnt].lgcl_chan[0] = cnt_4ch_grp1;
446 tmp_port_matrix[port_cnt].hw_chan[0] = ret;
448 port_cnt++;
455 ret = tps23881_get_unused_chan(tmp_port_matrix, port_cnt);
461 if (port_cnt >= TPS23881_MAX_CHANS) {
465 tmp_port_matrix[port_cnt].lgcl_chan[0] = cnt_4ch_grp2;
466 tmp_port_matrix[port_cnt].hw_chan[0] = ret;
468 port_cnt++;
473 return port_cnt;
482 int port_cnt)
489 for (i = 0; i < port_cnt; i++) {