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()
1545 retval = u132_write_pcimem(u132, periodicstart, in u132_periodic_reinit()
1547 if (retval) in u132_periodic_reinit()
1548 return retval; in u132_periodic_reinit()
1569 int retval; in u132_init() local
1573 retval = u132_write_pcimem(u132, intrdisable, OHCI_INTR_MIE); in u132_init()
1574 if (retval) in u132_init()
1575 return retval; in u132_init()
1576 retval = u132_read_pcimem(u132, control, &control); in u132_init()
1577 if (retval) in u132_init()
1578 return retval; in u132_init()
1581 retval = u132_read_pcimem(u132, roothub.a, &rh_a); in u132_init()
1582 if (retval) in u132_init()
1583 return retval; in u132_init()
1585 retval = read_roothub_info(u132); in u132_init()
1586 if (retval) in u132_init()
1587 return retval; in u132_init()
1602 int retval; in u132_run() local
1616 retval = u132_read_pcimem(u132, fminterval, &temp); in u132_run()
1617 if (retval) in u132_run()
1618 return retval; in u132_run()
1622 retval = u132_read_pcimem(u132, control, &u132->hc_control); in u132_run()
1623 if (retval) in u132_run()
1624 return retval; in u132_run()
1644 retval = u132_write_pcimem(u132, control, u132->hc_control); in u132_run()
1645 if (retval) in u132_run()
1646 return retval; in u132_run()
1647 retval = u132_read_pcimem(u132, control, &control); in u132_run()
1648 if (retval) in u132_run()
1649 return retval; in u132_run()
1651 retval = u132_read_pcimem(u132, roothub.a, &roothub_a); in u132_run()
1652 if (retval) in u132_run()
1653 return retval; in u132_run()
1657 retval = u132_write_pcimem(u132, in u132_run()
1659 if (retval) in u132_run()
1660 return retval; in u132_run()
1663 retval = u132_read_pcimem(u132, control, &control); in u132_run()
1664 if (retval) in u132_run()
1665 return retval; in u132_run()
1667 retval = u132_read_pcimem(u132, cmdstatus, &status); in u132_run()
1668 if (retval) in u132_run()
1669 return retval; in u132_run()
1670 retval = u132_write_pcimem(u132, cmdstatus, OHCI_HCR); in u132_run()
1671 if (retval) in u132_run()
1672 return retval; in u132_run()
1674 retval = u132_read_pcimem(u132, cmdstatus, &status); in u132_run()
1675 if (retval) in u132_run()
1676 return retval; in u132_run()
1689 retval = u132_write_pcimem(u132, control, u132->hc_control); in u132_run()
1690 if (retval) in u132_run()
1691 return retval; in u132_run()
1692 retval = u132_read_pcimem(u132, control, &control); in u132_run()
1693 if (retval) in u132_run()
1694 return retval; in u132_run()
1696 retval = u132_write_pcimem(u132, ed_controlhead, 0x00000000); in u132_run()
1697 if (retval) in u132_run()
1698 return retval; in u132_run()
1699 retval = u132_write_pcimem(u132, ed_bulkhead, 0x11000000); in u132_run()
1700 if (retval) in u132_run()
1701 return retval; in u132_run()
1702 retval = u132_write_pcimem(u132, hcca, 0x00000000); in u132_run()
1703 if (retval) in u132_run()
1704 return retval; in u132_run()
1705 retval = u132_periodic_reinit(u132); in u132_run()
1706 if (retval) in u132_run()
1707 return retval; in u132_run()
1708 retval = u132_read_pcimem(u132, fminterval, &fminterval); in u132_run()
1709 if (retval) in u132_run()
1710 return retval; in u132_run()
1711 retval = u132_read_pcimem(u132, periodicstart, &periodicstart); in u132_run()
1712 if (retval) in u132_run()
1713 return retval; in u132_run()
1724 retval = u132_write_pcimem(u132, control, u132->hc_control); in u132_run()
1725 if (retval) in u132_run()
1726 return retval; in u132_run()
1727 retval = u132_write_pcimem(u132, cmdstatus, OHCI_BLF); in u132_run()
1728 if (retval) in u132_run()
1729 return retval; in u132_run()
1730 retval = u132_read_pcimem(u132, cmdstatus, &cmdstatus); in u132_run()
1731 if (retval) in u132_run()
1732 return retval; in u132_run()
1733 retval = u132_read_pcimem(u132, control, &control); in u132_run()
1734 if (retval) in u132_run()
1735 return retval; in u132_run()
1737 retval = u132_write_pcimem(u132, roothub.status, RH_HS_DRWE); in u132_run()
1738 if (retval) in u132_run()
1739 return retval; in u132_run()
1740 retval = u132_write_pcimem(u132, intrstatus, mask); in u132_run()
1741 if (retval) in u132_run()
1742 return retval; in u132_run()
1743 retval = u132_write_pcimem(u132, intrdisable, in u132_run()
1747 if (retval) in u132_run()
1748 return retval; /* handle root hub init quirks ... */ in u132_run()
1749 retval = u132_read_pcimem(u132, roothub.a, &roothub_a); in u132_run()
1750 if (retval) in u132_run()
1751 return retval; in u132_run()
1756 retval = u132_write_pcimem(u132, roothub.a, roothub_a); in u132_run()
1757 if (retval) in u132_run()
1758 return retval; in u132_run()
1761 retval = u132_write_pcimem(u132, roothub.a, roothub_a); in u132_run()
1762 if (retval) in u132_run()
1763 return retval; in u132_run()
1765 retval = u132_write_pcimem(u132, roothub.status, RH_HS_LPSC); in u132_run()
1766 if (retval) in u132_run()
1767 return retval; in u132_run()
1768 retval = u132_write_pcimem(u132, roothub.b, in u132_run()
1770 if (retval) in u132_run()
1771 return retval; in u132_run()
1772 retval = u132_read_pcimem(u132, control, &control); in u132_run()
1773 if (retval) in u132_run()
1774 return retval; in u132_run()
1808 int retval; in u132_hcd_start() local
1824 retval = u132_run(u132); in u132_hcd_start()
1825 if (retval) { in u132_hcd_start()
1831 return retval; in u132_hcd_start()
1849 int retval; in u132_hcd_reset() local
1851 retval = u132_init(u132); in u132_hcd_reset()
1852 if (retval) { in u132_hcd_reset()
1857 return retval; in u132_hcd_reset()
2275 int retval; in u132_urb_enqueue() local
2278 retval = usb_hcd_link_urb_to_ep(hcd, urb); in u132_urb_enqueue()
2279 if (retval == 0) { in u132_urb_enqueue()
2280 retval = queue_int_on_old_endpoint( in u132_urb_enqueue()
2285 if (retval) in u132_urb_enqueue()
2291 if (retval) { in u132_urb_enqueue()
2292 return retval; in u132_urb_enqueue()
2317 int retval; in u132_urb_enqueue() local
2320 retval = usb_hcd_link_urb_to_ep(hcd, urb); in u132_urb_enqueue()
2321 if (retval == 0) { in u132_urb_enqueue()
2322 retval = queue_bulk_on_old_endpoint( in u132_urb_enqueue()
2327 if (retval) in u132_urb_enqueue()
2333 if (retval) { in u132_urb_enqueue()
2334 return retval; in u132_urb_enqueue()
2366 int retval; in u132_urb_enqueue() local
2369 retval = usb_hcd_link_urb_to_ep(hcd, urb); in u132_urb_enqueue()
2370 if (retval == 0) { in u132_urb_enqueue()
2371 retval = queue_control_on_old_endpoint( in u132_urb_enqueue()
2375 if (retval) in u132_urb_enqueue()
2381 if (retval) { in u132_urb_enqueue()
2382 return retval; in u132_urb_enqueue()
2509 int retval; in u132_endp_urb_dequeue() local
2512 retval = dequeue_from_overflow_chain(u132, endp, in u132_endp_urb_dequeue()
2515 return retval; in u132_endp_urb_dequeue()
2580 int retval; in u132_roothub_descriptor() local
2584 retval = u132_read_pcimem(u132, roothub.a, &rh_a); in u132_roothub_descriptor()
2585 if (retval) in u132_roothub_descriptor()
2586 return retval; in u132_roothub_descriptor()
2603 retval = u132_read_pcimem(u132, roothub.b, &rh_b); in u132_roothub_descriptor()
2604 if (retval) in u132_roothub_descriptor()
2605 return retval; in u132_roothub_descriptor()
2651 int retval; in u132_roothub_portreset() local
2655 retval = u132_read_pcimem(u132, fmnumber, &fmnumber); in u132_roothub_portreset()
2656 if (retval) in u132_roothub_portreset()
2657 return retval; in u132_roothub_portreset()
2663 retval = u132_read_pcimem(u132, in u132_roothub_portreset()
2665 if (retval) in u132_roothub_portreset()
2666 return retval; in u132_roothub_portreset()
2676 retval = u132_write_pcimem(u132, in u132_roothub_portreset()
2679 if (retval) in u132_roothub_portreset()
2680 return retval; in u132_roothub_portreset()
2685 retval = u132_write_pcimem(u132, roothub.portstatus[port_index], in u132_roothub_portreset()
2687 if (retval) in u132_roothub_portreset()
2688 return retval; in u132_roothub_portreset()
2690 retval = u132_read_pcimem(u132, fmnumber, &fmnumber); in u132_roothub_portreset()
2691 if (retval) in u132_roothub_portreset()
2692 return retval; in u132_roothub_portreset()
2704 int retval; in u132_roothub_setportfeature() local
2710 retval = u132_write_pcimem(u132, in u132_roothub_setportfeature()
2712 if (retval) in u132_roothub_setportfeature()
2713 return retval; in u132_roothub_setportfeature()
2716 retval = u132_write_pcimem(u132, in u132_roothub_setportfeature()
2718 if (retval) in u132_roothub_setportfeature()
2719 return retval; in u132_roothub_setportfeature()
2722 retval = u132_roothub_portreset(u132, port_index); in u132_roothub_setportfeature()
2723 if (retval) in u132_roothub_setportfeature()
2724 return retval; in u132_roothub_setportfeature()
2740 int retval; in u132_roothub_clearportfeature() local
2776 retval = u132_write_pcimem(u132, roothub.portstatus[port_index], in u132_roothub_clearportfeature()
2778 if (retval) in u132_roothub_clearportfeature()
2779 return retval; in u132_roothub_clearportfeature()
2849 int retval = 0; in u132_hub_control() local
2871 retval = u132_roothub_clearportfeature(u132, in u132_hub_control()
2873 if (retval) in u132_hub_control()
2878 retval = u132_roothub_descriptor(u132, in u132_hub_control()
2880 if (retval) in u132_hub_control()
2885 retval = u132_roothub_status(u132, in u132_hub_control()
2887 if (retval) in u132_hub_control()
2892 retval = u132_roothub_portstatus(u132, in u132_hub_control()
2894 if (retval) in u132_hub_control()
2899 retval = u132_roothub_setportfeature(u132, in u132_hub_control()
2901 if (retval) in u132_hub_control()
2912 retval = -EPIPE; in u132_hub_control()
2916 return retval; in u132_hub_control()
3090 int retval; in u132_probe() local
3099 retval = ftdi_write_pcimem(pdev, intrdisable, OHCI_INTR_MIE); in u132_probe()
3100 if (retval) in u132_probe()
3101 return retval; in u132_probe()
3102 retval = ftdi_read_pcimem(pdev, control, &control); in u132_probe()
3103 if (retval) in u132_probe()
3104 return retval; in u132_probe()
3105 retval = ftdi_read_pcimem(pdev, roothub.a, &rh_a); in u132_probe()
3106 if (retval) in u132_probe()
3107 return retval; in u132_probe()
3120 retval = 0; in u132_probe()
3129 retval = usb_add_hcd(hcd, 0, 0); in u132_probe()
3130 if (retval != 0) { in u132_probe()
3132 retval); in u132_probe()
3134 return retval; in u132_probe()
3161 int retval = 0, ports; in u132_suspend() local
3165 retval = u132_bus_suspend(hcd); in u132_suspend()
3175 return retval; in u132_suspend()
3191 int retval = 0; in u132_resume() local
3197 retval = 0; in u132_resume()
3199 retval = u132_bus_resume(hcd); in u132_resume()
3201 return retval; in u132_resume()
3225 int retval; in u132_hcd_init() local
3234 retval = platform_driver_register(&u132_platform_driver); in u132_hcd_init()
3235 return retval; in u132_hcd_init()