Searched refs:ucs2str (Results 1 – 1 of 1) sorted by relevance
163 uint16_t ucs2str[PTP_MAXSTRLEN+1]; in ptp_pack_string() local164 char *ucs2strp = (char *) ucs2str; in ptp_pack_string()168 memset(ucs2strp, 0, sizeof(ucs2str)); /* XXX: necessary? */ in ptp_pack_string()178 ucs2str[0] = 0x0000U; in ptp_pack_string()184 ucs2str[i] = string[i]; in ptp_pack_string()186 ucs2str[convlen] = 0; in ptp_pack_string()193 packedlen = ucs2strlen(ucs2str); in ptp_pack_string()201 memcpy(&data[offset+1], &ucs2str[0], packedlen * sizeof(ucs2str[0])); in ptp_pack_string()