Searched refs:rstruct (Results 1 – 2 of 2) sorted by relevance
/illumos-gate/usr/src/uts/i86pc/io/ioat/ |
H A D | ioat_rs.c | 75 ioat_rs_t *rstruct; in ioat_rs_init() local 84 rstruct = kmem_alloc(sizeof (ioat_rs_t), KM_SLEEP); in ioat_rs_init() 92 rstruct->rs_free_size = (max_val >> 6) * 8; in ioat_rs_init() 94 rstruct->rs_free_size = ((max_val >> 6) + 1) * 8; in ioat_rs_init() 96 rstruct->rs_free = kmem_alloc(rstruct->rs_free_size, KM_SLEEP); in ioat_rs_init() 99 rstruct->rs_min = min_val; in ioat_rs_init() 100 rstruct->rs_last = min_val; in ioat_rs_init() 101 rstruct->rs_max = max_val; in ioat_rs_init() 102 mutex_init(&rstruct->rs_mutex, NULL, MUTEX_DRIVER, in ioat_rs_init() 106 array_size = rstruct->rs_free_size >> 3; in ioat_rs_init() [all …]
|
/illumos-gate/usr/src/uts/common/xen/io/ |
H A D | xpvtap.c | 1407 xpvtap_rs_t *rstruct; in xpvtap_rs_init() local 1416 rstruct = kmem_alloc(sizeof (xpvtap_rs_t), KM_SLEEP); in xpvtap_rs_init() 1424 rstruct->rs_free_size = (max_val >> 6) * 8; in xpvtap_rs_init() 1426 rstruct->rs_free_size = ((max_val >> 6) + 1) * 8; in xpvtap_rs_init() 1428 rstruct->rs_free = kmem_alloc(rstruct->rs_free_size, KM_SLEEP); in xpvtap_rs_init() 1431 rstruct->rs_min = min_val; in xpvtap_rs_init() 1432 rstruct->rs_last = min_val; in xpvtap_rs_init() 1433 rstruct->rs_max = max_val; in xpvtap_rs_init() 1434 mutex_init(&rstruct->rs_mutex, NULL, MUTEX_DRIVER, NULL); in xpvtap_rs_init() 1435 rstruct->rs_flushing = B_FALSE; in xpvtap_rs_init() [all …]
|