Lines Matching refs:retval
236 int retval = -EINVAL; in ipheth_rcvbulk_callback_ncm() local
243 return retval; in ipheth_rcvbulk_callback_ncm()
271 return retval; in ipheth_rcvbulk_callback_ncm()
276 retval = ipheth_consume_skb(buf, dg_len, dev); in ipheth_rcvbulk_callback_ncm()
277 if (retval != 0) in ipheth_rcvbulk_callback_ncm()
278 return retval; in ipheth_rcvbulk_callback_ncm()
283 return retval; in ipheth_rcvbulk_callback_ncm()
289 int retval, status; in ipheth_rcvbulk_callback() local
328 retval = dev->rcvbulk_callback(urb); in ipheth_rcvbulk_callback()
329 if (retval != 0) { in ipheth_rcvbulk_callback()
331 __func__, retval); in ipheth_rcvbulk_callback()
365 int retval; in ipheth_carrier_set() local
371 retval = usb_control_msg(udev, in ipheth_carrier_set()
379 if (retval <= 0) { in ipheth_carrier_set()
381 __func__, retval); in ipheth_carrier_set()
382 return retval; in ipheth_carrier_set()
385 if ((retval == 1 && dev->ctrl_buf[0] == IPHETH_CARRIER_ON) || in ipheth_carrier_set()
386 (retval >= 2 && dev->ctrl_buf[1] == IPHETH_CARRIER_ON)) { in ipheth_carrier_set()
410 int retval; in ipheth_get_macaddr() local
412 retval = usb_control_msg(udev, in ipheth_get_macaddr()
421 if (retval < 0) { in ipheth_get_macaddr()
423 __func__, retval); in ipheth_get_macaddr()
424 } else if (retval < ETH_ALEN) { in ipheth_get_macaddr()
427 __func__, retval); in ipheth_get_macaddr()
428 retval = -EINVAL; in ipheth_get_macaddr()
431 retval = 0; in ipheth_get_macaddr()
434 return retval; in ipheth_get_macaddr()
440 int retval; in ipheth_enable_ncm() local
442 retval = usb_control_msg(udev, in ipheth_enable_ncm()
453 __func__, retval); in ipheth_enable_ncm()
455 return retval; in ipheth_enable_ncm()
461 int retval; in ipheth_rx_submit() local
470 retval = usb_submit_urb(dev->rx_urb, mem_flags); in ipheth_rx_submit()
471 if (retval) in ipheth_rx_submit()
473 __func__, retval); in ipheth_rx_submit()
474 return retval; in ipheth_rx_submit()
481 int retval = 0; in ipheth_open() local
485 retval = ipheth_carrier_set(dev); in ipheth_open()
486 if (retval) in ipheth_open()
487 return retval; in ipheth_open()
489 retval = ipheth_rx_submit(dev, GFP_KERNEL); in ipheth_open()
490 if (retval) in ipheth_open()
491 return retval; in ipheth_open()
494 return retval; in ipheth_open()
510 int retval; in ipheth_tx() local
530 retval = usb_submit_urb(dev->tx_urb, GFP_ATOMIC); in ipheth_tx()
531 if (retval) { in ipheth_tx()
533 __func__, retval); in ipheth_tx()
581 int retval; in ipheth_probe() local
601 retval = -ENODEV; in ipheth_probe()
614 retval = -ENODEV; in ipheth_probe()
621 retval = -ENOMEM; in ipheth_probe()
625 retval = ipheth_get_macaddr(dev); in ipheth_probe()
626 if (retval) in ipheth_probe()
629 retval = ipheth_enable_ncm(dev); in ipheth_probe()
630 if (!retval) { in ipheth_probe()
637 retval = ipheth_alloc_urbs(dev); in ipheth_probe()
638 if (retval) { in ipheth_probe()
639 dev_err(&intf->dev, "error allocating urbs: %d\n", retval); in ipheth_probe()
648 retval = register_netdev(netdev); in ipheth_probe()
649 if (retval) { in ipheth_probe()
650 dev_err(&intf->dev, "error registering netdev: %d\n", retval); in ipheth_probe()
651 retval = -EIO; in ipheth_probe()
668 return retval; in ipheth_probe()