Home
last modified time | relevance | path

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

/external/ltp/testcases/kernel/hotplug/memory_hotplug/
Dsegment.c57 size_t seg_length; member
153 munmap(segp->seg_start, segp->seg_length); in unmap_segment()
264 …memp = (char *)mmap(0, segp->seg_length, segp->seg_prot, flags | MAP_ANONYMOUS, 0, /* fd -- ignore… in map_anon_segment()
276 memp, memp + segp->seg_length - 1); in map_anon_segment()
391 if (segp->seg_length == 0) in map_file_segment()
392 segp->seg_length = round_up_to_pagesize(size) - in map_file_segment()
395 segp->seg_length = round_up_to_pagesize(segp->seg_length); in map_file_segment()
397 memp = (char *)mmap(0, segp->seg_length, in map_file_segment()
409 memp, memp + segp->seg_length - 1); in map_file_segment()
425 shmid = shmget(IPC_PRIVATE, segp->seg_length, SHM_R | SHM_W); in get_shm_segment()
[all …]
/external/u-boot/arch/arm/mach-tegra/tegra20/
Dwarmboot.c295 int warmboot_prepare_code(u32 seg_address, u32 seg_length) in warmboot_prepare_code() argument
314 if (seg_length == 0 || seg_address < NV_PA_SDRAM_BASE || in warmboot_prepare_code()
315 seg_address + seg_length >= NV_PA_SDRAM_BASE + gd->ram_size) { in warmboot_prepare_code()
321 if ((seg_length & 0xF) || (seg_address & 0xF)) { in warmboot_prepare_code()
327 if (seg_length < (length + sizeof(struct wb_header))) { in warmboot_prepare_code()
/external/u-boot/arch/arm/include/asm/arch-tegra/
Dwarmboot.h128 int warmboot_prepare_code(u32 seg_address, u32 seg_length);