• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/cifs/

Lines Matching refs:to

18  *   along with this program;  if not, write to the Free Software
31 * @ucs - pointer to input string
36 * be after being converted to the given charset, not including any null
61 * cifs_mapchar - convert a little-endian char to proper char in codepage
64 * @cp - codepage to which character should be converted
65 * @mapchar - should character be mapped according to mapchars mount option?
68 * responsibility of the caller to ensure that the target buffer is large
69 * enough to hold the result of the conversion (at least NLS_MAX_CHARSET_SIZE).
81 * BB: Cannot handle remapping UNI_SLASH until all the calls to
122 * cifs_from_ucs2 - convert utf16le string to local charset
123 * @to - destination buffer
127 * @codepage - codepage to which characters should be converted
128 * @mapchar - should characters be remapped according to the mapchars option?
130 * Convert a little-endian ucs2le string (as sent by the server) to a string
131 * in the provided codepage. The tolen and fromlen parameters are to ensure
139 * instead of straight UCS-2. The linux nls routines however aren't able to
144 cifs_from_ucs2(char *to, const __le16 *from, int tolen, int fromlen,
154 * because the chars can be of varying widths, we need to take care
155 * not to overflow the destination buffer when we get close to the
156 * end of it. Until we get to this offset, we don't need to check
163 * check to see if converting this character might make the
172 /* put converted char into 'to' buffer */
173 charlen = cifs_mapchar(&to[outlen], from[i], codepage, mapchar);
179 to[outlen++] = 0;
187 * FUNCTION: Convert character string to unicode string
191 cifs_strtoUCS(__le16 *to, const char *from, int len,
196 wchar_t *wchar_to = (wchar_t *)to; /* needed to quiet sparse */
206 to[i] = cpu_to_le16(0x003f);
209 to[i] = cpu_to_le16(wchar_to[i]);
213 to[i] = 0;
218 * cifs_strndup_from_ucs - copy a string from wire format to the local codepage
224 * Take a string given by the server, convert it to the local codepage and
225 * put it in a new buffer. Returns a pointer to the new string or NULL on