/external/u-boot/arch/arm/mach-socfpga/ |
pinmux_arria10.c | 13 int len; local 21 cell = fdt_getprop(blob, child, "pinctrl-single,pins", &len); 22 if (!cell || len <= 0) 25 debug("%p %d\n", cell, len); 26 for (; len > 0; len -= (2 * sizeof(u32))) { 39 int child, len; local 47 node_name = fdt_get_name(blob, child, &len); 58 node_name = fdt_get_name(blob, child, &len);
|
/device/linaro/bootloader/edk2/StdLib/LibC/Locale/ |
ctypeio.c | 63 u_int32_t i, len;
local 84 if (fread(&len, sizeof(u_int32_t), 1, fp) != 1)
87 if ((len = ntohl(len)) != _CTYPE_NUM_CHARS)
90 if ((new_ctype = malloc(sizeof(UINT16) * (1 + len))) == NULL)
94 if (fread(&new_ctype[1], sizeof(UINT16), len, fp) != len)
97 if ((new_toupper = malloc(sizeof(UINT8) * (1 + len))) == NULL)
101 if (fread(&new_toupper[1], sizeof(UINT8), len, fp) != len)
146 u_int32_t i, len = _CTYPE_NUM_CHARS; local [all...] |
/external/ltp/testcases/kernel/syscalls/mq_timedreceive/ |
mq_timedreceive01.c | 36 .len = 0, 43 .len = 1, 50 .len = MAX_MSGSIZE, 57 .len = 1, 66 .len = 0, 73 .len = 0, 79 .len = 0, 85 .len = 0, 91 .len = 16, 97 .len = 16 139 size_t len = MAX_MSGSIZE; local [all...] |
/external/u-boot/common/ |
hwconfig.c | 243 size_t len; local 248 ret = hwconfig_arg("key1", &len); 249 printf("%zd %.*s\n", len, (int)len, ret); 250 assert(len == 29); 252 assert(!strncmp(ret, "subkey1=value1,subkey2=value2", len)); 254 ret = hwconfig_subarg("key1", "subkey1", &len); 255 printf("%zd %.*s\n", len, (int)len, ret); 256 assert(len == 6) [all...] |
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma/ |
regerror.c | 205 int len;
local 211 len = 0;
215 if (code > 0xffff && len + 10 <= buf_size) {
216 sprint_byte_with_x((char*)(&(buf[len])), (unsigned int)(code >> 24));
217 sprint_byte((char*)(&(buf[len+4])), (unsigned int)(code >> 16));
218 sprint_byte((char*)(&(buf[len+6])), (unsigned int)(code >> 8));
219 sprint_byte((char*)(&(buf[len+8])), (unsigned int)code);
220 len += 10;
222 else if (len + 6 <= buf_size) {
223 sprint_byte_with_x((char*)(&(buf[len])), (unsigned int)(code >> 8)); 267 int len, is_over; local 343 int n, need, len; local [all...] |
/external/tcpdump/ |
print-igmp.c | 107 register const u_char *bp, register u_int len) 112 if (len < 8 + sizeof (struct tr_query)) { 113 ND_PRINT((ndo, " [invalid len %d]", len)); 129 register const u_char *bp, register u_int len) 134 if (len < 8 + sizeof (struct tr_query)) { 135 ND_PRINT((ndo, " [invalid len %d]", len)); 151 register const u_char *bp, register u_int len) 156 /* Minimum len is 16, and should be a multiple of 4 * [all...] |
print-ppi.c | 31 uint16_t len; local 37 len = EXTRACT_LE_16BITS(&hdr->ppi_len); 42 ND_PRINT((ndo, "V.%d DLT %s (%d) len %d", hdr->ppi_ver, 44 len)); 59 u_int length = h->len; 60 uint16_t len; local 71 len = EXTRACT_LE_16BITS(&hdr->ppi_len); 72 if (caplen < len) { 80 if (len < sizeof(ppi_header_t)) { 82 return (len); 100 ppi_header_print(ndo, (const u_char *)hdr, length + len); local [all...] |
/external/toybox/lib/ |
linestack.c | 6 // A linestack is an array of struct ptr_len, with a currently used len 18 if (pos > catch->len) error_exit("linestack_addstack past end."); 21 if (catch->len+throw->len >= catch->max) { 23 catch->max = ((catch->len+throw->len)|63)+1; 29 if (pos != catch->len) 30 memmove((*lls)->idx+pos+throw->len, catch->idx+pos, 31 (catch->len-pos)*sizeof(struct ptr_len)); 40 memcpy(catch->idx+pos, throw->idx, throw->len*sizeof(struct ptr_len)) 77 ssize_t len; local 181 int apad = abs(padto), len = utf8len(str); local [all...] |
/external/boringssl/src/crypto/fipsmodule/bn/ |
bytes.c | 65 BIGNUM *BN_bin2bn(const uint8_t *in, size_t len, BIGNUM *ret) { 79 if (len == 0) { 84 num_words = ((len - 1) / BN_BYTES) + 1; 85 m = (len - 1) % BN_BYTES; 99 while (len--) { 111 BIGNUM *BN_le2bn(const uint8_t *in, size_t len, BIGNUM *ret) { 122 if (len == 0) { 129 size_t num_words = ((len - 1) / BN_BYTES) + 1; 141 OPENSSL_memcpy(ret->d, in, len); 157 static int fits_in_bytes(const uint8_t *bytes, size_t num_bytes, size_t len) { [all...] |
/external/libxkbcommon/xkbcommon/test/ |
atom.c | 43 size_t len; local 46 len = rand() % 15; 47 str = malloc(len + 1); 50 for (size_t i = 0; i < len; i++) 54 str[len] = '\0'; 57 *len_out = len; 66 size_t len; member in struct:atom_string 85 random_string(&arr[i].string, &arr[i].len); 87 atom = atom_lookup(table, arr[i].string, arr[i].len); 92 if (arr[i].len != strlen(string) | [all...] |
/external/u-boot/cmd/ |
binop.c | 15 void write_to_env_var(char *varname, u8 *result, ulong len) 21 str_output = malloc(len * 2 + 1); 24 for (i = 0; i < len; i++) { 68 void read_from_mem(ulong addr, u8 *result, ulong len) 72 src = map_sysmem(addr, len); 73 memcpy(result, src, len); 77 void write_to_mem(char *varname, u8 *result, ulong len) 83 buf = map_sysmem(addr, len); 84 memcpy(buf, result, len); 90 ulong len; local [all...] |
/external/harfbuzz_ng/src/ |
hb-array.hh | 45 hb_array_t () : arrayZ (nullptr), len (0) {} 46 hb_array_t (const hb_array_t &o) : arrayZ (o.arrayZ), len (o.len) {} 47 hb_array_t (Type *array_, unsigned int len_) : arrayZ (array_), len (len_) {} 48 template <unsigned int len_> hb_array_t (Type (&array_)[len_]) : arrayZ (array_), len (len_) {} function in struct:hb_array_t 57 if (unlikely (i >= len)) return CrapOrNull(Type); 61 explicit_operator bool () const { return len; } 64 operator hb_array_t<const Type> () { return hb_array_t<const Type> (arrayZ, len); } 69 if (unlikely (count > len)) 70 count = len; 184 unsigned int len; member in struct:hb_array_t [all...] |
hb-icu.cc | 180 unsigned int len; local 184 len = 0; 186 U16_APPEND (utf16, len, ARRAY_LENGTH (utf16), a, err); 188 U16_APPEND (utf16, len, ARRAY_LENGTH (utf16), b, err); 192 len = unorm2_normalize (unorm2_getNFCInstance (&icu_err), utf16, len, normalized, ARRAY_LENGTH (normalized), &icu_err); 195 if (u_countChar32 (normalized, len) == 1) { 216 int len; local 218 len = unorm2_getRawDecomposition (normalizer, ab, decomposed, 220 if (U_FAILURE (icu_err) || len < 0) return false 240 unsigned int len; local 274 unorm2_normalize (unorm2_getNFCInstance (&icu_err), normalized, len, recomposed, ARRAY_LENGTH (recomposed), &icu_err); local [all...] |
/external/linux-kselftest/tools/testing/selftests/powerpc/ptrace/ |
ptrace-hwbreak.c | 111 static void write_var(int len) 118 switch (len) { 138 static void read_var(int len) 145 switch (len) { 167 int len, ret; local 179 for (len = 1; len <= sizeof(long); len <<= 1) 180 write_var(len); 183 for (len = 1; len <= sizeof(long); len <<= 1 271 int len, i, status; local [all...] |
/external/strace/tests/ |
net-yy-unix.c | 56 TAIL_ALLOC_OBJECT_CONST_PTR(socklen_t, len); 57 *len = offsetof(struct sockaddr_un, sun_path) + strlen(TEST_SOCKET) + 1; 58 if (*len > sizeof(addr)) 59 *len = sizeof(addr); 69 if (bind(listen_fd, listen_sa, *len)) 73 listen_fd, listen_inode, TEST_SOCKET, (unsigned) *len); 81 *len = sizeof(*optval); 82 if (getsockopt(listen_fd, SOL_SOCKET, SO_PASSCRED, optval, len)) 86 listen_fd, listen_inode, TEST_SOCKET, *optval, (unsigned) *len); 89 *len = sizeof(addr) [all...] |
net-packet_mreq.c | 9 packet_mreq_membership(int optname, void *optval, socklen_t len) 11 long rc = setsockopt(-1, SOL_PACKET, optname, optval, len); 20 socklen_t len = sizeof(struct packet_mreq); local 30 packet_mreq_membership(optname, pmreq, len); 37 printf("}, %d) = %s\n", len, errstr); 41 packet_mreq_membership(optname, pmreq, len); 48 printf("}, %d) = %s\n", len, errstr); 52 packet_mreq_membership(optname, pmreq, len); 59 printf("}, %d) = %s\n", len, errstr); 77 packet_mreq_membership(optname, pmreq, len); [all...] |
/external/strace/tests-m32/ |
net-yy-unix.c | 56 TAIL_ALLOC_OBJECT_CONST_PTR(socklen_t, len); 57 *len = offsetof(struct sockaddr_un, sun_path) + strlen(TEST_SOCKET) + 1; 58 if (*len > sizeof(addr)) 59 *len = sizeof(addr); 69 if (bind(listen_fd, listen_sa, *len)) 73 listen_fd, listen_inode, TEST_SOCKET, (unsigned) *len); 81 *len = sizeof(*optval); 82 if (getsockopt(listen_fd, SOL_SOCKET, SO_PASSCRED, optval, len)) 86 listen_fd, listen_inode, TEST_SOCKET, *optval, (unsigned) *len); 89 *len = sizeof(addr) [all...] |
net-packet_mreq.c | 9 packet_mreq_membership(int optname, void *optval, socklen_t len) 11 long rc = setsockopt(-1, SOL_PACKET, optname, optval, len); 20 socklen_t len = sizeof(struct packet_mreq); local 30 packet_mreq_membership(optname, pmreq, len); 37 printf("}, %d) = %s\n", len, errstr); 41 packet_mreq_membership(optname, pmreq, len); 48 printf("}, %d) = %s\n", len, errstr); 52 packet_mreq_membership(optname, pmreq, len); 59 printf("}, %d) = %s\n", len, errstr); 77 packet_mreq_membership(optname, pmreq, len); [all...] |
/external/strace/tests-mx32/ |
net-yy-unix.c | 56 TAIL_ALLOC_OBJECT_CONST_PTR(socklen_t, len); 57 *len = offsetof(struct sockaddr_un, sun_path) + strlen(TEST_SOCKET) + 1; 58 if (*len > sizeof(addr)) 59 *len = sizeof(addr); 69 if (bind(listen_fd, listen_sa, *len)) 73 listen_fd, listen_inode, TEST_SOCKET, (unsigned) *len); 81 *len = sizeof(*optval); 82 if (getsockopt(listen_fd, SOL_SOCKET, SO_PASSCRED, optval, len)) 86 listen_fd, listen_inode, TEST_SOCKET, *optval, (unsigned) *len); 89 *len = sizeof(addr) [all...] |
net-packet_mreq.c | 9 packet_mreq_membership(int optname, void *optval, socklen_t len) 11 long rc = setsockopt(-1, SOL_PACKET, optname, optval, len); 20 socklen_t len = sizeof(struct packet_mreq); local 30 packet_mreq_membership(optname, pmreq, len); 37 printf("}, %d) = %s\n", len, errstr); 41 packet_mreq_membership(optname, pmreq, len); 48 printf("}, %d) = %s\n", len, errstr); 52 packet_mreq_membership(optname, pmreq, len); 59 printf("}, %d) = %s\n", len, errstr); 77 packet_mreq_membership(optname, pmreq, len); [all...] |
/external/webp/src/utils/ |
huffman_utils.c | 41 // Returns reverse(reverse(key, len) + 1, len), where reverse(key, len) is the 42 // bit-wise reversal of the len least significant bits of key. 43 static WEBP_INLINE uint32_t GetNextKey(uint32_t key, int len) { 44 uint32_t step = 1 << (len - 1); 64 // of bit lengths for the remaining symbols, len is the code length of the next 67 int len, int root_bits) { 68 int left = 1 << (len - root_bits); 69 while (len < MAX_ALLOWED_CODE_LENGTH) 85 int len; \/\/ current code length local [all...] |
/external/libnl/include/linux-private/linux/ |
netlink.h | 76 #define NLMSG_ALIGN(len) ( ((len)+NLMSG_ALIGNTO-1) & ~(NLMSG_ALIGNTO-1) ) 78 #define NLMSG_LENGTH(len) ((len)+NLMSG_ALIGN(NLMSG_HDRLEN)) 79 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len)) 81 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ 83 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && [all...] |
/external/ltp/testcases/kernel/syscalls/mlock/ |
mlock02.c | 55 static size_t len; variable 91 len = getpagesize(); 119 addr = SAFE_MMAP(cleanup, NULL, len, PROT_READ, 122 SAFE_MUNMAP(cleanup, addr, len); 124 mlock_verify(addr, len, ENOMEM); 139 rl.rlim_max = len - 1; 140 rl.rlim_cur = len - 1; 143 addr = SAFE_MMAP(cleanup, NULL, len, PROT_READ, 148 mlock_verify(addr, len, ENOMEM); 152 SAFE_MUNMAP(cleanup, addr, len); [all...] |
/external/oj-libjdwp/src/solaris/npt/ |
utf_md.c | 98 iconvConvert(iconv_t ic, char *bytes, int len, char *output, int outputMaxLen) 103 UTF_ASSERT(len>=0); 105 UTF_ASSERT(outputMaxLen>len); 119 inLeft = len; 133 outputLen = len; 134 (void)memcpy(output, bytes, len); 135 output[len] = 0; 144 utf8ToPlatform(struct UtfInst*ui, jbyte *utf8, int len, char *output, int outputMaxLen) 147 if ( len < 0 ) { 152 if ( len == 0 ) [all...] |
/external/toybox/toys/pending/ |
gzip.c | 70 int len, err = 0; local 80 while ((len = gzread(gz, toybuf, sizeof(toybuf))) > 0) 81 if (len != writeall(out_fd, toybuf, len)) break; 83 while ((len = read(in_fd, toybuf, sizeof(toybuf))) > 0) 84 if (len != gzwrite(gz, toybuf, len)) break; 87 err = !!len; 88 if (len>0 || err == Z_ERRNO) perror_msg(dd ? "write" : "read"); 89 if (len<0 116 int len, out_fd = 0; local [all...] |