/external/libdrm/tests/amdgpu/ |
uvd_enc_tests.c | 280 int len, r; local 282 len = 0; 283 memcpy((ib_cpu + len), uve_session_info, sizeof(uve_session_info)); 284 len += sizeof(uve_session_info) / 4; 285 ib_cpu[len++] = enc.session.addr >> 32; 286 ib_cpu[len++] = enc.session.addr; 288 memcpy((ib_cpu + len), uve_task_info, sizeof(uve_task_info)); 289 len += sizeof(uve_task_info) / 4; 290 ib_cpu[len++] = 0x000000d8; 291 ib_cpu[len++] = 0x00000000 330 int len, r, i; local 467 int len, r; local [all...] |
/device/linaro/bootloader/arm-trusted-firmware/lib/stdlib/ |
mem.c | 23 * Compare @len bytes of @s1 and @s2 25 int memcmp(const void *s1, const void *s2, size_t len) 32 while (len--) { 43 * Copy @len bytes from @src to @dst 45 void *memcpy(void *dst, const void *src, size_t len) 50 while (len--) 57 * Move @len bytes from @src to @dst 59 void *memmove(void *dst, const void *src, size_t len) 63 * more efficiently test the condition !(src <= dst && dst < str+len). 65 * incorrect results were the calculation str+len to overflow (thoug [all...] |
/external/elfutils/libelf/ |
note_xlate.h | 30 elf_cvt_note (void *dest, const void *src, size_t len, int encode, 37 while (len >= sizeof (Elf32_Nhdr)) 49 if (note_len > len || note_len < sizeof *n) 55 if (note_len > len || note_len < sizeof *n) 67 len -= note_len; 72 if (unlikely (len > 0) && src != dest) 73 memcpy (dest, src, len); 77 elf_cvt_note4 (void *dest, const void *src, size_t len, int encode) 79 elf_cvt_note (dest, src, len, encode, false); 83 elf_cvt_note8 (void *dest, const void *src, size_t len, int encode [all...] |
gnuhash_xlate.h | 37 elf_cvt_gnuhash (void *dest, const void *src, size_t len, int encode) 47 if (len < 4) 50 len -= 4; 60 if (len < 8) 63 len -= 8; 69 while (len >= 4) 72 len -= 4;
|
/external/iproute2/include/ |
rt_names.h | 6 const char *rtnl_rtprot_n2a(int id, char *buf, int len); 7 const char *rtnl_rtscope_n2a(int id, char *buf, int len); 8 const char *rtnl_rttable_n2a(__u32 id, char *buf, int len); 9 const char *rtnl_rtrealm_n2a(int id, char *buf, int len); 10 const char *rtnl_dsfield_n2a(int id, char *buf, int len); 11 const char *rtnl_group_n2a(int id, char *buf, int len); 20 const char *inet_proto_n2a(int proto, char *buf, int len); 24 const char * ll_type_n2a(int type, char *buf, int len); 27 int ll_addr_a2n(char *lladdr, int len, const char *arg); 29 const char * ll_proto_n2a(unsigned short id, char *buf, int len); [all...] |
/external/iproute2/lib/ |
ipx_ntop.c | 8 static __inline__ int do_digit(char *str, u_int32_t addr, u_int32_t scale, size_t *pos, size_t len) 12 if (*pos == len) 25 static const char *ipx_ntop1(const struct ipx_addr *addr, char *str, size_t len) 30 if (len == 0) 34 if (do_digit(str + pos, ntohl(addr->ipx_net), i, &pos, len)) 37 if (pos == len) 44 if (do_digit(str + pos, addr->ipx_node[i], 1, &pos, len)) 46 if (do_digit(str + pos, addr->ipx_node[i], 0, &pos, len)) 50 if (pos == len) 59 const char *ipx_ntop(int af, const void *addr, char *str, size_t len) [all...] |
/external/u-boot/arch/arm/mach-imx/ |
cmd_dek.c | 22 * @len: - Size of data to be encapsulated 26 static int blob_encap_dek(const u8 *src, u8 *dst, u32 len) 37 if (!((len == 128) | (len == 192) | (len == 256))) { 42 len /= 8; 43 ret = blob_dek(src, dst, len); 60 uint32_t src_addr, dst_addr, len; local 69 len = simple_strtoul(argv[3], NULL, 10); 71 src_ptr = map_sysmem(src_addr, len/8) [all...] |
/external/u-boot/arch/powerpc/cpu/mpc85xx/ |
portals.c | 32 int len; local 35 range = fdt_getprop_w(blob, off, "ranges", &len); 42 if (len == 16) { 50 fdt_setprop_inplace(blob, off, "ranges", range, len); 53 name = fdt_get_name(blob, off, &len); 54 p = memchr(name, '@', len); 57 len = p - name; 61 if (container && (memcmp(container, name, len))) { 67 memcpy(&buf, name, len); 68 len += sprintf(&buf[len], "@%llx", addr) [all...] |
/external/webrtc/talk/media/base/ |
rtputils.h | 56 bool GetRtpPayloadType(const void* data, size_t len, int* value); 57 bool GetRtpSeqNum(const void* data, size_t len, int* value); 58 bool GetRtpTimestamp(const void* data, size_t len, uint32_t* value); 59 bool GetRtpSsrc(const void* data, size_t len, uint32_t* value); 60 bool GetRtpHeaderLen(const void* data, size_t len, size_t* value); 61 bool GetRtcpType(const void* data, size_t len, int* value); 62 bool GetRtcpSsrc(const void* data, size_t len, uint32_t* value); 63 bool GetRtpHeader(const void* data, size_t len, RtpHeader* header); 65 bool SetRtpSsrc(void* data, size_t len, uint32_t value); 67 bool SetRtpHeader(void* data, size_t len, const RtpHeader& header) [all...] |
/frameworks/av/media/libstagefright/foundation/ |
AStringUtils.cpp | 23 int AStringUtils::Compare(const char *a, const char *b, size_t len, bool ignoreCase) { 24 // this method relies on a trailing '\0' if a or b are shorter than len 25 return ignoreCase ? strncasecmp(a, b, len) : strncmp(a, b, len); 38 if (strLen < globIx || Compare(str, glob, globIx /* len */, ignoreCase)) { 50 size_t len = globIx - start; local 55 if (ix + len > strLen) { 58 const char *tail = str + strLen - len; 59 return !Compare(tail, pattern, len, ignoreCase); 62 while (ix + len <= strLen && Compare(str + ix, pattern, len, ignoreCase)) [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/zlib/ |
inftrees.c | 40 unsigned len; /* a code's length in bits */
local 107 for (len = 0; len <= MAXBITS; len++)
108 count[len] = 0;
132 for (len = 1; len <= MAXBITS; len++) {
134 left -= count[len];
142 for (len = 1; len < MAXBITS; len++) [all...] |
/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/Pccts/h/ |
BufFileInput.cpp | 39 len( 0 )
50 if( len > 0 )
58 len--;
69 len++;
81 while( len < l )
85 buf[ (start+len) % size ] = c;
87 len++;
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Other/Maintained/Tools/Pccts/h/ |
BufFileInput.cpp | 39 len( 0 )
50 if( len > 0 )
58 len--;
69 len++;
81 while( len < l )
85 buf[ (start+len) % size ] = c;
87 len++;
|
/external/google-breakpad/src/client/linux/minidump_writer/ |
line_reader.h | 58 // len: (output) the length of the line (not inc the NUL byte) 64 bool GetNextLine(const char **line, unsigned *len) { 72 *len = i; 91 *len = buf_used_; 113 void PopLine(unsigned len) { 114 // len doesn't include the NUL byte at the end. 116 assert(buf_used_ >= len + 1); 117 buf_used_ -= len + 1; 118 my_memmove(buf_, buf_ + len + 1, buf_used_);
|
/external/strace/tests/ |
so_linger.c | 41 get_linger(int fd, void *val, socklen_t *len) 43 int rc = getsockopt(fd, SOL_SOCKET, SO_LINGER, val, len); 49 set_linger(int fd, void *val, socklen_t len) 51 int rc = setsockopt(fd, SOL_SOCKET, SO_LINGER, val, len); 60 TAIL_ALLOC_OBJECT_CONST_PTR(socklen_t, len); 79 *len = sizeof(*linger); 80 get_linger(fd, linger, len); 83 fd, linger->l_onoff, linger->l_linger, *len, errstr); 117 *len = 0; 118 get_linger(fd, linger, len); [all...] |
/external/strace/tests-m32/ |
so_linger.c | 41 get_linger(int fd, void *val, socklen_t *len) 43 int rc = getsockopt(fd, SOL_SOCKET, SO_LINGER, val, len); 49 set_linger(int fd, void *val, socklen_t len) 51 int rc = setsockopt(fd, SOL_SOCKET, SO_LINGER, val, len); 60 TAIL_ALLOC_OBJECT_CONST_PTR(socklen_t, len); 79 *len = sizeof(*linger); 80 get_linger(fd, linger, len); 83 fd, linger->l_onoff, linger->l_linger, *len, errstr); 117 *len = 0; 118 get_linger(fd, linger, len); [all...] |
/external/strace/tests-mx32/ |
so_linger.c | 41 get_linger(int fd, void *val, socklen_t *len) 43 int rc = getsockopt(fd, SOL_SOCKET, SO_LINGER, val, len); 49 set_linger(int fd, void *val, socklen_t len) 51 int rc = setsockopt(fd, SOL_SOCKET, SO_LINGER, val, len); 60 TAIL_ALLOC_OBJECT_CONST_PTR(socklen_t, len); 79 *len = sizeof(*linger); 80 get_linger(fd, linger, len); 83 fd, linger->l_onoff, linger->l_linger, *len, errstr); 117 *len = 0; 118 get_linger(fd, linger, len); [all...] |
/external/toybox/scripts/ |
mktags.c | 15 ssize_t len; local 17 len = getline(&line, (void *)&len, stdin); 18 if (len<0) break; 19 while (len && isspace(line[len-1])) line[--len]=0;
|
/external/u-boot/lib/zlib/ |
inftrees.c | 36 unsigned len; /* a code's length in bits */ local 103 for (len = 0; len <= MAXBITS; len++) 104 count[len] = 0; 128 for (len = 1; len <= MAXBITS; len++) { 130 left -= count[len]; 138 for (len = 1; len < MAXBITS; len++ [all...] |
/external/u-boot/tools/ |
ncb.c | 9 int s, len, o, port = 6666; local 20 len = 4; 21 setsockopt (3, SOL_SOCKET, SO_REUSEADDR, &o, len); 30 len = recvfrom (s, buf, sizeof buf, 0, (struct sockaddr *) &addr, &addr_len); 31 if (len < 0) 33 if (write (1, buf, len) != len)
|
/external/webrtc/webrtc/common_audio/signal_processing/ |
resample_by_2_internal.h | 26 void WebRtcSpl_DownBy2IntToShort(int32_t *in, int32_t len, int16_t *out, 29 void WebRtcSpl_DownBy2ShortToInt(const int16_t *in, int32_t len, 32 void WebRtcSpl_UpBy2ShortToInt(const int16_t *in, int32_t len, 35 void WebRtcSpl_UpBy2IntToInt(const int32_t *in, int32_t len, int32_t *out, 38 void WebRtcSpl_UpBy2IntToShort(const int32_t *in, int32_t len, 41 void WebRtcSpl_LPBy2ShortToInt(const int16_t* in, int32_t len, 44 void WebRtcSpl_LPBy2IntToInt(const int32_t* in, int32_t len, int32_t* out,
|
/external/wpa_supplicant_8/src/tls/ |
asn1.c | 16 .len = 6 21 .len = 9 25 int asn1_get_next(const u8 *buf, size_t len, struct asn1_hdr *hdr) 32 end = buf + len; 98 int asn1_parse_oid(const u8 *buf, size_t len, struct asn1_oid *oid) 107 end = buf + len; 119 if (oid->len >= ASN1_MAX_OID_LEN) { 123 if (oid->len == 0) { 133 oid->len = 2; 135 oid->oid[oid->len++] = val [all...] |
/external/zlib/src/contrib/infback9/ |
inftree9.c | 40 unsigned len; /* a code's length in bits */ local 109 for (len = 0; len <= MAXBITS; len++) 110 count[len] = 0; 126 for (len = 1; len <= MAXBITS; len++) { 128 left -= count[len]; 136 for (len = 1; len < MAXBITS; len++ [all...] |
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/ |
stream.c | 40 int len; local 41 len = MIN(Frame_Maxsize - stream->frame_storelen, stream->set_len); 42 pMemOP->Copy(VO_INDEX_ENC_AMRWB, stream->frame_ptr_bk + stream->frame_storelen , stream->set_ptr, len); 43 stream->set_len -= len; 44 stream->set_ptr += len; 45 stream->framebuffer_len = stream->frame_storelen + len; 47 stream->used_len += len;
|
/bionic/libc/include/bits/fortify/ |
socket.h | 45 ssize_t recvfrom(int fd, void* const buf __pass_object_size0, size_t len, int flags, struct sockaddr* src_addr, socklen_t* addr_len) 47 __clang_error_if(__bos(buf) != __BIONIC_FORTIFY_UNKNOWN_SIZE && __bos(buf) < len, 52 return __call_bypassing_fortify(recvfrom)(fd, buf, len, flags, src_addr, addr_len); 54 return __recvfrom_chk(fd, buf, len, bos, flags, src_addr, addr_len); 60 ssize_t sendto(int fd, const void* const buf __pass_object_size0, size_t len, int flags, const struct sockaddr* dest_addr, socklen_t addr_len) 62 __clang_error_if(__bos0(buf) != __BIONIC_FORTIFY_UNKNOWN_SIZE && __bos0(buf) < len, 67 return __call_bypassing_fortify(sendto)(fd, buf, len, flags, dest_addr, addr_len); 69 return __sendto_chk(fd, buf, len, bos, flags, dest_addr, addr_len); 74 ssize_t recv(int socket, void* const buf __pass_object_size0, size_t len, int flags) 76 __clang_error_if(__bos0(buf) != __BIONIC_FORTIFY_UNKNOWN_SIZE && __bos0(buf) < len, [all...] |