ucs 774 drivers/s390/crypto/pkey_api.c struct pkey_clr2seck __user *ucs = (void __user *) arg; ucs 777 drivers/s390/crypto/pkey_api.c if (copy_from_user(&kcs, ucs, sizeof(kcs))) ucs 784 drivers/s390/crypto/pkey_api.c if (copy_to_user(ucs, &kcs, sizeof(kcs))) ucs 951 drivers/s390/crypto/pkey_api.c struct pkey_clr2seck2 __user *ucs = (void __user *) arg; ucs 957 drivers/s390/crypto/pkey_api.c if (copy_from_user(&kcs, ucs, sizeof(kcs))) ucs 987 drivers/s390/crypto/pkey_api.c if (copy_to_user(ucs, &kcs, sizeof(kcs))) ucs 322 drivers/staging/isdn/gigaset/bas-gigaset.c static inline int update_basstate(struct bas_cardstate *ucs, ucs 328 drivers/staging/isdn/gigaset/bas-gigaset.c spin_lock_irqsave(&ucs->lock, flags); ucs 329 drivers/staging/isdn/gigaset/bas-gigaset.c state = ucs->basstate; ucs 330 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->basstate = (state & ~clear) | set; ucs 331 drivers/staging/isdn/gigaset/bas-gigaset.c spin_unlock_irqrestore(&ucs->lock, flags); ucs 373 drivers/staging/isdn/gigaset/bas-gigaset.c static void check_pending(struct bas_cardstate *ucs) ucs 377 drivers/staging/isdn/gigaset/bas-gigaset.c spin_lock_irqsave(&ucs->lock, flags); ucs 378 drivers/staging/isdn/gigaset/bas-gigaset.c switch (ucs->pending) { ucs 382 drivers/staging/isdn/gigaset/bas-gigaset.c if (ucs->basstate & BS_ATOPEN) ucs 383 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->pending = 0; ucs 386 drivers/staging/isdn/gigaset/bas-gigaset.c if (ucs->basstate & BS_B1OPEN) ucs 387 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->pending = 0; ucs 390 drivers/staging/isdn/gigaset/bas-gigaset.c if (ucs->basstate & BS_B2OPEN) ucs 391 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->pending = 0; ucs 394 drivers/staging/isdn/gigaset/bas-gigaset.c if (!(ucs->basstate & BS_ATOPEN)) ucs 395 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->pending = 0; ucs 398 drivers/staging/isdn/gigaset/bas-gigaset.c if (!(ucs->basstate & BS_B1OPEN)) ucs 399 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->pending = 0; ucs 402 drivers/staging/isdn/gigaset/bas-gigaset.c if (!(ucs->basstate & BS_B2OPEN)) ucs 403 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->pending = 0; ucs 406 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->pending = 0; ucs 409 drivers/staging/isdn/gigaset/bas-gigaset.c if (!(ucs->basstate & BS_RESETTING)) ucs 410 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->pending = 0; ucs 417 drivers/staging/isdn/gigaset/bas-gigaset.c dev_warn(&ucs->interface->dev, ucs 419 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->pending); ucs 420 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->pending = 0; ucs 423 drivers/staging/isdn/gigaset/bas-gigaset.c if (!ucs->pending) ucs 424 drivers/staging/isdn/gigaset/bas-gigaset.c del_timer(&ucs->timer_ctrl); ucs 426 drivers/staging/isdn/gigaset/bas-gigaset.c spin_unlock_irqrestore(&ucs->lock, flags); ucs 436 drivers/staging/isdn/gigaset/bas-gigaset.c struct bas_cardstate *ucs = from_timer(ucs, t, timer_cmd_in); ucs 437 drivers/staging/isdn/gigaset/bas-gigaset.c struct cardstate *cs = ucs->cs; ucs 440 drivers/staging/isdn/gigaset/bas-gigaset.c if (!ucs->rcvbuf_size) { ucs 445 drivers/staging/isdn/gigaset/bas-gigaset.c if (ucs->retry_cmd_in++ >= BAS_RETRY) { ucs 448 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->retry_cmd_in); ucs 449 drivers/staging/isdn/gigaset/bas-gigaset.c kfree(ucs->rcvbuf); ucs 450 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->rcvbuf = NULL; ucs 451 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->rcvbuf_size = 0; ucs 457 drivers/staging/isdn/gigaset/bas-gigaset.c __func__, ucs->retry_cmd_in); ucs 460 drivers/staging/isdn/gigaset/bas-gigaset.c kfree(ucs->rcvbuf); ucs 461 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->rcvbuf = NULL; ucs 462 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->rcvbuf_size = 0; ucs 479 drivers/staging/isdn/gigaset/bas-gigaset.c struct bas_cardstate *ucs = cs->hw.bas; ucs 484 drivers/staging/isdn/gigaset/bas-gigaset.c update_basstate(ucs, 0, BS_ATRDPEND); ucs 485 drivers/staging/isdn/gigaset/bas-gigaset.c wake_up(&ucs->waitqueue); ucs 486 drivers/staging/isdn/gigaset/bas-gigaset.c del_timer(&ucs->timer_cmd_in); ucs 491 drivers/staging/isdn/gigaset/bas-gigaset.c if (unlikely(numbytes != ucs->rcvbuf_size)) { ucs 494 drivers/staging/isdn/gigaset/bas-gigaset.c numbytes, ucs->rcvbuf_size); ucs 495 drivers/staging/isdn/gigaset/bas-gigaset.c if (numbytes > ucs->rcvbuf_size) ucs 496 drivers/staging/isdn/gigaset/bas-gigaset.c numbytes = ucs->rcvbuf_size; ucs 500 drivers/staging/isdn/gigaset/bas-gigaset.c if (gigaset_fill_inbuf(inbuf, ucs->rcvbuf, numbytes)) { ucs 517 drivers/staging/isdn/gigaset/bas-gigaset.c if (ucs->retry_cmd_in++ < BAS_RETRY) { ucs 519 drivers/staging/isdn/gigaset/bas-gigaset.c get_usb_statmsg(status), ucs->retry_cmd_in); ucs 529 drivers/staging/isdn/gigaset/bas-gigaset.c get_usb_statmsg(status), ucs->retry_cmd_in); ucs 534 drivers/staging/isdn/gigaset/bas-gigaset.c kfree(ucs->rcvbuf); ucs 535 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->rcvbuf = NULL; ucs 536 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->rcvbuf_size = 0; ucs 551 drivers/staging/isdn/gigaset/bas-gigaset.c struct bas_cardstate *ucs = cs->hw.bas; ucs 556 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->rcvbuf_size); ucs 558 drivers/staging/isdn/gigaset/bas-gigaset.c basstate = update_basstate(ucs, BS_ATRDPEND, 0); ucs 569 drivers/staging/isdn/gigaset/bas-gigaset.c update_basstate(ucs, 0, BS_ATRDPEND); ucs 574 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->dr_cmd_in.bRequestType = IN_VENDOR_REQ; ucs 575 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->dr_cmd_in.bRequest = HD_READ_ATMESSAGE; ucs 576 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->dr_cmd_in.wValue = 0; ucs 577 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->dr_cmd_in.wIndex = 0; ucs 578 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->dr_cmd_in.wLength = cpu_to_le16(ucs->rcvbuf_size); ucs 579 drivers/staging/isdn/gigaset/bas-gigaset.c usb_fill_control_urb(ucs->urb_cmd_in, ucs->udev, ucs 580 drivers/staging/isdn/gigaset/bas-gigaset.c usb_rcvctrlpipe(ucs->udev, 0), ucs 581 drivers/staging/isdn/gigaset/bas-gigaset.c (unsigned char *) &ucs->dr_cmd_in, ucs 582 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->rcvbuf, ucs->rcvbuf_size, ucs 585 drivers/staging/isdn/gigaset/bas-gigaset.c ret = usb_submit_urb(ucs->urb_cmd_in, GFP_ATOMIC); ucs 587 drivers/staging/isdn/gigaset/bas-gigaset.c update_basstate(ucs, 0, BS_ATRDPEND); ucs 595 drivers/staging/isdn/gigaset/bas-gigaset.c mod_timer(&ucs->timer_cmd_in, jiffies + timeout * HZ / 10); ucs 606 drivers/staging/isdn/gigaset/bas-gigaset.c struct bas_cardstate *ucs = ucs 608 drivers/staging/isdn/gigaset/bas-gigaset.c struct urb *urb = ucs->urb_int_in; ucs 613 drivers/staging/isdn/gigaset/bas-gigaset.c rc = usb_clear_halt(ucs->udev, urb->pipe); ucs 626 drivers/staging/isdn/gigaset/bas-gigaset.c rc = usb_lock_device_for_reset(ucs->udev, ucs->interface); ucs 628 drivers/staging/isdn/gigaset/bas-gigaset.c rc = usb_reset_device(ucs->udev); ucs 629 drivers/staging/isdn/gigaset/bas-gigaset.c usb_unlock_device(ucs->udev); ucs 632 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->retry_int_in = 0; ucs 642 drivers/staging/isdn/gigaset/bas-gigaset.c struct bas_cardstate *ucs = from_timer(ucs, t, timer_int_in); ucs 643 drivers/staging/isdn/gigaset/bas-gigaset.c struct cardstate *cs = ucs->cs; ucs 646 drivers/staging/isdn/gigaset/bas-gigaset.c if (ucs->retry_int_in++ >= BAS_RETRY) { ucs 648 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->retry_int_in); ucs 649 drivers/staging/isdn/gigaset/bas-gigaset.c usb_queue_reset_device(ucs->interface); ucs 653 drivers/staging/isdn/gigaset/bas-gigaset.c gig_dbg(DEBUG_USBREQ, "%s: retry %d", __func__, ucs->retry_int_in); ucs 654 drivers/staging/isdn/gigaset/bas-gigaset.c rc = usb_submit_urb(ucs->urb_int_in, GFP_ATOMIC); ucs 658 drivers/staging/isdn/gigaset/bas-gigaset.c usb_queue_reset_device(ucs->interface); ucs 672 drivers/staging/isdn/gigaset/bas-gigaset.c struct bas_cardstate *ucs = cs->hw.bas; ucs 682 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->retry_int_in = 0; ucs 685 drivers/staging/isdn/gigaset/bas-gigaset.c schedule_work(&ucs->int_in_wq); ucs 702 drivers/staging/isdn/gigaset/bas-gigaset.c mod_timer(&ucs->timer_int_in, jiffies + HZ / 10); ucs 717 drivers/staging/isdn/gigaset/bas-gigaset.c l = (unsigned) ucs->int_in_buf[1] + ucs 718 drivers/staging/isdn/gigaset/bas-gigaset.c (((unsigned) ucs->int_in_buf[2]) << 8); ucs 721 drivers/staging/isdn/gigaset/bas-gigaset.c urb->actual_length, (int)ucs->int_in_buf[0], l, ucs 722 drivers/staging/isdn/gigaset/bas-gigaset.c (int)ucs->int_in_buf[1], (int)ucs->int_in_buf[2]); ucs 726 drivers/staging/isdn/gigaset/bas-gigaset.c switch (ucs->int_in_buf[0]) { ucs 728 drivers/staging/isdn/gigaset/bas-gigaset.c update_basstate(ucs, BS_INIT, 0); ucs 732 drivers/staging/isdn/gigaset/bas-gigaset.c del_timer(&ucs->timer_atrdy); ucs 733 drivers/staging/isdn/gigaset/bas-gigaset.c update_basstate(ucs, BS_ATREADY, BS_ATTIMER); ucs 742 drivers/staging/isdn/gigaset/bas-gigaset.c update_basstate(ucs, BS_B1OPEN << channel, 0); ucs 747 drivers/staging/isdn/gigaset/bas-gigaset.c update_basstate(ucs, BS_ATOPEN, 0); ucs 756 drivers/staging/isdn/gigaset/bas-gigaset.c update_basstate(ucs, 0, BS_B1OPEN << channel); ucs 762 drivers/staging/isdn/gigaset/bas-gigaset.c update_basstate(ucs, 0, BS_ATOPEN); ucs 785 drivers/staging/isdn/gigaset/bas-gigaset.c if (ucs->basstate & BS_ATRDPEND) { ucs 789 drivers/staging/isdn/gigaset/bas-gigaset.c l, ucs->rcvbuf_size); ucs 792 drivers/staging/isdn/gigaset/bas-gigaset.c if (ucs->rcvbuf_size) { ucs 796 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->rcvbuf_size); ucs 797 drivers/staging/isdn/gigaset/bas-gigaset.c kfree(ucs->rcvbuf); ucs 798 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->rcvbuf_size = 0; ucs 800 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->rcvbuf = kmalloc(l, GFP_ATOMIC); ucs 801 drivers/staging/isdn/gigaset/bas-gigaset.c if (ucs->rcvbuf == NULL) { ucs 806 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->rcvbuf_size = l; ucs 807 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->retry_cmd_in = 0; ucs 810 drivers/staging/isdn/gigaset/bas-gigaset.c kfree(ucs->rcvbuf); ucs 811 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->rcvbuf = NULL; ucs 812 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->rcvbuf_size = 0; ucs 820 drivers/staging/isdn/gigaset/bas-gigaset.c update_basstate(ucs, 0, BS_RESETTING); ucs 831 drivers/staging/isdn/gigaset/bas-gigaset.c (int) ucs->int_in_buf[0], l); ucs 834 drivers/staging/isdn/gigaset/bas-gigaset.c check_pending(ucs); ucs 835 drivers/staging/isdn/gigaset/bas-gigaset.c wake_up(&ucs->waitqueue); ucs 1446 drivers/staging/isdn/gigaset/bas-gigaset.c struct bas_cardstate *ucs = from_timer(ucs, t, timer_ctrl); ucs 1447 drivers/staging/isdn/gigaset/bas-gigaset.c struct cardstate *cs = ucs->cs; ucs 1451 drivers/staging/isdn/gigaset/bas-gigaset.c check_pending(ucs); ucs 1453 drivers/staging/isdn/gigaset/bas-gigaset.c spin_lock_irqsave(&ucs->lock, flags); ucs 1454 drivers/staging/isdn/gigaset/bas-gigaset.c pending = ucs->pending; ucs 1455 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->pending = 0; ucs 1456 drivers/staging/isdn/gigaset/bas-gigaset.c spin_unlock_irqrestore(&ucs->lock, flags); ucs 1497 drivers/staging/isdn/gigaset/bas-gigaset.c usb_queue_reset_device(ucs->interface); ucs 1505 drivers/staging/isdn/gigaset/bas-gigaset.c wake_up(&ucs->waitqueue); ucs 1517 drivers/staging/isdn/gigaset/bas-gigaset.c struct bas_cardstate *ucs = urb->context; ucs 1525 drivers/staging/isdn/gigaset/bas-gigaset.c spin_lock_irqsave(&ucs->lock, flags); ucs 1526 drivers/staging/isdn/gigaset/bas-gigaset.c switch (ucs->pending) { ucs 1528 drivers/staging/isdn/gigaset/bas-gigaset.c del_timer(&ucs->timer_ctrl); ucs 1529 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->pending = 0; ucs 1532 drivers/staging/isdn/gigaset/bas-gigaset.c spin_unlock_irqrestore(&ucs->lock, flags); ucs 1547 drivers/staging/isdn/gigaset/bas-gigaset.c if (++ucs->retry_ctrl > BAS_RETRY || ucs 1548 drivers/staging/isdn/gigaset/bas-gigaset.c (ucs->basstate & BS_SUSPEND)) { ucs 1549 drivers/staging/isdn/gigaset/bas-gigaset.c dev_err(&ucs->interface->dev, ucs 1551 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->dr_ctrl.bRequest, ucs 1555 drivers/staging/isdn/gigaset/bas-gigaset.c dev_notice(&ucs->interface->dev, ucs 1557 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->dr_ctrl.bRequest, get_usb_statmsg(status), ucs 1558 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->retry_ctrl); ucs 1560 drivers/staging/isdn/gigaset/bas-gigaset.c urb->dev = ucs->udev; ucs 1563 drivers/staging/isdn/gigaset/bas-gigaset.c dev_err(&ucs->interface->dev, ucs 1565 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->dr_ctrl.bRequest, get_usb_rcmsg(rc)); ucs 1573 drivers/staging/isdn/gigaset/bas-gigaset.c spin_lock_irqsave(&ucs->lock, flags); ucs 1574 drivers/staging/isdn/gigaset/bas-gigaset.c del_timer(&ucs->timer_ctrl); ucs 1575 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->pending = 0; ucs 1576 drivers/staging/isdn/gigaset/bas-gigaset.c spin_unlock_irqrestore(&ucs->lock, flags); ucs 1577 drivers/staging/isdn/gigaset/bas-gigaset.c wake_up(&ucs->waitqueue); ucs 1595 drivers/staging/isdn/gigaset/bas-gigaset.c struct bas_cardstate *ucs = bcs->cs->hw.bas; ucs 1601 drivers/staging/isdn/gigaset/bas-gigaset.c spin_lock_irqsave(&ucs->lock, flags); ucs 1602 drivers/staging/isdn/gigaset/bas-gigaset.c if (ucs->pending) { ucs 1603 drivers/staging/isdn/gigaset/bas-gigaset.c spin_unlock_irqrestore(&ucs->lock, flags); ucs 1607 drivers/staging/isdn/gigaset/bas-gigaset.c req, ucs->pending); ucs 1611 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->dr_ctrl.bRequestType = OUT_VENDOR_REQ; ucs 1612 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->dr_ctrl.bRequest = req; ucs 1613 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->dr_ctrl.wValue = cpu_to_le16(val); ucs 1614 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->dr_ctrl.wIndex = 0; ucs 1615 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->dr_ctrl.wLength = 0; ucs 1616 drivers/staging/isdn/gigaset/bas-gigaset.c usb_fill_control_urb(ucs->urb_ctrl, ucs->udev, ucs 1617 drivers/staging/isdn/gigaset/bas-gigaset.c usb_sndctrlpipe(ucs->udev, 0), ucs 1618 drivers/staging/isdn/gigaset/bas-gigaset.c (unsigned char *) &ucs->dr_ctrl, NULL, 0, ucs 1619 drivers/staging/isdn/gigaset/bas-gigaset.c write_ctrl_callback, ucs); ucs 1620 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->retry_ctrl = 0; ucs 1621 drivers/staging/isdn/gigaset/bas-gigaset.c ret = usb_submit_urb(ucs->urb_ctrl, GFP_ATOMIC); ucs 1625 drivers/staging/isdn/gigaset/bas-gigaset.c spin_unlock_irqrestore(&ucs->lock, flags); ucs 1628 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->pending = req; ucs 1632 drivers/staging/isdn/gigaset/bas-gigaset.c mod_timer(&ucs->timer_ctrl, jiffies + timeout * HZ / 10); ucs 1635 drivers/staging/isdn/gigaset/bas-gigaset.c spin_unlock_irqrestore(&ucs->lock, flags); ucs 1777 drivers/staging/isdn/gigaset/bas-gigaset.c struct bas_cardstate *ucs = cs->hw.bas; ucs 1781 drivers/staging/isdn/gigaset/bas-gigaset.c update_basstate(ucs, 0, BS_ATWRPEND); ucs 1782 drivers/staging/isdn/gigaset/bas-gigaset.c wake_up(&ucs->waitqueue); ucs 1798 drivers/staging/isdn/gigaset/bas-gigaset.c if (++ucs->retry_cmd_out > BAS_RETRY) { ucs 1803 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->retry_cmd_out); ucs 1806 drivers/staging/isdn/gigaset/bas-gigaset.c if (ucs->basstate & BS_SUSPEND) { ucs 1821 drivers/staging/isdn/gigaset/bas-gigaset.c get_usb_statmsg(status), ucs->retry_cmd_out); ucs 1826 drivers/staging/isdn/gigaset/bas-gigaset.c update_basstate(ucs, BS_ATREADY, 0); ucs 1842 drivers/staging/isdn/gigaset/bas-gigaset.c struct bas_cardstate *ucs = from_timer(ucs, t, timer_atrdy); ucs 1843 drivers/staging/isdn/gigaset/bas-gigaset.c struct cardstate *cs = ucs->cs; ucs 1848 drivers/staging/isdn/gigaset/bas-gigaset.c update_basstate(ucs, BS_ATREADY, BS_ATTIMER); ucs 1865 drivers/staging/isdn/gigaset/bas-gigaset.c struct bas_cardstate *ucs = cs->hw.bas; ucs 1870 drivers/staging/isdn/gigaset/bas-gigaset.c if (update_basstate(ucs, BS_ATWRPEND, 0) & BS_ATWRPEND) { ucs 1876 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->dr_cmd_out.bRequestType = OUT_VENDOR_REQ; ucs 1877 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->dr_cmd_out.bRequest = HD_WRITE_ATMESSAGE; ucs 1878 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->dr_cmd_out.wValue = 0; ucs 1879 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->dr_cmd_out.wIndex = 0; ucs 1880 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->dr_cmd_out.wLength = cpu_to_le16(len); ucs 1881 drivers/staging/isdn/gigaset/bas-gigaset.c usb_fill_control_urb(ucs->urb_cmd_out, ucs->udev, ucs 1882 drivers/staging/isdn/gigaset/bas-gigaset.c usb_sndctrlpipe(ucs->udev, 0), ucs 1883 drivers/staging/isdn/gigaset/bas-gigaset.c (unsigned char *) &ucs->dr_cmd_out, buf, len, ucs 1885 drivers/staging/isdn/gigaset/bas-gigaset.c rc = usb_submit_urb(ucs->urb_cmd_out, GFP_ATOMIC); ucs 1887 drivers/staging/isdn/gigaset/bas-gigaset.c update_basstate(ucs, 0, BS_ATWRPEND); ucs 1894 drivers/staging/isdn/gigaset/bas-gigaset.c if (!(update_basstate(ucs, BS_ATTIMER, BS_ATREADY) & BS_ATTIMER)) { ucs 1897 drivers/staging/isdn/gigaset/bas-gigaset.c mod_timer(&ucs->timer_atrdy, jiffies + ATRDY_TIMEOUT * HZ / 10); ucs 1913 drivers/staging/isdn/gigaset/bas-gigaset.c struct bas_cardstate *ucs = cs->hw.bas; ucs 1919 drivers/staging/isdn/gigaset/bas-gigaset.c if (ucs->basstate & BS_SUSPEND) { ucs 1925 drivers/staging/isdn/gigaset/bas-gigaset.c if (!(ucs->basstate & BS_ATOPEN)) { ucs 1941 drivers/staging/isdn/gigaset/bas-gigaset.c while ((cb = cs->cmdbuf) != NULL && (ucs->basstate & BS_ATREADY)) { ucs 1942 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->retry_cmd_out = 0; ucs 2201 drivers/staging/isdn/gigaset/bas-gigaset.c struct bas_cardstate *ucs; ucs 2203 drivers/staging/isdn/gigaset/bas-gigaset.c cs->hw.bas = ucs = kzalloc(sizeof(*ucs), GFP_KERNEL); ucs 2204 drivers/staging/isdn/gigaset/bas-gigaset.c if (!ucs) { ucs 2208 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->int_in_buf = kmalloc(IP_MSGSIZE, GFP_KERNEL); ucs 2209 drivers/staging/isdn/gigaset/bas-gigaset.c if (!ucs->int_in_buf) { ucs 2210 drivers/staging/isdn/gigaset/bas-gigaset.c kfree(ucs); ucs 2215 drivers/staging/isdn/gigaset/bas-gigaset.c spin_lock_init(&ucs->lock); ucs 2216 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->cs = cs; ucs 2217 drivers/staging/isdn/gigaset/bas-gigaset.c timer_setup(&ucs->timer_ctrl, req_timeout, 0); ucs 2218 drivers/staging/isdn/gigaset/bas-gigaset.c timer_setup(&ucs->timer_atrdy, atrdy_timeout, 0); ucs 2219 drivers/staging/isdn/gigaset/bas-gigaset.c timer_setup(&ucs->timer_cmd_in, cmd_in_timeout, 0); ucs 2220 drivers/staging/isdn/gigaset/bas-gigaset.c timer_setup(&ucs->timer_int_in, int_in_resubmit, 0); ucs 2221 drivers/staging/isdn/gigaset/bas-gigaset.c init_waitqueue_head(&ucs->waitqueue); ucs 2222 drivers/staging/isdn/gigaset/bas-gigaset.c INIT_WORK(&ucs->int_in_wq, int_in_work); ucs 2235 drivers/staging/isdn/gigaset/bas-gigaset.c struct bas_cardstate *ucs = cs->hw.bas; ucs 2253 drivers/staging/isdn/gigaset/bas-gigaset.c usb_kill_urb(ucs->urb_int_in); ucs 2254 drivers/staging/isdn/gigaset/bas-gigaset.c usb_free_urb(ucs->urb_int_in); ucs 2255 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->urb_int_in = NULL; ucs 2256 drivers/staging/isdn/gigaset/bas-gigaset.c usb_kill_urb(ucs->urb_cmd_out); ucs 2257 drivers/staging/isdn/gigaset/bas-gigaset.c usb_free_urb(ucs->urb_cmd_out); ucs 2258 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->urb_cmd_out = NULL; ucs 2259 drivers/staging/isdn/gigaset/bas-gigaset.c usb_kill_urb(ucs->urb_cmd_in); ucs 2260 drivers/staging/isdn/gigaset/bas-gigaset.c usb_free_urb(ucs->urb_cmd_in); ucs 2261 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->urb_cmd_in = NULL; ucs 2262 drivers/staging/isdn/gigaset/bas-gigaset.c usb_kill_urb(ucs->urb_ctrl); ucs 2263 drivers/staging/isdn/gigaset/bas-gigaset.c usb_free_urb(ucs->urb_ctrl); ucs 2264 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->urb_ctrl = NULL; ucs 2277 drivers/staging/isdn/gigaset/bas-gigaset.c struct bas_cardstate *ucs = NULL; ucs 2326 drivers/staging/isdn/gigaset/bas-gigaset.c ucs = cs->hw.bas; ucs 2330 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->udev = udev; ucs 2331 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->interface = interface; ucs 2339 drivers/staging/isdn/gigaset/bas-gigaset.c if (!(ucs->urb_int_in = usb_alloc_urb(0, GFP_KERNEL)) || ucs 2340 drivers/staging/isdn/gigaset/bas-gigaset.c !(ucs->urb_cmd_in = usb_alloc_urb(0, GFP_KERNEL)) || ucs 2341 drivers/staging/isdn/gigaset/bas-gigaset.c !(ucs->urb_cmd_out = usb_alloc_urb(0, GFP_KERNEL)) || ucs 2342 drivers/staging/isdn/gigaset/bas-gigaset.c !(ucs->urb_ctrl = usb_alloc_urb(0, GFP_KERNEL))) ucs 2357 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->rcvbuf = NULL; ucs 2358 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->rcvbuf_size = 0; ucs 2362 drivers/staging/isdn/gigaset/bas-gigaset.c usb_fill_int_urb(ucs->urb_int_in, udev, ucs 2365 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->int_in_buf, IP_MSGSIZE, read_int_callback, cs, ucs 2367 drivers/staging/isdn/gigaset/bas-gigaset.c rc = usb_submit_urb(ucs->urb_int_in, GFP_KERNEL); ucs 2373 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->retry_int_in = 0; ucs 2410 drivers/staging/isdn/gigaset/bas-gigaset.c struct bas_cardstate *ucs; ucs 2415 drivers/staging/isdn/gigaset/bas-gigaset.c ucs = cs->hw.bas; ucs 2420 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->basstate = 0; ucs 2430 drivers/staging/isdn/gigaset/bas-gigaset.c del_timer_sync(&ucs->timer_ctrl); ucs 2431 drivers/staging/isdn/gigaset/bas-gigaset.c del_timer_sync(&ucs->timer_atrdy); ucs 2432 drivers/staging/isdn/gigaset/bas-gigaset.c del_timer_sync(&ucs->timer_cmd_in); ucs 2433 drivers/staging/isdn/gigaset/bas-gigaset.c del_timer_sync(&ucs->timer_int_in); ucs 2434 drivers/staging/isdn/gigaset/bas-gigaset.c cancel_work_sync(&ucs->int_in_wq); ucs 2437 drivers/staging/isdn/gigaset/bas-gigaset.c kfree(ucs->rcvbuf); ucs 2438 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->rcvbuf = NULL; ucs 2439 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->rcvbuf_size = 0; ucs 2440 drivers/staging/isdn/gigaset/bas-gigaset.c usb_put_dev(ucs->udev); ucs 2441 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->interface = NULL; ucs 2442 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->udev = NULL; ucs 2455 drivers/staging/isdn/gigaset/bas-gigaset.c struct bas_cardstate *ucs = cs->hw.bas; ucs 2459 drivers/staging/isdn/gigaset/bas-gigaset.c if (update_basstate(ucs, BS_SUSPEND, 0) & BS_SUSPEND) { ucs 2465 drivers/staging/isdn/gigaset/bas-gigaset.c rc = wait_event_timeout(ucs->waitqueue, ucs 2466 drivers/staging/isdn/gigaset/bas-gigaset.c !(ucs->basstate & ucs 2472 drivers/staging/isdn/gigaset/bas-gigaset.c if (ucs->basstate & (BS_B1OPEN | BS_B2OPEN | BS_ATRDPEND | BS_ATWRPEND)) { ucs 2474 drivers/staging/isdn/gigaset/bas-gigaset.c if (ucs->basstate & BS_B1OPEN) ucs 2476 drivers/staging/isdn/gigaset/bas-gigaset.c if (ucs->basstate & BS_B2OPEN) ucs 2478 drivers/staging/isdn/gigaset/bas-gigaset.c if (ucs->basstate & BS_ATRDPEND) ucs 2480 drivers/staging/isdn/gigaset/bas-gigaset.c if (ucs->basstate & BS_ATWRPEND) ucs 2482 drivers/staging/isdn/gigaset/bas-gigaset.c update_basstate(ucs, 0, BS_SUSPEND); ucs 2487 drivers/staging/isdn/gigaset/bas-gigaset.c if (ucs->basstate & BS_ATOPEN) { ucs 2491 drivers/staging/isdn/gigaset/bas-gigaset.c update_basstate(ucs, 0, BS_SUSPEND); ucs 2494 drivers/staging/isdn/gigaset/bas-gigaset.c wait_event_timeout(ucs->waitqueue, !ucs->pending, ucs 2500 drivers/staging/isdn/gigaset/bas-gigaset.c usb_kill_urb(ucs->urb_ctrl); ucs 2501 drivers/staging/isdn/gigaset/bas-gigaset.c usb_kill_urb(ucs->urb_int_in); ucs 2502 drivers/staging/isdn/gigaset/bas-gigaset.c del_timer_sync(&ucs->timer_ctrl); ucs 2503 drivers/staging/isdn/gigaset/bas-gigaset.c del_timer_sync(&ucs->timer_atrdy); ucs 2504 drivers/staging/isdn/gigaset/bas-gigaset.c del_timer_sync(&ucs->timer_cmd_in); ucs 2505 drivers/staging/isdn/gigaset/bas-gigaset.c del_timer_sync(&ucs->timer_int_in); ucs 2511 drivers/staging/isdn/gigaset/bas-gigaset.c cancel_work_sync(&ucs->int_in_wq); ucs 2523 drivers/staging/isdn/gigaset/bas-gigaset.c struct bas_cardstate *ucs = cs->hw.bas; ucs 2527 drivers/staging/isdn/gigaset/bas-gigaset.c rc = usb_submit_urb(ucs->urb_int_in, GFP_KERNEL); ucs 2533 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->retry_int_in = 0; ucs 2536 drivers/staging/isdn/gigaset/bas-gigaset.c update_basstate(ucs, 0, BS_SUSPEND); ucs 2618 drivers/staging/isdn/gigaset/bas-gigaset.c struct bas_cardstate *ucs; ucs 2632 drivers/staging/isdn/gigaset/bas-gigaset.c ucs = driver->cs[i].hw.bas; ucs 2633 drivers/staging/isdn/gigaset/bas-gigaset.c if (ucs->basstate & BS_B1OPEN) { ucs 2635 drivers/staging/isdn/gigaset/bas-gigaset.c usb_control_msg(ucs->udev, ucs 2636 drivers/staging/isdn/gigaset/bas-gigaset.c usb_sndctrlpipe(ucs->udev, 0), ucs 2640 drivers/staging/isdn/gigaset/bas-gigaset.c if (ucs->basstate & BS_B2OPEN) { ucs 2642 drivers/staging/isdn/gigaset/bas-gigaset.c usb_control_msg(ucs->udev, ucs 2643 drivers/staging/isdn/gigaset/bas-gigaset.c usb_sndctrlpipe(ucs->udev, 0), ucs 2647 drivers/staging/isdn/gigaset/bas-gigaset.c if (ucs->basstate & BS_ATOPEN) { ucs 2649 drivers/staging/isdn/gigaset/bas-gigaset.c usb_control_msg(ucs->udev, ucs 2650 drivers/staging/isdn/gigaset/bas-gigaset.c usb_sndctrlpipe(ucs->udev, 0), ucs 2654 drivers/staging/isdn/gigaset/bas-gigaset.c ucs->basstate = 0; ucs 429 drivers/staging/isdn/gigaset/usb-gigaset.c struct usb_cardstate *ucs = cs->hw.usb; ucs 455 drivers/staging/isdn/gigaset/usb-gigaset.c count = min(cb->len, ucs->bulk_out_size); ucs 458 drivers/staging/isdn/gigaset/usb-gigaset.c usb_fill_bulk_urb(ucs->bulk_out_urb, ucs->udev, ucs 459 drivers/staging/isdn/gigaset/usb-gigaset.c usb_sndbulkpipe(ucs->udev, ucs 460 drivers/staging/isdn/gigaset/usb-gigaset.c ucs->bulk_out_epnum), ucs 466 drivers/staging/isdn/gigaset/usb-gigaset.c ucs->busy = 1; ucs 470 drivers/staging/isdn/gigaset/usb-gigaset.c usb_submit_urb(ucs->bulk_out_urb, GFP_ATOMIC) : ucs 475 drivers/staging/isdn/gigaset/usb-gigaset.c ucs->busy = 0; ucs 572 drivers/staging/isdn/gigaset/usb-gigaset.c struct usb_cardstate *ucs; ucs 574 drivers/staging/isdn/gigaset/usb-gigaset.c cs->hw.usb = ucs = kzalloc(sizeof(struct usb_cardstate), GFP_KERNEL); ucs 575 drivers/staging/isdn/gigaset/usb-gigaset.c if (!ucs) { ucs 580 drivers/staging/isdn/gigaset/usb-gigaset.c ucs->bchars[0] = 0; ucs 581 drivers/staging/isdn/gigaset/usb-gigaset.c ucs->bchars[1] = 0; ucs 582 drivers/staging/isdn/gigaset/usb-gigaset.c ucs->bchars[2] = 0; ucs 583 drivers/staging/isdn/gigaset/usb-gigaset.c ucs->bchars[3] = 0; ucs 584 drivers/staging/isdn/gigaset/usb-gigaset.c ucs->bchars[4] = 0x11; ucs 585 drivers/staging/isdn/gigaset/usb-gigaset.c ucs->bchars[5] = 0x13; ucs 598 drivers/staging/isdn/gigaset/usb-gigaset.c struct usb_cardstate *ucs = cs->hw.usb; ucs 610 drivers/staging/isdn/gigaset/usb-gigaset.c count = min(bcs->tx_skb->len, (unsigned) ucs->bulk_out_size); ucs 611 drivers/staging/isdn/gigaset/usb-gigaset.c skb_copy_from_linear_data(bcs->tx_skb, ucs->bulk_out_buffer, count); ucs 613 drivers/staging/isdn/gigaset/usb-gigaset.c ucs->busy = 1; ucs 618 drivers/staging/isdn/gigaset/usb-gigaset.c usb_fill_bulk_urb(ucs->bulk_out_urb, ucs->udev, ucs 619 drivers/staging/isdn/gigaset/usb-gigaset.c usb_sndbulkpipe(ucs->udev, ucs 620 drivers/staging/isdn/gigaset/usb-gigaset.c ucs->bulk_out_epnum), ucs 621 drivers/staging/isdn/gigaset/usb-gigaset.c ucs->bulk_out_buffer, count, ucs 623 drivers/staging/isdn/gigaset/usb-gigaset.c ret = usb_submit_urb(ucs->bulk_out_urb, GFP_ATOMIC); ucs 631 drivers/staging/isdn/gigaset/usb-gigaset.c ucs->busy = 0; ucs 654 drivers/staging/isdn/gigaset/usb-gigaset.c struct usb_cardstate *ucs = NULL; ucs 695 drivers/staging/isdn/gigaset/usb-gigaset.c ucs = cs->hw.usb; ucs 699 drivers/staging/isdn/gigaset/usb-gigaset.c ucs->udev = udev; ucs 700 drivers/staging/isdn/gigaset/usb-gigaset.c ucs->interface = interface; ucs 715 drivers/staging/isdn/gigaset/usb-gigaset.c ucs->bulk_out_size = buffer_size; ucs 716 drivers/staging/isdn/gigaset/usb-gigaset.c ucs->bulk_out_epnum = usb_endpoint_num(endpoint); ucs 717 drivers/staging/isdn/gigaset/usb-gigaset.c ucs->bulk_out_buffer = kmalloc(buffer_size, GFP_KERNEL); ucs 718 drivers/staging/isdn/gigaset/usb-gigaset.c if (!ucs->bulk_out_buffer) { ucs 724 drivers/staging/isdn/gigaset/usb-gigaset.c ucs->bulk_out_urb = usb_alloc_urb(0, GFP_KERNEL); ucs 725 drivers/staging/isdn/gigaset/usb-gigaset.c if (!ucs->bulk_out_urb) { ucs 739 drivers/staging/isdn/gigaset/usb-gigaset.c ucs->busy = 0; ucs 741 drivers/staging/isdn/gigaset/usb-gigaset.c ucs->read_urb = usb_alloc_urb(0, GFP_KERNEL); ucs 742 drivers/staging/isdn/gigaset/usb-gigaset.c if (!ucs->read_urb) { ucs 748 drivers/staging/isdn/gigaset/usb-gigaset.c ucs->rcvbuf_size = buffer_size; ucs 749 drivers/staging/isdn/gigaset/usb-gigaset.c ucs->rcvbuf = kmalloc(buffer_size, GFP_KERNEL); ucs 750 drivers/staging/isdn/gigaset/usb-gigaset.c if (!ucs->rcvbuf) { ucs 756 drivers/staging/isdn/gigaset/usb-gigaset.c usb_fill_int_urb(ucs->read_urb, udev, ucs 758 drivers/staging/isdn/gigaset/usb-gigaset.c ucs->rcvbuf, buffer_size, ucs 762 drivers/staging/isdn/gigaset/usb-gigaset.c retval = usb_submit_urb(ucs->read_urb, GFP_KERNEL); ucs 780 drivers/staging/isdn/gigaset/usb-gigaset.c usb_kill_urb(ucs->read_urb); ucs 781 drivers/staging/isdn/gigaset/usb-gigaset.c kfree(ucs->bulk_out_buffer); ucs 782 drivers/staging/isdn/gigaset/usb-gigaset.c usb_free_urb(ucs->bulk_out_urb); ucs 783 drivers/staging/isdn/gigaset/usb-gigaset.c kfree(ucs->rcvbuf); ucs 784 drivers/staging/isdn/gigaset/usb-gigaset.c usb_free_urb(ucs->read_urb); ucs 786 drivers/staging/isdn/gigaset/usb-gigaset.c ucs->read_urb = ucs->bulk_out_urb = NULL; ucs 787 drivers/staging/isdn/gigaset/usb-gigaset.c ucs->rcvbuf = ucs->bulk_out_buffer = NULL; ucs 788 drivers/staging/isdn/gigaset/usb-gigaset.c usb_put_dev(ucs->udev); ucs 789 drivers/staging/isdn/gigaset/usb-gigaset.c ucs->udev = NULL; ucs 790 drivers/staging/isdn/gigaset/usb-gigaset.c ucs->interface = NULL; ucs 798 drivers/staging/isdn/gigaset/usb-gigaset.c struct usb_cardstate *ucs; ucs 801 drivers/staging/isdn/gigaset/usb-gigaset.c ucs = cs->hw.usb; ucs 805 drivers/staging/isdn/gigaset/usb-gigaset.c usb_kill_urb(ucs->read_urb); ucs 812 drivers/staging/isdn/gigaset/usb-gigaset.c usb_kill_urb(ucs->bulk_out_urb); ucs 814 drivers/staging/isdn/gigaset/usb-gigaset.c kfree(ucs->bulk_out_buffer); ucs 815 drivers/staging/isdn/gigaset/usb-gigaset.c usb_free_urb(ucs->bulk_out_urb); ucs 816 drivers/staging/isdn/gigaset/usb-gigaset.c kfree(ucs->rcvbuf); ucs 817 drivers/staging/isdn/gigaset/usb-gigaset.c usb_free_urb(ucs->read_urb); ucs 818 drivers/staging/isdn/gigaset/usb-gigaset.c ucs->read_urb = ucs->bulk_out_urb = NULL; ucs 819 drivers/staging/isdn/gigaset/usb-gigaset.c ucs->rcvbuf = ucs->bulk_out_buffer = NULL; ucs 821 drivers/staging/isdn/gigaset/usb-gigaset.c usb_put_dev(ucs->udev); ucs 822 drivers/staging/isdn/gigaset/usb-gigaset.c ucs->interface = NULL; ucs 823 drivers/staging/isdn/gigaset/usb-gigaset.c ucs->udev = NULL; ucs 810 drivers/tty/vt/consolemap.c conv_uni_to_pc(struct vc_data *conp, long ucs) ucs 817 drivers/tty/vt/consolemap.c if (ucs > 0xffff) ucs 819 drivers/tty/vt/consolemap.c else if (ucs < 0x20) ucs 821 drivers/tty/vt/consolemap.c else if (ucs == 0xfeff || (ucs >= 0x200b && ucs <= 0x200f)) ucs 828 drivers/tty/vt/consolemap.c else if ((ucs & ~UNI_DIRECT_MASK) == UNI_DIRECT_BASE) ucs 829 drivers/tty/vt/consolemap.c return ucs & UNI_DIRECT_MASK; ucs 835 drivers/tty/vt/consolemap.c if ((p1 = p->uni_pgdir[ucs >> 11]) && ucs 836 drivers/tty/vt/consolemap.c (p2 = p1[(ucs >> 6) & 0x1f]) && ucs 837 drivers/tty/vt/consolemap.c (h = p2[ucs & 0x3f]) < MAX_GLYPH) ucs 2544 drivers/tty/vt/vt.c uint32_t ucs = *(uint32_t *)key; ucs 2547 drivers/tty/vt/vt.c if (ucs > e.last) ucs 2549 drivers/tty/vt/vt.c else if (ucs < e.first) ucs 2554 drivers/tty/vt/vt.c static int is_double_width(uint32_t ucs) ucs 2562 drivers/tty/vt/vt.c if (ucs < double_width[0].first || ucs 2563 drivers/tty/vt/vt.c ucs > double_width[ARRAY_SIZE(double_width) - 1].last) ucs 2566 drivers/tty/vt/vt.c return bsearch(&ucs, double_width, ARRAY_SIZE(double_width), ucs 136 fs/cifs/cifs_unicode.h UniStrchr(const wchar_t *ucs, wchar_t uc) ucs 138 fs/cifs/cifs_unicode.h while ((*ucs != uc) && *ucs) ucs 139 fs/cifs/cifs_unicode.h ucs++; ucs 141 fs/cifs/cifs_unicode.h if (*ucs == uc) ucs 142 fs/cifs/cifs_unicode.h return (wchar_t *) ucs; ucs 249 fs/ntfs/unistr.c ntfschar *ucs; ucs 255 fs/ntfs/unistr.c ucs = kmem_cache_alloc(ntfs_name_cache, GFP_NOFS); ucs 256 fs/ntfs/unistr.c if (likely(ucs)) { ucs 263 fs/ntfs/unistr.c ucs[o++] = cpu_to_le16(wc); ucs 271 fs/ntfs/unistr.c ucs[o] = 0; ucs 272 fs/ntfs/unistr.c *outs = ucs; ucs 282 fs/ntfs/unistr.c kmem_cache_free(ntfs_name_cache, ucs); ucs 22 include/linux/consolemap.h extern int conv_uni_to_pc(struct vc_data *conp, long ucs); ucs 29 include/linux/consolemap.h #define conv_uni_to_pc(conp, ucs) ((int) (ucs > 0xff ? -1: ucs))