/xen/xen/include/xen/ |
A D | lz4.h | 21 static inline size_t lz4_compressbound(size_t isize) in lz4_compressbound() 40 int lz4_compress(const unsigned char *src, size_t src_len, 41 unsigned char *dst, size_t *dst_len, void *wrkmem); 57 int lz4hc_compress(const unsigned char *src, size_t src_len, 58 unsigned char *dst, size_t *dst_len, void *wrkmem); 71 int lz4_decompress(const unsigned char *src, size_t *src_len, 72 unsigned char *dest, size_t actual_dest_len); 86 int lz4_decompress_unknownoutputsize(const unsigned char *src, size_t src_len, 87 unsigned char *dest, size_t *dest_len);
|
A D | string.h | 21 size_t strlcpy(char *, const char *, size_t); 25 size_t strlcat(char *, const char *, size_t); 34 int strncmp(const char *, const char *, size_t); 63 size_t strlen(const char *); 68 size_t strnlen(const char *, size_t); 80 size_t strspn(const char *, const char *); 85 void *memset(void *, int, size_t); 90 void *memcpy(void *, const void *, size_t); 95 void *memmove(void *, const void *, size_t); 105 void *memchr(const void *, int, size_t); [all …]
|
A D | pv_console.h | 11 void pv_console_puts(const char *buf, size_t nr); 12 size_t pv_console_rx(struct cpu_user_regs *regs); 20 static inline void pv_console_puts(const char *buf, size_t nr) { } in pv_console_puts() 21 static inline size_t pv_console_rx(struct cpu_user_regs *regs) { return 0; } in pv_console_rx()
|
A D | lzo.h | 23 int lzo1x_1_compress(const unsigned char *src, size_t src_len, 24 unsigned char *dst, size_t *dst_len, void *wrkmem); 27 int lzo1x_decompress_safe(const unsigned char *src, size_t src_len, 28 unsigned char *dst, size_t *dst_len);
|
A D | vmap.h | 20 void *vmalloc(size_t size); 21 void *vmalloc_xen(size_t size); 23 void *vzalloc(size_t size); 26 void __iomem *ioremap(paddr_t, size_t);
|
/xen/xen/include/asm-arm/ |
A D | string.h | 21 int strncmp(const char *, const char *, size_t); 24 size_t strlen(const char *); 27 size_t strnlen(const char *, size_t); 31 void *memcpy(void *, const void *, size_t); 35 int memcmp(const void *, const void *, size_t); 39 void *memmove(void *dest, const void *src, size_t n); 42 void *memset(void *, int, size_t); 45 void *memchr(const void *, int, size_t); 49 void __memzero(void *ptr, size_t n); 53 void *__p = (p); size_t __n = n; \
|
/xen/xen/common/ |
A D | string.c | 71 size_t strlcpy(char *dest, const char *src, size_t size) in strlcpy() 73 size_t ret = strlen(src); in strlcpy() 76 size_t len = (ret >= size) ? size-1 : ret; in strlcpy() 96 size_t strlcat(char *dest, const char *src, size_t size) in strlcat() 98 size_t slen = strlen(src); in strlcat() 99 size_t dlen = strnlen(dest, size); in strlcat() 192 size_t (strlen)(const char * s) in size_t() function 208 size_t strnlen(const char * s, size_t count) in strnlen() 229 size_t count = 0; in strspn() 301 size_t l1, l2 = strlen(s2); [all …]
|
A D | lzo.c | 123 #define HAVE_IP(x) ((size_t)(ip_end - ip) >= (size_t)(x)) 124 #define HAVE_OP(x) ((size_t)(op_end - op) >= (size_t)(x)) 137 #define MAX_255_COUNT ((((size_t)~0) / 255) - 2) 139 int INIT lzo1x_decompress_safe(const unsigned char *in, size_t in_len, in lzo1x_decompress_safe() 140 unsigned char *out, size_t *out_len) in lzo1x_decompress_safe() 144 size_t t, next; in lzo1x_decompress_safe() 145 size_t state = 0; in lzo1x_decompress_safe() 169 size_t offset; in lzo1x_decompress_safe() 237 size_t offset; in lzo1x_decompress_safe() 262 size_t offset; in lzo1x_decompress_safe()
|
A D | bsearch.c | 32 void *bsearch(const void *key, const void *base, size_t num, size_t size, in bsearch() 35 size_t start = 0, end = num; in bsearch() 39 size_t mid = start + (end - start) / 2; in bsearch()
|
/xen/tools/libxc/include/ |
A D | xc_dom.h | 49 size_t len; 62 size_t size; 78 size_t kernel_size; 82 size_t devicetree_size; 84 size_t max_kernel_size; 85 size_t max_module_size; 90 size_t cmdline_size; 156 size_t alloc_malloc; 157 size_t alloc_mem_map; 158 size_t alloc_file_map; [all …]
|
/xen/stubdom/vtpmmgr/ |
A D | disk_crypto.h | 4 void do_random(void *buf, size_t size); 9 void aes_encrypt_ctr(void *target, size_t target_size, const void *srcv, size_t src_size, const aes… 10 void aes_decrypt_ctr(void *target, size_t target_size, const void *srcv, size_t src_size, const aes… 11 void aes_cmac(struct mac128 *target, const void *src, size_t size, const aes_context *key); 12 int aes_cmac_verify(const struct mac128 *target, const void *src, size_t size, const aes_context *k… 14 void sha256(struct hash256 *target, const void *src, size_t size); 15 int sha256_verify(const struct hash256 *targ, const void *data, size_t size);
|
A D | disk_crypto.c | 16 void do_random(void *buf, size_t size) in do_random() 56 void aes_encrypt_ctr(void *target, size_t target_size, const void *srcv, size_t pt_size, const aes_… in aes_encrypt_ctr() 111 void aes_decrypt_ctr(void *target, size_t pt_size, const void *srcv, size_t src_size, const aes_con… in aes_decrypt_ctr() 166 void aes_cmac(struct mac128 *target, const void *src, size_t size, const aes_context *key) in aes_cmac() 171 size_t bsize = (size - 1) / 16; in aes_cmac() 204 int aes_cmac_verify(const struct mac128 *target, const void *src, size_t size, const aes_context *k… in aes_cmac_verify() 220 void sha256(struct hash256 *target, const void *src, size_t size) in sha256() 226 int sha256_verify(const struct hash256 *targ, const void *data, size_t size) in sha256_verify()
|
/xen/xen/common/xz/ |
A D | dec_bcj.c | 52 size_t out_pos; 60 size_t size; 95 size_t i; in bcj_x86() 96 size_t prev_pos = (size_t)-1; in bcj_x86() 162 size_t i; in bcj_powerpc() 197 size_t i; in bcj_ia64() 198 size_t j; in bcj_ia64() 267 size_t i; in bcj_arm() 290 size_t i; in bcj_armthumb() 318 size_t i; in bcj_sparc() [all …]
|
/xen/tools/libvchan/ |
A D | libxenvchan.h | 102 size_t read_min, size_t write_min); 129 int libxenvchan_recv(struct libxenvchan *ctrl, void *data, size_t size); 138 int libxenvchan_read(struct libxenvchan *ctrl, void *data, size_t size); 146 int libxenvchan_send(struct libxenvchan *ctrl, const void *data, size_t size); 155 int libxenvchan_write(struct libxenvchan *ctrl, const void *data, size_t size);
|
/xen/xen/common/coverage/ |
A D | gcov.h | 35 size_t gcov_info_to_gcda(char *buffer, const struct gcov_info *info); 37 size_t gcov_store_uint32(void *buffer, size_t off, uint32_t v); 38 size_t gcov_store_uint64(void *buffer, size_t off, uint64_t v);
|
/xen/tools/libxc/ |
A D | xc_dom_decompress_unsafe.h | 10 decompress_fn fn, struct xc_dom_image *dom, void **blob, size_t *size) 13 int xc_try_bzip2_decode(struct xc_dom_image *dom, void **blob, size_t *size) 15 int xc_try_lzma_decode(struct xc_dom_image *dom, void **blob, size_t *size) 17 int xc_try_lzo1x_decode(struct xc_dom_image *dom, void **blob, size_t *size) 19 int xc_try_xz_decode(struct xc_dom_image *dom, void **blob, size_t *size)
|
A D | xc_dom_bzimageloader.c | 46 struct xc_dom_image *dom, void **blob, size_t *size) in xc_try_bzip2_decode() 187 struct xc_dom_image *dom, void **blob, size_t *size) in xc_try_bzip2_decode() 202 struct xc_dom_image *dom, void **blob, size_t *size, in _xc_try_lzma_decode() 210 size_t outsize; in _xc_try_lzma_decode() 340 struct xc_dom_image *dom, void **blob, size_t *size) in xc_try_xz_decode() 354 struct xc_dom_image *dom, void **blob, size_t *size) in xc_try_lzma_decode() 370 struct xc_dom_image *dom, void **blob, size_t *size) in xc_try_xz_decode() 379 struct xc_dom_image *dom, void **blob, size_t *size) in xc_try_lzma_decode() 407 struct xc_dom_image *dom, void **blob, size_t *size) in xc_try_lzo1x_decode() 412 size_t left = dom->kernel_size; in xc_try_lzo1x_decode() [all …]
|
/xen/stubdom/ |
A D | vtpm_extern.patch | 24 -void* (*tpm_malloc)(size_t size); 25 +extern void* (*tpm_malloc)(size_t size); 32 -void (*tpm_get_extern_random_bytes)(void *buf, size_t nbytes); 33 +extern void (*tpm_get_extern_random_bytes)(void *buf, size_t nbytes); 42 -int (*tpm_write_to_storage)(uint8_t *data, size_t data_length); 43 -int (*tpm_read_from_storage)(uint8_t **data, size_t *data_length); 44 +extern int (*tpm_write_to_storage)(uint8_t *data, size_t data_length); 45 +extern int (*tpm_read_from_storage)(uint8_t **data, size_t *data_length);
|
/xen/tools/tests/x86_emulator/ |
A D | wrappers.c | 6 size_t emul_fwrite(const void *src, size_t sz, size_t n, FILE *f) in emul_fwrite() 15 int emul_memcmp(const void *p1, const void *p2, size_t sz) in emul_memcmp() 26 void *emul_memcpy(void *dst, const void *src, size_t sz) in emul_memcpy() 35 void *emul_memset(void *dst, int c, size_t sz) in emul_memset()
|
/xen/tools/xenstore/ |
A D | talloc.h | 101 void *_talloc(const void *context, size_t size); 108 void *talloc_named(const void *context, size_t size, 110 void *talloc_named_const(const void *context, size_t size, const char *name); 117 void *_talloc_realloc(const void *context, void *ptr, size_t size, const char *name); 126 void *_talloc_zero(const void *ctx, size_t size, const char *name); 127 void *_talloc_memdup(const void *t, const void *p, size_t size, const char *name); 129 char *talloc_strndup(const void *t, const char *p, size_t n); 135 void *_talloc_array(const void *ctx, size_t el_size, unsigned count, const char *name); 136 void *_talloc_zero_array(const void *ctx, size_t el_size, unsigned count, const char *name); 138 void *talloc_realloc_fn(const void *context, void *ptr, size_t size); [all …]
|
/xen/xen/tools/kconfig/ |
A D | lkc.h | 58 static inline void xfwrite(const void *str, size_t len, size_t count, FILE *out) in xfwrite() 85 void *xmalloc(size_t size); 86 void *xcalloc(size_t nmemb, size_t size); 87 void *xrealloc(void *p, size_t size); 89 char *xstrndup(const char *s, size_t n); 95 size_t len;
|
A D | util.c | 54 size_t l; in str_append() 82 void *xmalloc(size_t size) in xmalloc() 91 void *xcalloc(size_t nmemb, size_t size) in xcalloc() 100 void *xrealloc(void *p, size_t size) in xrealloc() 120 char *xstrndup(const char *s, size_t n) in xstrndup()
|
/xen/stubdom/vtpm/ |
A D | vtpmblk.c | 66 static int write_vtpmblk_raw(uint8_t *data, size_t data_length, int slot) in write_vtpmblk_raw() 94 static int read_vtpmblk_raw(uint8_t **data, size_t *data_length, int slot) in read_vtpmblk_raw() 104 *data_length = (size_t) cpu_to_be32(lenbuf); in read_vtpmblk_raw() 124 int encrypt_vtpmblk(uint8_t* clear, size_t clear_len, uint8_t** cipher, size_t* cipher_len, uint8_t… in encrypt_vtpmblk() 192 int decrypt_vtpmblk(uint8_t* cipher, size_t cipher_len, uint8_t** clear, size_t* clear_len, uint8_t… in decrypt_vtpmblk() 240 int write_vtpmblk(struct tpmfront_dev* tpmfront_dev, uint8_t* data, size_t data_length) { in write_vtpmblk() 243 size_t cipher_len = 0; in write_vtpmblk() 274 int read_vtpmblk(struct tpmfront_dev* tpmfront_dev, uint8_t** data, size_t *data_length) { in read_vtpmblk() 277 size_t cipher_len = 0; in read_vtpmblk() 278 size_t keysize; in read_vtpmblk()
|
/xen/xen/drivers/char/ |
A D | xen_pv_console.c | 97 size_t pv_console_rx(struct cpu_user_regs *regs) in pv_console_rx() 101 size_t recv = 0; in pv_console_rx() 133 static size_t pv_ring_puts(const char *buf, size_t nr) in pv_ring_puts() 136 size_t sent = 0, avail; in pv_ring_puts() 189 void pv_console_puts(const char *buf, size_t nr) in pv_console_puts()
|
/xen/tools/libfsimage/zfs/ |
A D | fsys_zfs.h | 35 typedef unsigned long size_t; typedef 37 typedef unsigned int size_t; typedef 151 typedef int zfs_decomp_func_t(void *s_start, void *d_start, size_t s_len, 152 size_t d_len); 200 extern int lzjb_decompress(void *, void *, size_t, size_t);
|