Searched refs:mbytes (Results 1 – 3 of 3) sorted by relevance
| /linux/kernel/ |
| H A D | kexec_core.c | 747 size_t ubytes, mbytes; in kimage_load_cma_segment() local 757 mbytes = segment->memsz; in kimage_load_cma_segment() 760 while (mbytes) { in kimage_load_cma_segment() 763 mchunk = min_t(size_t, mbytes, PAGE_SIZE); in kimage_load_cma_segment() 785 mbytes -= mchunk; in kimage_load_cma_segment() 791 memset(ptr, 0, mbytes); in kimage_load_cma_segment() 801 size_t ubytes, mbytes; in kimage_load_normal_segment() local 811 mbytes = segment->memsz; in kimage_load_normal_segment() 821 while (mbytes) { in kimage_load_normal_segment() 839 mchunk = min_t(size_t, mbytes, PAGE_SIZE); in kimage_load_normal_segment() [all …]
|
| /linux/arch/x86/kernel/cpu/ |
| H A D | amd.c | 115 int mbytes = get_num_physpages() >> (20-PAGE_SHIFT); in init_amd_k6() local 158 if (mbytes > 508) in init_amd_k6() 159 mbytes = 508; in init_amd_k6() 164 l = (1<<0)|((mbytes/4)<<1); in init_amd_k6() 170 mbytes); in init_amd_k6() 179 if (mbytes > 4092) in init_amd_k6() 180 mbytes = 4092; in init_amd_k6() 185 l = ((mbytes>>2)<<22)|(1<<16); in init_amd_k6() 191 mbytes); in init_amd_k6()
|
| /linux/samples/vfio-mdev/ |
| H A D | mbochs.c | 105 u32 mbytes; member 112 .mbytes = 4, 118 .mbytes = 16, 124 .mbytes = 64, 525 if (avail_mbytes < type->mbytes) in mbochs_init_dev() 528 avail_mbytes - type->mbytes)); in mbochs_init_dev() 534 mdev_state->memsize = type->mbytes * 1024 * 1024; in mbochs_init_dev() 556 type->type.pretty_name, type->mbytes, mdev_state->pagecount); in mbochs_init_dev() 562 atomic_add(type->mbytes, &mbochs_avail_mbytes); in mbochs_init_dev() 592 atomic_add(mdev_state->type->mbytes, &mbochs_avail_mbytes); in mbochs_release_dev() [all …]
|