Lines Matching refs:size
43 #define BP_FLUSH(addr, size) flush_instr_mem((void *)addr, size);
45 #define BP_FLUSH(addr, size)
54 offset_t offset, size_t size);
63 bp_vmem_alloc(vmem_t *vmp, size_t size, int vmflag)
65 return (vmem_xalloc(vmp, size, bp_align, 0, 0, NULL, NULL, vmflag));
93 size_t size;
108 size = P2ROUNDUP(bp->b_bcount + off, PAGESIZE);
109 npages = btop(size);
132 P2ROUNDUP(color + size, bp_align), flag);
137 kaddr = vmem_xalloc(heap_arena, size, bp_align, color,
207 size_t size;
216 size = P2ROUNDUP(bp->b_bcount + off, PAGESIZE);
217 npages = btop(size);
234 BP_FLUSH(base, size);
235 hat_unload(kas.a_hat, (void *)base, size,
240 P2ROUNDUP(color + size, bp_align));
242 vmem_free(heap_arena, (void *)base, size);
251 bp_copyout(void *driverbuf, struct buf *bp, offset_t offset, size_t size)
253 return (bp_copy_common(BP_COPYOUT, bp, driverbuf, offset, size));
261 bp_copyin(struct buf *bp, void *driverbuf, offset_t offset, size_t size)
263 return (bp_copy_common(BP_COPYIN, bp, driverbuf, offset, size));
273 offset_t offset, size_t size)
287 ASSERT((offset + size) <= bp->b_bcount);
291 BP_COPY(dir, driverbuf, bp->b_un.b_addr + offset, size);
298 BP_COPY(dir, driverbuf, bp->b_un.b_addr + offset, size);
324 * size of the first page we are going to copy.
328 psize = MIN(PAGESIZE - poff, size);
337 while (size > 0) {
371 * the page size (how much we will copy) and the offset into the
382 * We don't have to worry about the first page offset and size
388 psize = MIN(PAGESIZE, size);
395 * page. update size left and offset into the driverbuf passed
403 size -= psize;
407 psize = MIN(PAGESIZE, size);