/kvm-unit-tests/lib/ |
H A D | alloc_page.c | 18 #define IS_ALIGNED_ORDER(x,order) IS_ALIGNED((x),BIT_ULL(order)) argument 102 u8 metadata, order; in split() local 107 order = metadata & ORDER_MASK; in split() 108 assert(IS_USABLE(metadata) && order && (order < NLISTS)); in split() 109 assert(IS_ALIGNED_ORDER(pfn, order)); in split() 110 assert(usable_area_contains_pfn(a, pfn + BIT(order) - 1)); in split() 116 for (i = 0; i < BIT(order); i++) { in split() 120 if ((order == a->max_order) && (is_list_empty(a->freelists + order))) in split() 122 order--; in split() 127 list_add_tail(a->freelists + order, addr); in split() [all …]
|
H A D | alloc_page.h | 60 void *alloc_pages_flags(unsigned int order, unsigned int flags); 67 static inline void *alloc_pages(unsigned int order) in alloc_pages() argument 69 return alloc_pages_flags(order, AREA_ANY); in alloc_pages() 101 static inline void free_pages_by_order(void *mem, unsigned int order) in free_pages_by_order() argument
|
/kvm-unit-tests/lib/s390x/ |
H A D | malloc_io.c | 44 int order = get_order(PAGE_ALIGN(size) >> PAGE_SHIFT); in alloc_io_mem() local 50 p = alloc_pages_flags(order, AREA_DMA31 | flags); in alloc_io_mem() 54 n = share_pages(p, 1 << order); in alloc_io_mem() 55 if (n == 1 << order) in alloc_io_mem() 65 int order = get_order(PAGE_ALIGN(size) >> PAGE_SHIFT); in free_io_mem() local 70 unshare_pages(p, 1 << order); in free_io_mem()
|
H A D | smp.c | 51 int smp_sigp(uint16_t idx, uint8_t order, unsigned long parm, uint32_t *status) in smp_sigp() argument 54 return sigp_retry(cpus[idx].addr, order, parm, status); in smp_sigp() 99 uint8_t order = store ? SIGP_STOP_AND_STORE_STATUS : SIGP_STOP; in smp_cpu_stop_nolock() local 105 if (smp_sigp(idx, order, 0, NULL)) in smp_cpu_stop_nolock()
|
H A D | smp.h | 47 int smp_sigp(uint16_t idx, uint8_t order, unsigned long parm, uint32_t *status);
|
/kvm-unit-tests/lib/s390x/asm/ |
H A D | sigp.h | 48 static inline int sigp(uint16_t addr, uint8_t order, unsigned long parm, in sigp() argument 61 : [addr] "d" (addr), [order] "a" (order), [bogus_cc] "d" (bogus_cc) in sigp() 68 static inline int sigp_retry(uint16_t addr, uint8_t order, unsigned long parm, in sigp_retry() argument 74 cc = sigp(addr, order, parm, status); in sigp_retry()
|
/kvm-unit-tests/lib/arm64/ |
H A D | gic-v3-its.c | 53 unsigned long order = get_order(size >> PAGE_SHIFT); in its_baser_alloc_table() local 57 baser->table_addr = alloc_pages(order); in its_baser_alloc_table() 70 unsigned long order = get_order(SZ_64K >> PAGE_SHIFT); in its_cmd_queue_init() local 73 its_data.cmd_base = alloc_pages(order); in its_cmd_queue_init()
|
/kvm-unit-tests/lib/arm/ |
H A D | gic-v3.c | 170 unsigned long order = fls(n); in gicv3_lpi_alloc_tables() local 174 gicv3_data.lpi_prop = alloc_pages(order); in gicv3_lpi_alloc_tables() 189 gicv3_data.lpi_pend[cpu] = alloc_pages(order); in gicv3_lpi_alloc_tables()
|
/kvm-unit-tests/s390x/ |
H A D | smp.c | 26 int order; member 71 cc = sigp(INVALID_CPU_ADDRESS, c->order, 0, &status); in test_invalid() 77 cc = smp_sigp(1, c->order, 0, &status); in test_invalid()
|
/kvm-unit-tests/ |
H A D | README | 225 Additionally it's helpful to have a common order of file types in patches. 226 Our chosen order attempts to place the more declarative files before 228 code. git-diff's orderFile feature allows us to specify the order in a
|
H A D | README.md | 225 Additionally it's helpful to have a common order of file types in patches. 226 Our chosen order attempts to place the more declarative files before 228 code. git-diff's orderFile feature allows us to specify the order in a
|
H A D | LICENSE | 199 conditions are imposed on you (whether by court order, agreement or
|
/kvm-unit-tests/lib/asm-generic/ |
H A D | io.h | 21 #error Undefined byte order
|