Searched refs:ucs2str (Results 1 – 1 of 1) sorted by relevance
196 uint16_t ucs2str[PTP_MAXSTRLEN+1]; in ptp_pack_string() local197 char *ucs2strp = (char *) ucs2str; in ptp_pack_string()201 memset(ucs2strp, 0, sizeof(ucs2str)); /* XXX: necessary? */ in ptp_pack_string()211 ucs2str[0] = 0x0000U; in ptp_pack_string()218 ucs2str[i] = string[i]; in ptp_pack_string()220 ucs2str[convlen] = 0; in ptp_pack_string()226 packedlen = ucs2strlen(ucs2str); in ptp_pack_string()234 memcpy(&data[offset+1], &ucs2str[0], packedlen * sizeof(ucs2str[0])); in ptp_pack_string()