Lines Matching refs:size
374 static int split_block(unsigned int i, unsigned short size) in split_block() argument
394 pcpu_size[i+1] -= size; in split_block()
395 pcpu_size[i] = size; in split_block()
406 static void *percpu_modalloc(unsigned long size, unsigned long align, in percpu_modalloc() argument
425 if (pcpu_size[i] < 0 || pcpu_size[i] < extra + size) in percpu_modalloc()
437 if (pcpu_size[i] - size > sizeof(unsigned long)) in percpu_modalloc()
438 if (!split_block(i, size)) in percpu_modalloc()
447 size); in percpu_modalloc()
490 static void percpu_modcopy(void *pcpudest, const void *from, unsigned long size) in percpu_modcopy() argument
495 memcpy(pcpudest + per_cpu_offset(cpu), from, size); in percpu_modcopy()
517 static inline void *percpu_modalloc(unsigned long size, unsigned long align, in percpu_modalloc() argument
533 unsigned long size) in percpu_modcopy() argument
536 BUG_ON(size != 0); in percpu_modcopy()
1127 unsigned int nloaded = 0, i, size[2]; in add_sect_attrs() local
1136 size[0] = ALIGN(sizeof(*sect_attrs) in add_sect_attrs()
1139 size[1] = (nloaded + 1) * sizeof(sect_attrs->grp.attrs[0]); in add_sect_attrs()
1140 sect_attrs = kzalloc(size[0] + size[1], GFP_KERNEL); in add_sect_attrs()
1146 sect_attrs->grp.attrs = (void *)sect_attrs + size[0]; in add_sect_attrs()
1253 nattr->size = sechdrs[i].sh_size; in add_notes_attrs()
1603 static long get_offset(struct module *mod, unsigned int *size, in get_offset() argument
1608 *size += arch_mod_section_prepend(mod, section); in get_offset()
1609 ret = ALIGN(*size, sechdr->sh_addralign ?: 1); in get_offset()
1610 *size = ret + sechdr->sh_size; in get_offset()
1713 unsigned long size = sechdrs[info].sh_size; in get_modinfo() local
1715 for (p = (char *)sechdrs[info].sh_addr; p; p = next_string(p, &size)) { in get_modinfo()
1845 static void *module_alloc_update_bounds(unsigned long size) in module_alloc_update_bounds() argument
1847 void *ret = module_alloc(size); in module_alloc_update_bounds()
1853 if ((unsigned long)ret + size > module_addr_max) in module_alloc_update_bounds()
1854 module_addr_max = (unsigned long)ret + size; in module_alloc_update_bounds()
2387 static inline int within(unsigned long addr, void *start, unsigned long size) in within() argument
2389 return ((void *)addr >= start && (void *)addr < start + size); in within()
2405 unsigned long *size, in get_ksymbol() argument
2440 if (size) in get_ksymbol()
2441 *size = nextval - mod->symtab[best].st_value; in get_ksymbol()
2450 unsigned long *size, in module_address_lookup() argument
2464 ret = get_ksymbol(mod, addr, size, offset); in module_address_lookup()
2500 int lookup_module_symbol_attrs(unsigned long addr, unsigned long *size, in lookup_module_symbol_attrs() argument
2511 sym = get_ksymbol(mod, addr, size, offset); in lookup_module_symbol_attrs()