/net/sunrpc/auth_gss/ |
D | gss_rpc_xdr.c | 98 int err; in gssx_enc_option() local 100 err = gssx_enc_buffer(xdr, &opt->option); in gssx_enc_option() 101 if (err) in gssx_enc_option() 102 return err; in gssx_enc_option() 103 err = gssx_enc_buffer(xdr, &opt->value); in gssx_enc_option() 104 return err; in gssx_enc_option() 110 int err; in gssx_dec_option() local 112 err = gssx_dec_buffer(xdr, &opt->option); in gssx_dec_option() 113 if (err) in gssx_dec_option() 114 return err; in gssx_dec_option() [all …]
|
/net/switchdev/ |
D | switchdev.c | 106 int err; in switchdev_port_attr_notify() local 117 err = notifier_to_errno(rc); in switchdev_port_attr_notify() 118 if (err) { in switchdev_port_attr_notify() 120 return err; in switchdev_port_attr_notify() 133 int err; in switchdev_port_attr_set_now() local 143 err = switchdev_port_attr_notify(SWITCHDEV_PORT_ATTR_SET, dev, attr, in switchdev_port_attr_set_now() 145 if (err) in switchdev_port_attr_set_now() 146 return err; in switchdev_port_attr_set_now() 154 err = switchdev_port_attr_notify(SWITCHDEV_PORT_ATTR_SET, dev, attr, in switchdev_port_attr_set_now() 156 WARN(err, "%s: Commit of attribute (id=%d) failed.\n", in switchdev_port_attr_set_now() [all …]
|
/net/ |
D | socket.c | 223 int err; in move_addr_to_user() local 227 err = get_user(len, ulen); in move_addr_to_user() 228 if (err) in move_addr_to_user() 229 return err; in move_addr_to_user() 454 struct socket *sock_from_file(struct file *file, int *err) in sock_from_file() argument 459 *err = -ENOTSOCK; in sock_from_file() 477 struct socket *sockfd_lookup(int fd, int *err) in sockfd_lookup() argument 484 *err = -EBADF; in sockfd_lookup() 488 sock = sock_from_file(file, err); in sockfd_lookup() 495 static struct socket *sockfd_lookup_light(int fd, int *err, int *fput_needed) in sockfd_lookup_light() argument [all …]
|
/net/bridge/ |
D | br_mrp_switchdev.c | 17 int err; in br_mrp_switchdev_add() local 19 err = switchdev_port_obj_add(br->dev, &mrp_obj.obj, NULL); in br_mrp_switchdev_add() 21 if (err && err != -EOPNOTSUPP) in br_mrp_switchdev_add() 22 return err; in br_mrp_switchdev_add() 36 int err; in br_mrp_switchdev_del() local 38 err = switchdev_port_obj_del(br->dev, &mrp_obj.obj); in br_mrp_switchdev_del() 40 if (err && err != -EOPNOTSUPP) in br_mrp_switchdev_del() 41 return err; in br_mrp_switchdev_del() 56 int err; in br_mrp_switchdev_set_ring_role() local 59 err = switchdev_port_obj_del(br->dev, &mrp_role.obj); in br_mrp_switchdev_set_ring_role() [all …]
|
D | br_mrp_netlink.c | 36 int err; in br_mrp_instance_parse() local 38 err = nla_parse_nested(tb, IFLA_BRIDGE_MRP_INSTANCE_MAX, attr, in br_mrp_instance_parse() 40 if (err) in br_mrp_instance_parse() 41 return err; in br_mrp_instance_parse() 81 int err; in br_mrp_port_state_parse() local 83 err = nla_parse_nested(tb, IFLA_BRIDGE_MRP_PORT_STATE_MAX, attr, in br_mrp_port_state_parse() 85 if (err) in br_mrp_port_state_parse() 86 return err; in br_mrp_port_state_parse() 110 int err; in br_mrp_port_role_parse() local 112 err = nla_parse_nested(tb, IFLA_BRIDGE_MRP_PORT_ROLE_MAX, attr, in br_mrp_port_role_parse() [all …]
|
D | br.c | 37 int err; in br_device_event() local 40 err = br_vlan_bridge_event(dev, event, ptr); in br_device_event() 41 if (err) in br_device_event() 42 return notifier_from_errno(err); in br_device_event() 46 err = br_sysfs_addbr(dev); in br_device_event() 47 if (err) in br_device_event() 48 return notifier_from_errno(err); in br_device_event() 70 err = dev_pre_changeaddr_notify(br->dev, in br_device_event() 73 if (err) in br_device_event() 74 return notifier_from_errno(err); in br_device_event() [all …]
|
D | br_netlink.c | 294 int err = 0; in br_fill_ifvlaninfo_compressed() local 318 err = br_fill_ifvlaninfo_range(skb, vid_range_start, in br_fill_ifvlaninfo_compressed() 321 if (err) in br_fill_ifvlaninfo_compressed() 322 return err; in br_fill_ifvlaninfo_compressed() 333 err = br_fill_ifvlaninfo_range(skb, vid_range_start, in br_fill_ifvlaninfo_compressed() 336 if (err) in br_fill_ifvlaninfo_compressed() 337 return err; in br_fill_ifvlaninfo_compressed() 440 int err; in br_fill_ifinfo() local 454 err = br_fill_ifvlaninfo_compressed(skb, vg); in br_fill_ifinfo() 456 err = br_fill_ifvlaninfo(skb, vg); in br_fill_ifinfo() [all …]
|
/net/core/ |
D | dev_addr_lists.c | 137 int err; in __hw_addr_sync_one() local 139 err = __hw_addr_add_ex(to_list, ha->addr, addr_len, ha->type, in __hw_addr_sync_one() 141 if (err && err != -EEXIST) in __hw_addr_sync_one() 142 return err; in __hw_addr_sync_one() 144 if (!err) { in __hw_addr_sync_one() 157 int err; in __hw_addr_unsync_one() local 159 err = __hw_addr_del_ex(to_list, ha->addr, addr_len, ha->type, in __hw_addr_unsync_one() 161 if (err) in __hw_addr_unsync_one() 172 int err = 0; in __hw_addr_sync_multiple() local 179 err = __hw_addr_sync_one(to_list, ha, addr_len); in __hw_addr_sync_multiple() [all …]
|
D | rtnetlink.c | 271 int err; in rtnl_register() local 273 err = rtnl_register_internal(NULL, protocol, msgtype, doit, dumpit, in rtnl_register() 275 if (err) in rtnl_register() 398 int err; in rtnl_link_register() local 406 err = __rtnl_link_register(ops); in rtnl_link_register() 408 return err; in rtnl_link_register() 622 int err; in rtnl_link_slave_info_fill() local 636 err = ops->fill_slave_info(skb, master_dev, dev); in rtnl_link_slave_info_fill() 637 if (err < 0) in rtnl_link_slave_info_fill() 645 return err; in rtnl_link_slave_info_fill() [all …]
|
D | devlink.c | 420 int err; in devlink_nl_pre_doit() local 434 err = PTR_ERR(devlink_port); in devlink_nl_pre_doit() 449 return err; in devlink_nl_pre_doit() 642 int err; in devlink_notify() local 650 err = devlink_nl_fill(msg, devlink, cmd, 0, 0, 0); in devlink_notify() 651 if (err) { in devlink_notify() 722 int err = 0; in devlink_nl_port_function_attrs_put() local 733 err = ops->port_function_hw_addr_get(devlink, port, hw_addr, &hw_addr_len, extack); in devlink_nl_port_function_attrs_put() 734 if (err == -EOPNOTSUPP) { in devlink_nl_port_function_attrs_put() 738 err = 0; in devlink_nl_port_function_attrs_put() [all …]
|
/net/9p/ |
D | client.c | 94 static int safe_errno(int err) in safe_errno() argument 96 if ((err > 0) || (err < -MAX_ERRNO)) { in safe_errno() 97 p9_debug(P9_DEBUG_ERROR, "Invalid error code %d\n", err); in safe_errno() 100 return err; in safe_errno() 453 int err; in p9_parse_header() local 457 err = p9pdu_readf(pdu, 0, "dbw", &r_size, &r_type, &r_tag); in p9_parse_header() 458 if (err) in p9_parse_header() 469 err = -EINVAL; in p9_parse_header() 482 return err; in p9_parse_header() 500 int err; in p9_check_errors() local [all …]
|
/net/8021q/ |
D | vlan.c | 152 int err; in register_vlan_dev() local 154 err = vlan_vid_add(real_dev, vlan->vlan_proto, vlan_id); in register_vlan_dev() 155 if (err) in register_vlan_dev() 156 return err; in register_vlan_dev() 164 err = vlan_gvrp_init_applicant(real_dev); in register_vlan_dev() 165 if (err < 0) in register_vlan_dev() 167 err = vlan_mvrp_init_applicant(real_dev); in register_vlan_dev() 168 if (err < 0) in register_vlan_dev() 172 err = vlan_group_prealloc_vid(grp, vlan->vlan_proto, vlan_id); in register_vlan_dev() 173 if (err < 0) in register_vlan_dev() [all …]
|
/net/bluetooth/ |
D | ecdh_helper.c | 30 int err; member 33 static void ecdh_complete(struct crypto_async_request *req, int err) in ecdh_complete() argument 37 if (err == -EINPROGRESS) in ecdh_complete() 40 res->err = err; in ecdh_complete() 67 int err; in compute_ecdh_secret() local 75 err = -ENOMEM; in compute_ecdh_secret() 90 err = crypto_kpp_compute_shared_secret(req); in compute_ecdh_secret() 91 if (err == -EINPROGRESS) { in compute_ecdh_secret() 93 err = result.err; in compute_ecdh_secret() 95 if (err < 0) { in compute_ecdh_secret() [all …]
|
D | l2cap_sock.c | 87 int len, err = 0; in l2cap_sock_bind() local 115 err = -EBADFD; in l2cap_sock_bind() 123 err = l2cap_validate_bredr_psm(psm); in l2cap_sock_bind() 125 err = l2cap_validate_le_psm(psm); in l2cap_sock_bind() 127 if (err) in l2cap_sock_bind() 135 err = l2cap_add_scid(chan, __le16_to_cpu(la.l2_cid)); in l2cap_sock_bind() 137 err = l2cap_add_psm(chan, &la.l2_bdaddr, la.l2_psm); in l2cap_sock_bind() 139 if (err < 0) in l2cap_sock_bind() 177 return err; in l2cap_sock_bind() 201 int len, err = 0; in l2cap_sock_connect() local [all …]
|
/net/tipc/ |
D | core.c | 56 int err; in tipc_init_net() local 72 err = tipc_crypto_start(&tn->crypto_tx, net, NULL); in tipc_init_net() 73 if (err) in tipc_init_net() 76 err = tipc_sk_rht_init(net); in tipc_init_net() 77 if (err) in tipc_init_net() 80 err = tipc_nametbl_init(net); in tipc_init_net() 81 if (err) in tipc_init_net() 86 err = tipc_bcast_init(net); in tipc_init_net() 87 if (err) in tipc_init_net() 90 err = tipc_attach_loopback(net); in tipc_init_net() [all …]
|
/net/ipv6/ |
D | af_inet6.c | 127 int err; in inet6_create() local 134 err = -ESOCKTNOSUPPORT; in inet6_create() 138 err = 0; in inet6_create() 152 err = -EPROTONOSUPPORT; in inet6_create() 155 if (err) { in inet6_create() 177 err = -EPERM; in inet6_create() 189 err = -ENOBUFS; in inet6_create() 196 err = 0; in inet6_create() 259 err = sk->sk_prot->hash(sk); in inet6_create() 260 if (err) { in inet6_create() [all …]
|
D | seg6_iptunnel.c | 131 int hdrlen, tot_len, err; in seg6_do_srh_encap() local 137 err = skb_cow_head(skb, tot_len + skb->mac_len); in seg6_do_srh_encap() 138 if (unlikely(err)) in seg6_do_srh_encap() 139 return err; in seg6_do_srh_encap() 185 err = seg6_push_hmac(net, &hdr->saddr, isrh); in seg6_do_srh_encap() 186 if (unlikely(err)) in seg6_do_srh_encap() 187 return err; in seg6_do_srh_encap() 204 int hdrlen, err; in seg6_do_srh_inline() local 208 err = skb_cow_head(skb, hdrlen + skb->mac_len); in seg6_do_srh_inline() 209 if (unlikely(err)) in seg6_do_srh_inline() [all …]
|
/net/dsa/ |
D | dsa2.c | 179 int err; in dsa_port_setup_routing_table() local 181 of_for_each_phandle(&it, err, dn, "link", NULL, 0) { in dsa_port_setup_routing_table() 257 int err = 0; in dsa_port_setup() local 267 err = dsa_port_link_register_of(dp); in dsa_port_setup() 268 if (err) in dsa_port_setup() 272 err = dsa_port_enable(dp, NULL); in dsa_port_setup() 273 if (err) in dsa_port_setup() 279 err = dsa_port_link_register_of(dp); in dsa_port_setup() 280 if (err) in dsa_port_setup() 284 err = dsa_port_enable(dp, NULL); in dsa_port_setup() [all …]
|
D | port.c | 19 int err = 0; in dsa_broadcast() local 24 err = raw_notifier_call_chain(nh, e, v); in dsa_broadcast() 25 err = notifier_to_errno(err); in dsa_broadcast() 26 if (err) in dsa_broadcast() 30 return err; in dsa_broadcast() 36 int err; in dsa_port_notify() local 38 err = raw_notifier_call_chain(nh, e, v); in dsa_port_notify() 40 return notifier_to_errno(err); in dsa_port_notify() 76 int err; in dsa_port_set_state_now() local 78 err = dsa_port_set_state(dp, state, NULL); in dsa_port_set_state_now() [all …]
|
/net/xfrm/ |
D | xfrm_user.c | 151 int err; in verify_newsa_info() local 153 err = -EINVAL; in verify_newsa_info() 162 err = -EAFNOSUPPORT; in verify_newsa_info() 187 err = -EAFNOSUPPORT; in verify_newsa_info() 195 err = -EINVAL; in verify_newsa_info() 256 if ((err = verify_aead(attrs))) in verify_newsa_info() 258 if ((err = verify_auth_trunc(attrs))) in verify_newsa_info() 260 if ((err = verify_one_alg(attrs, XFRMA_ALG_AUTH))) in verify_newsa_info() 262 if ((err = verify_one_alg(attrs, XFRMA_ALG_CRYPT))) in verify_newsa_info() 264 if ((err = verify_one_alg(attrs, XFRMA_ALG_COMP))) in verify_newsa_info() [all …]
|
/net/vmw_vsock/ |
D | vmci_transport.c | 194 int err; in __vmci_transport_send_control_pkt() local 198 err = vmci_datagram_send(&pkt->dg); in __vmci_transport_send_control_pkt() 199 if (convert_error && (err < 0)) in __vmci_transport_send_control_pkt() 200 return vmci_transport_error_to_vsock_error(err); in __vmci_transport_send_control_pkt() 202 return err; in __vmci_transport_send_control_pkt() 261 int err; in vmci_transport_alloc_send_control_pkt() local 267 err = __vmci_transport_send_control_pkt(pkt, src, dst, type, size, in vmci_transport_alloc_send_control_pkt() 272 return err; in vmci_transport_alloc_send_control_pkt() 551 int err = 0; in vmci_transport_queue_pair_alloc() local 558 err = vmci_qpair_alloc(qpair, handle, produce_size, in vmci_transport_queue_pair_alloc() [all …]
|
D | af_vsock.c | 808 int err; in vsock_queue_rcv_skb() local 810 err = sock_queue_rcv_skb(sk, skb); in vsock_queue_rcv_skb() 811 if (err) in vsock_queue_rcv_skb() 814 return err; in vsock_queue_rcv_skb() 848 int err; in vsock_bind() local 858 err = __vsock_bind(sk, vm_addr); in vsock_bind() 861 return err; in vsock_bind() 867 int err; in vsock_getname() local 874 err = 0; in vsock_getname() 880 err = -ENOTCONN; in vsock_getname() [all …]
|
/net/bluetooth/hidp/ |
D | sock.c | 57 int err; in do_hidp_sock_ioctl() local 69 csock = sockfd_lookup(ca.ctrl_sock, &err); in do_hidp_sock_ioctl() 71 return err; in do_hidp_sock_ioctl() 73 isock = sockfd_lookup(ca.intr_sock, &err); in do_hidp_sock_ioctl() 76 return err; in do_hidp_sock_ioctl() 80 err = hidp_connection_add(&ca, csock, isock); in do_hidp_sock_ioctl() 81 if (!err && copy_to_user(argp, &ca, sizeof(ca))) in do_hidp_sock_ioctl() 82 err = -EFAULT; in do_hidp_sock_ioctl() 87 return err; in do_hidp_sock_ioctl() 105 err = hidp_get_connlist(&cl); in do_hidp_sock_ioctl() [all …]
|
/net/netfilter/ |
D | nft_bitwise.c | 106 int err; in nft_bitwise_init_bool() local 115 err = nft_data_init(NULL, &priv->mask, &mask, tb[NFTA_BITWISE_MASK]); in nft_bitwise_init_bool() 116 if (err < 0) in nft_bitwise_init_bool() 117 return err; in nft_bitwise_init_bool() 119 err = nft_data_init(NULL, &priv->xor, &xor, tb[NFTA_BITWISE_XOR]); in nft_bitwise_init_bool() 120 if (err < 0) in nft_bitwise_init_bool() 128 return err; in nft_bitwise_init_bool() 139 int err; in nft_bitwise_init_shift() local 148 err = nft_data_init(NULL, &priv->data, &desc, tb[NFTA_BITWISE_DATA]); in nft_bitwise_init_shift() 149 if (err < 0) in nft_bitwise_init_shift() [all …]
|
/net/openvswitch/ |
D | datapath.c | 283 int err; in ovs_dp_upcall() local 286 err = -ENOTCONN; in ovs_dp_upcall() 287 goto err; in ovs_dp_upcall() 291 err = queue_userspace_packet(dp, skb, key, upcall_info, cutlen); in ovs_dp_upcall() 293 err = queue_gso_packets(dp, skb, key, upcall_info, cutlen); in ovs_dp_upcall() 294 if (err) in ovs_dp_upcall() 295 goto err; in ovs_dp_upcall() 299 err: in ovs_dp_upcall() 306 return err; in ovs_dp_upcall() 317 int err; in queue_gso_packets() local [all …]
|