/xen/xen/arch/x86/mm/ |
A D | mm-locks.h | 38 l->locker = -1; in mm_lock_init() 40 l->unlock_level = 0; in mm_lock_init() 132 l->locker = -1; in mm_rwlock_init() 154 l->recurse_count++; in _mm_write_lock() 161 l->locker = -1; in mm_write_unlock() 194 #define mm_lock(name, d, l) mm_lock_##name(d, l, __func__, 0) argument 195 #define mm_lock_recursive(name, d, l) mm_lock_##name(d, l, __func__, 1) argument 196 #define mm_write_lock(name, d, l) mm_write_lock_##name(d, l, __func__) argument 197 #define mm_read_lock(name, d, l) mm_read_lock_##name(d, l) argument 295 #define page_sharing_mm_unlock(l, r) mm_enforce_order_unlock((l), (r)) argument [all …]
|
/xen/xen/include/xen/ |
A D | spinlock.h | 132 #define DEFINE_SPINLOCK(l) spinlock_t l = SPIN_LOCK_UNLOCKED argument 134 #define spin_lock_init_prof(s, l) spin_lock_init(&((s)->l)) argument 184 #define spin_lock(l) _spin_lock(l) argument 185 #define spin_lock_cb(l, c, d) _spin_lock_cb(l, c, d) argument 186 #define spin_lock_irq(l) _spin_lock_irq(l) argument 193 #define spin_unlock(l) _spin_unlock(l) argument 194 #define spin_unlock_irq(l) _spin_unlock_irq(l) argument 197 #define spin_is_locked(l) _spin_is_locked(l) argument 198 #define spin_trylock(l) _spin_trylock(l) argument 210 #define spin_barrier(l) _spin_barrier(l) argument [all …]
|
A D | rwlock.h | 22 #define DEFINE_RWLOCK(l) rwlock_t l = RW_LOCK_UNLOCKED argument 23 #define rwlock_init(l) (*(l) = (rwlock_t)RW_LOCK_UNLOCKED) argument 240 #define read_lock(l) _read_lock(l) argument 241 #define read_lock_irq(l) _read_lock_irq(l) argument 248 #define read_unlock(l) _read_unlock(l) argument 251 #define read_trylock(l) _read_trylock(l) argument 253 #define write_lock(l) _write_lock(l) argument 254 #define write_lock_irq(l) _write_lock_irq(l) argument 260 #define write_trylock(l) _write_trylock(l) argument 262 #define write_unlock(l) _write_unlock(l) argument [all …]
|
/xen/xen/xsm/flask/ss/ |
A D | mls.c | 41 for ( l = 0; l < 2; l++ ) in mls_compute_context_len() 71 if ( l == 0 ) in mls_compute_context_len() 104 for ( l = 0; l < 2; l++ ) in mls_sid_to_context() 176 if ( !l->sens || l->sens > p->p_levels.nprim ) in mls_level_isvalid() 277 for ( l = 0; l < 2; l++ ) in mls_context_to_sid() 364 if ( l == 0 ) in mls_context_to_sid() 384 int l, rc = 0; in mls_range_set() local 387 for ( l = 0; l < 2; l++ ) in mls_range_set() 389 context->range.level[l].sens = range->level[l].sens; in mls_range_set() 411 int l, i; in mls_convert_context() local [all …]
|
/xen/tools/libfsimage/iso9660/ |
A D | fsys_iso9660.c | 134 fsmax = PRIMDESC->volume_space_size.l; in iso9660_mount() 170 size = idr->size.l; in iso9660_dir() 171 extent = idr->extent.l; in iso9660_dir() 183 for (; idr->length.l > 0; in iso9660_dir() 206 rr_len = (idr->length.l - idr->name_len.l in iso9660_dir() 272 switch (slp->flags.l) in iso9660_dir() 290 slp->flags.l); in iso9660_dir() 295 prevflag = slp->flags.l; in iso9660_dir() 343 rr_len = ce_ptr->u.ce.size.l; in iso9660_dir() 379 INODE->file_start = idr->extent.l; in iso9660_dir() [all …]
|
/xen/tools/misc/ |
A D | xen-cpuid.c | 330 unsigned int l; in print_policy() local 336 for ( l = 0; l < nr_leaves; ++l ) in print_policy() 339 if ( !leaves[l].a && !leaves[l].b && !leaves[l].c && !leaves[l].d ) in print_policy() 343 leaves[l].leaf, leaves[l].subleaf, in print_policy() 344 leaves[l].a, leaves[l].b, leaves[l].c, leaves[l].d); in print_policy() 349 for ( l = 0; l < nr_msrs; ++l ) in print_policy() 351 msrs[l].idx, msrs[l].val); in print_policy()
|
A D | xenlockprof.c | 26 double l, b, sl, sb; in main() local 104 l = (double)(data[j].lock_time) / 1E+09; in main() 106 sl += l; in main() 110 name, data[j].lock_cnt, l, data[j].block_cnt, b); in main() 112 l = (double)time / 1E+09; in main() 113 printf("total profiling time: %20.9fs\n", l); in main()
|
/xen/xen/common/ |
A D | inflate.c | 389 l = *m; in huft_build() 395 l = j; in huft_build() 401 l = i; in huft_build() 402 *m = l; in huft_build() 775 l = malloc(sizeof(*l) * 288); in inflate_fixed() 781 l[i] = 8; in inflate_fixed() 790 free(l); in inflate_fixed() 801 free(l); in inflate_fixed() 810 free(l); in inflate_fixed() 815 free(l); in inflate_fixed() [all …]
|
A D | unlzo.c | 73 int l; in parse_header() local 88 for (l = 0; l < 9; l++) { in parse_header() 89 if (*parse++ != lzop_magic[l]) in parse_header() 118 l = *parse++; in parse_header() 120 if (end - parse < l + 4) in parse_header() 122 parse += l + 4; in parse_header()
|
A D | bitmap.c | 341 unsigned long l; in bitmap_long_to_byte() local 344 for (i = 0, b = 0; nbits > 0; i++, b += sizeof(l)) { in bitmap_long_to_byte() 345 l = lp[i]; in bitmap_long_to_byte() 346 for (j = 0; (j < sizeof(l)) && (nbits > 0); j++) { in bitmap_long_to_byte() 347 bp[b+j] = l; in bitmap_long_to_byte() 348 l >>= 8; in bitmap_long_to_byte() 357 unsigned long l; in bitmap_byte_to_long() local 361 l = 0; in bitmap_byte_to_long() 362 for (j = 0; (j < sizeof(l)) && (nbits > 0); j++) { in bitmap_byte_to_long() 363 l |= (unsigned long)bp[b+j] << (j*8); in bitmap_byte_to_long() [all …]
|
/xen/docs/ |
A D | gen-html-index | 65 my ($l) = @_; 66 return "$1($2)" if $l =~ m,^man/(.*)\.([0-9].*)\.html,; 67 $l =~ s/.(?:html|txt)$//g; 68 return $index{$l} if exists $index{$l}; 74 my $f = "$outdir/$l.html"; 75 open F, '<', $f or die "$l $f $!"; 80 print "$l: get title: $@" if $@ && $debug; 83 return basename($l);
|
/xen/tools/pygrub/src/ |
A D | GrubConf.py | 285 for l in lines: 286 l = l.strip() 288 if len(l) == 0: 291 if l.startswith('#'): 298 title = l[6:] 302 img.append(l) 386 for l in lines: 387 l = l.strip() 389 if len(l) == 0: 392 if l.startswith('#'): [all …]
|
A D | LiloConf.py | 113 for l in lines: 114 l = l.strip() 116 if len(l) == 0: 119 if l.startswith('#'): 122 if l.startswith("image"): 125 img = [l] 129 img.append(l) 132 (com, arg) = GrubConf.grub_exact_split(l, 2)
|
A D | ExtLinuxConf.py | 152 for l in lines: 153 l = l.strip() 155 if len(l) == 0: 158 if l.startswith('#'): 161 if l.lower().startswith("label"): 164 img = [l] 168 img.append(l) 171 (com, arg) = GrubConf.grub_exact_split(l, 2)
|
/xen/xen/lib/x86/ |
A D | cpuid.c | 5 static void zero_leaves(struct cpuid_leaf *l, in zero_leaves() argument 9 memset(&l[first], 0, sizeof(*l) * (last - first + 1)); in zero_leaves() 92 struct cpuid_leaf l; in x86_cpuid_policy_fill_native() member 96 cpuid_count_leaf(4, i, &u.l); in x86_cpuid_policy_fill_native() 127 struct cpuid_leaf l; in x86_cpuid_policy_fill_native() member 133 cpuid_count_leaf(0xb, i, &u.l); in x86_cpuid_policy_fill_native() 147 (cpuid_count_leaf(0xb, i, &u.l), u.t.type != 0) ) in x86_cpuid_policy_fill_native() 408 struct cpuid_leaf l; in x86_cpuid_copy_from_buffer() local 452 array_access_nospec(p->basic.raw, data.leaf) = l; in x86_cpuid_copy_from_buffer() 461 p->hv_limit = l.a; in x86_cpuid_copy_from_buffer() [all …]
|
/xen/tools/tests/vpci/ |
A D | emul.h | 59 #define spin_lock_init(l) (*(l) = false) argument 60 #define spin_lock(l) (*(l) = true) argument 61 #define spin_unlock(l) (*(l) = false) argument
|
/xen/tools/libxc/ |
A D | xc_dom_x86.c | 147 int l, m; in count_pgtables() local 180 for ( l = domx86->params->levels - 1; l >= 0; l-- ) in count_pgtables() 214 map->lvls[l].to <= map_cmp->lvls[l].to ) in count_pgtables() 221 map->lvls[l].to <= map_cmp->lvls[l].to); in count_pgtables() 223 map->lvls[l].from <= map_cmp->lvls[l].to ) in count_pgtables() 224 map->lvls[l].from = map_cmp->lvls[l].to + 1; in count_pgtables() 226 map->lvls[l].to <= map_cmp->lvls[l].to ) in count_pgtables() 229 if ( map->lvls[l].from < map->lvls[l].to ) in count_pgtables() 234 map->lvls[l].from, map->lvls[l].to, map->lvls[l].pgtables); in count_pgtables() 414 int l; in setup_pgtables_pv() local [all …]
|
A D | xc_private.c | 596 uint64_t l; in bitmap_64_to_byte() local 600 l = lp[i]; in bitmap_64_to_byte() 602 bp[b+j] = l; in bitmap_64_to_byte() 603 l >>= 8; in bitmap_64_to_byte() 611 uint64_t l; in bitmap_byte_to_64() local 615 l = 0; in bitmap_byte_to_64() 620 lp[i] = l; in bitmap_byte_to_64() 759 uint8_t h = x>>8, l = x; in xc_ffs16() local 760 return l ? xc_ffs8(l) : h ? xc_ffs8(h) + 8 : 0; in xc_ffs16() 766 return l ? xc_ffs16(l) : h ? xc_ffs16(h) + 16 : 0; in xc_ffs32() [all …]
|
/xen/stubdom/vtpmmgr/ |
A D | marshal.h | 182 #define unpack3_TPM_RESULT(p, l, m, t) unpack3_UINT32(p, l, m, t) argument 183 #define unpack3_TPM_PCRINDEX(p, l, m, t) unpack3_UINT32(p, l, m, t) argument 184 #define unpack3_TPM_DIRINDEX(p, l, m, t) unpack3_UINT32(p, l, m, t) argument 185 #define unpack3_TPM_HANDLE(p, l, m, t) unpack3_UINT32(p, l, m, t) argument 193 #define unpack3_TPM_COMMAND_CODE(p, l, m, t) unpack3_UINT32(p, l, m, t) argument 194 #define unpack3_TPM_PROTOCOL_ID(p, l, m, t) unpack3_UINT16(p, l, m, t) argument 196 #define unpack3_TPM_ENTITY_TYPE(p, l, m, t) unpack3_UINT16(p, l, m, t) argument 198 #define unpack3_TPM_KEY_USAGE(p, l, m, t) unpack3_UINT16(p, l, m, t) argument 201 #define unpack3_TPM_ENC_SCHEME(p, l, m, t) unpack3_UINT16(p, l, m, t) argument 202 #define unpack3_TPM_SIG_SCHEME(p, l, m, t) unpack3_UINT16(p, l, m, t) argument [all …]
|
/xen/tools/xl/ |
A D | xl_parse.c | 261 long l; in parse_top_level_vnc_options() local 267 vnc->display = l; in parse_top_level_vnc_options() 1212 long l, vcpus = 0; in parse_config_data() local 1368 vcpus = l; in parse_config_data() 1374 while (l-- > 0) in parse_config_data() 1618 l); in parse_config_data() 1855 b_info->altp2m = l; in parse_config_data() 2330 pci_power_mgmt = l; in parse_config_data() 2333 pci_permissive = l; in parse_config_data() 2336 pci_seize = l; in parse_config_data() [all …]
|
/xen/xen/arch/x86/x86_64/ |
A D | mmconfig-shared.c | 214 u32 l, extcfg; in pci_mmcfg_nvidia_mcp55() local 217 l = pci_conf_read32(PCI_SBDF(0, bus, 0, 0), 0); in pci_mmcfg_nvidia_mcp55() 218 vendor = l & 0xffff; in pci_mmcfg_nvidia_mcp55() 219 device = (l >> 16) & 0xffff; in pci_mmcfg_nvidia_mcp55() 239 u32 l, extcfg; in pci_mmcfg_nvidia_mcp55() local 243 l = pci_conf_read32(PCI_SBDF(0, bus, 0, 0), 0); in pci_mmcfg_nvidia_mcp55() 244 vendor = l & 0xffff; in pci_mmcfg_nvidia_mcp55() 245 device = (l >> 16) & 0xffff; in pci_mmcfg_nvidia_mcp55() 303 u32 l; in pci_mmcfg_check_hostbridge() local 317 vendor = l & 0xffff; in pci_mmcfg_check_hostbridge() [all …]
|
/xen/tools/ocaml/xenstored/ |
A D | utils.ml | 21 let filter_out filter l = 22 List.filter (fun x -> not (List.mem x filter)) l 24 let filter_in filter l = 25 List.filter (fun x -> List.mem x filter) l 27 let list_remove element l = 28 List.filter (fun e -> e != element) l 30 let list_tl_multi n l = 34 do_tl n l 38 let l = List.length path in 41 let x = List.rev (list_tl_multi (l - i) revpath) in [all …]
|
/xen/xen/include/asm-x86/ |
A D | spinlock.h | 4 #define _raw_read_unlock(l) \ argument 5 BUILD_BUG_ON(sizeof((l)->lock) != 4); /* Clang doesn't support %z in asm. */ \ 6 asm volatile ( "lock; decl %0" : "+m" ((l)->lock) :: "memory" )
|
/xen/xen/include/xen/lib/x86/ |
A D | cpuid.h | 47 static inline void cpuid_leaf(uint32_t leaf, struct cpuid_leaf *l) in cpuid_leaf() argument 52 : "=a" (l->a), BX_CON (l->b), "=&c" (l->c), "=&d" (l->d) in cpuid_leaf() 57 uint32_t leaf, uint32_t subleaf, struct cpuid_leaf *l) in cpuid_count_leaf() argument 62 : "=a" (l->a), BX_CON (l->b), "=c" (l->c), "=&d" (l->d) in cpuid_count_leaf()
|
/xen/xen/tools/kconfig/ |
A D | util.c | 54 size_t l; in str_append() local 56 l = strlen(gs->s) + strlen(s) + 1; in str_append() 57 if (l > gs->len) { in str_append() 58 gs->s = xrealloc(gs->s, l); in str_append() 59 gs->len = l; in str_append()
|