Lines Matching refs:b_addr
74 return bp->b_addr && bp->b_page_count > 1; in xfs_buf_is_vmapped()
283 vm_unmap_ram(bp->b_addr, bp->b_page_count); in xfs_buf_free_pages()
319 kmem_free(bp->b_addr); in xfs_buf_free()
336 bp->b_addr = kmem_alloc(size, kmflag_mask); in xfs_buf_alloc_kmem()
337 if (!bp->b_addr) in xfs_buf_alloc_kmem()
340 if (((unsigned long)(bp->b_addr + size - 1) & PAGE_MASK) != in xfs_buf_alloc_kmem()
341 ((unsigned long)bp->b_addr & PAGE_MASK)) { in xfs_buf_alloc_kmem()
343 kmem_free(bp->b_addr); in xfs_buf_alloc_kmem()
344 bp->b_addr = NULL; in xfs_buf_alloc_kmem()
347 bp->b_offset = offset_in_page(bp->b_addr); in xfs_buf_alloc_kmem()
349 bp->b_pages[0] = kmem_to_page(bp->b_addr); in xfs_buf_alloc_kmem()
424 bp->b_addr = page_address(bp->b_pages[0]); in _xfs_buf_map_pages()
426 bp->b_addr = NULL; in _xfs_buf_map_pages()
441 bp->b_addr = vm_map_ram(bp->b_pages, bp->b_page_count, in _xfs_buf_map_pages()
443 if (bp->b_addr) in _xfs_buf_map_pages()
449 if (!bp->b_addr) in _xfs_buf_map_pages()
718 if (!bp->b_addr) { in xfs_buf_get_map()
1440 invalidate_kernel_vmap_range(bp->b_addr, xfs_buf_vmap_len(bp)); in xfs_buf_bio_end_io()
1507 flush_kernel_vmap_range(bp->b_addr, in xfs_buf_ioapply_map()
1568 xfs_hex_dump(bp->b_addr, in _xfs_buf_ioapply()
1709 if (bp->b_addr) in xfs_buf_offset()
1710 return bp->b_addr + offset; in xfs_buf_offset()