Home
last modified time | relevance | path

Searched refs:ucs (Results 1 - 12 of 12) sorted by relevance

/kernel/linux/linux-5.10/include/linux/
H A Dconsolemap.h23 extern int conv_uni_to_pc(struct vc_data *conp, long ucs);
30 #define conv_uni_to_pc(conp, ucs) ((int) (ucs > 0xff ? -1: ucs))
/kernel/linux/linux-6.6/include/linux/
H A Dconsolemap.h27 int conv_uni_to_pc(struct vc_data *conp, long ucs);
44 static inline int conv_uni_to_pc(struct vc_data *conp, long ucs) in conv_uni_to_pc() argument
46 return ucs > 0xff ? -1 : ucs; in conv_uni_to_pc()
/kernel/linux/linux-6.6/fs/nls/
H A Dnls_ucs2_utils.h69 static inline wchar_t *UniStrchr(const wchar_t *ucs, wchar_t uc) in UniStrchr() argument
71 while ((*ucs != uc) && *ucs) in UniStrchr()
72 ucs++; in UniStrchr()
74 if (*ucs == uc) in UniStrchr()
75 return (wchar_t *)ucs; in UniStrchr()
/kernel/linux/linux-5.10/fs/cifs/
H A Dcifs_unicode.h136 UniStrchr(const wchar_t *ucs, wchar_t uc) in UniStrchr() argument
138 while ((*ucs != uc) && *ucs) in UniStrchr()
139 ucs++; in UniStrchr()
141 if (*ucs == uc) in UniStrchr()
142 return (wchar_t *) ucs; in UniStrchr()
/kernel/linux/linux-5.10/fs/ntfs/
H A Dunistr.c249 ntfschar *ucs; in ntfs_nlstoucs() local
255 ucs = kmem_cache_alloc(ntfs_name_cache, GFP_NOFS); in ntfs_nlstoucs()
256 if (likely(ucs)) { in ntfs_nlstoucs()
263 ucs[o++] = cpu_to_le16(wc); in ntfs_nlstoucs()
271 ucs[o] = 0; in ntfs_nlstoucs()
272 *outs = ucs; in ntfs_nlstoucs()
274 } /* else if (!ucs) */ in ntfs_nlstoucs()
282 kmem_cache_free(ntfs_name_cache, ucs); in ntfs_nlstoucs()
/kernel/linux/linux-6.6/fs/ntfs/
H A Dunistr.c249 ntfschar *ucs; in ntfs_nlstoucs() local
255 ucs = kmem_cache_alloc(ntfs_name_cache, GFP_NOFS); in ntfs_nlstoucs()
256 if (likely(ucs)) { in ntfs_nlstoucs()
263 ucs[o++] = cpu_to_le16(wc); in ntfs_nlstoucs()
271 ucs[o] = 0; in ntfs_nlstoucs()
272 *outs = ucs; in ntfs_nlstoucs()
274 } /* else if (!ucs) */ in ntfs_nlstoucs()
282 kmem_cache_free(ntfs_name_cache, ucs); in ntfs_nlstoucs()
/kernel/linux/linux-5.10/drivers/tty/vt/
H A Dconsolemap.c810 conv_uni_to_pc(struct vc_data *conp, long ucs) in conv_uni_to_pc() argument
817 if (ucs > 0xffff) in conv_uni_to_pc()
819 else if (ucs < 0x20) in conv_uni_to_pc()
821 else if (ucs == 0xfeff || (ucs >= 0x200b && ucs <= 0x200f)) in conv_uni_to_pc()
828 else if ((ucs & ~UNI_DIRECT_MASK) == UNI_DIRECT_BASE) in conv_uni_to_pc()
829 return ucs & UNI_DIRECT_MASK; in conv_uni_to_pc()
835 if ((p1 = p->uni_pgdir[ucs >> 11]) && in conv_uni_to_pc()
836 (p2 = p1[(ucs >> in conv_uni_to_pc()
[all...]
H A Dvt.c2573 * Latest version: https://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c
2582 uint32_t ucs = *(uint32_t *)key; in ucs_cmp() local
2585 if (ucs > e.last) in ucs_cmp()
2587 else if (ucs < e.first) in ucs_cmp()
2592 static int is_double_width(uint32_t ucs) in is_double_width() argument
2600 if (ucs < double_width[0].first || in is_double_width()
2601 ucs > double_width[ARRAY_SIZE(double_width) - 1].last) in is_double_width()
2604 return bsearch(&ucs, double_width, ARRAY_SIZE(double_width), in is_double_width()
/kernel/linux/linux-6.6/drivers/tty/vt/
H A Dconsolemap.c863 int conv_uni_to_pc(struct vc_data *conp, long ucs) in conv_uni_to_pc() argument
869 if (ucs > 0xffff) in conv_uni_to_pc()
871 else if (ucs < 0x20) in conv_uni_to_pc()
873 else if (ucs == 0xfeff || (ucs >= 0x200b && ucs <= 0x200f)) in conv_uni_to_pc()
880 else if ((ucs & ~UNI_DIRECT_MASK) == UNI_DIRECT_BASE) in conv_uni_to_pc()
881 return ucs & UNI_DIRECT_MASK; in conv_uni_to_pc()
887 dir = dict->uni_pgdir[UNI_DIR(ucs)]; in conv_uni_to_pc()
891 row = dir[UNI_ROW(ucs)]; in conv_uni_to_pc()
[all...]
H A Dvt.c2526 * Latest version: https://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c
2535 uint32_t ucs = *(uint32_t *)key; in ucs_cmp() local
2538 if (ucs > e.last) in ucs_cmp()
2540 else if (ucs < e.first) in ucs_cmp()
2545 static int is_double_width(uint32_t ucs) in is_double_width() argument
2553 if (ucs < double_width[0].first || in is_double_width()
2554 ucs > double_width[ARRAY_SIZE(double_width) - 1].last) in is_double_width()
2557 return bsearch(&ucs, double_width, ARRAY_SIZE(double_width), in is_double_width()
/kernel/linux/linux-5.10/drivers/s390/crypto/
H A Dpkey_api.c1147 struct pkey_clr2seck __user *ucs = (void __user *) arg; in pkey_unlocked_ioctl() local
1150 if (copy_from_user(&kcs, ucs, sizeof(kcs))) in pkey_unlocked_ioctl()
1157 if (copy_to_user(ucs, &kcs, sizeof(kcs))) in pkey_unlocked_ioctl()
1325 struct pkey_clr2seck2 __user *ucs = (void __user *) arg; in pkey_unlocked_ioctl() local
1331 if (copy_from_user(&kcs, ucs, sizeof(kcs))) in pkey_unlocked_ioctl()
1361 if (copy_to_user(ucs, &kcs, sizeof(kcs))) in pkey_unlocked_ioctl()
/kernel/linux/linux-6.6/drivers/s390/crypto/
H A Dpkey_api.c1361 struct pkey_clr2seck __user *ucs = (void __user *)arg; in pkey_unlocked_ioctl() local
1364 if (copy_from_user(&kcs, ucs, sizeof(kcs))) in pkey_unlocked_ioctl()
1371 if (copy_to_user(ucs, &kcs, sizeof(kcs))) in pkey_unlocked_ioctl()
1549 struct pkey_clr2seck2 __user *ucs = (void __user *)arg; in pkey_unlocked_ioctl() local
1555 if (copy_from_user(&kcs, ucs, sizeof(kcs))) in pkey_unlocked_ioctl()
1585 if (copy_to_user(ucs, &kcs, sizeof(kcs))) in pkey_unlocked_ioctl()

Completed in 21 milliseconds