Lines Matching refs:iol

1502 #define	PIOL_DATABUF(iol)	((void *)(&(iol)[1]))  argument
1507 piol_t *iol; in pr_iol_initlist() local
1513 ASSERT(itemsize < MAPSIZE - sizeof (*iol)); in pr_iol_initlist()
1523 initial_size = MIN(MAPSIZE, initial_size + sizeof (*iol)); in pr_iol_initlist()
1524 iol = kmem_alloc(initial_size, KM_SLEEP); in pr_iol_initlist()
1525 list_insert_head(iolhead, iol); in pr_iol_initlist()
1526 iol->piol_usedsize = 0; in pr_iol_initlist()
1527 iol->piol_size = initial_size; in pr_iol_initlist()
1533 piol_t *iol; in pr_iol_newbuf() local
1536 ASSERT(itemsize < MAPSIZE - sizeof (*iol)); in pr_iol_newbuf()
1539 iol = (piol_t *)list_tail(iolhead); in pr_iol_newbuf()
1541 if (iol->piol_size < in pr_iol_newbuf()
1542 iol->piol_usedsize + sizeof (*iol) + itemsize) { in pr_iol_newbuf()
1552 list_insert_after(iolhead, iol, newiol); in pr_iol_newbuf()
1553 iol = list_next(iolhead, iol); in pr_iol_newbuf()
1554 ASSERT(iol == newiol); in pr_iol_newbuf()
1556 new = (char *)PIOL_DATABUF(iol) + iol->piol_usedsize; in pr_iol_newbuf()
1557 iol->piol_usedsize += itemsize; in pr_iol_newbuf()
1566 piol_t *iol; in pr_iol_copyout_and_free() local
1568 while ((iol = list_head(iolhead)) != NULL) { in pr_iol_copyout_and_free()
1569 list_remove(iolhead, iol); in pr_iol_copyout_and_free()
1571 if (copyout(PIOL_DATABUF(iol), *tgt, in pr_iol_copyout_and_free()
1572 iol->piol_usedsize)) in pr_iol_copyout_and_free()
1574 *tgt += iol->piol_usedsize; in pr_iol_copyout_and_free()
1576 kmem_free(iol, iol->piol_size); in pr_iol_copyout_and_free()
1589 piol_t *iol; in pr_iol_uiomove_and_free() local
1592 while ((iol = list_head(iolhead)) != NULL) { in pr_iol_uiomove_and_free()
1593 list_remove(iolhead, iol); in pr_iol_uiomove_and_free()
1594 base = PIOL_DATABUF(iol); in pr_iol_uiomove_and_free()
1595 size = iol->piol_usedsize; in pr_iol_uiomove_and_free()
1600 kmem_free(iol, iol->piol_size); in pr_iol_uiomove_and_free()