Searched refs:mbytes (Results 1 - 6 of 6) sorted by relevance
/kernel/linux/linux-5.10/kernel/ |
H A D | kexec_core.c | 785 size_t ubytes, mbytes; in kimage_load_normal_segment() local 796 mbytes = segment->memsz; in kimage_load_normal_segment() 803 while (mbytes) { in kimage_load_normal_segment() 822 mchunk = min_t(size_t, mbytes, in kimage_load_normal_segment() 842 mbytes -= mchunk; in kimage_load_normal_segment() 858 size_t ubytes, mbytes; in kimage_load_crash_segment() local 869 mbytes = segment->memsz; in kimage_load_crash_segment() 871 while (mbytes) { in kimage_load_crash_segment() 884 mchunk = min_t(size_t, mbytes, in kimage_load_crash_segment() 910 mbytes in kimage_load_crash_segment() [all...] |
/kernel/linux/linux-6.6/kernel/ |
H A D | kexec_core.c | 778 size_t ubytes, mbytes; in kimage_load_normal_segment() local 788 mbytes = segment->memsz; in kimage_load_normal_segment() 795 while (mbytes) { in kimage_load_normal_segment() 814 mchunk = min_t(size_t, mbytes, in kimage_load_normal_segment() 834 mbytes -= mchunk; in kimage_load_normal_segment() 850 size_t ubytes, mbytes; in kimage_load_crash_segment() local 861 mbytes = segment->memsz; in kimage_load_crash_segment() 863 while (mbytes) { in kimage_load_crash_segment() 876 mchunk = min_t(size_t, mbytes, in kimage_load_crash_segment() 902 mbytes in kimage_load_crash_segment() [all...] |
/kernel/linux/linux-6.6/samples/vfio-mdev/ |
H A D | mbochs.c | 104 u32 mbytes; member 111 .mbytes = 4, 117 .mbytes = 16, 123 .mbytes = 64, 527 if (avail_mbytes < type->mbytes) in mbochs_init_dev() 530 avail_mbytes - type->mbytes)); in mbochs_init_dev() 536 mdev_state->memsize = type->mbytes * 1024 * 1024; in mbochs_init_dev() 558 type->type.pretty_name, type->mbytes, mdev_state->pagecount); in mbochs_init_dev() 564 atomic_add(type->mbytes, &mbochs_avail_mbytes); in mbochs_init_dev() 594 atomic_add(mdev_state->type->mbytes, in mbochs_release_dev() [all...] |
/kernel/linux/linux-5.10/arch/x86/kernel/cpu/ |
H A D | amd.c | 198 int mbytes = get_num_physpages() >> (20-PAGE_SHIFT); in init_amd_k6() local 241 if (mbytes > 508) in init_amd_k6() 242 mbytes = 508; in init_amd_k6() 247 l = (1<<0)|((mbytes/4)<<1); in init_amd_k6() 253 mbytes); in init_amd_k6() 262 if (mbytes > 4092) in init_amd_k6() 263 mbytes = 4092; in init_amd_k6() 268 l = ((mbytes>>2)<<22)|(1<<16); in init_amd_k6() 274 mbytes); in init_amd_k6()
|
/kernel/linux/linux-6.6/arch/x86/kernel/cpu/ |
H A D | amd.c | 197 int mbytes = get_num_physpages() >> (20-PAGE_SHIFT); in init_amd_k6() local 240 if (mbytes > 508) in init_amd_k6() 241 mbytes = 508; in init_amd_k6() 246 l = (1<<0)|((mbytes/4)<<1); in init_amd_k6() 252 mbytes); in init_amd_k6() 261 if (mbytes > 4092) in init_amd_k6() 262 mbytes = 4092; in init_amd_k6() 267 l = ((mbytes>>2)<<22)|(1<<16); in init_amd_k6() 273 mbytes); in init_amd_k6()
|
/kernel/linux/linux-5.10/samples/vfio-mdev/ |
H A D | mbochs.c | 105 u32 mbytes; member 111 .mbytes = 4, 116 .mbytes = 16, 121 .mbytes = 64, 527 if (type->mbytes + mbochs_used_mbytes > max_mbytes) in mbochs_create() 538 mdev_state->memsize = type->mbytes * 1024 * 1024; in mbochs_create() 547 kobj->name, type->mbytes, mdev_state->pagecount); in mbochs_create() 563 mbochs_used_mbytes += type->mbytes; in mbochs_create() 576 mbochs_used_mbytes -= mdev_state->type->mbytes; in mbochs_remove() 1323 return sprintf(buf, "%d MB\n", mdev_state->type->mbytes); in memory_show() [all...] |
Completed in 12 milliseconds