• Home
  • Raw
  • Download

Lines Matching refs:count

1739 void vm_unmap_ram(const void *mem, unsigned int count)  in vm_unmap_ram()  argument
1741 unsigned long size = (unsigned long)count << PAGE_SHIFT; in vm_unmap_ram()
1751 if (likely(count <= VMAP_MAX_ALLOC)) { in vm_unmap_ram()
1780 void *vm_map_ram(struct page **pages, unsigned int count, int node, pgprot_t prot) in vm_map_ram() argument
1782 unsigned long size = (unsigned long)count << PAGE_SHIFT; in vm_map_ram()
1786 if (likely(count <= VMAP_MAX_ALLOC)) { in vm_map_ram()
1802 vm_unmap_ram(mem, count); in vm_map_ram()
2372 void *vmap(struct page **pages, unsigned int count, in vmap() argument
2380 if (count > totalram_pages()) in vmap()
2383 size = (unsigned long)count << PAGE_SHIFT; in vmap()
2748 static int aligned_vread(char *buf, char *addr, unsigned long count) in aligned_vread() argument
2753 while (count) { in aligned_vread()
2758 if (length > count) in aligned_vread()
2759 length = count; in aligned_vread()
2782 count -= length; in aligned_vread()
2787 static int aligned_vwrite(char *buf, char *addr, unsigned long count) in aligned_vwrite() argument
2792 while (count) { in aligned_vwrite()
2797 if (length > count) in aligned_vwrite()
2798 length = count; in aligned_vwrite()
2819 count -= length; in aligned_vwrite()
2848 long vread(char *buf, char *addr, unsigned long count) in vread() argument
2853 unsigned long buflen = count; in vread()
2857 if ((unsigned long) addr + count < count) in vread()
2858 count = -(unsigned long) addr; in vread()
2862 if (!count) in vread()
2873 if (count == 0) in vread()
2878 count--; in vread()
2881 if (n > count) in vread()
2882 n = count; in vread()
2889 count -= n; in vread()
2927 long vwrite(char *buf, char *addr, unsigned long count) in vwrite() argument
2936 if ((unsigned long) addr + count < count) in vwrite()
2937 count = -(unsigned long) addr; in vwrite()
2938 buflen = count; in vwrite()
2942 if (!count) in vwrite()
2953 if (count == 0) in vwrite()
2957 count--; in vwrite()
2960 if (n > count) in vwrite()
2961 n = count; in vwrite()
2968 count -= n; in vwrite()