Home
last modified time | relevance | path

Searched refs:val (Results 1 – 25 of 333) sorted by relevance

12345678910>>...14

/xen/tools/ocaml/libs/xb/
A Dxb.mli28 val size : int
51 val get_tid : t -> int
54 val get_rid : t -> int
77 val reconnect : t -> unit
85 val output : t -> bool
86 val input : t -> bool
87 val newcon : backend -> t
90 val close : t -> unit
91 val is_fd : t -> bool
92 val is_mmap : t -> bool
[all …]
A Dpacket.mli6 val create : int -> int -> Op.operation -> string -> t
7 val of_partialpkt : Partial.pkt -> t
8 val to_string : t -> string
9 val unpack : t -> int * int * Op.operation * string
10 val get_tid : t -> int
11 val get_ty : t -> Op.operation
12 val get_data : t -> string
13 val get_rid : t -> int
/xen/tools/ocaml/libs/xs/
A Dxsraw.mli21 val close : con -> unit
22 val open_fd : Unix.file_descr -> con
28 val pkt_send : con -> unit
32 val has_watchevents : con -> bool
37 val ack : string -> unit
38 val validate_path : string -> unit
47 val transaction_start : con -> int
50 val release : int -> con -> unit
51 val resume : int -> con -> unit
56 val rm : int -> string -> con -> unit
[all …]
/xen/xen/arch/x86/x86_64/
A Dmmconfig.h43 u8 val; in mmio_config_readb() local
44 asm volatile("movb (%1),%%al" : "=a" (val) : "r" (pos)); in mmio_config_readb()
45 return val; in mmio_config_readb()
50 u16 val; in mmio_config_readw() local
51 asm volatile("movw (%1),%%ax" : "=a" (val) : "r" (pos)); in mmio_config_readw()
52 return val; in mmio_config_readw()
57 u32 val; in mmio_config_readl() local
58 asm volatile("movl (%1),%%eax" : "=a" (val) : "r" (pos)); in mmio_config_readl()
59 return val; in mmio_config_readl()
62 static inline void mmio_config_writeb(void __iomem *pos, u8 val) in mmio_config_writeb() argument
[all …]
A Dgdbstub.c111 case 0: regs->rax = val; break; in gdb_arch_write_reg()
112 case 1: regs->rbx = val; break; in gdb_arch_write_reg()
113 case 2: regs->rcx = val; break; in gdb_arch_write_reg()
114 case 3: regs->rdx = val; break; in gdb_arch_write_reg()
115 case 4: regs->rsi = val; break; in gdb_arch_write_reg()
116 case 5: regs->rdi = val; break; in gdb_arch_write_reg()
117 case 6: regs->rbp = val; break; in gdb_arch_write_reg()
118 case 7: regs->rsp = val; break; in gdb_arch_write_reg()
120 case 8: regs->r8 = val; break; in gdb_arch_write_reg()
121 case 9: regs->r9 = val; break; in gdb_arch_write_reg()
[all …]
A Dmmconf-fam10h.c43 u64 val, tom2, start, end; in get_fam10h_pci_mmconf_base() local
69 rdmsrl(address, val); in get_fam10h_pci_mmconf_base()
72 if (!(val & (1<<21))) { in get_fam10h_pci_mmconf_base()
77 rdmsrl(address, val); in get_fam10h_pci_mmconf_base()
78 tom2 = max(val & 0xffffff800000ULL, 1ULL << 32); in get_fam10h_pci_mmconf_base()
88 if (!(val & 3)) in get_fam10h_pci_mmconf_base()
144 u64 val; in fam10h_check_enable_mmcfg() local
150 rdmsrl(MSR_FAM10H_MMIO_CONF_BASE, val); in fam10h_check_enable_mmcfg()
153 if (val & FAM10H_MMIO_CONF_ENABLE) { in fam10h_check_enable_mmcfg()
154 u64 base = val & MASK; in fam10h_check_enable_mmcfg()
[all …]
/xen/xen/include/asm-x86/
A Dmsr.h36 lo = (__u32)val; in wrmsrl()
37 hi = (__u32)(val >> 32); in wrmsrl()
42 #define rdmsr_safe(msr,val) ({\ argument
62 lo = (uint32_t)val; in wrmsr_safe()
63 hi = (uint32_t)(val >> 32); in wrmsr_safe()
83 regs->rdx = val >> 32; in msr_split()
84 regs->rax = (uint32_t)val; in msr_split()
112 #define __write_tsc(val) wrmsrl(MSR_IA32_TSC, val) argument
250 this_cpu(efer) = val; in write_efer()
251 wrmsrl(MSR_EFER, val); in write_efer()
[all …]
A Dmc146818rtc.h85 #define BCD_TO_BIN(val) ((val)=((val)&15) + ((val)>>4)*10) argument
89 #define BIN_TO_BCD(val) ((val)=(((val)/10)<<4) + (val)%10) argument
106 #define CMOS_WRITE(val, addr) ({ \ argument
108 outb_p((val),RTC_PORT(1)); \
/xen/xen/arch/x86/
A Dspec_ctrl.c74 int val, rc = 0; in parse_spec_ctrl() local
83 if ( !val ) in parse_spec_ctrl()
120 else if ( val > 0 ) in parse_spec_ctrl()
124 if ( !val ) in parse_spec_ctrl()
174 opt_ibrs = val; in parse_spec_ctrl()
176 opt_ibpb = val; in parse_spec_ctrl()
178 opt_ssbd = val; in parse_spec_ctrl()
224 int val, rc = 0; in parse_xpti() local
270 int val, rc = 0; in parse_pv_l1tf() local
415 uint64_t val; in check_smt_enabled() local
[all …]
A Dmsr.c140 uint64_t val; in init_domain_msr_policy() local
271 *val = 0; in guest_rdmsr()
293 *val = msrs->xss.raw; in guest_rdmsr()
312 *val = msrs->tsc_aux; in guest_rdmsr()
448 if ( val & rsvd ) in guest_wrmsr()
484 if ( val & rsvd ) in guest_wrmsr()
528 if ( val != 0 ) in guest_wrmsr()
531 msrs->xss.raw = val; in guest_wrmsr()
549 if ( val != (uint32_t)val ) in guest_wrmsr()
552 msrs->tsc_aux = val; in guest_wrmsr()
[all …]
A Demul-i8254.c145 if ( s->gate < val ) in pit_set_gate()
150 s->gate = val; in pit_set_gate()
174 if ( val == 0 ) in pit_load_count()
175 val = 0x10000; in pit_load_count()
181 s->count = val; in pit_load_count()
245 val &= 0xff; in pit_ioport_write()
252 channel = val >> 6; in pit_ioport_write()
285 s->bcd = val & 1; in pit_ioport_write()
515 *val = ~0; in handle_pit_io()
588 uint32_t val = data; in pv_pit_handler() local
[all …]
A Dtsx.c21 int rc = 0, val = parse_bool(s, NULL); in parse_tsx() local
23 if ( val >= 0 ) in parse_tsx()
24 opt_tsx = val; in parse_tsx()
52 uint64_t val; in tsx_init() local
54 rdmsrl(MSR_TSX_CTRL, val); in tsx_init()
56 val &= ~(TSX_CTRL_RTM_DISABLE | TSX_CTRL_CPUID_CLEAR); in tsx_init()
59 val |= TSX_CTRL_RTM_DISABLE | TSX_CTRL_CPUID_CLEAR; in tsx_init()
61 wrmsrl(MSR_TSX_CTRL, val); in tsx_init()
/xen/xen/arch/arm/arm64/
A Dlivepatch.c101 return val; in do_reloc()
104 return val - (u64)place; in do_reloc()
107 return (val & ~0xfff) - ((u64)place & ~0xfff); in do_reloc()
121 s64 sval = do_reloc(op, place, val); in reloc_data()
161 sval = do_reloc(op, dest, val); in reloc_insn_movw()
207 sval = do_reloc(op, dest, val); in reloc_insn_imm()
253 uint64_t val; in arch_livepatch_perform_rela() local
288 ovf = reloc_data(RELOC_OP_ABS, dest, val, 64); in arch_livepatch_perform_rela()
292 ovf = reloc_data(RELOC_OP_ABS, dest, val, 32); in arch_livepatch_perform_rela()
296 ovf = reloc_data(RELOC_OP_ABS, dest, val, 16); in arch_livepatch_perform_rela()
[all …]
/xen/xen/arch/x86/cpu/mcheck/
A Dvmce.c109 *val = 0; in bank_mce_rdmsr()
115 *val = ~0UL; in bank_mce_rdmsr()
124 if ( *val ) in bank_mce_rdmsr()
134 if ( *val ) in bank_mce_rdmsr()
144 if ( *val ) in bank_mce_rdmsr()
182 *val = 0; in vmce_rdmsr()
190 if ( *val ) in vmce_rdmsr()
202 *val = ~0ULL; in vmce_rdmsr()
257 if ( val ) in bank_mce_wrmsr()
266 if ( val ) in bank_mce_wrmsr()
[all …]
/xen/xen/arch/x86/oprofile/
A Dop_model_athlon.c44 #define CTRL_CLEAR(val) (val &= (1ULL<<21)) argument
45 #define CTRL_SET_ENABLE(val) (val |= 1ULL<<20) argument
46 #define CTRL_SET_USR(val,u) (val |= ((u & 1) << 16)) argument
47 #define CTRL_SET_KERN(val,k) (val |= ((k & 1) << 17)) argument
48 #define CTRL_SET_UM(val, m) (val |= ((m & 0xff) << 8)) argument
50 #define CTRL_SET_HOST_ONLY(val, h) (val |= ((h & 0x1ULL) << 41)) argument
51 #define CTRL_SET_GUEST_ONLY(val, h) (val |= ((h & 0x1ULL) << 40)) argument
107 typeof(val) __val = (val); \
164 return val; in op_amd_randomize_ibs_op()
255 u64 val, ctl; in handle_ibs() local
[all …]
/xen/xen/include/asm-arm/arm64/
A Dio.h52 u8 val; in __raw_readb() local
56 : "=r" (val) : "r" (addr)); in __raw_readb()
57 return val; in __raw_readb()
62 u16 val; in __raw_readw() local
66 : "=r" (val) : "r" (addr)); in __raw_readw()
67 return val; in __raw_readw()
72 u32 val; in __raw_readl() local
76 : "=r" (val) : "r" (addr)); in __raw_readl()
77 return val; in __raw_readl()
82 u64 val; in __raw_readq() local
[all …]
/xen/xen/include/asm-arm/arm32/
A Dio.h31 : "r" (val)); in __raw_writeb()
38 : "r" (val)); in __raw_writew()
45 : "r" (val)); in __raw_writel()
50 u8 val; in __raw_readb() local
53 "=r" (val)); in __raw_readb()
54 return val; in __raw_readb()
59 u16 val; in __raw_readw() local
62 "=r" (val)); in __raw_readw()
63 return val; in __raw_readw()
68 u32 val; in __raw_readl() local
[all …]
/xen/xen/drivers/passthrough/
A Diommu.c59 int val, rc = 0; in parse_iommu_param() local
67 iommu_enable = val; in parse_iommu_param()
70 force_iommu = val; in parse_iommu_param()
75 iommu_igfx = val; in parse_iommu_param()
77 iommu_qinval = val; in parse_iommu_param()
80 iommu_verbose = val; in parse_iommu_param()
83 iommu_snoop = val; in parse_iommu_param()
91 iommu_intpost = val; in parse_iommu_param()
99 iommu_debug = val; in parse_iommu_param()
100 if ( val ) in parse_iommu_param()
[all …]
/xen/xen/include/xen/libfdt/
A Dlibfdt.h180 fdth->name = cpu_to_fdt32(val); \
886 const void *val, int len);
919 fdt32_t tmp = cpu_to_fdt32(val); in fdt_setprop_inplace_u32()
954 fdt64_t tmp = cpu_to_fdt64(val); in fdt_setprop_inplace_u64()
1030 fdt32_t tmp = cpu_to_fdt32(val); in fdt_property_u32()
1035 fdt64_t tmp = cpu_to_fdt64(val); in fdt_property_u64()
1158 const void *val, int len);
1189 uint32_t val) in fdt_setprop_u32() argument
1224 uint64_t val) in fdt_setprop_u64() argument
1236 uint32_t val) in fdt_setprop_cell() argument
[all …]
/xen/xen/drivers/passthrough/vtd/
A Diommu.h55 #define dmar_writel(dmar, reg, val) writel(val, (dmar) + (reg)) argument
56 #define dmar_writeq(dmar, reg, val) writeq(val, (dmar) + (reg)) argument
113 #define DMA_TLB_IAIG(val) (((val) >> 57) & 7) argument
194 u64 val; member
238 #define level_to_agaw(val) ((val) - 2) argument
239 #define agaw_to_level(val) ((val) + 2) argument
240 #define agaw_to_width(val) (30 + val * LEVEL_STRIDE) argument
260 u64 val; member
273 (p).val = ((p).val & ~DMA_PTE_PROT) | ((prot) & DMA_PTE_PROT); \
287 __uint128_t val; member
[all …]
/xen/xen/arch/x86/hvm/
A Dstdvga.c143 s->sr_index = val; in stdvga_outb()
153 s->gr_index = val; in stdvga_outb()
367 *vram_b = val; in stdvga_mem_writeb()
380 *vram_b = val; in stdvga_mem_writeb()
393 val = ((val >> b) | (val << (8 - b))) & 0xff; in stdvga_mem_writeb()
394 val |= val << 8; in stdvga_mem_writeb()
395 val |= val << 16; in stdvga_mem_writeb()
399 val = (val & ~set_mask) | (mask16[s->gr[0]] & set_mask); in stdvga_mem_writeb()
406 val = mask16[val & 0x0f]; in stdvga_mem_writeb()
412 val = (val >> b) | (val << (8 - b)); in stdvga_mem_writeb()
[all …]
/xen/tools/tests/vpci/
A Dmain.c46 *(uint8_t *)data = val; in vpci_write8()
58 *(uint16_t *)data = val; in vpci_write16()
70 *(uint32_t *)data = val; in vpci_write32()
119 VPCI_READ_CHECK(reg, 4, val); in multiread4_check()
125 uint32_t val = 0xa2f51732; in multiwrite4_check() local
130 multiread4_check(reg, val); in multiwrite4_check()
133 val = 0x2b836fda; in multiwrite4_check()
137 multiread4_check(reg, val); in multiwrite4_check()
139 val = 0xc4693beb; in multiwrite4_check()
140 VPCI_WRITE_CHECK(reg, 4, val); in multiwrite4_check()
[all …]
/xen/tools/pygrub/src/
A DGrubConf.py69 def set_disk(self, val): argument
70 val = val.replace("(", "").replace(")", "")
80 def set_part(self, val): argument
81 if val is None:
82 self._part = val
84 val = val.replace("(", "").replace(")", "")
86 val = val[5:]
87 if val[:3] == "gpt":
88 val = val[3:]
113 def set_root(self, val): argument
[all …]
/xen/tools/xenpmd/
A Dxenpmd.c347 (unsigned int)(val & 0xff00) >> 8, (unsigned int)(val & 0xff0000) >> 16, in write_ulong_lsb_first()
348 (unsigned int)(val & 0xff000000) >> 24); in write_ulong_lsb_first()
353 char val[1024], string_info[256]; in write_battery_info_to_xenstore() local
358 memset(val, 0, 1024); in write_battery_info_to_xenstore()
364 snprintf(val, 3, "%02x", len); in write_battery_info_to_xenstore()
365 write_ulong_lsb_first(val+2, info->present); in write_battery_info_to_xenstore()
380 strncat(val+73, string_info, 1024-73-1); in write_battery_info_to_xenstore()
426 char val[35]; in write_battery_status_to_xenstore() local
430 memset(val, 0, 35); in write_battery_status_to_xenstore()
431 snprintf(val, 3, "%02x", 16); in write_battery_status_to_xenstore()
[all …]
/xen/xen/arch/arm/arm32/
A Dlivepatch.c160 *(u32 *)dest = (val + addend); in perform_rel()
180 val &= 0xFFFF0000; /* ResultMask */ in perform_rel()
181 val = val >> 16; in perform_rel()
186 val &= 0xFFFF; in perform_rel()
189 *(u32 *)dest |= val & 0xFFF; in perform_rel()
190 *(u32 *)dest |= (val >> 12) << 16; in perform_rel()
199 val += addend - (uint32_t)dest; in perform_rel()
210 val = val >> 2; in perform_rel()
211 val &= 0x00FFFFFE; in perform_rel()
212 *(u32 *)dest |= (uint32_t)val; in perform_rel()
[all …]

Completed in 44 milliseconds

12345678910>>...14