Home
last modified time | relevance | path

Searched refs:len (Results 1 – 25 of 144) sorted by relevance

123456

/development/ndk/platforms/android-3/include/linux/
Dnetlink.h71 #define NLMSG_ALIGN(len) ( ((len)+NLMSG_ALIGNTO-1) & ~(NLMSG_ALIGNTO-1) ) argument
73 #define NLMSG_LENGTH(len) ((len)+NLMSG_ALIGN(NLMSG_HDRLEN)) argument
74 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len)) argument
76 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), (struct nlmsghdr*)(((char*)(… argument
77 …e NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && (nlh)->nlmsg_len >= sizeof(struct … argument
78 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len))) argument
116 #define NLA_ALIGN(len) (((len) + NLA_ALIGNTO - 1) & ~(NLA_ALIGNTO - 1)) argument
Dsocket.h63 #define __CMSG_NXTHDR(ctl, len, cmsg) __cmsg_nxthdr((ctl),(len),(cmsg)) argument
66 #define CMSG_ALIGN(len) ( ((len)+sizeof(long)-1) & ~(sizeof(long)-1) ) argument
69 #define CMSG_SPACE(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + CMSG_ALIGN(len)) argument
70 #define CMSG_LEN(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + (len)) argument
72 #define __CMSG_FIRSTHDR(ctl,len) ((len) >= sizeof(struct cmsghdr) ? (struct cmsghdr *)(ctl) : (… argument
Dinput.h51 #define EVIOCGNAME(len) _IOC(_IOC_READ, 'E', 0x06, len) argument
52 #define EVIOCGPHYS(len) _IOC(_IOC_READ, 'E', 0x07, len) argument
53 #define EVIOCGUNIQ(len) _IOC(_IOC_READ, 'E', 0x08, len) argument
55 #define EVIOCGKEY(len) _IOC(_IOC_READ, 'E', 0x18, len) argument
56 #define EVIOCGLED(len) _IOC(_IOC_READ, 'E', 0x19, len) argument
57 #define EVIOCGSND(len) _IOC(_IOC_READ, 'E', 0x1a, len) argument
58 #define EVIOCGSW(len) _IOC(_IOC_READ, 'E', 0x1b, len) argument
60 #define EVIOCGBIT(ev,len) _IOC(_IOC_READ, 'E', 0x20 + ev, len) argument
Drtnetlink.h119 #define RTA_ALIGN(len) ( ((len)+RTA_ALIGNTO-1) & ~(RTA_ALIGNTO-1) ) argument
120 #define RTA_OK(rta,len) ((len) >= (int)sizeof(struct rtattr) && (rta)->rta_len >= sizeof(struct r… argument
122 #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len)) argument
123 #define RTA_SPACE(len) RTA_ALIGN(RTA_LENGTH(len)) argument
240 #define RTNH_ALIGN(len) ( ((len)+RTNH_ALIGNTO-1) & ~(RTNH_ALIGNTO-1) ) argument
241 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && ((int)(rtnh)->rtnh_len… argument
243 #define RTNH_LENGTH(len) (RTNH_ALIGN(sizeof(struct rtnexthop)) + (len)) argument
244 #define RTNH_SPACE(len) RTNH_ALIGN(RTNH_LENGTH(len)) argument
Dsoundcard.h184 int len; member
220 int len; member
501 int len; member
512 int len; member
516 int len; member
743 #define SEQ_DEFINEBUF(len) SEQ_USE_EXTBUF();static int _requested_seqbuflen=len argument
744 #define _SEQ_ADVBUF(len) OSS_seq_advbuf(len, seqfd, _seqbuf, _seqbuflen) argument
745 #define _SEQ_NEEDBUF(len) OSS_seq_needbuf(len, seqfd, _seqbuf, _seqbuflen) argument
759 #define SEQ_DEFINEBUF(len) unsigned char _seqbuf[len]; int _seqbuflen = len;int _seqbufptr = 0 argument
760 #define _SEQ_NEEDBUF(len) if ((_seqbufptr+(len)) > _seqbuflen) seqbuf_dump() argument
[all …]
/development/ndk/platforms/android-L/include/
Dstrings.h47 #define bcopy(b1, b2, len) \ argument
48 (void)(__builtin___memmove_chk((b2), (b1), (len), __bos0(b2)))
49 #define bzero(b, len) \ argument
50 (void)(__builtin___memset_chk((b), '\0', (len), __bos0(b)))
52 #define bcopy(b1, b2, len) (void)(__builtin_memmove((b2), (b1), (len)))
53 #define bzero(b, len) (void)(__builtin_memset((b), '\0', (len)))
/development/ndk/platforms/android-L/include/linux/
Dhidraw.h39 #define HIDIOCGRAWNAME(len) _IOC(_IOC_READ, 'H', 0x04, len) argument
40 #define HIDIOCGRAWPHYS(len) _IOC(_IOC_READ, 'H', 0x05, len) argument
41 #define HIDIOCSFEATURE(len) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x06, len) argument
42 #define HIDIOCGFEATURE(len) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x07, len) argument
Dnetlink.h87 #define NLMSG_ALIGN(len) ( ((len)+NLMSG_ALIGNTO-1) & ~(NLMSG_ALIGNTO-1) ) argument
90 #define NLMSG_LENGTH(len) ((len) + NLMSG_HDRLEN) argument
91 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len)) argument
94 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), (struct nlmsghdr*)(((char*)(… argument
95 …e NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && (nlh)->nlmsg_len >= sizeof(struct … argument
96 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len))) argument
167 #define NLA_ALIGN(len) (((len) + NLA_ALIGNTO - 1) & ~(NLA_ALIGNTO - 1)) argument
Dfanotify.h85 #define FAN_EVENT_NEXT(meta, len) ((len) -= (meta)->event_len, (struct fanotify_event_metadata*)(… argument
86len) ((long)(len) >= (long)FAN_EVENT_METADATA_LEN && (long)(meta)->event_len >= (long)FAN_EVENT_… argument
Drtnetlink.h161 #define RTA_ALIGN(len) ( ((len)+RTA_ALIGNTO-1) & ~(RTA_ALIGNTO-1) ) argument
162 #define RTA_OK(rta,len) ((len) >= (int)sizeof(struct rtattr) && (rta)->rta_len >= sizeof(struct r… argument
165 #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len)) argument
166 #define RTA_SPACE(len) RTA_ALIGN(RTA_LENGTH(len)) argument
289 #define RTNH_ALIGN(len) ( ((len)+RTNH_ALIGNTO-1) & ~(RTNH_ALIGNTO-1) ) argument
290 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && ((int)(rtnh)->rtnh_len… argument
292 #define RTNH_LENGTH(len) (RTNH_ALIGN(sizeof(struct rtnexthop)) + (len)) argument
294 #define RTNH_SPACE(len) RTNH_ALIGN(RTNH_LENGTH(len)) argument
Dinput.h56 __u8 len; member
72 #define EVIOCGNAME(len) _IOC(_IOC_READ, 'E', 0x06, len) argument
74 #define EVIOCGPHYS(len) _IOC(_IOC_READ, 'E', 0x07, len) argument
75 #define EVIOCGUNIQ(len) _IOC(_IOC_READ, 'E', 0x08, len) argument
76 #define EVIOCGPROP(len) _IOC(_IOC_READ, 'E', 0x09, len) argument
77 #define EVIOCGMTSLOTS(len) _IOC(_IOC_READ, 'E', 0x0a, len) argument
79 #define EVIOCGKEY(len) _IOC(_IOC_READ, 'E', 0x18, len) argument
80 #define EVIOCGLED(len) _IOC(_IOC_READ, 'E', 0x19, len) argument
81 #define EVIOCGSND(len) _IOC(_IOC_READ, 'E', 0x1a, len) argument
82 #define EVIOCGSW(len) _IOC(_IOC_READ, 'E', 0x1b, len) argument
[all …]
/development/ndk/platforms/android-L/include/linux/netfilter/
Dnfnetlink_compat.h39 #define NFA_ALIGN(len) (((len) + NFA_ALIGNTO - 1) & ~(NFA_ALIGNTO - 1)) argument
40 #define NFA_OK(nfa,len) ((len) > 0 && (nfa)->nfa_len >= sizeof(struct nfattr) && (nfa)->nfa_len <… argument
42 #define NFA_LENGTH(len) (NFA_ALIGN(sizeof(struct nfattr)) + (len)) argument
44 #define NFA_SPACE(len) NFA_ALIGN(NFA_LENGTH(len)) argument
49 …b, start) ({ (start)->nfa_len = skb_tail_pointer(skb) - (unsigned char *)(start); (skb)->len; })
/development/ndk/platforms/android-3/include/linux/netfilter/
Dnfnetlink.h52 #define NFA_ALIGN(len) (((len) + NFA_ALIGNTO - 1) & ~(NFA_ALIGNTO - 1)) argument
53 #define NFA_OK(nfa,len) ((len) > 0 && (nfa)->nfa_len >= sizeof(struct nfattr) && (nfa)->nfa_len <… argument
55 #define NFA_LENGTH(len) (NFA_ALIGN(sizeof(struct nfattr)) + (len)) argument
56 #define NFA_SPACE(len) NFA_ALIGN(NFA_LENGTH(len)) argument
60 …_END(skb, start) ({ (start)->nfa_len = ((skb)->tail - (unsigned char *) (start)); (skb)->len; })
/development/ndk/platforms/android-3/include/linux/mtd/
Dmtd.h38 u_int32_t len; member
64 size_t len; member
100 int (*point) (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char **mtdbuf);
102 void (*unpoint) (struct mtd_info *mtd, u_char * addr, loff_t from, size_t len);
104 int (*read) (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf);
105 int (*write) (struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf);
112 int (*get_fact_prot_info) (struct mtd_info *mtd, struct otp_info *buf, size_t len);
113 …int (*read_fact_prot_reg) (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *…
114 int (*get_user_prot_info) (struct mtd_info *mtd, struct otp_info *buf, size_t len);
115 …int (*read_user_prot_reg) (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *…
[all …]
Dmap.h97 #define map_copy_from(map, to, from, len) inline_map_copy_from(map, to, from, len) argument
99 #define map_copy_to(map, to, from, len) inline_map_copy_to(map, to, from, len) argument
/development/ndk/platforms/android-9/arch-x86/include/asm/
Dcacheflush.h35 #define flush_icache_user_range(vma,pg,adr,len) do { } while (0) argument
39 #define copy_to_user_page(vma, page, vaddr, dst, src, len) memcpy(dst, src, len) argument
40 #define copy_from_user_page(vma, page, vaddr, dst, src, len) memcpy(dst, src, len) argument
/development/ndk/platforms/android-L/include/sys/
Dsocket.h111 #define CMSG_ALIGN(len) ( ((len)+sizeof(long)-1) & ~(sizeof(long)-1) ) argument
113 #define CMSG_SPACE(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + CMSG_ALIGN(len)) argument
114 #define CMSG_LEN(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + (len)) argument
301 ssize_t recvfrom(int fd, void* buf, size_t len, int flags, const struct sockaddr* src_addr, socklen… in recvfrom() argument
306 return __recvfrom_real(fd, buf, len, flags, src_addr, addr_len); in recvfrom()
309 if (__builtin_constant_p(len) && (len <= bos)) { in recvfrom()
310 return __recvfrom_real(fd, buf, len, flags, src_addr, addr_len); in recvfrom()
313 if (__builtin_constant_p(len) && (len > bos)) { in recvfrom()
318 return __recvfrom_chk(fd, buf, len, bos, flags, src_addr, addr_len); in recvfrom()
322 ssize_t recv(int socket, void* buf, size_t len, int flags) { in recv() argument
[all …]
/development/tools/line_endings/
Dline_endings.c47 int len; in main() local
58 len = lseek(fd, 0, SEEK_END); in main()
61 if (len > 0) { in main()
66 while (len > 0) { in main()
73 ssize_t amt2 = len < BUFSIZE ? len : BUFSIZE; in main()
88 len -= amt2; in main()
/development/ndk/platforms/android-3/include/linux/sunrpc/
Dgss_asn1.h34 #define g_OID_equal(o1,o2) (((o1)->len == (o2)->len) && (memcmp((o1)->data,(o2)->data,(int) (o1…
/development/ndk/platforms/android-3/include/netinet/
Dip6.h281 #define IP6_EXTHDR_GET(val, typ, m, off, len) \ argument
285 if ((m)->m_len >= (off) + (len)) \
288 _t = m_pulldown((m), (off), (len), &_tmp); \
290 if (_t->m_len < _tmp + (len)) \
300 #define IP6_EXTHDR_GET0(val, typ, m, off, len) \ argument
303 if ((off) == 0 && (m)->m_len >= len) \
306 _t = m_pulldown((m), (off), (len), NULL); \
308 if (_t->m_len < (len)) \
/development/ndk/platforms/android-L/include/netinet/
Dip6.h281 #define IP6_EXTHDR_GET(val, typ, m, off, len) \ argument
285 if ((m)->m_len >= (off) + (len)) \
288 _t = m_pulldown((m), (off), (len), &_tmp); \
290 if (_t->m_len < _tmp + (len)) \
300 #define IP6_EXTHDR_GET0(val, typ, m, off, len) \ argument
303 if ((off) == 0 && (m)->m_len >= len) \
306 _t = m_pulldown((m), (off), (len), NULL); \
308 if (_t->m_len < (len)) \
/development/ndk/platforms/android-3/arch-arm/include/asm/
Dcacheflush.h77 …_page(vma, page, vaddr, dst, src, len) do { memcpy(dst, src, len); flush_ptrace_access(vma, … argument
79 #define copy_from_user_page(vma, page, vaddr, dst, src, len) do { memcpy(dst, src, len); } wh… argument
89 #define flush_icache_user_range(vma,page,addr,len) flush_dcache_page(page) argument
/development/ndk/platforms/android-3/include/linux/nfsd/
Dxdr.h31 int len; member
45 int len; member
53 int len; member
105 int len; member
/development/ndk/platforms/android-3/include/linux/lockd/
Dxdr.h30 int len; member
40 unsigned int len; member
64 int len; member
/development/samples/browseable/CardEmulation/src/com.example.android.cardemulation/
DCardService.java141 int len = s.length(); in HexStringToByteArray() local
142 if (len % 2 == 1) { in HexStringToByteArray()
145 byte[] data = new byte[len / 2]; // Allocate 1 byte per 2 hex characters in HexStringToByteArray()
146 for (int i = 0; i < len; i += 2) { in HexStringToByteArray()

123456