/linux/arch/x86/mm/ |
A D | mmap.c | 41 static unsigned long stack_maxrandom_size(unsigned long task_size) in stack_maxrandom_size() argument 45 max = (-1UL) & __STACK_RND_MASK(task_size == task_size_32bit()); in stack_maxrandom_size() 82 static unsigned long mmap_base(unsigned long rnd, unsigned long task_size, in mmap_base() argument 86 unsigned long pad = stack_maxrandom_size(task_size) + stack_guard_gap; in mmap_base() 98 gap_max = (task_size / 6) * 5; in mmap_base() 105 return PAGE_ALIGN(task_size - gap - rnd); in mmap_base() 109 unsigned long task_size) in mmap_legacy_base() argument 111 return __TASK_UNMAPPED_BASE(task_size) + rnd; in mmap_legacy_base() 119 unsigned long random_factor, unsigned long task_size, in arch_pick_mmap_base() argument 122 *legacy_base = mmap_legacy_base(random_factor, task_size); in arch_pick_mmap_base() [all …]
|
/linux/arch/sparc/kernel/ |
A D | sys_sparc_64.c | 94 unsigned long task_size = TASK_SIZE; in arch_get_unmapped_area() local 109 task_size = STACK_TOP32; in arch_get_unmapped_area() 124 if (task_size - len >= addr && in arch_get_unmapped_area() 132 info.high_limit = min(task_size, VA_EXCLUDE_START); in arch_get_unmapped_area() 140 info.high_limit = task_size; in arch_get_unmapped_area() 154 unsigned long task_size = STACK_TOP32; in arch_get_unmapped_area_topdown() local 172 if (unlikely(len > task_size)) in arch_get_unmapped_area_topdown() 187 if (task_size - len >= addr && in arch_get_unmapped_area_topdown() 298 unsigned long task_size = STACK_TOP32; in arch_pick_mmap_layout() local 302 if (gap > (task_size / 6 * 5)) in arch_pick_mmap_layout() [all …]
|
/linux/arch/sparc/mm/ |
A D | hugetlbpage.c | 33 unsigned long task_size = TASK_SIZE; in hugetlb_get_unmapped_area_bottomup() local 37 task_size = STACK_TOP32; in hugetlb_get_unmapped_area_bottomup() 42 info.high_limit = min(task_size, VA_EXCLUDE_START); in hugetlb_get_unmapped_area_bottomup() 47 if ((addr & ~PAGE_MASK) && task_size > VA_EXCLUDE_END) { in hugetlb_get_unmapped_area_bottomup() 50 info.high_limit = task_size; in hugetlb_get_unmapped_area_bottomup() 103 unsigned long task_size = TASK_SIZE; in hugetlb_get_unmapped_area() local 106 task_size = STACK_TOP32; in hugetlb_get_unmapped_area() 110 if (len > task_size) in hugetlb_get_unmapped_area() 122 if (task_size - len >= addr && in hugetlb_get_unmapped_area()
|
/linux/arch/x86/kernel/fpu/ |
A D | init.c | 154 int task_size = sizeof(struct task_struct); in fpu__init_task_struct_size() local 160 task_size -= sizeof(current->thread.fpu.__fpstate.regs); in fpu__init_task_struct_size() 166 task_size += fpu_kernel_cfg.default_size; in fpu__init_task_struct_size() 179 arch_task_struct_size = task_size; in fpu__init_task_struct_size()
|
/linux/arch/mips/include/asm/ |
A D | hugetlb.h | 19 unsigned long task_size = STACK_TOP; in prepare_hugepage_range() local 26 if (len > task_size) in prepare_hugepage_range() 28 if (task_size - len < addr) in prepare_hugepage_range()
|
/linux/drivers/scsi/qedi/ |
A D | qedi_fw_api.c | 277 u32 task_size, in set_rw_exp_data_acked_and_cont_len() argument 316 val = cpu_to_le32(task_size); in set_rw_exp_data_acked_and_cont_len() 492 u32 task_size, val; in init_rw_iscsi_task() local 495 task_size = calc_rw_task_size(task_params, task_type, sgl_task_params, in init_rw_iscsi_task() 507 val = cpu_to_le32(task_size + in init_rw_iscsi_task() 513 val = cpu_to_le32(task_size); in init_rw_iscsi_task() 556 cxt->mstorm_st_context.rem_task_size = cpu_to_le32(task_size); in init_rw_iscsi_task() 559 if (exp_data_transfer_len > task_size || in init_rw_iscsi_task() 561 exp_data_transfer_len = task_size; in init_rw_iscsi_task() 565 task_size, exp_data_transfer_len, num_sges, in init_rw_iscsi_task() [all …]
|
/linux/arch/parisc/include/asm/ |
A D | processor.h | 26 #define TASK_SIZE_OF(tsk) ((tsk)->thread.task_size) 103 unsigned long task_size; member 140 .task_size = DEFAULT_TASK_SIZE, \
|
A D | elf.h | 240 current->thread.task_size = DEFAULT_TASK_SIZE; \ 250 current->thread.task_size = DEFAULT_TASK_SIZE32; \
|
/linux/arch/x86/um/vdso/ |
A D | vma.c | 16 extern unsigned long task_size; 27 um_vdso_addr = task_size - PAGE_SIZE; in init_vdso()
|
/linux/drivers/net/ethernet/qlogic/qed/ |
A D | qed_nvmetcp_fw_funcs.c | 222 u32 task_size = calc_rw_task_size(task_params, task_type); in init_rw_nvmetcp_task() local 255 context->mstorm_st_context.rem_task_size = cpu_to_le32(task_size); in init_rw_nvmetcp_task() 262 task_size, in init_rw_nvmetcp_task() 264 task_size, in init_rw_nvmetcp_task() 272 context->ustorm_ag_context.exp_data_acked = task_size; in init_rw_nvmetcp_task()
|
A D | qed_cxt.c | 459 u32 curr_line, total, i, task_size, line; in qed_cxt_cfg_ilt_compute() local 609 task_size = p_mngr->task_type_size[p_seg->type]; in qed_cxt_cfg_ilt_compute() 611 curr_line, total, task_size); in qed_cxt_cfg_ilt_compute()
|
/linux/arch/um/include/asm/ |
A D | processor-generic.h | 71 extern unsigned long task_size; 73 #define TASK_SIZE (task_size)
|
/linux/arch/powerpc/mm/book3s64/ |
A D | subpage_prot.c | 206 addr >= mm->task_size || len >= mm->task_size || in SYSCALL_DEFINE3() 207 addr + len > mm->task_size) in SYSCALL_DEFINE3()
|
/linux/arch/um/kernel/ |
A D | um_arch.c | 268 unsigned long task_size; variable 269 EXPORT_SYMBOL(task_size); 334 task_size = host_task_size & PGDIR_MASK; in linux_main()
|
/linux/drivers/gpu/drm/lima/ |
A D | lima_sched.c | 285 u32 size, task_size, mem_size; in lima_sched_build_error_task_list() local 312 task_size = size + sizeof(struct lima_dump_task); in lima_sched_build_error_task_list() 313 mem_size = task_size + sizeof(*et); in lima_sched_build_error_task_list() 322 et->size = task_size; in lima_sched_build_error_task_list()
|
/linux/arch/x86/um/os-Linux/ |
A D | Makefile | 6 obj-y = registers.o task_size.o mcontext.o
|
/linux/arch/parisc/kernel/ |
A D | sys_parisc.c | 107 unsigned long task_size = TASK_SIZE; in arch_get_unmapped_area() local 111 if (len > task_size) in arch_get_unmapped_area() 134 if (task_size - len >= addr && in arch_get_unmapped_area()
|
/linux/arch/s390/kernel/ |
A D | setup.c | 885 int task_size = sizeof(struct task_struct); in setup_task_size() local 888 task_size -= sizeof(__vector128) * __NUM_VXRS; in setup_task_size() 889 task_size += sizeof(freg_t) * __NUM_FPRS; in setup_task_size() 891 arch_task_struct_size = task_size; in setup_task_size()
|
/linux/arch/x86/include/asm/ |
A D | processor.h | 785 #define __TASK_UNMAPPED_BASE(task_size) (PAGE_ALIGN(task_size / 3)) argument
|
/linux/drivers/net/ethernet/huawei/hinic/ |
A D | hinic_hw_qp.c | 478 u32 ctrl_size, task_size, bufdesc_size; in sq_prepare_ctrl() local 481 task_size = SIZE_8BYTES(sizeof(struct hinic_sq_task)); in sq_prepare_ctrl() 486 HINIC_SQ_CTRL_SET(task_size, TASKSECT_LEN) | in sq_prepare_ctrl()
|
/linux/mm/ |
A D | debug.c | 238 mm, mm->mmap, (long long) mm->vmacache_seqnum, mm->task_size, in dump_mm()
|
/linux/fs/ |
A D | userfaultfd.c | 1237 __u64 task_size = mm->task_size; in validate_range() local 1247 if (start >= task_size) in validate_range() 1249 if (len > task_size - start) in validate_range()
|
/linux/include/linux/ |
A D | mm_types.h | 484 unsigned long task_size; /* size of task vm space */ member
|
/linux/arch/powerpc/mm/ |
A D | slice.c | 471 BUG_ON(mm->task_size == 0); in slice_get_unmapped_area()
|
/linux/fs/proc/ |
A D | task_mmu.c | 1616 end_vaddr = mm->task_size; in pagemap_read() 1624 if (start_vaddr > mm->task_size) in pagemap_read()
|