Home
last modified time | relevance | path

Searched refs:p (Results 1 – 25 of 352) sorted by relevance

12345678910>>...15

/xen/tools/firmware/hvmloader/
A Dsmbios.c395 memset(p, 0, sizeof(*p)); in smbios_type_0_init()
454 memset(p, 0, sizeof(*p)); in smbios_type_1_init()
523 memset(p, 0, sizeof(*p)); in smbios_type_2_init()
608 memset(p, 0, sizeof(*p)); in smbios_type_3_init()
659 memset(p, 0, sizeof(*p)); in smbios_type_4_init()
759 memset(p, 0, sizeof(*p)); in smbios_type_16_init()
784 memset(p, 0, sizeof(*p)); in smbios_type_17_init()
819 memset(p, 0, sizeof(*p)); in smbios_type_19_init()
841 memset(p, 0, sizeof(*p)); in smbios_type_20_init()
883 memset(p, 0, sizeof(*p)); in smbios_type_22_init()
[all …]
/xen/xen/lib/x86/
A Dcpuid.c66 p->basic.vendor_ebx, p->basic.vendor_ecx, p->basic.vendor_edx); in x86_cpuid_policy_recalc_synth()
190 zero_leaves(p->basic.raw, p->basic.max_leaf + 1, in x86_cpuid_policy_clear_out_of_range_leaves()
194 memset(p->cache.raw, 0, sizeof(p->cache.raw)); in x86_cpuid_policy_clear_out_of_range_leaves()
201 zero_leaves(p->cache.raw, i, ARRAY_SIZE(p->cache.raw) - 1); in x86_cpuid_policy_clear_out_of_range_leaves()
205 memset(p->feat.raw, 0, sizeof(p->feat.raw)); in x86_cpuid_policy_clear_out_of_range_leaves()
207 zero_leaves(p->feat.raw, p->feat.max_subleaf + 1, in x86_cpuid_policy_clear_out_of_range_leaves()
211 memset(p->topo.raw, 0, sizeof(p->topo.raw)); in x86_cpuid_policy_clear_out_of_range_leaves()
218 zero_leaves(p->topo.raw, i, ARRAY_SIZE(p->topo.raw) - 1); in x86_cpuid_policy_clear_out_of_range_leaves()
221 if ( p->basic.max_leaf < 0xd || !cpuid_policy_xstates(p) ) in x86_cpuid_policy_clear_out_of_range_leaves()
222 memset(p->xstate.raw, 0, sizeof(p->xstate.raw)); in x86_cpuid_policy_clear_out_of_range_leaves()
[all …]
/xen/xen/arch/x86/
A Dcpuid.c161 memset(&p->xstate, 0, sizeof(p->xstate)); in recalculate_xstate()
240 memset(p->topo.raw, 0, sizeof(p->topo.raw)); in recalculate_misc()
247 p->extd.raw[0x7].a = p->extd.raw[0x7].b = p->extd.raw[0x7].c = 0; in recalculate_misc()
265 p->extd.raw[0x6].a = p->extd.raw[0x6].b = p->extd.raw[0x6].d = 0; in recalculate_misc()
277 p->extd.vendor_ebx = p->basic.vendor_ebx; in recalculate_misc()
278 p->extd.vendor_ecx = p->basic.vendor_ecx; in recalculate_misc()
279 p->extd.vendor_edx = p->basic.vendor_edx; in recalculate_misc()
281 p->extd.raw_fms = p->basic.raw_fms; in recalculate_misc()
571 p->basic.vendor_ebx, p->basic.vendor_ecx, p->basic.vendor_edx); in recalculate_cpuid_policy()
670 p->extd.maxlinaddr = p->extd.lm ? 48 : 32; in recalculate_cpuid_policy()
[all …]
/xen/xen/include/asm-arm/arm32/
A Dbitops.h9 extern int _find_first_zero_bit_le(const void * p, unsigned size);
11 extern int _find_first_bit_le(const unsigned long *p, unsigned size);
17 extern int _find_first_zero_bit_be(const void * p, unsigned size);
26 #define find_first_zero_bit(p,sz) _find_first_zero_bit_le(p,sz) argument
27 #define find_next_zero_bit(p,sz,off) _find_next_zero_bit_le(p,sz,off) argument
28 #define find_first_bit(p,sz) _find_first_bit_le(p,sz) argument
29 #define find_next_bit(p,sz,off) _find_next_bit_le(p,sz,off) argument
35 #define find_first_zero_bit(p,sz) _find_first_zero_bit_be(p,sz) argument
36 #define find_next_zero_bit(p,sz,off) _find_next_zero_bit_be(p,sz,off) argument
37 #define find_first_bit(p,sz) _find_first_bit_be(p,sz) argument
[all …]
/xen/stubdom/vtpmmgr/
A Dmarshal.h73 #define pack_BOOL(p, t) pack_BYTE(p, t) argument
74 #define unpack_BOOL(p, t) unpack_BYTE(p, t) argument
130 #define pack_TPM_RESULT(p, t) pack_UINT32(p, t) argument
131 #define pack_TPM_PCRINDEX(p, t) pack_UINT32(p, t) argument
132 #define pack_TPM_DIRINDEX(p, t) pack_UINT32(p, t) argument
133 #define pack_TPM_HANDLE(p, t) pack_UINT32(p, t) argument
146 #define pack_TPM_KEY_USAGE(p, t) pack_UINT16(p, t) argument
149 #define pack_TPM_ENC_SCHEME(p, t) pack_UINT16(p, t) argument
150 #define pack_TPM_SIG_SCHEME(p, t) pack_UINT16(p, t) argument
153 #define pack_TPM_KEY_FLAGS(p, t) pack_UINT32(p, t) argument
[all …]
/xen/xen/drivers/acpi/
A Dtables.c59 p->processor_id, p->id, in acpi_table_print_madt_entry()
70 p->local_apic_id, p->uid, in acpi_table_print_madt_entry()
82 p->id, p->address, p->global_irq_base); in acpi_table_print_madt_entry()
92 p->bus, p->source_irq, p->global_irq, in acpi_table_print_madt_entry()
126 p->lint); in acpi_table_print_madt_entry()
141 p->uid, in acpi_table_print_madt_entry()
164 p->id, (void *)(unsigned long)p->address, in acpi_table_print_madt_entry()
175 p->processor_id, p->id, p->eid, in acpi_table_print_madt_entry()
188 p->type, p->id, p->eid, p->io_sapic_vector, in acpi_table_print_madt_entry()
200 p->uid, p->base_address, in acpi_table_print_madt_entry()
[all …]
/xen/xen/include/asm-arm/
A Dbitops.h20 #define __set_bit(n,p) set_bit(n,p) argument
21 #define __clear_bit(n,p) clear_bit(n,p) argument
89 volatile unsigned int *p = in __test_and_set_bit() local
91 unsigned int old = *p; in __test_and_set_bit()
93 *p = old | mask; in __test_and_set_bit()
109 volatile unsigned int *p = in __test_and_clear_bit() local
111 unsigned int old = *p; in __test_and_clear_bit()
113 *p = old & ~mask; in __test_and_clear_bit()
122 volatile unsigned int *p = in __test_and_change_bit() local
124 unsigned int old = *p; in __test_and_change_bit()
[all …]
A Datomic.h84 *(uint8_t *)res = read_u8_atomic(p); in read_atomic_size()
87 *(uint16_t *)res = read_u16_atomic(p); in read_atomic_size()
90 *(uint32_t *)res = read_u32_atomic(p); in read_atomic_size()
93 *(uint64_t *)res = read_u64_atomic(p); in read_atomic_size()
96 __bad_atomic_read(p, res); in read_atomic_size()
108 write_u8_atomic(p, *(uint8_t *)val); in write_atomic_size()
111 write_u16_atomic(p, *(uint16_t *)val); in write_atomic_size()
114 write_u32_atomic(p, *(uint32_t *)val); in write_atomic_size()
117 write_u64_atomic(p, *(uint64_t *)val); in write_atomic_size()
127 read_atomic_size(p, x_.c, sizeof(*p)); \
[all …]
A Dpage.h165 const void *end = p + size; in invalidate_dcache_va_range()
172 p = (void *)((uintptr_t)p & ~cacheline_mask); in invalidate_dcache_va_range()
174 p += dcache_line_bytes; in invalidate_dcache_va_range()
182 for ( ; p < end; p += dcache_line_bytes ) in invalidate_dcache_va_range()
192 const void *end = p + size; in clean_dcache_va_range()
194 p = (void *)((uintptr_t)p & ~(dcache_line_bytes - 1)); in clean_dcache_va_range()
195 for ( ; p < end; p += dcache_line_bytes ) in clean_dcache_va_range()
203 (const void *p, unsigned long size) in clean_and_invalidate_dcache_va_range() argument
205 const void *end = p + size; in clean_and_invalidate_dcache_va_range()
207 p = (void *)((uintptr_t)p & ~(dcache_line_bytes - 1)); in clean_and_invalidate_dcache_va_range()
[all …]
/xen/xen/arch/arm/
A Dgic-vgic.c41 gic_hw_ops->update_lr(lr, p->irq, p->priority, in gic_set_lr()
42 p->desc ? p->desc->irq : INVALID_IRQ, state); in gic_set_lr()
46 p->lr = lr; in gic_set_lr()
145 if ( unlikely(!p) ) in gic_raise_guest_irq()
165 struct pending_irq *p; in gic_update_one_lr() local
181 if ( unlikely(!p || in gic_update_one_lr()
357 struct pending_irq *p; in vgic_vcpu_pending_irq() local
410 printk("Inflight irq=%u lr=%u\n", p->irq, p->lr); in gic_dump_vgic_info()
427 if ( !p ) in vgic_get_hw_irq_desc()
430 return p->desc; in vgic_get_hw_irq_desc()
[all …]
/xen/tools/misc/
A Dxen-hvmctx.c208 READ(p); in dump_pic()
210 p.irq_base, p.irr, p.imr, p.isr); in dump_pic()
213 p.init_state, p.priority_add, p.readsel_isr, p.poll); in dump_pic()
215 p.auto_eoi, p.rotate_on_auto_eoi); in dump_pic()
219 p.is_master, p.elcr, p.int_output); in dump_pic()
227 READ(p); in dump_ioapic()
229 (unsigned long long) p.base_address, p.ioregsel, p.id); in dump_ioapic()
242 (unsigned long long) p.apic_base_msr, p.disabled, p.timer_divisor); in dump_lapic()
300 p.channels[i].mode, p.channels[i].bcd, p.channels[i].gate); in dump_pit()
341 p.tmr_val, (unsigned) p.pm1a_sts, (unsigned) p.pm1a_en); in dump_pmtimer()
[all …]
/xen/xen/xsm/flask/ss/
A Dpolicydb.c214 memset(p, 0, sizeof(*p)); in policydb_init()
271 p = datap; in class_index()
285 p = datap; in role_index()
301 p = datap; in type_index()
322 p = datap; in user_index()
338 p = datap; in sens_index()
357 p = datap; in cat_index()
407 rc = hashtab_map(p->p_classes.table, class_index, p); in policydb_index_classes()
441 p->p_users.nprim, p->p_roles.nprim, p->p_types.nprim, p->p_bools.nprim); in policydb_index_others()
448 p->p_classes.nprim, p->te_avtab.nel); in policydb_index_others()
[all …]
A Dconditional.c128 p->bool_val_to_struct = NULL; in cond_policydb_init()
129 p->cond_list = NULL; in cond_policydb_init()
177 xfree(p->bool_val_to_struct); in cond_policydb_destroy()
201 struct policydb *p; in cond_index_bool() local
205 p = datap; in cond_index_bool()
265 struct policydb *p; member
275 struct policydb *p = data->p; in cond_insertf() local
384 data.p = p; in cond_read_av_list()
390 rc = avtab_read_item(&p->te_cond_avtab, fp, p, cond_insertf, &data); in cond_read_av_list()
486 rc = avtab_alloc(&(p->te_cond_avtab), p->te_avtab.nel); in cond_read_list()
[all …]
/xen/xen/common/
A Dxmalloc_tlsf.c573 return p; in strip_padding()
590 return p; in add_padding()
620 p = add_padding(p, align); in _xmalloc()
623 return p; in _xmalloc()
630 return p ? memset(p, 0, size) : p; in _xzalloc()
636 void *p; in _xrealloc() local
680 p = add_padding(p, align); in _xrealloc()
689 if ( p ) in _xrealloc()
695 return p; in _xrealloc()
700 if ( p == NULL || p == ZERO_BLOCK_PTR ) in xfree()
[all …]
/xen/xen/arch/x86/hvm/
A Dintercept.c45 last = hvm_mmio_last_byte(p); in hvm_mmio_accept()
83 return (p->addr >= start) && ((p->addr + p->size) <= end); in hvm_portio_accept()
120 int rc = X86EMUL_OKAY, i, step = p->df ? -p->size : p->size; in hvm_process_io_intercept()
124 if ( p->dir == IOREQ_READ ) in hvm_process_io_intercept()
130 p->addr; in hvm_process_io_intercept()
158 p->data = data; in hvm_process_io_intercept()
193 data = p->data; in hvm_process_io_intercept()
197 p->addr; in hvm_process_io_intercept()
206 p->count = i; in hvm_process_io_intercept()
216 p->count = 1; in hvm_process_io_intercept()
[all …]
/xen/tools/libxl/
A Dlibxlu_vif.c18 const char *p; in vif_parse_rate_bytes_per_sec() local
28 p = bytes; in vif_parse_rate_bytes_per_sec()
29 tmp = strtoull(p, (char**)&p, 0); in vif_parse_rate_bytes_per_sec()
36 if (*p == 'G') in vif_parse_rate_bytes_per_sec()
42 if (*p == 'b' || *(p+1) == 'b') in vif_parse_rate_bytes_per_sec()
57 const char *p; in vif_parse_rate_interval_usecs() local
67 p = interval; in vif_parse_rate_interval_usecs()
68 tmp = strtoull(p, (char**)&p, 0); in vif_parse_rate_interval_usecs()
75 if (*p == 's' || *p == '\0') in vif_parse_rate_interval_usecs()
108 if (p != NULL) in xlu_vif_parse_rate()
[all …]
/xen/xen/arch/arm/arm32/lib/
A Dbitops.c33 static always_inline bool int_##name(int nr, volatile void *p, bool timeout,\
36 volatile uint32_t *ptr = (uint32_t *)p + BITOP_WORD((unsigned int)nr); \
40 ASSERT(((vaddr_t)p & 0x3) == 0); \
59 void name(int nr, volatile void *p) \
61 if ( !int_##name(nr, p, false, 0) ) \
134 prefetchw((const uint16_t *)p); in bitop()
142 : "=&r" (res), "+Qo" (*p), "=&r" (tmp) in bitop()
152 void clear_mask16(uint16_t mask, volatile void *p) in clear_mask16() argument
154 if ( !int_clear_mask16(mask, p, false, 0) ) in clear_mask16()
158 bool clear_mask16_timeout(uint16_t mask, volatile void *p, in clear_mask16_timeout() argument
[all …]
/xen/xen/include/asm-x86/
A Dguest_atomics.h10 #define guest_set_bit(d, nr, p) ((void)(d), set_bit(nr, p)) argument
11 #define guest_clear_bit(d, nr, p) ((void)(d), clear_bit(nr, p)) argument
12 #define guest_change_bit(d, nr, p) ((void)(d), change_bit(nr, p)) argument
13 #define guest_test_bit(d, nr, p) ((void)(d), test_bit(nr, p)) argument
15 #define guest_test_and_set_bit(d, nr, p) \ argument
16 ((void)(d), test_and_set_bit(nr, p))
17 #define guest_test_and_clear_bit(d, nr, p) \ argument
18 ((void)(d), test_and_clear_bit(nr, p))
19 #define guest_test_and_change_bit(d, nr, p) \ argument
20 ((void)(d), test_and_change_bit(nr, p))
A Dguest_access.h42 #define guest_handle_is_null(hnd) ((hnd).p == NULL)
45 #define guest_handle_add_offset(hnd, nr) ((hnd).p += (nr))
51 type *_x = (hnd).p; \
66 ((XEN_GUEST_HANDLE(type)) { &(hnd).p->fld })
79 char (*_d)[sizeof(*_s)] = (void *)(hnd).p; \
81 void *__maybe_unused _t = (hnd).p; \
82 (void)((hnd).p == _s); \
97 void *_d = (hnd).p; \
122 array_access_ok((hnd).p, (nr), sizeof(*(hnd).p)))
127 sizeof(*(hnd).p)))
[all …]
/xen/xen/tools/kconfig/
A Dutil.c85 if (p) in xmalloc()
86 return p; in xmalloc()
94 if (p) in xcalloc()
95 return p; in xcalloc()
102 p = realloc(p, size); in xrealloc()
103 if (p) in xrealloc()
104 return p; in xrealloc()
111 char *p; in xstrdup() local
114 if (p) in xstrdup()
122 char *p; in xstrndup() local
[all …]
/xen/xen/include/xen/byteorder/
A Dbig_endian.h41 return (__force __le64)__swab64p(p); in __cpu_to_le64p()
45 return __swab64p((__u64 *)p); in __le64_to_cpup()
49 return (__force __le32)__swab32p(p); in __cpu_to_le32p()
53 return __swab32p((__u32 *)p); in __le32_to_cpup()
61 return __swab16p((__u16 *)p); in __le16_to_cpup()
65 return (__force __be64)*p; in __cpu_to_be64p()
69 return (__force __u64)*p; in __be64_to_cpup()
73 return (__force __be32)*p; in __cpu_to_be32p()
77 return (__force __u32)*p; in __be32_to_cpup()
81 return (__force __be16)*p; in __cpu_to_be16p()
[all …]
A Dlittle_endian.h41 return (__force __le64)*p; in __cpu_to_le64p()
45 return (__force __u64)*p; in __le64_to_cpup()
49 return (__force __le32)*p; in __cpu_to_le32p()
53 return (__force __u32)*p; in __le32_to_cpup()
57 return (__force __le16)*p; in __cpu_to_le16p()
61 return (__force __u16)*p; in __le16_to_cpup()
65 return (__force __be64)__swab64p(p); in __cpu_to_be64p()
69 return __swab64p((__u64 *)p); in __be64_to_cpup()
73 return (__force __be32)__swab32p(p); in __cpu_to_be32p()
77 return __swab32p((__u32 *)p); in __be32_to_cpup()
[all …]
/xen/xen/include/xen/lib/x86/
A Dcpuid.h285 fs[FEATURESET_1d] = p->basic._1d; in cpuid_policy_to_featureset()
286 fs[FEATURESET_1c] = p->basic._1c; in cpuid_policy_to_featureset()
287 fs[FEATURESET_e1d] = p->extd.e1d; in cpuid_policy_to_featureset()
288 fs[FEATURESET_e1c] = p->extd.e1c; in cpuid_policy_to_featureset()
290 fs[FEATURESET_7b0] = p->feat._7b0; in cpuid_policy_to_featureset()
291 fs[FEATURESET_7c0] = p->feat._7c0; in cpuid_policy_to_featureset()
292 fs[FEATURESET_e7d] = p->extd.e7d; in cpuid_policy_to_featureset()
293 fs[FEATURESET_e8b] = p->extd.e8b; in cpuid_policy_to_featureset()
317 return ((uint64_t)p->xstate.xcr0_high << 32) | p->xstate.xcr0_low; in cpuid_policy_xcr0_max()
322 uint64_t val = p->xstate.xcr0_high | p->xstate.xss_high; in cpuid_policy_xstates()
[all …]
/xen/tools/libs/call/
A Dbuffer.c51 void *p = NULL; in cache_alloc() local
76 return p; in cache_alloc()
102 void *p; in buffer_release_cache() local
122 osdep_free_pages(xcall, p, 1); in buffer_release_cache()
132 if ( !p ) in xencall_alloc_buffer_pages()
135 if (!p) in xencall_alloc_buffer_pages()
138 memset(p, 0, nr_pages * PAGE_SIZE); in xencall_alloc_buffer_pages()
140 return p; in xencall_alloc_buffer_pages()
145 if ( p == NULL ) in xencall_free_buffer_pages()
176 if (p == NULL) in xencall_free_buffer()
[all …]
/xen/xen/arch/arm/arm64/lib/
A Dbitops.c32 static always_inline bool int_##name(int nr, volatile void *p, bool timeout,\
35 volatile uint32_t *ptr = (uint32_t *)p + BITOP_WORD((unsigned int)nr); \
55 void name(int nr, volatile void *p) \
57 if ( !int_##name(nr, p, false, 0) ) \
61 bool name##_timeout(int nr, volatile void *p, unsigned int max_try) \
63 return int_##name(nr, p, true, max_try); \
132 : "=&r" (res), "+Q" (*p), "=&r" (tmp) in bitop()
142 void clear_mask16(uint16_t mask, volatile void *p) in clear_mask16() argument
144 if ( !int_clear_mask16(mask, p, false, 0) ) in clear_mask16()
148 bool clear_mask16_timeout(uint16_t mask, volatile void *p, in clear_mask16_timeout() argument
[all …]

Completed in 49 milliseconds

12345678910>>...15