Searched refs:pages_mapped (Results 1 – 4 of 4) sorted by relevance
/Linux-v5.4/arch/parisc/kernel/ |
D | pci-dma.c | 305 unsigned int pages_mapped = size >> PAGE_SHIFT; in pcxl_free_range() local 308 mask >>= BITS_PER_LONG - pages_mapped; in pcxl_free_range() 311 res_idx, size, pages_mapped, mask); in pcxl_free_range() 315 if(pages_mapped <= 8) { in pcxl_free_range() 317 } else if(pages_mapped <= 16) { in pcxl_free_range() 319 } else if(pages_mapped <= 32) { in pcxl_free_range() 326 pcxl_used_pages -= (pages_mapped ? pages_mapped : 1); in pcxl_free_range() 327 pcxl_used_bytes -= ((pages_mapped >> 3) ? (pages_mapped >> 3) : 1); in pcxl_free_range()
|
/Linux-v5.4/drivers/parisc/ |
D | ccio-dma.c | 431 ccio_free_range(struct ioc *ioc, dma_addr_t iova, unsigned long pages_mapped) in ccio_free_range() argument 436 BUG_ON(pages_mapped == 0); in ccio_free_range() 437 BUG_ON((pages_mapped * IOVP_SIZE) > DMA_CHUNK_SIZE); in ccio_free_range() 438 BUG_ON(pages_mapped > BITS_PER_LONG); in ccio_free_range() 441 __func__, res_idx, pages_mapped); in ccio_free_range() 444 ioc->used_pages -= pages_mapped; in ccio_free_range() 447 if(pages_mapped <= 8) { in ccio_free_range() 450 unsigned long mask = ~(~0UL >> pages_mapped); in ccio_free_range() 455 } else if(pages_mapped <= 16) { in ccio_free_range() 457 } else if(pages_mapped <= 32) { in ccio_free_range() [all …]
|
/Linux-v5.4/drivers/xen/ |
D | gntdev.c | 63 static atomic_t pages_mapped = ATOMIC_INIT(0); variable 77 return atomic_add_return(count, &pages_mapped) > limit; in gntdev_account_mapped_pages() 245 atomic_sub(map->count, &pages_mapped); in gntdev_put_map()
|
/Linux-v5.4/drivers/infiniband/hw/mlx5/ |
D | mr.c | 935 size_t pages_mapped = 0; in mlx5_ib_update_xlt() local 1002 for (pages_mapped = 0; in mlx5_ib_update_xlt() 1003 pages_mapped < pages_to_map && !err; in mlx5_ib_update_xlt() 1004 pages_mapped += pages_iter, idx += pages_iter) { in mlx5_ib_update_xlt() 1005 npages = min_t(int, pages_iter, pages_to_map - pages_mapped); in mlx5_ib_update_xlt() 1015 if (pages_mapped + pages_iter >= pages_to_map) { in mlx5_ib_update_xlt()
|