Lines Matching defs:largp
52 static int alloc_dev_list(struct larg *largp);
1451 struct larg *largp = (struct larg *)arg;
1459 largp->ndevs = -1;
1467 largp->ndevs = -1;
1474 if (largp->dev && strcmp(largp->dev, p) == 0) {
1480 if (alloc_dev_list(largp) != 0) {
1484 ndevs = largp->ndevs;
1485 largp->ndevs++;
1486 largp->dev_list[ndevs] = p;
1487 largp->dev_list[ndevs + 1] = NULL;
1534 * Ensure largp->dev_list has room for one more device.
1538 alloc_dev_list(struct larg *largp)
1543 if (largp->nelem > largp->ndevs + 2) /* +1 for NULL termination */
1546 nelem = largp->nelem + 16;
1547 p = realloc(largp->dev_list, nelem * sizeof (char *));
1551 largp->dev_list = p;
1552 largp->nelem = nelem;