Home
last modified time | relevance | path

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

12345678910>>...24

/include/uapi/linux/
Dhidraw.h37 #define HIDIOCGRAWNAME(len) _IOC(_IOC_READ, 'H', 0x04, len) argument
38 #define HIDIOCGRAWPHYS(len) _IOC(_IOC_READ, 'H', 0x05, len) argument
40 #define HIDIOCSFEATURE(len) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x06, len) argument
41 #define HIDIOCGFEATURE(len) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x07, len) argument
42 #define HIDIOCGRAWUNIQ(len) _IOC(_IOC_READ, 'H', 0x08, len) argument
44 #define HIDIOCSINPUT(len) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x09, len) argument
45 #define HIDIOCGINPUT(len) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x0A, len) argument
47 #define HIDIOCSOUTPUT(len) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x0B, len) argument
48 #define HIDIOCGOUTPUT(len) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x0C, len) argument
Dinput.h120 __u8 len; member
142 #define EVIOCGNAME(len) _IOC(_IOC_READ, 'E', 0x06, len) /* get device name */ argument
143 #define EVIOCGPHYS(len) _IOC(_IOC_READ, 'E', 0x07, len) /* get physical location */ argument
144 #define EVIOCGUNIQ(len) _IOC(_IOC_READ, 'E', 0x08, len) /* get unique identifier */ argument
145 #define EVIOCGPROP(len) _IOC(_IOC_READ, 'E', 0x09, len) /* get device properties */ argument
171 #define EVIOCGMTSLOTS(len) _IOC(_IOC_READ, 'E', 0x0a, len) argument
173 #define EVIOCGKEY(len) _IOC(_IOC_READ, 'E', 0x18, len) /* get global key state */ argument
174 #define EVIOCGLED(len) _IOC(_IOC_READ, 'E', 0x19, len) /* get all LEDs */ argument
175 #define EVIOCGSND(len) _IOC(_IOC_READ, 'E', 0x1a, len) /* get all sounds status */ argument
176 #define EVIOCGSW(len) _IOC(_IOC_READ, 'E', 0x1b, len) /* get all switch states */ argument
[all …]
Dnetlink.h99 #define NLMSG_ALIGN(len) ( ((len)+NLMSG_ALIGNTO-1) & ~(NLMSG_ALIGNTO-1) ) argument
101 #define NLMSG_LENGTH(len) ((len) + NLMSG_HDRLEN) argument
102 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len)) argument
104 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ argument
107 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \ argument
109 (nlh)->nlmsg_len <= (len))
110 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len))) argument
249 #define NLA_ALIGN(len) (((len) + NLA_ALIGNTO - 1) & ~(NLA_ALIGNTO - 1)) argument
/include/trace/events/
Dprintk.h11 TP_PROTO(const char *text, size_t len),
13 TP_ARGS(text, len),
16 __dynamic_array(char, msg, len + 1)
25 if ((len > 0) && (text[len-1] == '\n'))
26 len -= 1;
28 memcpy(__get_str(msg), text, len);
29 __get_str(msg)[len] = 0;
Di2c.h34 __field(__u16, len )
35 __dynamic_array(__u8, buf, msg->len) ),
41 __entry->len = msg->len;
42 memcpy(__get_dynamic_array(buf), msg->buf, msg->len);
49 __entry->len,
50 __entry->len, __get_dynamic_array(buf)
67 __field(__u16, len )
74 __entry->len = msg->len;
81 __entry->len
98 __field(__u16, len )
[all …]
Dspmi.h16 TP_PROTO(u8 opcode, u8 sid, u16 addr, u8 len, const u8 *buf),
17 TP_ARGS(opcode, sid, addr, len, buf),
23 __field ( u8, len )
24 __dynamic_array ( u8, buf, len )
31 __entry->len = len;
32 memcpy(__get_dynamic_array(buf), buf, len);
37 (int)__entry->addr, (int)__entry->len,
38 (int)__entry->len, __get_dynamic_array(buf))
86 TP_PROTO(u8 opcode, u8 sid, u16 addr, int ret, u8 len, const u8 *buf),
87 TP_ARGS(opcode, sid, addr, ret, len, buf),
[all …]
/include/linux/sunrpc/
Dxdr.h39 unsigned int len; member
70 len; /* Length of XDR encoded message */ member
74 xdr_buf_init(struct xdr_buf *buf, void *start, size_t len) in xdr_buf_init() argument
77 buf->head[0].iov_len = len; in xdr_buf_init()
82 buf->len = 0; in xdr_buf_init()
83 buf->buflen = len; in xdr_buf_init()
128 __be32 *xdr_encode_opaque_fixed(__be32 *p, const void *ptr, unsigned int len);
129 __be32 *xdr_encode_opaque(__be32 *p, const void *ptr, unsigned int len);
145 static inline __be32 *xdr_encode_array(__be32 *p, const void *s, unsigned int len) in xdr_encode_array() argument
147 return xdr_encode_opaque(p, s, len); in xdr_encode_array()
[all …]
/include/net/
Dudplite.h22 int len, int odd, struct sk_buff *skb) in udplite_getfrag() argument
25 return copy_from_iter_full(to, len, &msg->msg_iter) ? 0 : -EFAULT; in udplite_getfrag()
43 cscov = ntohs(uh->len); in udplite_checksum_init()
47 else if (cscov < 8 || cscov > skb->len) { in udplite_checksum_init()
52 cscov, skb->len); in udplite_checksum_init()
55 } else if (cscov < skb->len) { in udplite_checksum_init()
71 int len = skb->len - off; in udplite_csum() local
76 if (pcslen < len) { in udplite_csum()
78 len = pcslen; in udplite_csum()
79 udp_hdr(skb)->len = htons(pcslen); in udplite_csum()
[all …]
/include/linux/
Dsiphash.h30 u64 __siphash_aligned(const void *data, size_t len, const siphash_key_t *key);
31 u64 __siphash_unaligned(const void *data, size_t len, const siphash_key_t *key);
55 static inline u64 ___siphash_aligned(const __le64 *data, size_t len, in ___siphash_aligned() argument
58 if (__builtin_constant_p(len) && len == 4) in ___siphash_aligned()
60 if (__builtin_constant_p(len) && len == 8) in ___siphash_aligned()
62 if (__builtin_constant_p(len) && len == 16) in ___siphash_aligned()
65 if (__builtin_constant_p(len) && len == 24) in ___siphash_aligned()
68 if (__builtin_constant_p(len) && len == 32) in ___siphash_aligned()
72 return __siphash_aligned(data, len, key); in ___siphash_aligned()
81 static inline u64 siphash(const void *data, size_t len, in siphash() argument
[all …]
Dseq_buf.h22 size_t len; member
28 s->len = 0; in seq_buf_clear()
47 return s->len > s->size; in seq_buf_has_overflowed()
53 s->len = s->size + 1; in seq_buf_set_overflow()
65 return s->size - s->len; in seq_buf_buffer_left()
71 return min(s->len, s->size); in seq_buf_used()
94 s->buffer[s->len] = 0; in seq_buf_terminate()
109 WARN_ON(s->len > s->size + 1); in seq_buf_get_buf()
111 if (s->len < s->size) { in seq_buf_get_buf()
112 *bufp = s->buffer + s->len; in seq_buf_get_buf()
[all …]
Dip.h41 u32 len = ntohs(iph->tot_len); in iph_totlen() local
43 return (len || !skb_is_gso(skb) || !skb_is_gso_tcp(skb)) ? in iph_totlen()
44 len : skb->len - skb_network_offset(skb); in iph_totlen()
55 static inline void iph_set_totlen(struct iphdr *iph, unsigned int len) in iph_set_totlen() argument
57 iph->tot_len = len <= IP_MAX_MTU ? htons(len) : 0; in iph_set_totlen()
Dhighmem.h390 size_t len) in memcpy_page() argument
395 VM_BUG_ON(dst_off + len > PAGE_SIZE || src_off + len > PAGE_SIZE); in memcpy_page()
396 memcpy(dst + dst_off, src + src_off, len); in memcpy_page()
402 size_t len) in memset_page() argument
406 VM_BUG_ON(offset + len > PAGE_SIZE); in memset_page()
407 memset(addr + offset, val, len); in memset_page()
412 size_t offset, size_t len) in memcpy_from_page() argument
416 VM_BUG_ON(offset + len > PAGE_SIZE); in memcpy_from_page()
417 memcpy(to, from + offset, len); in memcpy_from_page()
422 const char *from, size_t len) in memcpy_to_page() argument
[all …]
/include/uapi/linux/netfilter/
Dnfnetlink_compat.h38 #define NFA_ALIGN(len) (((len) + NFA_ALIGNTO - 1) & ~(NFA_ALIGNTO - 1)) argument
39 #define NFA_OK(nfa,len) ((len) > 0 && (nfa)->nfa_len >= sizeof(struct nfattr) \ argument
40 && (nfa)->nfa_len <= (len))
43 #define NFA_LENGTH(len) (NFA_ALIGN(sizeof(struct nfattr)) + (len)) argument
44 #define NFA_SPACE(len) NFA_ALIGN(NFA_LENGTH(len)) argument
53 (skb)->len; })
/include/linux/ceph/
Dstring_table.h16 size_t len; member
22 size_t len);
39 const char* str, size_t len) in ceph_compare_string() argument
41 size_t cs_len = cs ? cs->len : 0; in ceph_compare_string()
42 if (cs_len != len) in ceph_compare_string()
43 return cs_len - len; in ceph_compare_string()
44 if (len == 0) in ceph_compare_string()
46 return strncmp(cs->str, str, len); in ceph_compare_string()
Ddecode.h110 u32 len; in ceph_extract_encoded_string() local
114 ceph_decode_32_safe(&sp, end, len, bad); in ceph_extract_encoded_string()
115 if (!ceph_has_room(&sp, end, len)) in ceph_extract_encoded_string()
118 buf = kmalloc(len + 1, gfp); in ceph_extract_encoded_string()
122 if (len) in ceph_extract_encoded_string()
123 memcpy(buf, sp, len); in ceph_extract_encoded_string()
124 buf[len] = '\0'; in ceph_extract_encoded_string()
126 *p = (char *) *p + sizeof (u32) + len; in ceph_extract_encoded_string()
128 *lenp = (size_t) len; in ceph_extract_encoded_string()
159 u32 len; \
[all …]
/include/trace/stages/
Dstage6_event_callback.h18 #define __array(type, item, len) argument
21 #define __dynamic_array(type, item, len) \ argument
28 #define __string_len(item, src, len) __dynamic_array(char, item, -1) argument
38 #define __assign_str_len(dst, src, len) \ argument
40 memcpy(__get_str(dst), (src), (len)); \
41 __get_str(dst)[len] = '\0'; \
74 #define __sockaddr(field, len) __dynamic_array(u8, field, len) argument
80 #define __assign_sockaddr(dest, src, len) \ argument
81 memcpy(__get_dynamic_array(dest), src, len)
84 #define __rel_dynamic_array(type, item, len) \ argument
[all …]
Dstage5_get_offsets.h38 #define __array(type, item, len) argument
41 #define __dynamic_array(type, item, len) \ argument
42 __item_length = (len) * sizeof(type); \
53 #define __string_len(item, src, len) __dynamic_array(char, item, (len) + 1) argument
60 #define __rel_dynamic_array(type, item, len) \ argument
61 __item_length = (len) * sizeof(type); \
74 #define __rel_string_len(item, src, len) __rel_dynamic_array(char, item, (len) + 1) argument
109 #define __sockaddr(field, len) __dynamic_array(u8, field, len) argument
112 #define __rel_sockaddr(field, len) __rel_dynamic_array(u8, field, len) argument
Dstage1_struct_define.h18 #define __array(type, item, len) type item[len]; argument
21 #define __dynamic_array(type, item, len) u32 __data_loc_##item; argument
27 #define __string_len(item, src, len) __dynamic_array(char, item, -1) argument
39 #define __sockaddr(field, len) __dynamic_array(u8, field, len) argument
42 #define __rel_dynamic_array(type, item, len) u32 __rel_loc_##item; argument
48 #define __rel_string_len(item, src, len) __rel_dynamic_array(char, item, -1) argument
57 #define __rel_sockaddr(field, len) __rel_dynamic_array(u8, field, len) argument
Dstage2_data_offsets.h24 #define __array(type, item, len) argument
27 #define __dynamic_array(type, item, len) u32 item; argument
33 #define __string_len(item, src, len) __dynamic_array(char, item, -1) argument
45 #define __sockaddr(field, len) __dynamic_array(u8, field, len) argument
48 #define __rel_dynamic_array(type, item, len) u32 item; argument
54 #define __rel_string_len(item, src, len) __rel_dynamic_array(char, item, -1) argument
63 #define __rel_sockaddr(field, len) __rel_dynamic_array(u8, field, len) argument
/include/asm-generic/
Dcacheflush.h83 unsigned long addr, int len) in flush_icache_user_page() argument
107 #define copy_to_user_page(vma, page, vaddr, dst, src, len) \ argument
109 instrument_copy_to_user((void __user *)dst, src, len); \
110 memcpy(dst, src, len); \
111 flush_icache_user_page(vma, page, vaddr, len); \
117 #define copy_from_user_page(vma, page, vaddr, dst, src, len) \ argument
120 len); \
121 memcpy(dst, src, len); \
122 instrument_copy_from_user_after(dst, (void __user *)src, len, \
/include/sound/
Dpcm_iec958.h7 int snd_pcm_create_iec958_consumer_default(u8 *cs, size_t len);
10 size_t len);
13 u8 *cs, size_t len);
16 size_t len);
19 u8 *cs, size_t len);
/include/linux/mtd/
Dspinand.h35 #define SPINAND_READID_OP(naddr, ndummy, buf, len) \ argument
39 SPI_MEM_OP_DATA_IN(len, buf, 1))
65 #define SPINAND_PAGE_READ_FROM_CACHE_OP(fast, addr, ndummy, buf, len) \ argument
69 SPI_MEM_OP_DATA_IN(len, buf, 1))
71 #define SPINAND_PAGE_READ_FROM_CACHE_OP_3A(fast, addr, ndummy, buf, len) \ argument
75 SPI_MEM_OP_DATA_IN(len, buf, 1))
77 #define SPINAND_PAGE_READ_FROM_CACHE_X2_OP(addr, ndummy, buf, len) \ argument
81 SPI_MEM_OP_DATA_IN(len, buf, 2))
83 #define SPINAND_PAGE_READ_FROM_CACHE_X2_OP_3A(addr, ndummy, buf, len) \ argument
87 SPI_MEM_OP_DATA_IN(len, buf, 2))
[all …]
/include/net/caif/
Dcfpkt.h17 struct cfpkt *cfpkt_create(u16 len);
33 int cfpkt_extr_head(struct cfpkt *pkt, void *data, u16 len);
71 int cfpkt_peek_head(struct cfpkt *pkt, void *data, u16 len);
81 int cfpkt_extr_trail(struct cfpkt *pkt, void *data, u16 len);
92 int cfpkt_add_head(struct cfpkt *pkt, const void *data, u16 len);
103 int cfpkt_add_trail(struct cfpkt *pkt, const void *data, u16 len);
113 int cfpkt_pad_trail(struct cfpkt *pkt, u16 len);
132 int cfpkt_add_body(struct cfpkt *pkt, const void *data, u16 len);
163 int cfpkt_setlen(struct cfpkt *pkt, u16 len);
202 u16 (*iter_func)(u16 chks, void *buf, u16 len),
/include/net/netfilter/
Dnf_tables_ipv4.h22 u32 len, thoff; in __nft_set_pktinfo_ipv4_validate() local
32 len = iph_totlen(pkt->skb, iph); in __nft_set_pktinfo_ipv4_validate()
34 if (pkt->skb->len < len) in __nft_set_pktinfo_ipv4_validate()
36 else if (len < thoff) in __nft_set_pktinfo_ipv4_validate()
58 u32 len, thoff; in nft_set_pktinfo_ipv4_ingress() local
67 len = iph_totlen(pkt->skb, iph); in nft_set_pktinfo_ipv4_ingress()
69 if (pkt->skb->len < len) { in nft_set_pktinfo_ipv4_ingress()
72 } else if (len < thoff) { in nft_set_pktinfo_ipv4_ingress()
/include/linux/can/
Dskb.h109 return (skb->len == CAN_MTU && cf->len <= CAN_MAX_DLEN); in can_is_can_skb()
117 return (skb->len == CANFD_MTU && cfd->len <= CANFD_MAX_DLEN); in can_is_canfd_skb()
124 if (skb->len < CANXL_HDR_SIZE + CANXL_MIN_DLEN || skb->len > CANXL_MTU) in can_is_canxl_skb()
128 if (skb->len != CANXL_HDR_SIZE + cxl->len) in can_is_canxl_skb()
141 return cxl->len; in can_skb_get_len_val()
143 return cfd->len; in can_skb_get_len_val()
149 unsigned int len = can_skb_get_len_val(skb); in can_skb_get_data_len() local
156 return len; in can_skb_get_data_len()

12345678910>>...24