Searched refs:pc_read (Results 1 – 2 of 2) sorted by relevance
/netbsd-src/share/examples/pud/intro/ |
H A D | intro.c | 95 struct pud_creq_read *pc_read; in main() local 98 pc_read = (void *)pdr; in main() 100 (unsigned long long)pc_read->pm_offset, in main() 101 pc_read->pm_resid); in main() 103 clen = MIN(strlen(curstr), pc_read->pm_resid); in main() 104 strncpy(pc_read->pm_data, curstr, clen); in main() 106 clen = pc_read->pm_resid; in main() 107 pc_read->pm_resid = 0; in main() 109 pc_read->pm_resid -= clen; in main()
|
/netbsd-src/sys/dev/pud/ |
H A D | pud_dev.c | 233 struct pud_creq_read *pc_read; in pud_cdev_read() local 238 pc_read = kmem_zalloc(allocsize, KM_SLEEP); in pud_cdev_read() 240 pc_read->pm_offset = uio->uio_offset; in pud_cdev_read() 241 pc_read->pm_resid = uio->uio_resid; in pud_cdev_read() 243 error = pud_request(dev, pc_read, allocsize, in pud_cdev_read() 248 if (pc_read->pm_resid > uio->uio_resid) { in pud_cdev_read() 253 error = uiomove(pc_read->pm_data, in pud_cdev_read() 254 uio->uio_resid - pc_read->pm_resid, uio); in pud_cdev_read() 257 kmem_free(pc_read, allocsize); in pud_cdev_read()
|