Lines Matching defs:rval

248 	int i, rval, found;
255 rval = usb_search_dev_usb(&new_devices);
256 if (rval != 0) {
258 return (usb_error(rval));
328 int i, rval;
364 if ((rval = usb_open_ep0(hdl)) != 0) {
365 usb_dprintf(DEBUG_ERRORS, "usb_open_ep0 failed: %d\n", rval);
446 int rval;
462 rval = usb_send_msg(info->ep_fd[0], info->ep_status_fd[0],
466 if (rval < 8) {
468 "error sending control message: %d", rval);
470 return ((rval >= 0) ?
471 usb_error(EIO) : usb_error(-rval));
474 rval -= 8; /* substract setup length */
481 additional = rval;
503 int sent, rval;
517 if ((rval = usb_check_device_and_status_open(dev, ep,
522 return (usb_error(rval));
545 int ep_index, received, rval;
561 if ((rval = usb_check_device_and_status_open(dev, ep,
566 return (usb_error(rval));
590 int sent, rval;
604 if ((rval = usb_check_device_and_status_open(dev, ep,
609 return (usb_error(rval));
633 int ep_index, received, rval;
649 if ((rval = usb_check_device_and_status_open(dev, ep,
654 return (usb_error(rval));
978 int rval;
1003 if (ep && ((rval = usb_check_access(dev) != 0))) {
1005 return (usb_error(rval));
1008 rval = usb_control_msg(dev,
1012 if (rval < 0) {
1016 return (rval);
1172 int rval;
1183 if ((rval = usb_check_access(dev)) != 0) {
1185 return (usb_error(rval));
1204 int rval;
1224 rval = usb_do_io(fd, stat_fd, (char *)&req,
1237 rval = usb_do_io(fd, stat_fd, buffer,
1241 usb_dprintf(DEBUG_FUNCTIONS, "usb_send_msg(): rval=%d\n", rval);
1243 return (rval);
1383 int fd, fdstat, index, rval;
1391 if ((rval = usb_check_access(dev)) != 0) {
1393 return (rval);
1680 int rval, len;
1691 rval = usb_control_msg((usb_dev_handle *)hdl,
1696 usb_dprintf(DEBUG_DETAILED, "dev descr rval=%d\n", rval);
1698 if (rval != USB_DEV_DESCR_SIZE) {
1704 rval = (int)usb_parse_dev_descr((uchar_t *)buffer, sizeof (buffer),
1708 usb_dprintf(DEBUG_DETAILED, "parse dev descr rval=%d\n", rval);
1710 if (rval != (int)sizeof (struct usb_device_descriptor)) {
1727 if ((rval = usb_parse_config(hdl, index)) != 0) {
1729 return (rval);
1768 int rval;
1778 rval = usb_control_msg((usb_dev_handle *)hdl,
1783 usb_dprintf(DEBUG_DETAILED, "config descr rval=%d expecting %d\n",
1784 rval, USB_CFG_DESCR_SIZE);
1786 if (rval < USB_CFG_DESCR_SIZE) {
1791 rval = (int)usb_parse_cfg_descr((uchar_t *)buffer, sizeof (buffer),
1795 usb_dprintf(DEBUG_DETAILED, "config descr rval=%d expecting %d\n",
1796 rval, sizeof (usb_cfg_descr_t));
1798 if (rval < USB_CFG_DESCR_SIZE) {
1818 rval = usb_control_msg((usb_dev_handle *)hdl,
1824 if (rval != hdl->device->config[index].wTotalLength) {
1831 rval = (int)usb_parse_cfg_descr((uchar_t *)cloud,
1866 rval = usb_parse_interface(hdl, index, iface, cloud);
1867 if (rval != 0) {
1870 return (rval);
1913 int rval;
1923 rval = (int)usb_parse_if_descr((uchar_t *)cloud,
1929 "alt %d: rval=%d expecting %d\n",
1930 alt, rval, sizeof (if_descr));
1932 if (rval != (int)sizeof (if_descr)) {
1952 rval = usb_parse_alternate(hdl, index, iface, alt, cloud);
1953 if (rval != 0) {
1955 return (rval);
1998 int rval;
2005 rval = (int)usb_parse_if_descr((uchar_t *)cloud,
2009 if (rval != (int)sizeof (if_descr)) {
2010 usb_dprintf(DEBUG_ERRORS, "usb_parse_alternate: rval=%d\n",
2011 rval);
2066 rval = usb_parse_endpoint(hdl, index, iface, alt, ep, cloud);
2068 if (rval != 0) {
2070 return (rval);
2122 int rval;
2130 rval = (int)usb_parse_ep_descr((uchar_t *)cloud,
2135 if (rval < USB_EP_DESCR_SIZE) {
2136 usb_dprintf(DEBUG_ERRORS, "usb_parse_endpoint: rval=%d, "
2137 "expecting %d\n", rval, USB_EP_DESCR_SIZE);
2139 return (rval);
2762 size_t rval;
2770 rval = usb_parse_data("ccsccccc",
2775 return (rval);
2790 size_t rval;
2802 rval = usb_parse_data("ccccccccc",
2810 return (rval);
2838 size_t rval;
2857 rval = usb_parse_data("ccccsccc", buf,
2863 return (rval);