Lines Matching full:packedlen
162 int packedlen;
190 * XXX: isn't packedlen just ( (uint16_t *)ucs2strp - ucs2str )?
193 packedlen = ucs2strlen(ucs2str);
194 if (packedlen > PTP_MAXSTRLEN-1) {
200 htod8a(&data[offset],packedlen+1);
201 memcpy(&data[offset+1], &ucs2str[0], packedlen * sizeof(ucs2str[0]));
202 htod16a(&data[offset+packedlen*2+1], 0x0000); /* terminate 0 */
205 *len = (uint8_t) packedlen+1;