Lines Matching refs:b_addr
75 return bp->b_addr && bp->b_page_count > 1; in xfs_buf_is_vmapped()
332 vm_unmap_ram(bp->b_addr - bp->b_offset, in xfs_buf_free()
344 kmem_free(bp->b_addr); in xfs_buf_free()
382 bp->b_addr = kmem_alloc_io(size, align_mask, in xfs_buf_allocate_memory()
384 if (!bp->b_addr) { in xfs_buf_allocate_memory()
389 if (((unsigned long)(bp->b_addr + size - 1) & PAGE_MASK) != in xfs_buf_allocate_memory()
390 ((unsigned long)bp->b_addr & PAGE_MASK)) { in xfs_buf_allocate_memory()
392 kmem_free(bp->b_addr); in xfs_buf_allocate_memory()
393 bp->b_addr = NULL; in xfs_buf_allocate_memory()
396 bp->b_offset = offset_in_page(bp->b_addr); in xfs_buf_allocate_memory()
398 bp->b_pages[0] = kmem_to_page(bp->b_addr); in xfs_buf_allocate_memory()
472 bp->b_addr = page_address(bp->b_pages[0]) + bp->b_offset; in _xfs_buf_map_pages()
474 bp->b_addr = NULL; in _xfs_buf_map_pages()
489 bp->b_addr = vm_map_ram(bp->b_pages, bp->b_page_count, in _xfs_buf_map_pages()
491 if (bp->b_addr) in _xfs_buf_map_pages()
497 if (!bp->b_addr) in _xfs_buf_map_pages()
499 bp->b_addr += bp->b_offset; in _xfs_buf_map_pages()
739 if (!bp->b_addr) { in xfs_buf_get_map()
1467 invalidate_kernel_vmap_range(bp->b_addr, xfs_buf_vmap_len(bp)); in xfs_buf_bio_end_io()
1536 flush_kernel_vmap_range(bp->b_addr, in xfs_buf_ioapply_map()
1596 xfs_hex_dump(bp->b_addr, in _xfs_buf_ioapply()
1722 if (bp->b_addr) in xfs_buf_offset()
1723 return bp->b_addr + offset; in xfs_buf_offset()