Home
last modified time | relevance | path

Searched refs:len (Results 1 – 25 of 321) sorted by relevance

12345678910>>...13

/xen/stubdom/vtpm/
A Dvtpm_cmd.c92 return pack_header(&respptr, &len, tag, len, errorcode); in create_error_response()
99 UINT32 len; in VTPM_GetRandom() local
116 bptr = resp; len = resplen; in VTPM_GetRandom()
143 UINT32 len; in VTPM_LoadHashKey() local
160 len = resplen; in VTPM_LoadHashKey()
187 UINT32 len; in VTPM_SaveHashKey() local
206 len = resplen; in VTPM_SaveHashKey()
228 UINT32 len; in VTPM_GetParentQuote() local
248 len = resplen; in VTPM_GetParentQuote()
254 *quote_blob_size = len; in VTPM_GetParentQuote()
[all …]
/xen/xen/arch/arm/vgic/
A Dvgic-mmio.h21 unsigned int len; member
25 unsigned int len);
27 unsigned int len, unsigned long val);
93 paddr_t addr, unsigned int len,
97 paddr_t addr, unsigned int len,
115 paddr_t addr, unsigned int len,
119 paddr_t addr, unsigned int len,
123 paddr_t addr, unsigned int len);
126 paddr_t addr, unsigned int len,
130 paddr_t addr, unsigned int len);
[all …]
A Dvgic-mmio.c54 for ( i = 0; i < len * 8; i++ ) in vgic_mmio_read_enable()
167 for ( i = 0; i < len * 8; i++ ) in vgic_mmio_read_pending()
304 for ( i = 0; i < len * 8; i++ ) in vgic_mmio_read_active()
386 for ( i = 0; i < len; i++ ) in vgic_mmio_read_priority()
413 for ( i = 0; i < len; i++ ) in vgic_mmio_write_priority()
433 for ( i = 0; i < len * 4; i++ ) in vgic_mmio_read_config()
454 for ( i = 0; i < len * 4; i++ ) in vgic_mmio_write_config()
508 switch ( len ) in check_region()
561 memset(r, 0, len); in dispatch_mmio_read()
575 memcpy(r, &data, len); in dispatch_mmio_read()
[all …]
/xen/xen/common/
A Ddecompress.c11 int __init decompress(void *inbuf, unsigned int len, void *outbuf) in decompress() argument
14 if ( len >= 2 && in decompress()
16 return gunzip(inbuf, len, NULL, NULL, outbuf, NULL, error); in decompress()
19 if ( len >= 3 && !memcmp(inbuf, "\x42\x5a\x68", 3) ) in decompress()
22 if ( len >= 6 && !memcmp(inbuf, "\3757zXZ", 6) ) in decompress()
23 return unxz(inbuf, len, NULL, NULL, outbuf, NULL, error); in decompress()
25 if ( len >= 2 && !memcmp(inbuf, "\135\000", 2) ) in decompress()
28 if ( len >= 5 && !memcmp(inbuf, "\x89LZO", 5) ) in decompress()
29 return unlzo(inbuf, len, NULL, NULL, outbuf, NULL, error); in decompress()
31 if ( len >= 2 && !memcmp(inbuf, "\x02\x21", 2) ) in decompress()
[all …]
/xen/tools/ocaml/libs/mmap/
A Dxenmmap_stubs.c35 int len, int offset) in mmap_interface_init() argument
37 intf->len = len; in mmap_interface_init()
45 CAMLparam5(fd, pflag, mflag, len, offset); in stub_mmap_init()
84 CAMLparam3(intf, start, len); in stub_mmap_read()
90 c_len = Int_val(len); in stub_mmap_read()
92 if (c_start > Intf_val(intf)->len) in stub_mmap_read()
94 if (c_start + c_len > Intf_val(intf)->len) in stub_mmap_read()
106 CAMLparam4(intf, data, start, len); in stub_mmap_write()
111 c_len = Int_val(len); in stub_mmap_write()
113 if (c_start > Intf_val(intf)->len) in stub_mmap_write()
[all …]
/xen/tools/firmware/hvmloader/
A Dxenbus.c111 while ( len ) in ring_write()
121 if ( part > len ) in ring_write()
122 part = len; in ring_write()
128 len -= part; in ring_write()
139 while ( len ) in ring_read()
161 if ( part > len ) in ring_read()
162 part = len; in ring_read()
168 len -= part; in ring_read()
182 uint32_t len; in xenbus_send() member
194 hdr.len = 0; in xenbus_send()
[all …]
/xen/xen/arch/arm/
A Dguestcopy.c63 while ( len ) in copy_guest()
66 unsigned size = min(len, (unsigned)PAGE_SIZE - offset); in copy_guest()
72 return len; in copy_guest()
95 len -= size; in copy_guest()
110 return copy_guest((void *)from, (vaddr_t)to, len, in raw_copy_to_guest()
115 unsigned len) in raw_copy_to_guest_flush_dcache() argument
121 unsigned long raw_clear_guest(void *to, unsigned len) in raw_clear_guest() argument
123 return copy_guest(NULL, (vaddr_t)to, len, GVA_INFO(current), in raw_clear_guest()
129 return copy_guest(to, (vaddr_t)from, len, GVA_INFO(current), in raw_copy_from_guest()
136 unsigned int len) in copy_to_guest_phys_flush_dcache() argument
[all …]
/xen/tools/xenstore/
A Dxenstored_control.c162 int cmd, len = 0; in do_control_help() local
169 len += strlen(cmds[cmd].cmd) + 1; in do_control_help()
172 len++; in do_control_help()
178 len = 0; in do_control_help()
181 len += strlen(cmds[cmd].cmd); in do_control_help()
182 resp[len] = '\t'; in do_control_help()
183 len++; in do_control_help()
185 len += strlen(cmds[cmd].pars); in do_control_help()
186 resp[len] = '\n'; in do_control_help()
187 len++; in do_control_help()
[all …]
A Dxenstore_control.c13 unsigned int p, len = 0; in main() local
24 len += strlen(argv[p]) + 1; in main()
25 if (len) { in main()
26 par = malloc(len); in main()
32 len = 0; in main()
34 memcpy(par + len, argv[p], strlen(argv[p]) + 1); in main()
35 len += strlen(argv[p]) + 1; in main()
46 ret = xs_control_command(xsh, argv[1], par, len); in main()
A Dxenstore_client.c61 int len; in output() local
66 if (len < 0) in output()
69 expand_buffer(len + 1); in output()
71 if (vsnprintf(&output_buf[output_pos], len + 1, fmt, ap) != len) in output()
74 output_pos += len; in output()
80 expand_buffer(len); in output_raw()
82 output_pos += len; in output_raw()
149 unsigned int num, len; in do_ls() local
195 len = 0; in do_ls()
338 unsigned len; in perform() local
[all …]
/xen/xen/common/libfdt/
A Dfdt_ro.c68 if (p[len] == '\0') in _fdt_nodename_eq()
70 else if (!memchr(s, '@', len) && (p[len] == '@')) in _fdt_nodename_eq()
86 return (strlen(p) == len) && (memcmp(p, s, len) == 0); in _fdt_string_eq()
208 if (len) in fdt_get_name()
214 if (len) in fdt_get_name()
215 *len = err; in fdt_get_name()
324 int len; in fdt_get_phandle() local
470 int len; in fdt_node_offset_by_prop_value() local
518 int len = strlen(str); in fdt_stringlist_contains() local
537 int len; in fdt_node_check_compatible() local
[all …]
A Dfdt_wip.c57 const void *val, int len) in fdt_setprop_inplace() argument
66 if (proplen != len) in fdt_setprop_inplace()
69 memcpy(propval, val, len); in fdt_setprop_inplace()
73 static void _fdt_nop_region(void *start, int len) in _fdt_nop_region() argument
77 for (p = start; (char *)p < ((char *)start + len); p++) in _fdt_nop_region()
84 int len; in fdt_nop_property() local
86 prop = fdt_get_property_w(fdt, nodeoffset, name, &len); in fdt_nop_property()
88 return len; in fdt_nop_property()
90 _fdt_nop_region(prop, len + sizeof(*prop)); in fdt_nop_property()
A Dfdt_rw.c154 int len = strlen(s) + 1; in _fdt_find_add_string() local
167 memcpy(new, s, len); in _fdt_find_add_string()
215 FDT_TAGALIGN(len)))) in _fdt_resize_property()
218 (*prop)->len = cpu_to_fdt32(len); in _fdt_resize_property()
246 (*prop)->len = cpu_to_fdt32(len); in _fdt_add_property()
274 const void *val, int len) in fdt_setprop() argument
287 memcpy(prop->data, val, len); in fdt_setprop()
292 const void *val, int len) in fdt_appendprop() argument
301 newlen = len + oldlen; in fdt_appendprop()
321 int len, proplen; in fdt_delprop() local
[all …]
A Dfdt_sw.c71 static void *_fdt_grab_space(void *fdt, size_t len) in _fdt_grab_space() argument
79 if ((offset + len < offset) || (offset + len > spaceleft)) in _fdt_grab_space()
82 fdt_set_size_dt_struct(fdt, offset + len); in _fdt_grab_space()
171 int len = strlen(s) + 1; in _fdt_find_add_string() local
179 offset = -strtabsize - len; in _fdt_find_add_string()
184 memcpy(strtab + offset, s, len); in _fdt_find_add_string()
185 fdt_set_size_dt_strings(fdt, strtabsize + len); in _fdt_find_add_string()
189 int fdt_property(void *fdt, const char *name, const void *val, int len) in fdt_property() argument
200 prop = _fdt_grab_space(fdt, sizeof(*prop) + FDT_TAGALIGN(len)); in fdt_property()
206 prop->len = cpu_to_fdt32(len); in fdt_property()
[all …]
/xen/tools/ocaml/libs/xb/
A Dxs_ring_stubs.c56 int len = Int_val(ml_len); in ml_interface_read() local
83 else if (total_data < len) in ml_interface_read()
85 len = total_data; in ml_interface_read()
89 if (len < data) in ml_interface_read()
99 intf->req_cons += len; in ml_interface_read()
100 result = len; in ml_interface_read()
115 int len = Int_val(ml_len); in ml_interface_write() local
144 len = total_space; in ml_interface_write()
148 if (len < space) in ml_interface_write()
158 intf->rsp_prod += len; in ml_interface_write()
[all …]
/xen/xen/include/asm-arm/
A Dhsr.h22 unsigned long len:1; /* Instruction length */ member
31 unsigned long len:1; /* Instruction length */ member
40 unsigned long len:1; /* Instruction length */ member
54 unsigned long len:1; /* Instruction length */ member
67 unsigned long len:1; /* Instruction length */ member
78 unsigned long len:1; /* Instruction length */ member
95 unsigned long len:1; /* Instruction length */ member
109 unsigned long len:1; /* Instruction length */ member
122 unsigned long len:1; /* Instruction length */ member
144 unsigned long len:1; /* Instruction length */ member
[all …]
/xen/xen/include/asm-x86/
A Dguest_access.h16 #define raw_copy_to_guest(dst, src, len) \ argument
18 copy_to_user_hvm((dst), (src), (len)) : \
19 copy_to_user((dst), (src), (len)))
20 #define raw_copy_from_guest(dst, src, len) \ argument
22 copy_from_user_hvm((dst), (src), (len)) : \
23 copy_from_user((dst), (src), (len)))
24 #define raw_clear_guest(dst, len) \ argument
27 clear_user((dst), (len)))
31 __copy_to_user((dst), (src), (len)))
35 __copy_from_user((dst), (src), (len)))
[all …]
/xen/tools/libfsimage/zfs/zfs-include/
A Dspa.h29 #define BF32_DECODE(x, low, len) P2PHASE((x) >> (low), 1U << (len)) argument
30 #define BF64_DECODE(x, low, len) P2PHASE((x) >> (low), 1ULL << (len)) argument
31 #define BF32_ENCODE(x, low, len) (P2PHASE((x), 1U << (len)) << (low)) argument
32 #define BF64_ENCODE(x, low, len) (P2PHASE((x), 1ULL << (len)) << (low)) argument
34 #define BF32_GET(x, low, len) BF32_DECODE(x, low, len) argument
35 #define BF64_GET(x, low, len) BF64_DECODE(x, low, len) argument
37 #define BF32_SET(x, low, len, val) \ argument
39 #define BF64_SET(x, low, len, val) \ argument
42 #define BF32_GET_SB(x, low, len, shift, bias) \ argument
43 ((BF32_GET(x, low, len) + (bias)) << (shift))
[all …]
/xen/tools/python/xen/migration/
A Dlibxc.py251 if len(content) != 0:
326 if len(content) < 8:
342 if len(content) < minsz:
365 contentsz = len(content)
376 if len(content) != sz:
392 if len(content) == 0:
401 if len(content) < sz:
414 if len(content) != sz:
426 if len(content) != 0:
433 if len(content) != 0:
[all …]
A Dlibxl.py131 if padding != b"\x00" * len(padding):
147 if len(content) != 0:
154 if len(content) != 0:
165 if len(content) < minsz:
167 (minsz, len(content)))
180 if len(content):
188 if (len(parts) % 2) != 0:
190 (len(parts), ))
200 if len(content) < minsz:
215 if len(content) != 0:
[all …]
/xen/tools/libxl/
A Dlibxl_save_helper.c109 while (len) { in read_exactly()
112 assert(r <= len); in read_exactly()
113 len -= r; in read_exactly()
186 return xmalloc(len); in helper_allocbuf()
191 while (len) { in transmit()
192 int r = write(1, msg, len); in transmit()
195 assert(r <= len); in transmit()
196 len -= r; in transmit()
204 uint16_t len = len_in; in helper_transmitmsg() local
205 transmit((const void*)&len, sizeof(len), user); in helper_transmitmsg()
[all …]
/xen/tools/debugger/kdd/
A Dkdd.c741 size_t len; in kdd_tx() local
751 len = s->txp.h.len + sizeof (kdd_hdr); in kdd_tx()
791 len = vsnprintf(buf, len, fmt, ap); in kdd_send_string()
796 s->txp.h.len = sizeof (kdd_msg) + len; in kdd_send_string()
952 len = 0; in kdd_handle_read_regs()
962 uint32_t len = s->rxp.h.len - sizeof (kdd_cmd); in kdd_handle_write_regs() local
996 len = 0; in kdd_handle_read_ctrl()
1097 len = kdd_read_virtual(s, s->cpuid, addr, len, buf); in kdd_handle_memory_access()
1101 len = kdd_write_virtual(s, s->cpuid, addr, len, buf); in kdd_handle_memory_access()
1105 len = kdd_read_physical(s, addr, len, buf); in kdd_handle_memory_access()
[all …]
/xen/xen/drivers/acpi/apei/
A Dhest.c62 int len; in hest_esrc_len() local
67 len = hest_esrc_len_tab[hest_type]; in hest_esrc_len()
75 len = sizeof(*cmc) + cmc->num_hardware_banks * in hest_esrc_len()
83 len = sizeof(*mc) + mc->num_hardware_banks * in hest_esrc_len()
86 BUG_ON(len == -1); in hest_esrc_len()
88 return len; in hest_esrc_len()
94 int i, rc, len; in apei_hest_parse() local
101 len = hest_esrc_len(hest_hdr); in apei_hest_parse()
102 if (!len) { in apei_hest_parse()
109 if ((void *)hest_hdr + len > in apei_hest_parse()
[all …]
/xen/xen/arch/arm/arm64/lib/
A Dstrnlen.S40 len .req x0 label
104 sub len, src, srcin
108 sub len, len, #8
122 sub len, len, #8
125 add len, len, pos, lsr #3 /* Bits to bytes. */
126 cmp len, limit
127 csel len, len, limit, ls /* Return the lower value. */
169 mov len, limit
/xen/xen/tools/kconfig/lxdialog/
A Dinputbox.c36 int show_x, len, pos; in dialog_inputbox() local
88 len = strlen(instr); in dialog_inputbox()
89 pos = len; in dialog_inputbox()
91 if (len >= box_width) { in dialog_inputbox()
98 input_x = len; in dialog_inputbox()
125 if (pos < len) { in dialog_inputbox()
132 len--; in dialog_inputbox()
133 instr[len] = '\0'; in dialog_inputbox()
166 if (pos < len) { in dialog_inputbox()
188 if (pos < len) { in dialog_inputbox()
[all …]

Completed in 38 milliseconds

12345678910>>...13