Lines Matching refs:p
149 cdf_getuint32(const uint8_t *p, size_t offs) in cdf_getuint32() argument
152 (void)memcpy(&rv, p + offs * sizeof(uint32_t), sizeof(rv)); in cdf_getuint32()
281 const void *p, size_t tail, int line) in cdf_check_stream_offset() argument
284 const char *e = ((const char *)p) + tail; in cdf_check_stream_offset()
798 const uint8_t *p, *q, *e; in cdf_read_property_info() local
844 p = CAST(const uint8_t *, (const void *) in cdf_read_property_info()
854 if (cdf_check_stream_offset(sst, h, p, tail * sizeof(uint32_t), in cdf_read_property_info()
857 ofs = CDF_GETUINT32(p, tail); in cdf_read_property_info()
859 ((const char *)(const void *)p + ofs in cdf_read_property_info()
861 if (q < p) { in cdf_read_property_info()
862 DPRINTF(("Wrapped around %p < %p\n", q, p)); in cdf_read_property_info()
869 inp[i].pi_id = CDF_GETUINT32(p, i << 1); in cdf_read_property_info()
872 i, inp[i].pi_id, inp[i].pi_type, q - p, offs)); in cdf_read_property_info()
1129 cdf_print_property_name(char *buf, size_t bufsiz, uint32_t p) in cdf_print_property_name() argument
1134 if (vn[i].v == p) in cdf_print_property_name()
1136 return snprintf(buf, bufsiz, "0x%x", p); in cdf_print_property_name()
1175 cdf_u16tos8(char *buf, size_t len, const uint16_t *p) in cdf_u16tos8() argument
1178 for (i = 0; i < len && p[i]; i++) in cdf_u16tos8()
1179 buf[i] = (char)p[i]; in cdf_u16tos8()
1236 const unsigned char *p = v; in cdf_dump() local
1240 for (i = 0, j = 0; i < len; i++, p++) { in cdf_dump()
1241 (void)fprintf(stderr, "%.2x ", *p); in cdf_dump()
1242 abuf[j++] = isprint(*p) ? *p : '.'; in cdf_dump()