Lines Matching defs:size
37 static inline struct vm_struct *get_io_area(unsigned long size)
39 return get_vm_area(size, VM_IOREMAP);
59 static void __free_io_area(void *addr, unsigned long size)
68 while ((long)size > 0) {
86 size -= PMD_SIZE;
102 size -= PAGE_SIZE;
108 static struct vm_struct *get_io_area(unsigned long size)
118 if (size + addr < (unsigned long)tmp->addr)
120 if (addr > KMAP_END-size) {
124 addr = tmp->size + (unsigned long)tmp->addr;
127 area->size = size + IO_SIZE;
144 __free_io_area(tmp->addr, tmp->size - IO_SIZE);
158 void __iomem *__ioremap(unsigned long physaddr, unsigned long size, int cacheflag)
172 if (!size || physaddr > (unsigned long)(-size))
177 if ((physaddr >= 0x40000000) && (physaddr + size < 0x60000000)
194 printk("ioremap: 0x%lx,0x%lx(%d) - ", physaddr, size, cacheflag);
201 size = (size + offset + IO_SIZE - 1) & -IO_SIZE;
206 area = get_io_area(size);
252 while ((long)size > 0) {
271 size -= PMD_SIZE;
284 size -= PAGE_SIZE;
324 void kernel_set_cachemode(void *addr, unsigned long size, int cmode)
362 while ((long)size > 0) {
380 size -= PMD_SIZE;
395 size -= PAGE_SIZE;