Home
last modified time | relevance | path

Searched refs:ucs (Results 1 – 8 of 8) sorted by relevance

/Linux-v5.4/drivers/staging/isdn/gigaset/
Dbas-gigaset.c322 static inline int update_basstate(struct bas_cardstate *ucs, in update_basstate() argument
328 spin_lock_irqsave(&ucs->lock, flags); in update_basstate()
329 state = ucs->basstate; in update_basstate()
330 ucs->basstate = (state & ~clear) | set; in update_basstate()
331 spin_unlock_irqrestore(&ucs->lock, flags); in update_basstate()
373 static void check_pending(struct bas_cardstate *ucs) in check_pending() argument
377 spin_lock_irqsave(&ucs->lock, flags); in check_pending()
378 switch (ucs->pending) { in check_pending()
382 if (ucs->basstate & BS_ATOPEN) in check_pending()
383 ucs->pending = 0; in check_pending()
[all …]
Dusb-gigaset.c429 struct usb_cardstate *ucs = cs->hw.usb; in send_cb() local
455 count = min(cb->len, ucs->bulk_out_size); in send_cb()
458 usb_fill_bulk_urb(ucs->bulk_out_urb, ucs->udev, in send_cb()
459 usb_sndbulkpipe(ucs->udev, in send_cb()
460 ucs->bulk_out_epnum), in send_cb()
466 ucs->busy = 1; in send_cb()
470 usb_submit_urb(ucs->bulk_out_urb, GFP_ATOMIC) : in send_cb()
475 ucs->busy = 0; in send_cb()
572 struct usb_cardstate *ucs; in gigaset_initcshw() local
574 cs->hw.usb = ucs = in gigaset_initcshw()
[all …]
/Linux-v5.4/include/linux/
Dconsolemap.h22 extern int conv_uni_to_pc(struct vc_data *conp, long ucs);
29 #define conv_uni_to_pc(conp, ucs) ((int) (ucs > 0xff ? -1: ucs)) argument
/Linux-v5.4/fs/ntfs/
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()
282 kmem_cache_free(ntfs_name_cache, ucs); in ntfs_nlstoucs()
/Linux-v5.4/fs/cifs/
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()
/Linux-v5.4/drivers/tty/vt/
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 >> 6) & 0x1f]) && in conv_uni_to_pc()
837 (h = p2[ucs & 0x3f]) < MAX_GLYPH) in conv_uni_to_pc()
Dvt.c2514 uint32_t ucs = *(uint32_t *)key; in ucs_cmp() local
2517 if (ucs > e.last) in ucs_cmp()
2519 else if (ucs < e.first) in ucs_cmp()
2524 static int is_double_width(uint32_t ucs) in is_double_width() argument
2532 if (ucs < double_width[0].first || in is_double_width()
2533 ucs > double_width[ARRAY_SIZE(double_width) - 1].last) in is_double_width()
2536 return bsearch(&ucs, double_width, ARRAY_SIZE(double_width), in is_double_width()
/Linux-v5.4/drivers/s390/crypto/
Dpkey_api.c772 struct pkey_clr2seck __user *ucs = (void __user *) arg; in pkey_unlocked_ioctl() local
775 if (copy_from_user(&kcs, ucs, sizeof(kcs))) in pkey_unlocked_ioctl()
782 if (copy_to_user(ucs, &kcs, sizeof(kcs))) in pkey_unlocked_ioctl()
949 struct pkey_clr2seck2 __user *ucs = (void __user *) arg; in pkey_unlocked_ioctl() local
955 if (copy_from_user(&kcs, ucs, sizeof(kcs))) in pkey_unlocked_ioctl()
985 if (copy_to_user(ucs, &kcs, sizeof(kcs))) in pkey_unlocked_ioctl()