/xen/tools/xenstore/ |
A D | talloc.h | 45 #define talloc(ctx, type) (type *)talloc_named_const(ctx, sizeof(type), #type) argument 50 #define talloc_zero(ctx, type) (type *)_talloc_zero(ctx, sizeof(type), #type) argument 53 #define talloc_zero_array(ctx, type, count) (type *)_talloc_zero_array(ctx, sizeof(type), count, #t… argument 54 #define talloc_array(ctx, type, count) (type *)_talloc_array(ctx, sizeof(type), count, #type) argument 57 #define talloc_realloc(ctx, p, type, count) (type *)_talloc_realloc_array(ctx, p, sizeof(type), cou… argument 62 #define malloc_p(type) (type *)malloc(sizeof(type)) argument 63 #define malloc_array_p(type, count) (type *)realloc_array(NULL, sizeof(type), count) argument 64 #define realloc_p(p, type, count) (type *)realloc_array(p, sizeof(type), count) argument 74 #define talloc_get_type(ptr, type) (type *)talloc_check_name(ptr, #type) argument 76 #define talloc_find_parent_bytype(ptr, type) (type *)talloc_find_parent_byname(ptr, #type) argument [all …]
|
/xen/xen/tools/kconfig/ |
A D | expr.c | 30 e->type = type; in expr_alloc_one() 38 e->type = type; in expr_alloc_two() 47 e->type = type; in expr_alloc_comp() 155 if (e1->type == type) { in __expr_eliminate_eq() 160 if (e2->type == type) { in __expr_eliminate_eq() 233 if (e1->type != e2->type) switch (e2->type) { in expr_eliminate_eq() 257 if (e1->type != e2->type) in expr_eq() 432 if (e1->type != E_EQUAL && e1->type != E_UNEQUAL && e1->type != E_SYMBOL && e1->type != E_NOT) in expr_join_or() 434 if (e2->type != E_EQUAL && e2->type != E_UNEQUAL && e2->type != E_SYMBOL && e2->type != E_NOT) in expr_join_or() 598 if (e1->type == type) { in expr_eliminate_dups1() [all …]
|
A D | menu.c | 86 switch (e->type) { in rewrite_m() 115 if (sym->type == type) in menu_set_type() 118 sym->type = type; in menu_set_type() 124 sym_type_name(sym->type), sym_type_name(type)); in menu_set_type() 222 return sym2->type == S_INT || sym2->type == S_HEX || in menu_validate_number() 235 if ((sym->type == S_STRING || sym->type == S_INT || sym->type == S_HEX) && in sym_check_prop() 243 if (sym->type == S_HEX || sym->type == S_INT) { in sym_check_prop() 264 if (sym->type != S_BOOLEAN && sym->type != S_TRISTATE) in sym_check_prop() 277 if (sym->type != S_INT && sym->type != S_HEX) in sym_check_prop() 681 type = menu->prompt ? menu->prompt->type : 0; in menu_get_parent_menu() [all …]
|
/xen/xen/common/ |
A D | vmap.c | 27 ASSERT(!vm_base[type]); in vm_init_type() 29 vm_base[type] = start; in vm_init_type() 31 vm_low[type]= PFN_UP((vm_end[type] + 7) / 8); in vm_init_type() 42 bitmap_fill(vm_bitmap(type), vm_low[type]); in vm_init_type() 167 end = find_next_zero_bit(vm_bitmap(type), vm_top[type], start + 1); in vm_size() 179 type = VMAP_XEN; in vm_free() 190 if ( bit < vm_low[type] ) in vm_free() 193 while ( !test_bit(vm_low[type] - 1, vm_bitmap(type)) ) in vm_free() 194 --vm_low[type]; in vm_free() 312 pages = vm_size(va, type); in vfree() [all …]
|
/xen/xen/common/ubsan/ |
A D | ubsan.c | 78 WARN_ON(!type_is_int(type)); in type_is_signed() 79 return type->type_info & 1; in type_is_signed() 99 if (is_inline_int(type)) { in get_signed_val() 112 return type_is_signed(type) && get_signed_val(type, val) < 0; in val_is_negative() 117 if (is_inline_int(type)) in get_unsigned_val() 129 if (type_is_int(type)) { in val_to_string() 183 struct type_descriptor *type = data->type; in handle_overflow() local 201 type->type_name); in handle_overflow() 266 if (type_is_signed(data->type) && get_signed_val(data->type, rhs) == -1) in __ubsan_handle_divrem_overflow() 287 data->type->type_name); in handle_null_ptr_deref() [all …]
|
/xen/tools/libxc/ |
A D | xc_sr_common.c | 13 const char *dhdr_type_to_str(uint32_t type) in dhdr_type_to_str() argument 15 if ( type < ARRAY_SIZE(dhdr_types) && dhdr_types[type] ) in dhdr_type_to_str() 16 return dhdr_types[type]; in dhdr_type_to_str() 44 const char *rec_type_to_str(uint32_t type) in rec_type_to_str() argument 46 if ( !(type & REC_TYPE_OPTIONAL) ) in rec_type_to_str() 49 (mandatory_rec_types[type]) ) in rec_type_to_str() 50 return mandatory_rec_types[type]; in rec_type_to_str() 65 { &rec->type, sizeof(rec->type) }, in write_split_record() 122 datasz, rhdr.type, rec_type_to_str(rhdr.type)); in read_record() 131 datasz, rhdr.type, rec_type_to_str(rhdr.type)); in read_record() [all …]
|
A D | xc_kexec.c | 15 int xc_kexec_exec(xc_interface *xch, int type) in xc_kexec_exec() argument 27 exec->type = type; in xc_kexec_exec() 68 int xc_kexec_load(xc_interface *xch, uint8_t type, uint16_t arch, in xc_kexec_load() argument 89 load->type = type; in xc_kexec_load() 106 int xc_kexec_unload(xc_interface *xch, int type) in xc_kexec_unload() argument 118 unload->type = type; in xc_kexec_unload() 130 int xc_kexec_status(xc_interface *xch, int type) in xc_kexec_status() argument 142 status->type = type; in xc_kexec_status()
|
/xen/xen/include/xen/ |
A D | percpu.h | 6 #define DECLARE_PER_CPU(type, name) \ argument 7 extern __typeof__(type) per_cpu__ ## name 9 #define __DEFINE_PER_CPU(attr, type, name) \ argument 10 attr __typeof__(type) per_cpu_ ## name 18 #define DEFINE_PER_CPU(type, name) \ argument 19 __DEFINE_PER_CPU(__section(".bss.percpu"), type, _ ## name) 21 #define DEFINE_PER_CPU_PAGE_ALIGNED(type, name) \ argument 23 [BUILD_BUG_ON_ZERO(__alignof(type) & (PAGE_SIZE - 1))]; \ 25 type, _ ## name) 27 #define DEFINE_PER_CPU_READ_MOSTLY(type, name) \ argument [all …]
|
A D | kernel.h | 33 #define min_t(type,x,y) \ argument 34 ({ type __x = (x); type __y = (y); __x < __y ? __x: __y; }) 35 #define max_t(type,x,y) \ argument 36 ({ type __x = (x); type __y = (y); __x > __y ? __x: __y; }) 53 #define container_of(ptr, type, member) ({ \ argument 54 typeof( ((type *)0)->member ) *__mptr = (ptr); \ 55 (type *)( (char *)__mptr - offsetof(type,member) );}) 61 #define typecheck(type,x) \ argument 62 ({ type __dummy; \
|
A D | multiboot2.h | 123 u32 type; member 128 u32 type; member 134 u32 type; member 140 u32 type; member 149 u32 type; member 154 u32 type; member 162 u32 type; member 168 u32 type; member 174 u32 type; member
|
/xen/tools/firmware/hvmloader/ |
A D | hypercall.h | 41 #define _hypercall0(type, name) \ argument 49 (type)__res; \ 52 #define _hypercall1(type, name, a1) \ argument 61 (type)__res; \ 64 #define _hypercall2(type, name, a1, a2) \ argument 73 (type)__res; \ 76 #define _hypercall3(type, name, a1, a2, a3) \ argument 87 (type)__res; \ 90 #define _hypercall4(type, name, a1, a2, a3, a4) \ argument 163 unsigned int cmd, unsigned int type) in hypercall_vm_assist() argument [all …]
|
A D | e820.c | 76 if ( memory_map.map[i].type == E820_RAM && in adjust_memory_map() 101 memory_map.map[i].type = E820_RAM; in adjust_memory_map() 128 switch ( e820[i].type ) in dump_e820_table() 175 e820[nr].type = E820_RAM; in build_e820_table() 184 e820[nr].type = E820_RESERVED; in build_e820_table() 201 e820[nr].type = E820_RESERVED; in build_e820_table() 219 e820[nr].type = E820_NVS; in build_e820_table() 238 e820[nr].type = E820_RESERVED; in build_e820_table() 243 e820[nr].type = E820_NVS; in build_e820_table() 248 e820[nr].type = E820_RESERVED; in build_e820_table() [all …]
|
/xen/tools/xl/ |
A D | xl_psr.c | 122 switch (type) { in psr_cmt_print_domain_info() 264 libxl_psr_cmt_type type; in main_psr_cmt_show() local 290 ret = psr_cmt_show(type, domid); in main_psr_cmt_show() 357 switch (type) { in psr_print_one_domain_val() 423 switch (type) { in psr_print_socket() 471 switch (type) { in psr_val_show() 558 libxl_psr_type type; in main_psr_mba_set() local 591 type = LIBXL_PSR_CBM_TYPE_MBA_THRTL; in main_psr_mba_set() 638 libxl_psr_cbm_type type; in main_psr_cat_cbm_set() local 686 type = LIBXL_PSR_CBM_TYPE_L2_CBM; in main_psr_cat_cbm_set() [all …]
|
/xen/tools/golang/xenlight/ |
A D | gengotypes.py | 108 if f.type.typename is not None: 164 if f.type is None: 264 for nf in f.type.fields: 353 if f.type is None: 369 for nf in f.type.fields: 424 clenvar = ty.type.lenvar.name 467 for nf in f.type.fields: 498 ctypename = ty.type.typename 558 if f.type is None: 572 for uf in f.type.fields: [all …]
|
/xen/tools/libxl/ |
A D | idl.txt | 4 Each type in the libxl interface is represented by an object of type 16 of the type. 28 type. 40 memory contained within this type (but not the type itself). 50 this type. 78 representing this type. 83 representing this type to C type. 98 Other simple type-Classes 113 Complex type-Classes 157 Field.type The type of the member (a idl.Type). [all …]
|
A D | gentypes.py | 74 if f.type is not None: 120 if f.type is not None: 231 ku = field.type 263 for x in f.type.fields: 289 if f.type is not None: 295 elif isinstance(field.type, idl.Struct) and field.type.copy_fn is None: 336 return f.type.init_val 350 if f.type.check_default_fn: 387 if f.type is not None: 499 if f.type is not None: [all …]
|
A D | libxl_psr.c | 76 libxl_psr_type type) in libxl__psr_alloc_log_err_msg() argument 123 LOG(ERROR, "%s: %s", feat_name[type], msg); in libxl__psr_alloc_log_err_msg() 245 rc = event_mask & (1 << (type - 1)); in libxl_psr_cmt_type_supported() 254 libxl_psr_cmt_type type, in libxl_psr_cmt_get_sample() argument 280 rc = xc_psr_cmt_get_data(ctx->xch, rmid, cpu, type - 1, in libxl_psr_cmt_get_sample() 321 libxl_psr_type type) in libxl__psr_type_to_libxc_psr_type() argument 324 return (xc_psr_type)type; in libxl__psr_type_to_libxc_psr_type() 346 switch (type) { in libxl__feat_type_to_libxc_feat_type() 370 assert(type == LIBXL_PSR_FEAT_TYPE_CAT); in libxl__hw_info_to_libxl_cat_info() 467 libxl__psr_alloc_log_err_msg(gc, errno, type); in libxl_psr_get_val() [all …]
|
A D | libxl_x86.c | 10 switch(d_config->c_info.type) { in libxl__arch_domain_prepare_config() 37 switch (type) { in e820_names() 72 src[i].type = 0; in e820_sanitize() 84 (src[i].type == 0)) in e820_sanitize() 97 e820[idx].type = E820_RAM; in e820_sanitize() 140 src[i].type = 0; in e820_sanitize() 160 src[i].type = 0; in e820_sanitize() 207 (src[i].type == 0)) in e820_sanitize() 210 e820[idx].type = src[i].type; in e820_sanitize() 396 switch(info->type) { in hvm_set_conf_params() [all …]
|
/xen/tools/tests/vpci/ |
A D | emul.h | 30 #define container_of(ptr, type, member) ({ \ argument 31 typeof(((type *)0)->member) *mptr = (ptr); \ 33 (type *)((char *)mptr - offsetof(type, member)); \ 90 #define xzalloc(type) ((type *)calloc(1, sizeof(type))) argument 91 #define xmalloc(type) ((type *)malloc(sizeof(type))) argument
|
/xen/tools/ocaml/libs/xl/ |
A D | genwrap.py | 115 name = f.type.keyvar.name 123 if f.type.private: 144 if f.type is None: continue 146 if isinstance(f.type, idl.Struct) and not f.type.has_fields(): continue 157 if f.type is None: 313 if f.type is None or not f.type.has_fields(): 325 if f.type is not None and f.type.has_fields(): 326 if f.type.private: 341 if f.type.private: 411 if f.type is None: [all …]
|
/xen/docs/ |
A D | xen-headers | 124 my ($text,$type,$name,$hparams,$deref) = @_; 126 debug(2,"DEFN $. $type $name $hparams |$text|"); 129 my $xrefs = $sdef{$type}{$name}{Xrefs}; 131 $hparams .= " name=\"${type}_$name\"" if $sdef{$type}{$name}{Used}; 153 my ($type,$name,$hkey) = @_; 154 $sdef{$type}{$name}{Used} = 1; 155 my $sdef = $sdef{$type}{$name}; 169 my ($ttype,$tname) = ($type,$name); 191 my ($text,$type,$name) = @_; 339 my ($type,$desc,$pfx,$sfx) = @_; [all …]
|
/xen/xen/arch/x86/ |
A D | e820.c | 53 if (type && ei->type != type) in e820_all_mapped() 87 e820.map[x].type = type; in add_memory_region() 99 switch (map[i].type) { in print_e820_memory_map() 315 unsigned long type = biosmap->type; in copy_e820_map() local 352 if (e820.map[i].type != E820_RAM) in find_max_pfn() 556 if ( rs == e && e820->map[i].type == type ) in e820_add_range() 562 if ( re == s && e820->map[i].type == type && in e820_add_range() 589 e820->map[i].type = type; in e820_add_range() 615 e820->map[i].type = new_type; in e820_change_range_type() 653 e820->map[i+1].type = new_type; in e820_change_range_type() [all …]
|
/xen/tools/include/xen-external/ |
A D | bsd-sys-queue.h | 143 #define SLIST_HEAD(name, type) \ argument 151 #define SLIST_ENTRY(type) \ argument 153 struct type *sle_next; /* next element */ \ 226 #define STAILQ_HEAD(name, type) \ argument 235 #define STAILQ_ENTRY(type) \ argument 289 #define STAILQ_LAST(head, type, field) \ argument 292 ((struct type *)(void *) \ 340 #define LIST_HEAD(name, type) \ argument 348 #define LIST_ENTRY(type) \ argument 454 #define TAILQ_HEAD(name, type) \ argument [all …]
|
/xen/xen/include/asm-arm/ |
A D | guest_access.h | 38 #define guest_handle_cast(hnd, type) ({ \ argument 39 type *_x = (hnd).p; \ 40 (XEN_GUEST_HANDLE_PARAM(type)) { _x }; \ 44 #define guest_handle_to_param(hnd, type) ({ \ argument 46 XEN_GUEST_HANDLE_PARAM(type) _y = { _x }; \ 54 #define guest_handle_for_field(hnd, type, fld) \ argument 55 ((XEN_GUEST_HANDLE(type)) { &(hnd).p->fld }) 57 #define guest_handle_from_ptr(ptr, type) \ argument 58 ((XEN_GUEST_HANDLE_PARAM(type)) { (type *)ptr }) 59 #define const_guest_handle_from_ptr(ptr, type) \ argument [all …]
|
/xen/xen/arch/arm/arm64/ |
A D | insn.c | 46 switch (type) { in aarch64_get_imm_shift_mask() 101 u64 aarch64_insn_decode_immediate(enum aarch64_insn_imm_type type, u32 insn) in aarch64_insn_decode_immediate() argument 106 switch (type) { in aarch64_insn_decode_immediate() 115 if (aarch64_get_imm_shift_mask(type, &mask, &shift) < 0) { in aarch64_insn_decode_immediate() 117 type); in aarch64_insn_decode_immediate() 134 switch (type) { in aarch64_insn_encode_immediate() 145 if (aarch64_get_imm_shift_mask(type, &mask, &shift) < 0) { in aarch64_insn_encode_immediate() 147 type); in aarch64_insn_encode_immediate() 180 enum aarch64_insn_branch_type type) in aarch64_insn_gen_branch_imm() argument 194 switch (type) { in aarch64_insn_gen_branch_imm() [all …]
|