Lines Matching refs:retval
428 int retval; in read_roothub_info() local
429 retval = u132_read_pcimem(u132, revision, &revision); in read_roothub_info()
430 if (retval) { in read_roothub_info()
432 "ntrol\n", retval); in read_roothub_info()
433 return retval; in read_roothub_info()
441 retval = u132_read_pcimem(u132, control, &u132->hc_control); in read_roothub_info()
442 if (retval) { in read_roothub_info()
444 "ntrol\n", retval); in read_roothub_info()
445 return retval; in read_roothub_info()
447 retval = u132_read_pcimem(u132, roothub.status, in read_roothub_info()
449 if (retval) { in read_roothub_info()
451 "g roothub.status\n", retval); in read_roothub_info()
452 return retval; in read_roothub_info()
454 retval = u132_read_pcimem(u132, roothub.a, &u132->hc_roothub_a); in read_roothub_info()
455 if (retval) { in read_roothub_info()
457 "g roothub.a\n", retval); in read_roothub_info()
458 return retval; in read_roothub_info()
464 retval = u132_read_pcimem(u132, roothub.portstatus[i], in read_roothub_info()
466 if (retval) { in read_roothub_info()
469 , retval, i); in read_roothub_info()
470 return retval; in read_roothub_info()
491 int retval; in u132_hcd_monitor_work() local
493 retval = read_roothub_info(u132); in u132_hcd_monitor_work()
494 if (retval) { in u132_hcd_monitor_work()
664 int retval; in u132_hcd_interrupt_recv() local
666 retval = edset_single(u132, ring, endp, urb, in u132_hcd_interrupt_recv()
669 if (retval != 0) in u132_hcd_interrupt_recv()
671 retval); in u132_hcd_interrupt_recv()
752 int retval; in u132_hcd_bulk_output_sent() local
754 retval = edset_output(u132, ring, endp, urb, address, in u132_hcd_bulk_output_sent()
756 if (retval != 0) in u132_hcd_bulk_output_sent()
757 u132_hcd_giveback_urb(u132, endp, urb, retval); in u132_hcd_bulk_output_sent()
811 int retval; in u132_hcd_bulk_input_recv() local
816 retval = usb_ftdi_elan_edset_input(u132->platform_dev, in u132_hcd_bulk_input_recv()
820 if (retval != 0) in u132_hcd_bulk_input_recv()
821 u132_hcd_giveback_urb(u132, endp, urb, retval); in u132_hcd_bulk_input_recv()
951 int retval; in u132_hcd_configure_input_recv() local
953 retval = usb_ftdi_elan_edset_empty(u132->platform_dev, in u132_hcd_configure_input_recv()
957 if (retval != 0) in u132_hcd_configure_input_recv()
958 u132_hcd_giveback_urb(u132, endp, urb, retval); in u132_hcd_configure_input_recv()
1049 int retval; in u132_hcd_configure_setup_sent() local
1052 retval = usb_ftdi_elan_edset_input(u132->platform_dev, in u132_hcd_configure_setup_sent()
1056 if (retval != 0) in u132_hcd_configure_setup_sent()
1057 u132_hcd_giveback_urb(u132, endp, urb, retval); in u132_hcd_configure_setup_sent()
1060 int retval; in u132_hcd_configure_setup_sent() local
1063 retval = usb_ftdi_elan_edset_input(u132->platform_dev, in u132_hcd_configure_setup_sent()
1067 if (retval != 0) in u132_hcd_configure_setup_sent()
1068 u132_hcd_giveback_urb(u132, endp, urb, retval); in u132_hcd_configure_setup_sent()
1146 int retval; in u132_hcd_enumeration_address_sent() local
1149 retval = usb_ftdi_elan_edset_input(u132->platform_dev, in u132_hcd_enumeration_address_sent()
1152 if (retval != 0) in u132_hcd_enumeration_address_sent()
1153 u132_hcd_giveback_urb(u132, endp, urb, retval); in u132_hcd_enumeration_address_sent()
1227 int retval; in u132_hcd_initial_input_recv() local
1238 retval = usb_ftdi_elan_edset_empty(u132->platform_dev, in u132_hcd_initial_input_recv()
1241 if (retval != 0) in u132_hcd_initial_input_recv()
1242 u132_hcd_giveback_urb(u132, endp, urb, retval); in u132_hcd_initial_input_recv()
1279 int retval; in u132_hcd_initial_setup_sent() local
1282 retval = usb_ftdi_elan_edset_input(u132->platform_dev, in u132_hcd_initial_setup_sent()
1285 if (retval != 0) in u132_hcd_initial_setup_sent()
1286 u132_hcd_giveback_urb(u132, endp, urb, retval); in u132_hcd_initial_setup_sent()
1398 int retval; in u132_hcd_endp_work_scheduler() local
1405 retval = edset_single(u132, ring, endp, urb, address, in u132_hcd_endp_work_scheduler()
1407 if (retval != 0) in u132_hcd_endp_work_scheduler()
1408 u132_hcd_giveback_urb(u132, endp, urb, retval); in u132_hcd_endp_work_scheduler()
1418 int retval; in u132_hcd_endp_work_scheduler() local
1425 retval = edset_setup(u132, ring, endp, urb, address, in u132_hcd_endp_work_scheduler()
1427 if (retval != 0) in u132_hcd_endp_work_scheduler()
1428 u132_hcd_giveback_urb(u132, endp, urb, retval); in u132_hcd_endp_work_scheduler()
1431 int retval; in u132_hcd_endp_work_scheduler() local
1438 retval = edset_setup(u132, ring, endp, urb, 0, 0x2, in u132_hcd_endp_work_scheduler()
1440 if (retval != 0) in u132_hcd_endp_work_scheduler()
1441 u132_hcd_giveback_urb(u132, endp, urb, retval); in u132_hcd_endp_work_scheduler()
1444 int retval; in u132_hcd_endp_work_scheduler() local
1452 retval = edset_setup(u132, ring, endp, urb, address, in u132_hcd_endp_work_scheduler()
1454 if (retval != 0) in u132_hcd_endp_work_scheduler()
1455 u132_hcd_giveback_urb(u132, endp, urb, retval); in u132_hcd_endp_work_scheduler()
1466 int retval; in u132_hcd_endp_work_scheduler() local
1473 retval = edset_input(u132, ring, endp, urb, in u132_hcd_endp_work_scheduler()
1476 if (retval == 0) { in u132_hcd_endp_work_scheduler()
1479 retval); in u132_hcd_endp_work_scheduler()
1489 int retval; in u132_hcd_endp_work_scheduler() local
1496 retval = edset_output(u132, ring, endp, urb, in u132_hcd_endp_work_scheduler()
1499 if (retval == 0) { in u132_hcd_endp_work_scheduler()
1502 retval); in u132_hcd_endp_work_scheduler()
1533 int retval; in u132_periodic_reinit() local
1537 retval = u132_read_pcimem(u132, fminterval, &fminterval); in u132_periodic_reinit()
1538 if (retval) in u132_periodic_reinit()
1539 return retval; in u132_periodic_reinit()
1541 retval = u132_write_pcimem(u132, fminterval, in u132_periodic_reinit()
1543 if (retval) in u132_periodic_reinit()
1544 return retval; in u132_periodic_reinit()
1566 int retval; in u132_init() local
1570 retval = u132_write_pcimem(u132, intrdisable, OHCI_INTR_MIE); in u132_init()
1571 if (retval) in u132_init()
1572 return retval; in u132_init()
1573 retval = u132_read_pcimem(u132, control, &control); in u132_init()
1574 if (retval) in u132_init()
1575 return retval; in u132_init()
1578 retval = u132_read_pcimem(u132, roothub.a, &rh_a); in u132_init()
1579 if (retval) in u132_init()
1580 return retval; in u132_init()
1582 retval = read_roothub_info(u132); in u132_init()
1583 if (retval) in u132_init()
1584 return retval; in u132_init()
1599 int retval; in u132_run() local
1613 retval = u132_read_pcimem(u132, fminterval, &temp); in u132_run()
1614 if (retval) in u132_run()
1615 return retval; in u132_run()
1619 retval = u132_read_pcimem(u132, control, &u132->hc_control); in u132_run()
1620 if (retval) in u132_run()
1621 return retval; in u132_run()
1641 retval = u132_write_pcimem(u132, control, u132->hc_control); in u132_run()
1642 if (retval) in u132_run()
1643 return retval; in u132_run()
1644 retval = u132_read_pcimem(u132, control, &control); in u132_run()
1645 if (retval) in u132_run()
1646 return retval; in u132_run()
1648 retval = u132_read_pcimem(u132, roothub.a, &roothub_a); in u132_run()
1649 if (retval) in u132_run()
1650 return retval; in u132_run()
1654 retval = u132_write_pcimem(u132, in u132_run()
1656 if (retval) in u132_run()
1657 return retval; in u132_run()
1660 retval = u132_read_pcimem(u132, control, &control); in u132_run()
1661 if (retval) in u132_run()
1662 return retval; in u132_run()
1664 retval = u132_read_pcimem(u132, cmdstatus, &status); in u132_run()
1665 if (retval) in u132_run()
1666 return retval; in u132_run()
1667 retval = u132_write_pcimem(u132, cmdstatus, OHCI_HCR); in u132_run()
1668 if (retval) in u132_run()
1669 return retval; in u132_run()
1671 retval = u132_read_pcimem(u132, cmdstatus, &status); in u132_run()
1672 if (retval) in u132_run()
1673 return retval; in u132_run()
1686 retval = u132_write_pcimem(u132, control, u132->hc_control); in u132_run()
1687 if (retval) in u132_run()
1688 return retval; in u132_run()
1689 retval = u132_read_pcimem(u132, control, &control); in u132_run()
1690 if (retval) in u132_run()
1691 return retval; in u132_run()
1693 retval = u132_write_pcimem(u132, ed_controlhead, 0x00000000); in u132_run()
1694 if (retval) in u132_run()
1695 return retval; in u132_run()
1696 retval = u132_write_pcimem(u132, ed_bulkhead, 0x11000000); in u132_run()
1697 if (retval) in u132_run()
1698 return retval; in u132_run()
1699 retval = u132_write_pcimem(u132, hcca, 0x00000000); in u132_run()
1700 if (retval) in u132_run()
1701 return retval; in u132_run()
1702 retval = u132_periodic_reinit(u132); in u132_run()
1703 if (retval) in u132_run()
1704 return retval; in u132_run()
1705 retval = u132_read_pcimem(u132, fminterval, &fminterval); in u132_run()
1706 if (retval) in u132_run()
1707 return retval; in u132_run()
1708 retval = u132_read_pcimem(u132, periodicstart, &periodicstart); in u132_run()
1709 if (retval) in u132_run()
1710 return retval; in u132_run()
1721 retval = u132_write_pcimem(u132, control, u132->hc_control); in u132_run()
1722 if (retval) in u132_run()
1723 return retval; in u132_run()
1724 retval = u132_write_pcimem(u132, cmdstatus, OHCI_BLF); in u132_run()
1725 if (retval) in u132_run()
1726 return retval; in u132_run()
1727 retval = u132_read_pcimem(u132, cmdstatus, &cmdstatus); in u132_run()
1728 if (retval) in u132_run()
1729 return retval; in u132_run()
1730 retval = u132_read_pcimem(u132, control, &control); in u132_run()
1731 if (retval) in u132_run()
1732 return retval; in u132_run()
1734 retval = u132_write_pcimem(u132, roothub.status, RH_HS_DRWE); in u132_run()
1735 if (retval) in u132_run()
1736 return retval; in u132_run()
1737 retval = u132_write_pcimem(u132, intrstatus, mask); in u132_run()
1738 if (retval) in u132_run()
1739 return retval; in u132_run()
1740 retval = u132_write_pcimem(u132, intrdisable, in u132_run()
1744 if (retval) in u132_run()
1745 return retval; /* handle root hub init quirks ... */ in u132_run()
1746 retval = u132_read_pcimem(u132, roothub.a, &roothub_a); in u132_run()
1747 if (retval) in u132_run()
1748 return retval; in u132_run()
1753 retval = u132_write_pcimem(u132, roothub.a, roothub_a); in u132_run()
1754 if (retval) in u132_run()
1755 return retval; in u132_run()
1758 retval = u132_write_pcimem(u132, roothub.a, roothub_a); in u132_run()
1759 if (retval) in u132_run()
1760 return retval; in u132_run()
1762 retval = u132_write_pcimem(u132, roothub.status, RH_HS_LPSC); in u132_run()
1763 if (retval) in u132_run()
1764 return retval; in u132_run()
1765 retval = u132_write_pcimem(u132, roothub.b, in u132_run()
1767 if (retval) in u132_run()
1768 return retval; in u132_run()
1769 retval = u132_read_pcimem(u132, control, &control); in u132_run()
1770 if (retval) in u132_run()
1771 return retval; in u132_run()
1805 int retval; in u132_hcd_start() local
1821 retval = u132_run(u132); in u132_hcd_start()
1822 if (retval) { in u132_hcd_start()
1828 return retval; in u132_hcd_start()
1846 int retval; in u132_hcd_reset() local
1848 retval = u132_init(u132); in u132_hcd_reset()
1849 if (retval) { in u132_hcd_reset()
1854 return retval; in u132_hcd_reset()
2271 int retval; in u132_urb_enqueue() local
2274 retval = usb_hcd_link_urb_to_ep(hcd, urb); in u132_urb_enqueue()
2275 if (retval == 0) { in u132_urb_enqueue()
2276 retval = queue_int_on_old_endpoint( in u132_urb_enqueue()
2281 if (retval) in u132_urb_enqueue()
2287 if (retval) { in u132_urb_enqueue()
2288 return retval; in u132_urb_enqueue()
2313 int retval; in u132_urb_enqueue() local
2316 retval = usb_hcd_link_urb_to_ep(hcd, urb); in u132_urb_enqueue()
2317 if (retval == 0) { in u132_urb_enqueue()
2318 retval = queue_bulk_on_old_endpoint( in u132_urb_enqueue()
2323 if (retval) in u132_urb_enqueue()
2329 if (retval) { in u132_urb_enqueue()
2330 return retval; in u132_urb_enqueue()
2362 int retval; in u132_urb_enqueue() local
2365 retval = usb_hcd_link_urb_to_ep(hcd, urb); in u132_urb_enqueue()
2366 if (retval == 0) { in u132_urb_enqueue()
2367 retval = queue_control_on_old_endpoint( in u132_urb_enqueue()
2371 if (retval) in u132_urb_enqueue()
2377 if (retval) { in u132_urb_enqueue()
2378 return retval; in u132_urb_enqueue()
2505 int retval; in u132_endp_urb_dequeue() local
2508 retval = dequeue_from_overflow_chain(u132, endp, in u132_endp_urb_dequeue()
2511 return retval; in u132_endp_urb_dequeue()
2576 int retval; in u132_roothub_descriptor() local
2580 retval = u132_read_pcimem(u132, roothub.a, &rh_a); in u132_roothub_descriptor()
2581 if (retval) in u132_roothub_descriptor()
2582 return retval; in u132_roothub_descriptor()
2599 retval = u132_read_pcimem(u132, roothub.b, &rh_b); in u132_roothub_descriptor()
2600 if (retval) in u132_roothub_descriptor()
2601 return retval; in u132_roothub_descriptor()
2647 int retval; in u132_roothub_portreset() local
2651 retval = u132_read_pcimem(u132, fmnumber, &fmnumber); in u132_roothub_portreset()
2652 if (retval) in u132_roothub_portreset()
2653 return retval; in u132_roothub_portreset()
2659 retval = u132_read_pcimem(u132, in u132_roothub_portreset()
2661 if (retval) in u132_roothub_portreset()
2662 return retval; in u132_roothub_portreset()
2672 retval = u132_write_pcimem(u132, in u132_roothub_portreset()
2675 if (retval) in u132_roothub_portreset()
2676 return retval; in u132_roothub_portreset()
2681 retval = u132_write_pcimem(u132, roothub.portstatus[port_index], in u132_roothub_portreset()
2683 if (retval) in u132_roothub_portreset()
2684 return retval; in u132_roothub_portreset()
2686 retval = u132_read_pcimem(u132, fmnumber, &fmnumber); in u132_roothub_portreset()
2687 if (retval) in u132_roothub_portreset()
2688 return retval; in u132_roothub_portreset()
2831 int retval = 0; in u132_hub_control() local
2853 retval = u132_roothub_clearportfeature(u132, in u132_hub_control()
2855 if (retval) in u132_hub_control()
2860 retval = u132_roothub_descriptor(u132, in u132_hub_control()
2862 if (retval) in u132_hub_control()
2867 retval = u132_roothub_status(u132, in u132_hub_control()
2869 if (retval) in u132_hub_control()
2874 retval = u132_roothub_portstatus(u132, in u132_hub_control()
2876 if (retval) in u132_hub_control()
2881 retval = u132_roothub_setportfeature(u132, in u132_hub_control()
2883 if (retval) in u132_hub_control()
2894 retval = -EPIPE; in u132_hub_control()
2898 return retval; in u132_hub_control()
3072 int retval; in u132_probe() local
3081 retval = ftdi_write_pcimem(pdev, intrdisable, OHCI_INTR_MIE); in u132_probe()
3082 if (retval) in u132_probe()
3083 return retval; in u132_probe()
3084 retval = ftdi_read_pcimem(pdev, control, &control); in u132_probe()
3085 if (retval) in u132_probe()
3086 return retval; in u132_probe()
3087 retval = ftdi_read_pcimem(pdev, roothub.a, &rh_a); in u132_probe()
3088 if (retval) in u132_probe()
3089 return retval; in u132_probe()
3102 retval = 0; in u132_probe()
3111 retval = usb_add_hcd(hcd, 0, 0); in u132_probe()
3112 if (retval != 0) { in u132_probe()
3114 retval); in u132_probe()
3116 return retval; in u132_probe()
3143 int retval = 0, ports; in u132_suspend() local
3147 retval = u132_bus_suspend(hcd); in u132_suspend()
3157 return retval; in u132_suspend()
3173 int retval = 0; in u132_resume() local
3179 retval = 0; in u132_resume()
3181 retval = u132_bus_resume(hcd); in u132_resume()
3183 return retval; in u132_resume()
3207 int retval; in u132_hcd_init() local
3216 retval = platform_driver_register(&u132_platform_driver); in u132_hcd_init()
3217 return retval; in u132_hcd_init()