Lines Matching defs:error
14 #include <linux/errno.h> /* error codes */
386 int error;
394 error = -ENODEV;
396 return error;
400 (error = find_ci(vcc, &vpi, &vci))) {
410 error = atm_init_aal0(vcc);
414 error = atm_init_aal34(vcc);
422 error = atm_init_aal5(vcc);
426 error = -EPROTOTYPE;
428 if (!error)
429 error = adjust_tp(&vcc->qos.txtp, vcc->qos.aal);
430 if (!error)
431 error = adjust_tp(&vcc->qos.rxtp, vcc->qos.aal);
432 if (error)
447 error = dev->ops->open(vcc);
448 if (error)
459 return error;
466 int error;
510 error = __vcc_connect(vcc, dev, vpi, vci);
511 if (error) {
513 return error;
528 int copied, error = -EINVAL;
543 skb = skb_recv_datagram(sk, flags, flags & MSG_DONTWAIT, &error);
545 return error;
553 error = skb_copy_datagram_msg(skb, 0, msg, copied);
554 if (error)
555 return error;
574 int eff, error;
578 error = -ENOTCONN;
582 error = -EISCONN;
589 error = -EPIPE;
594 error = 0;
598 error = -EMSGSIZE;
604 error = 0;
607 error = -EAGAIN;
612 error = -ERESTARTSYS;
618 error = -EPIPE;
625 if (error)
630 error = -ENOMEM;
639 error = -EFAULT;
644 error = vcc->dev->ops->send(vcc, skb);
645 error = error ? error : size;
648 return error;
688 int error;
698 error = adjust_tp(&qos->txtp, qos->aal);
699 if (!error)
700 error = adjust_tp(&qos->rxtp, qos->aal);
701 if (error)
702 return error;
732 int error;
741 error = check_tp(&qos->txtp);
742 if (error)
743 return error;
752 int error;
765 error = check_qos(&qos);
766 if (error)
767 return error;
842 int error;
844 error = proto_register(&vcc_proto, 0);
845 if (error < 0)
847 error = atmpvc_init();
848 if (error < 0) {
849 pr_err("atmpvc_init() failed with %d\n", error);
852 error = atmsvc_init();
853 if (error < 0) {
854 pr_err("atmsvc_init() failed with %d\n", error);
857 error = atm_proc_init();
858 if (error < 0) {
859 pr_err("atm_proc_init() failed with %d\n", error);
862 error = atm_sysfs_init();
863 if (error < 0) {
864 pr_err("atm_sysfs_init() failed with %d\n", error);
868 return error;