Home
last modified time | relevance | path

Searched refs:size_t (Results 1 – 25 of 532) sorted by relevance

12345678910>>...22

/rk3399_rockchip-uboot/cmd/ddr_tool/memtester/
H A Dtests.h23 int test_stuck_address(u32v *bufa, size_t count);
25 u32v *bufb, size_t count, ul fix_bit, ul fix_level);
27 u32v *bufb, size_t count, ul fix_bit, ul fix_level);
29 u32v *bufb, size_t count, ul fix_bit, ul fix_level);
31 u32v *bufb, size_t count, ul fix_bit, ul fix_level);
33 u32v *bufb, size_t count, ul fix_bit, ul fix_level);
35 u32v *bufb, size_t count, ul fix_bit, ul fix_level);
37 u32v *bufb, size_t count, ul fix_bit, ul fix_level);
38 int test_seqinc_comparison(u32v *bufa, u32v *bufb, size_t count,
40 int test_solidbits_comparison(u32v *bufa, u32v *bufb, size_t count,
[all …]
H A Dtests.c40 int compare_regions(u32v *bufa, u32v *bufb, size_t count) in compare_regions()
43 size_t i; in compare_regions()
69 int test_stuck_address(u32v *bufa, size_t count) in test_stuck_address()
73 size_t i; in test_stuck_address()
117 int test_random_value(u32v *bufa, u32v *bufb, size_t count, in test_random_value()
123 size_t i; in test_random_value()
140 int test_xor_comparison(u32v *bufa, u32v *bufb, size_t count, in test_xor_comparison()
146 size_t i; in test_xor_comparison()
156 int test_sub_comparison(u32v *bufa, u32v *bufb, size_t count, in test_sub_comparison()
161 size_t i; in test_sub_comparison()
[all …]
/rk3399_rockchip-uboot/lib/
H A Dtpm.c63 int pack_byte_string(uint8_t *str, size_t size, const char *format, ...) in pack_byte_string()
66 size_t offset = 0, length = 0; in pack_byte_string()
74 offset = va_arg(args, size_t); in pack_byte_string()
79 offset = va_arg(args, size_t); in pack_byte_string()
84 offset = va_arg(args, size_t); in pack_byte_string()
89 offset = va_arg(args, size_t); in pack_byte_string()
136 int unpack_byte_string(const uint8_t *str, size_t size, const char *format, ...) in unpack_byte_string()
139 size_t offset = 0, length = 0; in unpack_byte_string()
148 offset = va_arg(args, size_t); in unpack_byte_string()
153 offset = va_arg(args, size_t); in unpack_byte_string()
[all …]
H A Dstring.c30 int strncasecmp(const char *s1, const char *s2, size_t len) in strncasecmp()
94 char * strncpy(char * dest,const char *src,size_t count) in strncpy()
117 size_t strlcpy(char *dest, const char *src, size_t size) in strlcpy()
119 size_t ret = strlen(src); in strlcpy()
122 size_t len = (ret >= size) ? size - 1 : ret; in strlcpy()
159 char * strncat(char *dest, const char *src, size_t count) in strncat()
204 int strncmp(const char * cs,const char * ct,size_t count) in strncmp()
263 size_t strlen(const char * s) in strlen()
279 size_t strnlen(const char * s, size_t count) in strnlen()
296 size_t strcspn(const char *s, const char *reject) in strcspn()
[all …]
H A Dlz4.c80 const size_t dictSize /* note : = 0 if noDict */ in LZ4_decompress_generic()
94 const size_t dec32table[] = {4, 1, 2, 1, 4, 4, 4, 4}; in LZ4_decompress_generic()
95 const size_t dec64table[] = {0, 0, 0, (size_t)-1, 0, 1, 2, 3}; in LZ4_decompress_generic()
111 size_t length; in LZ4_decompress_generic()
125 …if ((safeDecode) && unlikely((size_t)(op+length)<(size_t)(op))) goto _output_error; /* overflow … in LZ4_decompress_generic()
126 …if ((safeDecode) && unlikely((size_t)(ip+length)<(size_t)(ip))) goto _output_error; /* overflow … in LZ4_decompress_generic()
167 …if ((safeDecode) && unlikely((size_t)(op+length)<(size_t)op)) goto _output_error; /* overflow de… in LZ4_decompress_generic()
176 if (length <= (size_t)(lowPrefix-match)) in LZ4_decompress_generic()
185 size_t copySize = (size_t)(lowPrefix-match); in LZ4_decompress_generic()
189 if (copySize > (size_t)(op-lowPrefix)) /* overlap within current segment */ in LZ4_decompress_generic()
[all …]
/rk3399_rockchip-uboot/include/android_avb/
H A Davb_ops.h134 size_t num_bytes,
136 size_t* out_num_read);
155 size_t num_bytes,
157 size_t* out_num_bytes_preloaded,
179 size_t num_bytes,
204 size_t public_key_length,
206 size_t public_key_metadata_length,
219 size_t rollback_index_location,
232 size_t rollback_index_location,
261 size_t guid_buf_size);
[all …]
H A Davb_util.h175 size_t n) AVB_ATTR_WARN_UNUSED_RESULT;
201 size_t num_bytes) AVB_ATTR_WARN_UNUSED_RESULT;
212 size_t buf_size,
214 size_t str1_len,
216 size_t str2_len);
221 void* avb_malloc(size_t size) AVB_ATTR_WARN_UNUSED_RESULT;
224 void* avb_calloc(size_t size) AVB_ATTR_WARN_UNUSED_RESULT;
256 size_t str_size);
267 uint32_t avb_crc32(const uint8_t* buf, size_t buf_size);
283 char* avb_bin2hex(const uint8_t* data, size_t data_len);
H A Davb_sysdeps.h76 size_t n) AVB_ATTR_WARN_UNUSED_RESULT;
92 int avb_strncmp(const char* s1, const char* s2, size_t n);
95 void* avb_memcpy(void* dest, const void* src, size_t n);
98 void* avb_memset(void* dest, const int c, size_t n);
122 void* avb_malloc_(size_t size) AVB_ATTR_WARN_UNUSED_RESULT;
128 size_t avb_strlen(const char* str) AVB_ATTR_WARN_UNUSED_RESULT;
H A Davb_property_descriptor.h86 size_t image_size,
88 size_t key_size,
89 size_t* out_value_size)
99 size_t image_size,
101 size_t key_size,
/rk3399_rockchip-uboot/include/
H A Dmalloc.h298 #define INTERNAL_SIZE_T size_t
364 void* memset(void*, int, size_t);
365 void* memcpy(void*, const void*, size_t);
527 extern size_t getpagesize();
880 void *calloc(size_t nmemb, size_t size);
881 void *memalign_simple(size_t alignment, size_t bytes);
882 void *realloc_simple(void *ptr, size_t size);
925 void *malloc_simple(size_t size);
930 Void_t* mALLOc(size_t);
932 Void_t* rEALLOc(Void_t*, size_t);
[all …]
H A Dabuf.h31 size_t size;
40 static inline size_t abuf_size(const struct abuf *abuf) in abuf_size()
58 void abuf_set(struct abuf *abuf, void *data, size_t size);
72 void abuf_map_sysmem(struct abuf *abuf, ulong addr, size_t size);
91 bool abuf_realloc(struct abuf *abuf, size_t new_size);
115 void *abuf_uninit_move(struct abuf *abuf, size_t *sizep);
126 void abuf_init_move(struct abuf *abuf, void *data, size_t size);
137 void abuf_init_set(struct abuf *abuf, void *data, size_t size);
H A Dspi_flash.h33 int (*read)(struct udevice *dev, u32 offset, size_t len, void *buf);
34 int (*write)(struct udevice *dev, u32 offset, size_t len,
36 int (*erase)(struct udevice *dev, u32 offset, size_t len);
65 int spi_flash_read_dm(struct udevice *dev, u32 offset, size_t len, void *buf);
76 int spi_flash_write_dm(struct udevice *dev, u32 offset, size_t len,
89 int spi_flash_erase_dm(struct udevice *dev, u32 offset, size_t len);
117 size_t len, void *buf) in spi_flash_read()
123 size_t len, const void *buf) in spi_flash_write()
129 size_t len) in spi_flash_erase()
148 size_t len, void *buf) in spi_flash_read()
[all …]
H A Dnand.h48 static inline int nand_read(struct mtd_info *info, loff_t ofs, size_t *len, in nand_read()
51 return mtd_read(info, ofs, *len, (size_t *)len, buf); in nand_read()
54 static inline int nand_write(struct mtd_info *info, loff_t ofs, size_t *len, in nand_write()
57 return mtd_write(info, ofs, *len, (size_t *)len, buf); in nand_write()
65 static inline int nand_erase(struct mtd_info *info, loff_t off, size_t size) in nand_erase()
101 int nand_read_skip_bad(struct mtd_info *mtd, loff_t offset, size_t *length,
102 size_t *actual, loff_t lim, u_char *buffer);
107 int nand_write_skip_bad(struct mtd_info *mtd, loff_t offset, size_t *length,
108 size_t *actual, loff_t lim, u_char *buffer, int flags);
114 int nand_verify(struct mtd_info *mtd, loff_t ofs, size_t len, u_char *buf);
[all …]
H A Dxilinx.h42 size_t size; /* bytes of data part can accept */
50 int (*load)(xilinx_desc *, const void *, size_t, bitstream_type);
51 int (*loadfs)(xilinx_desc *, const void *, size_t, fpga_fs_info *);
52 int (*dump)(xilinx_desc *, const void *, size_t);
58 int xilinx_load(xilinx_desc *desc, const void *image, size_t size,
60 int xilinx_dump(xilinx_desc *desc, const void *buf, size_t bsize);
62 int xilinx_loadfs(xilinx_desc *desc, const void *buf, size_t bsize,
80 typedef int (*xilinx_bwr_fn)(void *buf, size_t len, int flush, int cookie);
H A Diomem.h19 void iomem_show(const char *label, unsigned long base, size_t start, size_t end);
33 void iomem_show_by_compatible(const char *compat, size_t start, size_t end);
H A Dhexdump.h55 static inline int hex2bin(u8 *dst, const char *src, size_t count) in hex2bin()
75 static inline char *bin2hex(char *dst, const void *src, size_t count) in bin2hex()
84 int hex_dump_to_buffer(const void *buf, size_t len, int rowsize, int groupsize,
85 char *linebuf, size_t linebuflen, bool ascii);
87 int groupsize, const void *buf, size_t len, bool ascii);
89 const void *buf, size_t len);
/rk3399_rockchip-uboot/include/linux/mtd/
H A Dmtd.h90 size_t len;
91 size_t retlen;
92 size_t ooblen;
93 size_t oobretlen;
240 int (*_point) (struct mtd_info *mtd, loff_t from, size_t len,
241 size_t *retlen, void **virt, resource_size_t *phys);
242 int (*_unpoint) (struct mtd_info *mtd, loff_t from, size_t len);
248 int (*_read) (struct mtd_info *mtd, loff_t from, size_t len,
249 size_t *retlen, u_char *buf);
250 int (*_write) (struct mtd_info *mtd, loff_t to, size_t len,
[all …]
/rk3399_rockchip-uboot/lib/lzma/
H A DTypes.h80 typedef size_t SizeT;
121 SRes (*Read)(void *p, void *buf, size_t *size);
127 SRes SeqInStream_Read(ISeqInStream *stream, void *buf, size_t size);
128 SRes SeqInStream_Read2(ISeqInStream *stream, void *buf, size_t size, SRes errorType);
133 size_t (*Write)(void *p, const void *buf, size_t size);
147 SRes (*Read)(void *p, void *buf, size_t *size); /* same as ISeqInStream::Read */
153 SRes (*Look)(void *p, const void **buf, size_t *size);
157 SRes (*Skip)(void *p, size_t offset);
160 SRes (*Read)(void *p, void *buf, size_t *size);
165 SRes LookInStream_LookRead(ILookInStream *stream, void *buf, size_t *size);
[all …]
/rk3399_rockchip-uboot/include/linux/
H A Dlzo.h23 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);
31 int lzop_decompress(const unsigned char *src, size_t src_len,
32 unsigned char *dst, size_t *dst_len);
/rk3399_rockchip-uboot/lib/avb/libavb/
H A Davb_util.c83 int avb_safe_memcmp(const void* s1, const void* s2, size_t n) { in avb_safe_memcmp()
128 bool avb_validate_utf8(const uint8_t* data, size_t num_bytes) { in avb_validate_utf8()
129 size_t n; in avb_validate_utf8()
172 size_t buf_size, in avb_str_concat()
174 size_t str1_len, in avb_str_concat()
176 size_t str2_len) { in avb_str_concat()
196 void* avb_malloc(size_t size) { in avb_malloc()
205 void* avb_calloc(size_t size) { in avb_calloc()
216 size_t len = avb_strlen(str); in avb_strdup()
229 size_t n, m; in avb_strstr()
[all …]
H A Davb_sysdeps_posix.c39 int avb_memcmp(const void* src1, const void* src2, size_t n) { in avb_memcmp()
43 void* avb_memcpy(void* dest, const void* src, size_t n) { in avb_memcpy()
47 void* avb_memset(void* dest, const int c, size_t n) { in avb_memset()
55 int avb_strncmp(const char* s1, const char* s2, size_t n) { in avb_strncmp()
59 size_t avb_strlen(const char* str) { in avb_strlen()
82 void* avb_malloc_(size_t size) { in avb_malloc_()
/rk3399_rockchip-uboot/include/cavium/
H A Datf.h10 ssize_t atf_read_mmc(uintptr_t offset, void *buffer, size_t size);
11 ssize_t atf_read_nor(uintptr_t offset, void *buffer, size_t size);
14 ssize_t atf_erase_nor(uintptr_t offset, size_t size);
15 ssize_t atf_write_nor(uintptr_t offset, const void *buffer, size_t size);
16 ssize_t atf_write_mmc(uintptr_t offset, const void *buffer, size_t size);
20 ssize_t atf_env_string(size_t index, char *str);
/rk3399_rockchip-uboot/drivers/mtd/spi/
H A Dsf.c14 const u8 *cmd, size_t cmd_len, in spi_flash_read_write()
16 size_t data_len) in spi_flash_read_write()
40 size_t cmd_len, void *data, size_t data_len) in spi_flash_cmd_read()
45 int spi_flash_cmd(struct spi_slave *spi, u8 cmd, void *response, size_t len) in spi_flash_cmd()
50 int spi_flash_cmd_write(struct spi_slave *spi, const u8 *cmd, size_t cmd_len, in spi_flash_cmd_write()
51 const void *data, size_t data_len) in spi_flash_cmd_write()
/rk3399_rockchip-uboot/arch/sh/include/asm/
H A Dstring.h33 static inline char *strncpy(char *__dest, const char *__src, size_t __n) in strncpy()
85 static inline int strncmp(const char *__cs, const char *__ct, size_t __n) in strncmp()
117 extern void *memset(void *__s, int __c, size_t __count);
120 extern void *memcpy(void *__to, __const__ void *__from, size_t __n);
123 extern void *memmove(void *__dest, __const__ void *__src, size_t __n);
126 extern void *memchr(const void *__s, int __c, size_t __n);
129 extern size_t strlen(const char *);
/rk3399_rockchip-uboot/common/
H A Dhwconfig.c29 static const char *hwconfig_parse(const char *opts, size_t maxlen, in hwconfig_parse()
31 size_t *arglen) in hwconfig_parse()
33 size_t optlen = strlen(opt); in hwconfig_parse()
72 static const char *__hwconfig(const char *opt, size_t *arglen, in __hwconfig()
141 const char *hwconfig_arg_f(const char *opt, size_t *arglen, char *buf) in hwconfig_arg_f()
163 size_t arglen; in hwconfig_arg_cmp_f()
186 size_t arglen; in hwconfig_sub_f()
206 size_t *subarglen, char *buf) in hwconfig_subarg_f()
208 size_t arglen; in hwconfig_subarg_f()
231 size_t arglen; in hwconfig_subarg_cmp_f()
[all …]

12345678910>>...22