| /hypervisor/include/lib/ |
| A D | list.h | 126 #define list_for_each_safe(pos, n, head) \ argument 128 (pos) = (n), (n) = (pos)->next) 134 hlist_del(struct hlist_node *n) in hlist_del() argument 137 if (n->next != NULL) { in hlist_del() 138 n->next->pprev = n->pprev; in hlist_del() 140 *n->pprev = n->next; in hlist_del() 144 hlist_add_head(struct hlist_node *n, struct hlist_head *h) in hlist_add_head() argument 147 n->next = h->first; in hlist_add_head() 149 h->first->pprev = &n->next; in hlist_add_head() 151 h->first = n; in hlist_add_head() [all …]
|
| A D | rtl.h | 43 void *memset(void *base, uint8_t v, size_t n);
|
| /hypervisor/arch/x86/lib/ |
| A D | memory.c | 7 static inline void memset_erms(void *base, uint8_t v, size_t n) in memset_erms() argument 11 : "a" (v), "c"(n)); in memset_erms() 14 void *memset(void *base, uint8_t v, size_t n) in memset() argument 20 if ((base != NULL) && (n != 0U)) { in memset() 21 memset_erms(base, v, n); in memset()
|
| /hypervisor/common/ |
| A D | ptdev.c | 66 struct ptirq_remapping_info *n, *entry = NULL; in find_ptirq_entry() local 73 n = hlist_entry(p, struct ptirq_remapping_info, phys_link); in find_ptirq_entry() 74 if (is_entry_active(n)) { in find_ptirq_entry() 75 if ((intr_type == n->intr_type) && (sid->value == n->phys_sid.value)) { in find_ptirq_entry() 76 entry = n; in find_ptirq_entry() 84 n = hlist_entry(p, struct ptirq_remapping_info, virt_link); in find_ptirq_entry() 85 if (is_entry_active(n)) { in find_ptirq_entry() 86 if ((intr_type == n->intr_type) && (sid->value == n->virt_sid.value) && (vm == n->vm)) { in find_ptirq_entry() 87 entry = n; in find_ptirq_entry()
|
| A D | timer.c | 184 const struct list_head *pos, *n; in timer_softirq() local 197 list_for_each_safe(pos, n, &cpu_timer->timer_list) { in timer_softirq()
|
| A D | hypercall.c | 136 static uint32_t nearest_pow2(uint32_t n) in nearest_pow2() argument 138 uint32_t p = n; in nearest_pow2() 140 if (n >= 2U) { in nearest_pow2() 141 p = fls32(2U*n - 1U); in nearest_pow2()
|
| /hypervisor/lib/crypto/mbedtls/ |
| A D | hkdf.c | 85 size_t n; in mbedtls_hkdf_expand() local 105 n = okm_len / hash_len; in mbedtls_hkdf_expand() 108 n++; in mbedtls_hkdf_expand() 115 if (n > 255U) { in mbedtls_hkdf_expand() 127 for (i = 1U; i <= n; i++) { in mbedtls_hkdf_expand() 154 num_to_copy = (i != n) ? hash_len : (okm_len - where); in mbedtls_hkdf_expand()
|
| A D | sha256.c | 58 uint32_t n; in get_uint32_be() local 60 n = ((uint32_t) (*(b + i)) << 24) in get_uint32_be() 65 return n; in get_uint32_be() 74 *(b + i) = (uint8_t) (n >> 24); in put_unint32_be() 75 *(b + i + 1U) = (uint8_t) (n >> 16); in put_unint32_be() 76 *(b + i + 2U) = (uint8_t) (n >> 8); in put_unint32_be() 77 *(b + i + 3U) = (uint8_t) n; in put_unint32_be() 80 static inline uint32_t shr(uint32_t x, uint8_t n) in shr() argument 82 return ((x & 0xFFFFFFFFU) >> n); in shr() 85 static inline uint32_t rotr(uint32_t x, uint8_t n) in rotr() argument [all …]
|
| A D | ChangeLog | 1439 * Support for 1/n-1 record splitting, a countermeasure against BEAST. 1591 * Use \n\t rather than semicolons for bn_mul asm, since some assemblers 2067 * Use \n\t rather than semicolons for bn_mul asm, since some assemblers 2860 thanks to Xosé Antón Otero Ferreira
|
| /hypervisor/lib/ |
| A D | string.c | 191 size_t n = n_arg; in strncmp() local 194 if (n > 0U) { in strncmp() 195 while (((n - 1) != 0U) && ((*str1) != '\0') && ((*str2) != '\0') && ((*str1) == (*str2))) { in strncmp() 198 n--; in strncmp()
|
| A D | sprintf.c | 552 uint32_t n = 0U; in charmem() local 557 while (((*s) != '\0') && (n < sz)) { in charmem() 558 if (n < (param->sz - param->wrtn)) { in charmem() 563 n++; in charmem() 567 param->wrtn += n; in charmem() 571 n = (sz < (param->sz - param->wrtn)) ? sz : 0U; in charmem() 573 (void)memset(p, (uint8_t)*s, n); in charmem()
|
| /hypervisor/arch/x86/guest/ |
| A D | instr_emul.c | 2089 uint8_t n, i, x; in decode_displacement() local 2099 if (n != 0U) { in decode_displacement() 2100 if ((n != 1U) && (n != 4U)) { in decode_displacement() 2116 if (n == 1U) { in decode_displacement() 2130 uint8_t i, n, x; in decode_immediate() local 2160 n = vie->imm_bytes; in decode_immediate() 2161 if (n != 0U) { in decode_immediate() 2162 if ((n != 1U) && (n != 2U) && (n != 4U)) { in decode_immediate() 2178 if (n == 1U) { in decode_immediate() 2194 uint8_t i, n, x; in decode_moffset() local [all …]
|
| /hypervisor/dm/vpci/ |
| A D | vdev.c | 82 struct hlist_node *n; in pci_find_vdev() local 84 hlist_for_each(n, &vpci->vdevs_hlist_heads[hash64(vbdf.value, VDEV_LIST_HASHBITS)]) { in pci_find_vdev() 85 tmp = hlist_entry(n, struct pci_vdev, link); in pci_find_vdev()
|
| /hypervisor/include/arch/x86/asm/ |
| A D | vm_config.h | 20 #define AFFINITY_CPU(n) (1UL << (n)) argument
|
| /hypervisor/scripts/makefile/ |
| A D | config.mk | 148 override RELEASE := n 191 $(eval $(call determine_build_type,n))
|
| /hypervisor/hw/ |
| A D | pci.c | 283 struct hlist_node *n; in pci_find_pdev() local 286 hlist_for_each (n, &pdevs_hlist_heads[hash64(pbdf, PDEV_HLIST_HASHBITS)]) { in pci_find_pdev() 287 tmp = hlist_entry(n, struct pci_pdev, link); in pci_find_pdev()
|