Lines Matching refs:retval
290 int retval; in ipheth_carrier_set() local
292 retval = usb_control_msg(udev, in ipheth_carrier_set()
300 if (retval < 0) { in ipheth_carrier_set()
302 __func__, retval); in ipheth_carrier_set()
303 return retval; in ipheth_carrier_set()
327 int retval; in ipheth_get_macaddr() local
329 retval = usb_control_msg(udev, in ipheth_get_macaddr()
338 if (retval < 0) { in ipheth_get_macaddr()
340 __func__, retval); in ipheth_get_macaddr()
341 } else if (retval < ETH_ALEN) { in ipheth_get_macaddr()
344 __func__, retval); in ipheth_get_macaddr()
345 retval = -EINVAL; in ipheth_get_macaddr()
348 retval = 0; in ipheth_get_macaddr()
351 return retval; in ipheth_get_macaddr()
357 int retval; in ipheth_rx_submit() local
366 retval = usb_submit_urb(dev->rx_urb, mem_flags); in ipheth_rx_submit()
367 if (retval) in ipheth_rx_submit()
369 __func__, retval); in ipheth_rx_submit()
370 return retval; in ipheth_rx_submit()
377 int retval = 0; in ipheth_open() local
381 retval = ipheth_carrier_set(dev); in ipheth_open()
382 if (retval) in ipheth_open()
383 return retval; in ipheth_open()
385 retval = ipheth_rx_submit(dev, GFP_KERNEL); in ipheth_open()
386 if (retval) in ipheth_open()
387 return retval; in ipheth_open()
391 return retval; in ipheth_open()
407 int retval; in ipheth_tx() local
428 retval = usb_submit_urb(dev->tx_urb, GFP_ATOMIC); in ipheth_tx()
429 if (retval) { in ipheth_tx()
431 __func__, retval); in ipheth_tx()
480 int retval; in ipheth_probe() local
498 retval = -ENODEV; in ipheth_probe()
511 retval = -ENODEV; in ipheth_probe()
518 retval = -ENOMEM; in ipheth_probe()
522 retval = ipheth_get_macaddr(dev); in ipheth_probe()
523 if (retval) in ipheth_probe()
528 retval = ipheth_alloc_urbs(dev); in ipheth_probe()
529 if (retval) { in ipheth_probe()
530 dev_err(&intf->dev, "error allocating urbs: %d\n", retval); in ipheth_probe()
539 retval = register_netdev(netdev); in ipheth_probe()
540 if (retval) { in ipheth_probe()
541 dev_err(&intf->dev, "error registering netdev: %d\n", retval); in ipheth_probe()
542 retval = -EIO; in ipheth_probe()
557 return retval; in ipheth_probe()