Searched refs:src (Results 1 - 25 of 394) sorted by relevance

1234567891011>>

/u-boot/include/u-boot/
H A Dlz4.h12 * @src: Source data to decompress
22 int ulz4fn(const void *src, size_t srcn, void *dst, size_t *dstn);
71 int LZ4_decompress_safe_partial(const char *src, char *dst,
/u-boot/post/lib_powerpc/
H A Dmulti.c32 ulong src[27], dst[27]; local
41 for (i = 0; i < ARRAY_SIZE(src); ++i) {
42 src[i] = i;
46 cpu_post_exec_02(code, (ulong) src, (ulong) dst);
48 ret = memcmp(src, dst, sizeof(dst)) == 0 ? 0 : -1;
H A Dstring.c37 char src [31], dst [31]; local
46 for (i = 0; i < sizeof(src); i ++)
48 src[i] = (char) i;
52 cpu_post_exec_02(code, (ulong)src, (ulong)dst);
54 ret = memcmp(src, dst, sizeof(dst)) == 0 ? 0 : -1;
59 char src [95], dst [95]; local
68 for (i = 0; i < sizeof(src); i ++)
70 src[i] = (char) i;
74 cpu_post_exec_04(code, (ulong)src, (ulong)dst, 0, sizeof(src));
[all...]
/u-boot/arch/mips/mach-mtmips/
H A Dcpu.c27 void *src, *dst; local
29 src = malloc(SZ_64K);
31 if (!src || !dst) {
44 memcpy(dst, src, SZ_64K);
45 free(src);
/u-boot/arch/arm/mach-imx/mx6/
H A Dmp.c17 static struct src *src = (struct src *)SRC_BASE_ADDR; variable in typeref:struct:src
36 src->scr |= cpu_reset_mask[nr];
42 printf("core %d => %d\n", nr, !!(src->scr & cpu_ctrl_mask[nr]));
54 src->gpr3 = boot_addr;
57 src->gpr5 = boot_addr;
60 src->gpr7 = boot_addr;
67 src->scr |= cpu_ctrl_mask[nr];
85 src
[all...]
/u-boot/include/
H A Dgzip.h17 * @src: Pointer to gzip file
21 int gzip_parse_header(const unsigned char *src, unsigned long len);
28 * @src: Source data to decompress
32 int gunzip(void *dst, int dstlen, unsigned char *src, unsigned long *lenp);
39 * @src: Source data to decompress
40 * @lenp: On entry, length data at @src. On exit, number of bytes used from @src
42 * @offset: start offset within the src buffer
45 int zunzip(void *dst, int dstlen, unsigned char *src, unsigned long *lenp,
67 * @src
[all...]
H A Dcharset.h32 * @src: pointer to current byte, updated to point to next byte
34 * code point is found. In case of an error src points to
37 s32 utf8_get(const char **src);
52 * @src: utf-8 string
58 size_t utf8_utf16_strnlen(const char *src, size_t count);
74 * @src: source buffer
78 int utf8_utf16_strncpy(u16 **dst, const char *src, size_t count);
92 * @src: pointer to current word, updated to point to next word
94 * code point is found. In case of an error src points to
97 s32 utf16_get(const u16 **src);
[all...]
H A Dhexdump.h50 * @src: ascii hexadecimal string
55 static inline int hex2bin(u8 *dst, const char *src, size_t count) argument
58 int hi = hex_to_bin(*src++);
59 int lo = hex_to_bin(*src++);
72 * @src: binary data
75 static inline char *bin2hex(char *dst, const void *src, size_t count) argument
77 const unsigned char *_src = src;
/u-boot/include/linux/
H A Dlzo.h23 int lzo1x_1_compress(const unsigned char *src, size_t src_len,
27 int lzo1x_decompress_safe(const unsigned char *src, size_t src_len,
31 int lzop_decompress(const unsigned char *src, size_t src_len,
35 bool lzop_is_valid_header(const unsigned char *src);
/u-boot/arch/arm/lib/
H A Deabi_compat.c29 void __aeabi_memcpy(void *dest, const void *src, size_t n) argument
31 (void) memcpy(dest, src, n);
H A Dmemcpy-arm64.S17 #define src x1 define
39 #define H_l src
61 add srcend, src, count
71 ldp A_l, A_h, [src]
80 ldr A_l, [src]
90 ldr A_lw, [src]
100 ldrb A_lw, [src]
102 ldrb B_lw, [src, tmp1]
112 ldp A_l, A_h, [src]
113 ldp B_l, B_h, [src, 1
[all...]
/u-boot/board/kontron/sl28/
H A Dspl.c63 enum boot_source src = sl28_boot_source();
65 switch (src) {
77 panic("unexpected bootsource (%d)\n", src);
84 enum boot_source src = sl28_boot_source();
86 switch (src) {
92 panic("unexpected bootsource (%d)\n", src);
99 enum boot_source src = sl28_boot_source();
101 switch (src) {
64 enum boot_source src = sl28_boot_source(); local
85 enum boot_source src = sl28_boot_source(); local
100 enum boot_source src = sl28_boot_source(); local
/u-boot/post/drivers/
H A Dflash.c53 void *src; local
61 src = NULL;
73 src = seed_src_data(src, &len, s_len);
74 if (!src) {
87 ret = write_buff(info, src, s_start, s_len);
93 ret = memcmp(src, (void *)s_start, s_len);
100 free(src);
/u-boot/fs/zfs/
H A Dzfs_lzjb.c48 uint8_t *src = s_start; local
55 while (dst < d_end && src < s_end) {
58 copymap = *src++;
60 if (src >= s_end) {
65 int mlen = (src[0] >> (NBBY - MATCH_BITS)) + MATCH_MIN;
66 int offset = ((src[0] << NBBY) | src[1]) & OFFSET_MASK;
67 src += 2;
69 if (src > s_end || cpy < (uint8_t *) d_start) {
76 *dst++ = *src
[all...]
/u-boot/lib/lzo/
H A Dlzo1x_decompress.c25 #define COPY4(dst, src) \
26 put_unaligned(get_unaligned((const u32 *)(src)), (u32 *)(dst))
35 bool lzop_is_valid_header(const unsigned char *src) argument
40 if (*src++ != lzop_magic[i])
46 static inline const unsigned char *parse_header(const unsigned char *src) argument
51 if (!lzop_is_valid_header(src))
55 src += 9;
60 version = get_unaligned_be16(src);
61 src += 7;
63 src
79 lzop_decompress(const unsigned char *src, size_t src_len, unsigned char *dst, size_t *dst_len) argument
[all...]
/u-boot/lib/libavb/
H A Davb_kernel_cmdline_descriptor.c10 const AvbKernelCmdlineDescriptor* src, AvbKernelCmdlineDescriptor* dest) {
13 avb_memcpy(dest, src, sizeof(AvbKernelCmdlineDescriptor));
15 if (!avb_descriptor_validate_and_byteswap((const AvbDescriptor*)src,
9 avb_kernel_cmdline_descriptor_validate_and_byteswap( const AvbKernelCmdlineDescriptor* src, AvbKernelCmdlineDescriptor* dest) argument
H A Davb_chain_partition_descriptor.c10 const AvbChainPartitionDescriptor* src, AvbChainPartitionDescriptor* dest) {
13 avb_memcpy(dest, src, sizeof(AvbChainPartitionDescriptor));
15 if (!avb_descriptor_validate_and_byteswap((const AvbDescriptor*)src,
9 avb_chain_partition_descriptor_validate_and_byteswap( const AvbChainPartitionDescriptor* src, AvbChainPartitionDescriptor* dest) argument
/u-boot/cmd/
H A Dzip.c14 unsigned long src, dst; local
22 src = hextoul(argv[1], NULL);
30 if (gzip((void *) dst, &dst_len, (void *) src, src_len) != 0)
H A Dunlz4.c15 unsigned long src, dst; local
21 src = hextoul(argv[1], NULL);
29 ret = ulz4fn((void *)src, src_len, (void *)dst, &dst_len);
/u-boot/lib/
H A Dcharset.c33 * @src: - string buffer passed to stream reader, optional
94 const char **src = (const char **)data; local
97 if (!src || !*src || !**src)
99 c = **src;
100 ++*src;
139 s32 utf8_get(const char **src) argument
141 return get_code(read_string, src);
173 size_t utf8_utf16_strnlen(const char *src, size_ argument
194 utf8_utf16_strncpy(u16 **dst, const char *src, size_t count) argument
210 utf16_get(const u16 **src) argument
256 utf16_strnlen(const u16 *src, size_t count) argument
274 utf16_utf8_strnlen(const u16 *src, size_t count) argument
298 utf16_utf8_strncpy(char **dst, const u16 *src, size_t count) argument
415 u16_strcpy(u16 *dest, const u16 *src) argument
428 u16_strdup(const void *src) argument
444 u16_strlcat(u16 *dest, const u16 *src, size_t count) argument
461 utf16_to_utf8(uint8_t *dest, const uint16_t *src, size_t size) argument
[all...]
H A Dlinux_compat.c12 unsigned long copy_from_user(void *dest, const void *src, argument
15 memcpy((void *)dest, (void *)src, count);
48 * @src: memory region to duplicate
52 * Return: newly allocated copy of @src or %NULL in case of error
54 void *kmemdup(const void *src, size_t len, gfp_t gfp) argument
60 memcpy(p, src, len);
H A Dgunzip.c46 int gzip_parse_header(const unsigned char *src, unsigned long len) argument
52 flags = src[3];
53 if (src[2] != DEFLATED || (flags & RESERVED) != 0) {
58 i = 12 + src[10] + (src[11] << 8);
60 while (src[i++] != 0)
63 while (src[i++] != 0)
74 int gunzip(void *dst, int dstlen, unsigned char *src, unsigned long *lenp) argument
76 int offset = gzip_parse_header(src, *lenp);
81 return zunzip(dst, dstlen, src, len
118 gzwrite(unsigned char *src, int len, struct blk_desc *dev, unsigned long szwritebuf, ulong startoffs, ulong szexpected) argument
277 zunzip(void *dst, int dstlen, unsigned char *src, unsigned long *lenp, int stoponerr, int offset) argument
[all...]
/u-boot/lib/efi_loader/
H A Defi_freestanding.c41 * @src: source buffer
45 void *memmove(void *dest, const void *src, size_t n) argument
48 const u8 *s = src;
66 * @src: source buffer
70 void *memcpy(void *dest, const void *src, size_t n) argument
72 return memmove(dest, src, n);
/u-boot/drivers/usb/gadget/
H A Dconfig.c25 * @src: Array of descriptor pointers, terminated by null pointer.
35 const struct usb_descriptor_header **src)
39 if (!src)
42 /* fill buffer from src[] until null descriptor ptr */
43 for (; NULL != *src; src++) {
44 unsigned len = (*src)->bLength;
48 memcpy(dest, *src, len);
34 usb_descriptor_fillbuf(void *buf, unsigned buflen, const struct usb_descriptor_header **src) argument
/u-boot/test/dm/
H A Dsf.c27 u8 *src, *dst; local
33 src = map_sysmem(0x20000, full_size);
34 ut_assertok(os_write_file("spi.bin", src, full_size));
39 ut_asserteq_mem(src, dst, size);
49 src[i] = i;
50 ut_assertok(spi_flash_write_dm(dev, 0, size, src));
52 ut_asserteq_mem(src, dst, size);

Completed in 292 milliseconds

1234567891011>>