Lines Matching refs:FORM
749 …ret = ptp_unpack_DPV (params, data, &offset, dpdlen, &dpd->FORM.Range.MinimumValue, dpd->DataType); in ptp_unpack_DPD()
751 …ret = ptp_unpack_DPV (params, data, &offset, dpdlen, &dpd->FORM.Range.MaximumValue, dpd->DataType); in ptp_unpack_DPD()
753 ret = ptp_unpack_DPV (params, data, &offset, dpdlen, &dpd->FORM.Range.StepSize, dpd->DataType); in ptp_unpack_DPD()
758 #define N dpd->FORM.Enum.NumberOfValues in ptp_unpack_DPD()
761 dpd->FORM.Enum.SupportedValue = malloc(N*sizeof(dpd->FORM.Enum.SupportedValue[0])); in ptp_unpack_DPD()
762 if (!dpd->FORM.Enum.SupportedValue) in ptp_unpack_DPD()
765 memset (dpd->FORM.Enum.SupportedValue,0 , N*sizeof(dpd->FORM.Enum.SupportedValue[0])); in ptp_unpack_DPD()
767 …ret = ptp_unpack_DPV (params, data, &offset, dpdlen, &dpd->FORM.Enum.SupportedValue[i], dpd->DataT… in ptp_unpack_DPD()
777 dpd->FORM.Enum.NumberOfValues = i; in ptp_unpack_DPD()
818 …ret = ptp_unpack_DPV (params, data, &offset, opdlen, &opd->FORM.Range.MinimumValue, opd->DataType); in ptp_unpack_OPD()
820 …ret = ptp_unpack_DPV (params, data, &offset, opdlen, &opd->FORM.Range.MaximumValue, opd->DataType); in ptp_unpack_OPD()
822 ret = ptp_unpack_DPV (params, data, &offset, opdlen, &opd->FORM.Range.StepSize, opd->DataType); in ptp_unpack_OPD()
827 #define N opd->FORM.Enum.NumberOfValues in ptp_unpack_OPD()
830 opd->FORM.Enum.SupportedValue = malloc(N*sizeof(opd->FORM.Enum.SupportedValue[0])); in ptp_unpack_OPD()
831 if (!opd->FORM.Enum.SupportedValue) in ptp_unpack_OPD()
834 memset (opd->FORM.Enum.SupportedValue,0 , N*sizeof(opd->FORM.Enum.SupportedValue[0])); in ptp_unpack_OPD()
836 …ret = ptp_unpack_DPV (params, data, &offset, opdlen, &opd->FORM.Enum.SupportedValue[i], opd->DataT… in ptp_unpack_OPD()
846 opd->FORM.Enum.NumberOfValues = i; in ptp_unpack_OPD()
1353 dpd->FORM.Enum.NumberOfValues = propxcnt; in ptp_unpack_CANON_changes()
1354 dpd->FORM.Enum.SupportedValue = malloc (sizeof (PTPPropertyValue)*propxcnt); in ptp_unpack_CANON_changes()
1363 dpd->FORM.Enum.SupportedValue[j].u16 = in ptp_unpack_CANON_changes()
1365 …ptp_debug (params, "event %d: suppval[%d] of %x is 0x%x.", i, j, proptype, dpd->FORM.Enum.Supporte… in ptp_unpack_CANON_changes()
1373 dpd->FORM.Enum.SupportedValue[j].TYPE = CONV(data); \ in ptp_unpack_CANON_changes()