Home
last modified time | relevance | path

Searched refs:pages_mapped (Results 1 – 3 of 3) sorted by relevance

/linux-2.6.39/arch/parisc/kernel/
Dpci-dma.c309 unsigned int pages_mapped = size >> PAGE_SHIFT; in pcxl_free_range() local
312 mask >>= BITS_PER_LONG - pages_mapped; in pcxl_free_range()
315 res_idx, size, pages_mapped, mask); in pcxl_free_range()
319 if(pages_mapped <= 8) { in pcxl_free_range()
321 } else if(pages_mapped <= 16) { in pcxl_free_range()
323 } else if(pages_mapped <= 32) { in pcxl_free_range()
330 pcxl_used_pages -= (pages_mapped ? pages_mapped : 1); in pcxl_free_range()
331 pcxl_used_bytes -= ((pages_mapped >> 3) ? (pages_mapped >> 3) : 1); in pcxl_free_range()
/linux-2.6.39/drivers/parisc/
Dccio-dma.c431 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-2.6.39/drivers/xen/
Dgntdev.c56 static atomic_t pages_mapped = ATOMIC_INIT(0); variable
189 atomic_sub(map->count, &pages_mapped); in gntdev_put_map()
488 if (unlikely(atomic_add_return(op.count, &pages_mapped) > limit)) { in gntdev_ioctl_map_grant_ref()