Home
last modified time | relevance | path

Searched refs:pc_rw (Results 1 – 1 of 1) sorted by relevance

/netbsd/src/sys/dev/pud/
Dpud_dev.c129 struct pud_req_readwrite *pc_rw; in pud_bdev_strategy() local
134 pc_rw = kmem_zalloc(allocsize, KM_SLEEP); in pud_bdev_strategy()
136 pc_rw->pm_offset = bp->b_blkno << DEV_BSHIFT; in pud_bdev_strategy()
137 pc_rw->pm_resid = bp->b_bcount; in pud_bdev_strategy()
140 memcpy(pc_rw->pm_data, bp->b_data, bp->b_bcount); in pud_bdev_strategy()
142 error = pud_request(bp->b_dev, pc_rw, allocsize, PUD_REQ_BDEV, in pud_bdev_strategy()
147 if (pc_rw->pm_resid > bp->b_bcount) { in pud_bdev_strategy()
153 memcpy(bp->b_data,pc_rw->pm_data,bp->b_bcount-pc_rw->pm_resid); in pud_bdev_strategy()
155 bp->b_resid = pc_rw->pm_resid; in pud_bdev_strategy()
158 kmem_free(pc_rw, allocsize); in pud_bdev_strategy()