Lines Matching refs:minor_idx
584 int minor_idx; in i_vldc_add_port() local
629 for (minor_idx = 0; minor_idx < vldcp->minors_assigned; in i_vldc_add_port()
630 minor_idx++) { in i_vldc_add_port()
631 if (strcmp(vldcp->minor_tbl[minor_idx].sname, sname) == 0) { in i_vldc_add_port()
638 if (minor_idx == vldcp->minors_assigned) { in i_vldc_add_port()
642 "nodes (%d)", minor_idx); in i_vldc_add_port()
646 (void) strlcpy(vldcp->minor_tbl[minor_idx].sname, in i_vldc_add_port()
653 if (vldcp->minor_tbl[minor_idx].portno != VLDC_INVALID_PORTNO) { in i_vldc_add_port()
656 portno, vldcp->minor_tbl[minor_idx].portno); in i_vldc_add_port()
663 vport->minorp = &vldcp->minor_tbl[minor_idx]; in i_vldc_add_port()
664 vldcp->minor_tbl[minor_idx].portno = portno; in i_vldc_add_port()
665 vldcp->minor_tbl[minor_idx].in_use = 0; in i_vldc_add_port()
674 minor = (vldc_inst << VLDC_INST_SHIFT) | (minor_idx); in i_vldc_add_port()
682 vldcp->minor_tbl[minor_idx].portno = VLDC_INVALID_PORTNO; in i_vldc_add_port()