Lines Matching refs:inp
911 cdf_property_info_t *inp; in cdf_grow_info() local
919 inp = CAST(cdf_property_info_t *, in cdf_grow_info()
920 CDF_REALLOC(*info, newcount * sizeof(*inp))); in cdf_grow_info()
921 if (inp == NULL) in cdf_grow_info()
924 *info = inp; in cdf_grow_info()
926 return inp; in cdf_grow_info()
935 cdf_copy_info(cdf_property_info_t *inp, const void *p, const void *e, in cdf_copy_info() argument
938 if (inp->pi_type & CDF_VECTOR) in cdf_copy_info()
944 (void)memcpy(&inp->pi_val, p, len); in cdf_copy_info()
948 inp->pi_u16 = CDF_TOLE2(inp->pi_u16); in cdf_copy_info()
951 inp->pi_u32 = CDF_TOLE4(inp->pi_u32); in cdf_copy_info()
954 inp->pi_u64 = CDF_TOLE8(inp->pi_u64); in cdf_copy_info()
970 cdf_property_info_t *inp; in cdf_read_property_info() local
994 inp = cdf_grow_info(info, maxcount, sh.sh_properties); in cdf_read_property_info()
995 if (inp == NULL) in cdf_read_property_info()
997 inp += *count; in cdf_read_property_info()
1007 inp[i].pi_id = CDF_GETUINT32(p, i << 1); in cdf_read_property_info()
1013 inp[i].pi_type = CDF_GETUINT32(q, 0); in cdf_read_property_info()
1015 i, inp[i].pi_id, inp[i].pi_type, q - p, offs)); in cdf_read_property_info()
1016 if (inp[i].pi_type & CDF_VECTOR) { in cdf_read_property_info()
1033 if (inp[i].pi_type & (CDF_ARRAY|CDF_BYREF|CDF_RESERVED)) in cdf_read_property_info()
1035 switch (inp[i].pi_type & CDF_TYPEMASK) { in cdf_read_property_info()
1040 if (!cdf_copy_info(&inp[i], &q[o4], e, sizeof(int16_t))) in cdf_read_property_info()
1047 if (!cdf_copy_info(&inp[i], &q[o4], e, sizeof(int32_t))) in cdf_read_property_info()
1054 if (!cdf_copy_info(&inp[i], &q[o4], e, sizeof(int64_t))) in cdf_read_property_info()
1060 size_t nelem = inp - *info; in cdf_read_property_info()
1061 inp = cdf_grow_info(info, maxcount, nelements); in cdf_read_property_info()
1062 if (inp == NULL) in cdf_read_property_info()
1064 inp += nelem; in cdf_read_property_info()
1079 inp[i].pi_str.s_len = l; in cdf_read_property_info()
1080 inp[i].pi_str.s_buf = CAST(const char *, in cdf_read_property_info()
1087 left, (int)l, inp[i].pi_str.s_buf)); in cdf_read_property_info()
1098 if (inp[i].pi_type & CDF_VECTOR) in cdf_read_property_info()
1103 memset(&inp[i].pi_val, 0, sizeof(inp[i].pi_val)); in cdf_read_property_info()
1105 inp[i].pi_type)); in cdf_read_property_info()