Lines Matching refs:inp
881 cdf_property_info_t *inp; in cdf_grow_info() local
889 inp = CAST(cdf_property_info_t *, in cdf_grow_info()
890 CDF_REALLOC(*info, newcount * sizeof(*inp))); in cdf_grow_info()
891 if (inp == NULL) in cdf_grow_info()
894 *info = inp; in cdf_grow_info()
896 return inp; in cdf_grow_info()
905 cdf_copy_info(cdf_property_info_t *inp, const void *p, const void *e, in cdf_copy_info() argument
908 if (inp->pi_type & CDF_VECTOR) in cdf_copy_info()
914 (void)memcpy(&inp->pi_val, p, len); in cdf_copy_info()
918 inp->pi_u16 = CDF_TOLE2(inp->pi_u16); in cdf_copy_info()
921 inp->pi_u32 = CDF_TOLE4(inp->pi_u32); in cdf_copy_info()
924 inp->pi_u64 = CDF_TOLE8(inp->pi_u64); in cdf_copy_info()
940 cdf_property_info_t *inp; in cdf_read_property_info() local
964 inp = cdf_grow_info(info, maxcount, sh.sh_properties); in cdf_read_property_info()
965 if (inp == NULL) in cdf_read_property_info()
967 inp += *count; in cdf_read_property_info()
977 inp[i].pi_id = CDF_GETUINT32(p, i << 1); in cdf_read_property_info()
983 inp[i].pi_type = CDF_GETUINT32(q, 0); in cdf_read_property_info()
985 i, inp[i].pi_id, inp[i].pi_type, q - p, offs)); in cdf_read_property_info()
986 if (inp[i].pi_type & CDF_VECTOR) { in cdf_read_property_info()
1003 if (inp[i].pi_type & (CDF_ARRAY|CDF_BYREF|CDF_RESERVED)) in cdf_read_property_info()
1005 switch (inp[i].pi_type & CDF_TYPEMASK) { in cdf_read_property_info()
1010 if (!cdf_copy_info(&inp[i], &q[o4], e, sizeof(int16_t))) in cdf_read_property_info()
1017 if (!cdf_copy_info(&inp[i], &q[o4], e, sizeof(int32_t))) in cdf_read_property_info()
1024 if (!cdf_copy_info(&inp[i], &q[o4], e, sizeof(int64_t))) in cdf_read_property_info()
1030 size_t nelem = inp - *info; in cdf_read_property_info()
1031 inp = cdf_grow_info(info, maxcount, nelements); in cdf_read_property_info()
1032 if (inp == NULL) in cdf_read_property_info()
1034 inp += nelem; in cdf_read_property_info()
1049 inp[i].pi_str.s_len = l; in cdf_read_property_info()
1050 inp[i].pi_str.s_buf = CAST(const char *, in cdf_read_property_info()
1056 inp[i].pi_str.s_buf)); in cdf_read_property_info()
1067 if (inp[i].pi_type & CDF_VECTOR) in cdf_read_property_info()
1072 memset(&inp[i].pi_val, 0, sizeof(inp[i].pi_val)); in cdf_read_property_info()
1074 inp[i].pi_type)); in cdf_read_property_info()