Lines Matching defs:endp
55 #define is_contained(var, endp) \
56 (sizeof(*var) <= (endp) - (void *)(var))
57 #define has_headroom(ptr, headroom, endp) \
58 ((headroom) <= (endp) - (void *)(ptr))
59 #define is_contained_with_headroom(var, headroom, endp) \
60 (sizeof(*var) + (headroom) <= (endp) - (void *)(var))
65 const void *endp)
69 if (!is_contained(__len, endp))
81 if (!is_contained(__len2, endp))
94 if (!is_contained(__len3, endp))
108 if (!has_headroom(__len, hlen + plen, endp))
134 const void *payload, const void *endp)
139 if (v + 1 != endp)
176 const void *endp, struct device *dev,
183 if (!is_contained(block, endp))
187 endp);
198 if (!has_headroom(&block->length, hlen + plen, endp))
216 const void *endp, struct device *dev)
228 while (payload < endp && num_regs < INT_MAX) {
233 if (!is_contained(r, endp))
242 if (!is_contained_with_headroom(r, len, endp))
250 if (!is_contained(r2, endp))
259 if (!is_contained_with_headroom(r2, len, endp))
268 if (!is_contained(r3, endp))
274 if (!is_contained_with_headroom(r3, len, endp))
326 const void *endp, struct device *dev)
331 return ccs_data_parse_regs(bin, NULL, NULL, payload, endp, dev);
333 rval = ccs_data_parse_regs(bin, NULL, __num_regs, payload, endp, dev);
337 return ccs_data_parse_regs(bin, __regs, __num_regs, payload, endp,
351 const void *endp, struct device *dev)
357 if (!is_contained(__ffd, endp))
363 sizeof(struct __ccs_data_block_ffd_entry) != endp)
400 if (__entry != endp)
409 const void *endp, struct device *dev)
413 if (!is_contained(__pdaf, endp))
428 __pdaf + 1, endp, dev);
434 const void *endp, struct device *dev)
448 while (__next_rule < endp) {
455 &rule_plen, endp);
462 if (!is_contained(__rule_type, endp))
590 const void *payload, const void *endp,
601 if (!is_contained(__pdaf, endp))
648 if (!is_contained(__bdesc_group, endp))
679 if (!is_contained(__bdesc, endp))
721 if (!is_contained(__num_pixel_descs, endp))
743 if (!is_contained(__pixel_desc, endp))
767 const void *payload, const void *endp)
769 size_t size = endp - payload;
789 static int ccs_data_parse_end(bool *end, const void *payload, const void *endp,
794 if (__end + 1 != endp) {
796 (unsigned int)(endp - payload));
811 const struct __ccs_data_block *endp = data + len;
828 while (block < endp) {
834 &payload, &next_block, endp,