Lines Matching refs:retval
216 int retval = -EINVAL; in ipheth_rcvbulk_callback_ncm() local
224 return retval; in ipheth_rcvbulk_callback_ncm()
231 return retval; in ipheth_rcvbulk_callback_ncm()
239 return retval; in ipheth_rcvbulk_callback_ncm()
249 return retval; in ipheth_rcvbulk_callback_ncm()
255 retval = ipheth_consume_skb(buf, len, dev); in ipheth_rcvbulk_callback_ncm()
256 if (retval != 0) in ipheth_rcvbulk_callback_ncm()
257 return retval; in ipheth_rcvbulk_callback_ncm()
268 int retval, status; in ipheth_rcvbulk_callback() local
307 retval = dev->rcvbulk_callback(urb); in ipheth_rcvbulk_callback()
308 if (retval != 0) { in ipheth_rcvbulk_callback()
310 __func__, retval); in ipheth_rcvbulk_callback()
344 int retval; in ipheth_carrier_set() local
350 retval = usb_control_msg(udev, in ipheth_carrier_set()
358 if (retval <= 0) { in ipheth_carrier_set()
360 __func__, retval); in ipheth_carrier_set()
361 return retval; in ipheth_carrier_set()
364 if ((retval == 1 && dev->ctrl_buf[0] == IPHETH_CARRIER_ON) || in ipheth_carrier_set()
365 (retval >= 2 && dev->ctrl_buf[1] == IPHETH_CARRIER_ON)) { in ipheth_carrier_set()
389 int retval; in ipheth_get_macaddr() local
391 retval = usb_control_msg(udev, in ipheth_get_macaddr()
400 if (retval < 0) { in ipheth_get_macaddr()
402 __func__, retval); in ipheth_get_macaddr()
403 } else if (retval < ETH_ALEN) { in ipheth_get_macaddr()
406 __func__, retval); in ipheth_get_macaddr()
407 retval = -EINVAL; in ipheth_get_macaddr()
410 retval = 0; in ipheth_get_macaddr()
413 return retval; in ipheth_get_macaddr()
419 int retval; in ipheth_enable_ncm() local
421 retval = usb_control_msg(udev, in ipheth_enable_ncm()
432 __func__, retval); in ipheth_enable_ncm()
434 return retval; in ipheth_enable_ncm()
440 int retval; in ipheth_rx_submit() local
449 retval = usb_submit_urb(dev->rx_urb, mem_flags); in ipheth_rx_submit()
450 if (retval) in ipheth_rx_submit()
452 __func__, retval); in ipheth_rx_submit()
453 return retval; in ipheth_rx_submit()
460 int retval = 0; in ipheth_open() local
464 retval = ipheth_carrier_set(dev); in ipheth_open()
465 if (retval) in ipheth_open()
466 return retval; in ipheth_open()
468 retval = ipheth_rx_submit(dev, GFP_KERNEL); in ipheth_open()
469 if (retval) in ipheth_open()
470 return retval; in ipheth_open()
473 return retval; in ipheth_open()
489 int retval; in ipheth_tx() local
509 retval = usb_submit_urb(dev->tx_urb, GFP_ATOMIC); in ipheth_tx()
510 if (retval) { in ipheth_tx()
512 __func__, retval); in ipheth_tx()
560 int retval; in ipheth_probe() local
580 retval = -ENODEV; in ipheth_probe()
593 retval = -ENODEV; in ipheth_probe()
600 retval = -ENOMEM; in ipheth_probe()
604 retval = ipheth_get_macaddr(dev); in ipheth_probe()
605 if (retval) in ipheth_probe()
608 retval = ipheth_enable_ncm(dev); in ipheth_probe()
609 if (!retval) { in ipheth_probe()
616 retval = ipheth_alloc_urbs(dev); in ipheth_probe()
617 if (retval) { in ipheth_probe()
618 dev_err(&intf->dev, "error allocating urbs: %d\n", retval); in ipheth_probe()
627 retval = register_netdev(netdev); in ipheth_probe()
628 if (retval) { in ipheth_probe()
629 dev_err(&intf->dev, "error registering netdev: %d\n", retval); in ipheth_probe()
630 retval = -EIO; in ipheth_probe()
647 return retval; in ipheth_probe()