Home
last modified time | relevance | path

Searched refs:err (Results 1 – 25 of 704) sorted by relevance

12345678910>>...29

/net/sunrpc/auth_gss/
Dgss_rpc_xdr.c98 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/dsa/
Dswitch.c85 int err; in dsa_switch_bridge_join() local
91 err = ds->ops->port_bridge_join(ds, info->dp->index, in dsa_switch_bridge_join()
95 if (err) in dsa_switch_bridge_join()
96 return err; in dsa_switch_bridge_join()
100 err = ds->ops->crosschip_bridge_join(ds, in dsa_switch_bridge_join()
106 if (err) in dsa_switch_bridge_join()
107 return err; in dsa_switch_bridge_join()
165 int err = 0; in dsa_port_do_mdb_add() local
169 err = ds->ops->port_mdb_add(ds, port, mdb, db); in dsa_port_do_mdb_add()
170 trace_dsa_mdb_add_hw(dp, mdb->addr, mdb->vid, &db, err); in dsa_port_do_mdb_add()
[all …]
Dport.c71 int err; in dsa_port_vlan_fast_age() local
76 err = ds->ops->port_vlan_fast_age(ds, dp->index, vid); in dsa_port_vlan_fast_age()
78 if (!err) in dsa_port_vlan_fast_age()
81 return err; in dsa_port_vlan_fast_age()
87 int err, vid; in dsa_port_msti_fast_age() local
89 err = br_mst_get_info(dsa_port_bridge_dev_get(dp), msti, vids); in dsa_port_msti_fast_age()
90 if (err) in dsa_port_msti_fast_age()
91 return err; in dsa_port_msti_fast_age()
94 err = dsa_port_vlan_fast_age(dp, vid); in dsa_port_msti_fast_age()
95 if (err) in dsa_port_msti_fast_age()
[all …]
Ddsa.c322 int err; in dsa_port_setup_routing_table() local
324 of_for_each_phandle(&it, err, dn, "link", NULL, 0) { in dsa_port_setup_routing_table()
469 int err = 0; in dsa_port_setup() local
474 err = dsa_port_devlink_setup(dp); in dsa_port_setup()
475 if (err) in dsa_port_setup()
476 return err; in dsa_port_setup()
484 err = dsa_shared_port_link_register_of(dp); in dsa_port_setup()
485 if (err) in dsa_port_setup()
494 err = dsa_port_enable(dp, NULL); in dsa_port_setup()
495 if (err) in dsa_port_setup()
[all …]
Dslave.c92 int err; in dsa_slave_standalone_event_work() local
96 err = dsa_port_standalone_host_fdb_add(dp, addr, vid); in dsa_slave_standalone_event_work()
97 if (err) { in dsa_slave_standalone_event_work()
100 dp->index, addr, vid, err); in dsa_slave_standalone_event_work()
106 err = dsa_port_standalone_host_fdb_del(dp, addr, vid); in dsa_slave_standalone_event_work()
107 if (err) { in dsa_slave_standalone_event_work()
110 dp->index, addr, vid, err); in dsa_slave_standalone_event_work()
118 err = dsa_port_standalone_host_mdb_add(dp, &mdb); in dsa_slave_standalone_event_work()
119 if (err) { in dsa_slave_standalone_event_work()
122 dp->index, addr, vid, err); in dsa_slave_standalone_event_work()
[all …]
/net/devlink/
Dhealth.c362 int err; in devlink_nl_health_reporter_get_doit() local
372 err = devlink_nl_health_reporter_fill(msg, reporter, in devlink_nl_health_reporter_get_doit()
376 if (err) { in devlink_nl_health_reporter_get_doit()
378 return err; in devlink_nl_health_reporter_get_doit()
398 int err; in devlink_nl_health_reporter_get_dump_one() local
412 err = devlink_nl_health_reporter_fill(msg, reporter, in devlink_nl_health_reporter_get_dump_one()
417 if (err) { in devlink_nl_health_reporter_get_dump_one()
419 return err; in devlink_nl_health_reporter_get_dump_one()
431 err = devlink_nl_health_reporter_fill(msg, reporter, in devlink_nl_health_reporter_get_dump_one()
436 if (err) { in devlink_nl_health_reporter_get_dump_one()
[all …]
Dregion.c76 int err; in devlink_nl_region_snapshot_id_put() local
82 err = nla_put_u32(msg, DEVLINK_ATTR_REGION_SNAPSHOT_ID, snapshot->id); in devlink_nl_region_snapshot_id_put()
83 if (err) in devlink_nl_region_snapshot_id_put()
91 return err; in devlink_nl_region_snapshot_id_put()
100 int err; in devlink_nl_region_snapshots_id_put() local
108 err = devlink_nl_region_snapshot_id_put(msg, devlink, snapshot); in devlink_nl_region_snapshots_id_put()
109 if (err) in devlink_nl_region_snapshots_id_put()
118 return err; in devlink_nl_region_snapshots_id_put()
127 int err; in devlink_nl_region_fill() local
133 err = devlink_nl_put_handle(msg, devlink); in devlink_nl_region_fill()
[all …]
Dsb.c210 int err; in devlink_nl_sb_get_doit() local
220 err = devlink_nl_sb_fill(msg, devlink, devlink_sb, in devlink_nl_sb_get_doit()
223 if (err) { in devlink_nl_sb_get_doit()
225 return err; in devlink_nl_sb_get_doit()
238 int err = 0; in devlink_nl_sb_get_dump_one() local
245 err = devlink_nl_sb_fill(msg, devlink, devlink_sb, in devlink_nl_sb_get_dump_one()
249 if (err) { in devlink_nl_sb_get_dump_one()
256 return err; in devlink_nl_sb_get_dump_one()
271 int err; in devlink_nl_sb_pool_fill() local
273 err = devlink->ops->sb_pool_get(devlink, devlink_sb->index, in devlink_nl_sb_pool_fill()
[all …]
Dport.c66 int err; in devlink_port_fn_roce_fill() local
71 err = devlink_port->ops->port_fn_roce_get(devlink_port, &is_enable, in devlink_port_fn_roce_fill()
73 if (err) { in devlink_port_fn_roce_fill()
74 if (err == -EOPNOTSUPP) in devlink_port_fn_roce_fill()
76 return err; in devlink_port_fn_roce_fill()
88 int err; in devlink_port_fn_migratable_fill() local
94 err = devlink_port->ops->port_fn_migratable_get(devlink_port, in devlink_port_fn_migratable_fill()
96 if (err) { in devlink_port_fn_migratable_fill()
97 if (err == -EOPNOTSUPP) in devlink_port_fn_migratable_fill()
99 return err; in devlink_port_fn_migratable_fill()
[all …]
/net/bridge/
Dbr.c37 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 …]
Dbr_mrp_netlink.c36 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 …]
Dbr_switchdev.c89 int err; in br_switchdev_set_port_flag() local
100 err = call_switchdev_notifiers(SWITCHDEV_PORT_ATTR_SET, p->dev, in br_switchdev_set_port_flag()
102 err = notifier_to_errno(err); in br_switchdev_set_port_flag()
103 if (err == -EOPNOTSUPP) in br_switchdev_set_port_flag()
106 if (err) { in br_switchdev_set_port_flag()
115 err = switchdev_port_attr_set(p->dev, &attr, extack); in br_switchdev_set_port_flag()
116 if (err) { in br_switchdev_set_port_flag()
119 return err; in br_switchdev_set_port_flag()
243 int err; in nbp_switchdev_add() local
268 err = nbp_switchdev_hwdom_set(p); in nbp_switchdev_add()
[all …]
/net/switchdev/
Dswitchdev.c136 int err; in switchdev_port_attr_notify() local
146 err = notifier_to_errno(rc); in switchdev_port_attr_notify()
147 if (err) { in switchdev_port_attr_notify()
149 return err; in switchdev_port_attr_notify()
170 int err; in switchdev_port_attr_set_deferred() local
172 err = switchdev_port_attr_set_now(dev, attr, NULL); in switchdev_port_attr_set_deferred()
173 if (err && err != -EOPNOTSUPP) in switchdev_port_attr_set_deferred()
175 err, attr->id); in switchdev_port_attr_set_deferred()
177 attr->complete(dev, err, attr->complete_priv); in switchdev_port_attr_set_deferred()
229 int err; in switchdev_port_obj_notify() local
[all …]
/net/
Dsocket.c279 int err; in move_addr_to_user() local
283 err = get_user(len, ulen); in move_addr_to_user()
284 if (err) in move_addr_to_user()
285 return err; in move_addr_to_user()
534 struct socket *sockfd_lookup(int fd, int *err) in sockfd_lookup() argument
541 *err = -EBADF; in sockfd_lookup()
547 *err = -ENOTSOCK; in sockfd_lookup()
554 static struct socket *sockfd_lookup_light(int fd, int *err, int *fput_needed) in sockfd_lookup_light() argument
559 *err = -EBADF; in sockfd_lookup_light()
566 *err = -ENOTSOCK; in sockfd_lookup_light()
[all …]
/net/8021q/
Dvlan.c155 int err; in register_vlan_dev() local
157 err = vlan_vid_add(real_dev, vlan->vlan_proto, vlan_id); in register_vlan_dev()
158 if (err) in register_vlan_dev()
159 return err; in register_vlan_dev()
167 err = vlan_gvrp_init_applicant(real_dev); in register_vlan_dev()
168 if (err < 0) in register_vlan_dev()
170 err = vlan_mvrp_init_applicant(real_dev); in register_vlan_dev()
171 if (err < 0) in register_vlan_dev()
175 err = vlan_group_prealloc_vid(grp, vlan->vlan_proto, vlan_id); in register_vlan_dev()
176 if (err < 0) in register_vlan_dev()
[all …]
/net/core/
Drtnetlink.c312 int err; in rtnl_register() local
314 err = rtnl_register_internal(NULL, protocol, msgtype, doit, dumpit, in rtnl_register()
316 if (err) in rtnl_register()
441 int err; in rtnl_link_register() local
449 err = __rtnl_link_register(ops); in rtnl_link_register()
451 return err; in rtnl_link_register()
667 int err; in rtnl_link_slave_info_fill() local
681 err = ops->fill_slave_info(skb, master_dev, dev); in rtnl_link_slave_info_fill()
682 if (err < 0) in rtnl_link_slave_info_fill()
690 return err; in rtnl_link_slave_info_fill()
[all …]
Ddev_addr_lists.c214 int err; in __hw_addr_sync_one() local
216 err = __hw_addr_add_ex(to_list, ha->addr, addr_len, ha->type, in __hw_addr_sync_one()
218 if (err && err != -EEXIST) in __hw_addr_sync_one()
219 return err; in __hw_addr_sync_one()
221 if (!err) { in __hw_addr_sync_one()
234 int err; in __hw_addr_unsync_one() local
236 err = __hw_addr_del_ex(to_list, ha->addr, addr_len, ha->type, in __hw_addr_unsync_one()
238 if (err) in __hw_addr_unsync_one()
249 int err = 0; in __hw_addr_sync_multiple() local
256 err = __hw_addr_sync_one(to_list, ha, addr_len); in __hw_addr_sync_multiple()
[all …]
/net/tipc/
Dcore.c56 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()
84 err = tipc_bcast_init(net); in tipc_init_net()
85 if (err) in tipc_init_net()
88 err = tipc_attach_loopback(net); in tipc_init_net()
[all …]
/net/vmw_vsock/
Dvmci_transport.c196 int err; in __vmci_transport_send_control_pkt() local
200 err = vmci_datagram_send(&pkt->dg); in __vmci_transport_send_control_pkt()
201 if (convert_error && (err < 0)) in __vmci_transport_send_control_pkt()
202 return vmci_transport_error_to_vsock_error(err); in __vmci_transport_send_control_pkt()
204 return err; in __vmci_transport_send_control_pkt()
263 int err; in vmci_transport_alloc_send_control_pkt() local
269 err = __vmci_transport_send_control_pkt(pkt, src, dst, type, size, in vmci_transport_alloc_send_control_pkt()
274 return err; in vmci_transport_alloc_send_control_pkt()
553 int err = 0; in vmci_transport_queue_pair_alloc() local
560 err = vmci_qpair_alloc(qpair, handle, produce_size, in vmci_transport_queue_pair_alloc()
[all …]
Daf_vsock.c851 int err; in vsock_queue_rcv_skb() local
853 err = sock_queue_rcv_skb(sk, skb); in vsock_queue_rcv_skb()
854 if (err) in vsock_queue_rcv_skb()
857 return err; in vsock_queue_rcv_skb()
912 int err; in vsock_bind() local
922 err = __vsock_bind(sk, vm_addr); in vsock_bind()
925 return err; in vsock_bind()
931 int err; in vsock_getname() local
938 err = 0; in vsock_getname()
944 err = -ENOTCONN; in vsock_getname()
[all …]
/net/ipv6/
Daf_inet6.c131 int err; in inet6_create() local
138 err = -ESOCKTNOSUPPORT; in inet6_create()
142 err = 0; in inet6_create()
156 err = -EPROTONOSUPPORT; in inet6_create()
159 if (err) { in inet6_create()
181 err = -EPERM; in inet6_create()
193 err = -ENOBUFS; in inet6_create()
200 err = 0; in inet6_create()
254 err = sk->sk_prot->hash(sk); in inet6_create()
255 if (err) { in inet6_create()
[all …]
/net/bluetooth/
Dl2cap_sock.c88 int len, err = 0; in l2cap_sock_bind() local
116 err = -EBADFD; in l2cap_sock_bind()
124 err = l2cap_validate_bredr_psm(psm); in l2cap_sock_bind()
126 err = l2cap_validate_le_psm(psm); in l2cap_sock_bind()
128 if (err) in l2cap_sock_bind()
136 err = l2cap_add_scid(chan, __le16_to_cpu(la.l2_cid)); in l2cap_sock_bind()
138 err = l2cap_add_psm(chan, &la.l2_bdaddr, la.l2_psm); in l2cap_sock_bind()
140 if (err < 0) in l2cap_sock_bind()
178 return err; in l2cap_sock_bind()
187 int len, err = 0; in l2cap_sock_connect() local
[all …]
Dhci_sync.c98 if (req->err) in hci_cmd_sync_add()
105 req->err = -ENOMEM; in hci_cmd_sync_add()
128 if (req->err) { in hci_cmd_sync_run()
130 return req->err; in hci_cmd_sync_run()
157 int err = 0; in __hci_cmd_sync_sk() local
167 err = hci_cmd_sync_run(&req); in __hci_cmd_sync_sk()
168 if (err < 0) in __hci_cmd_sync_sk()
169 return ERR_PTR(err); in __hci_cmd_sync_sk()
171 err = wait_event_interruptible_timeout(hdev->req_wait_q, in __hci_cmd_sync_sk()
175 if (err == -ERESTARTSYS) in __hci_cmd_sync_sk()
[all …]
/net/xfrm/
Dxfrm_user.c178 int err; in verify_newsa_info() local
180 err = -EINVAL; in verify_newsa_info()
189 err = -EAFNOSUPPORT; in verify_newsa_info()
221 err = -EAFNOSUPPORT; in verify_newsa_info()
230 err = -EINVAL; in verify_newsa_info()
325 if ((err = verify_aead(attrs, extack))) in verify_newsa_info()
327 if ((err = verify_auth_trunc(attrs, extack))) in verify_newsa_info()
329 if ((err = verify_one_alg(attrs, XFRMA_ALG_AUTH, extack))) in verify_newsa_info()
331 if ((err = verify_one_alg(attrs, XFRMA_ALG_CRYPT, extack))) in verify_newsa_info()
333 if ((err = verify_one_alg(attrs, XFRMA_ALG_COMP, extack))) in verify_newsa_info()
[all …]
/net/9p/
Dclient.c96 static int safe_errno(int err) in safe_errno() argument
98 if (err > 0 || err < -MAX_ERRNO) { in safe_errno()
99 p9_debug(P9_DEBUG_ERROR, "Invalid error code %d\n", err); in safe_errno()
102 return err; in safe_errno()
477 int err; in p9_parse_header() local
481 err = p9pdu_readf(pdu, 0, "dbw", &r_size, &r_type, &r_tag); in p9_parse_header()
482 if (err) in p9_parse_header()
493 err = -EINVAL; in p9_parse_header()
506 return err; in p9_parse_header()
524 int err; in p9_check_errors() local
[all …]

12345678910>>...29