Home
last modified time | relevance | path

Searched refs:retval (Results 1 – 25 of 31) sorted by relevance

12

/net/sctp/
Dsm_make_chunk.c216 struct sctp_chunk *retval = NULL; in sctp_make_init() local
319 retval = sctp_make_control(asoc, SCTP_CID_INIT, 0, chunksize, gfp); in sctp_make_init()
320 if (!retval) in sctp_make_init()
323 retval->subh.init_hdr = in sctp_make_init()
324 sctp_addto_chunk(retval, sizeof(init), &init); in sctp_make_init()
325 retval->param_hdr.v = in sctp_make_init()
326 sctp_addto_chunk(retval, addrs_len, addrs.v); in sctp_make_init()
337 sctp_addto_chunk(retval, sizeof(sat), &sat); in sctp_make_init()
338 sctp_addto_chunk(retval, num_types * sizeof(__u16), &types); in sctp_make_init()
341 sctp_addto_chunk(retval, sizeof(ecap_param), &ecap_param); in sctp_make_init()
[all …]
Doutput.c182 enum sctp_xmit retval; in sctp_packet_transmit_chunk() local
187 switch ((retval = (sctp_packet_append_chunk(packet, chunk)))) { in sctp_packet_transmit_chunk()
200 retval = sctp_packet_append_chunk(packet, in sctp_packet_transmit_chunk()
211 return retval; in sctp_packet_transmit_chunk()
219 enum sctp_xmit retval = SCTP_XMIT_OK; in sctp_packet_bundle_auth() local
224 return retval; in sctp_packet_bundle_auth()
230 return retval; in sctp_packet_bundle_auth()
236 return retval; in sctp_packet_bundle_auth()
240 return retval; in sctp_packet_bundle_auth()
245 retval = __sctp_packet_append_chunk(pkt, auth); in sctp_packet_bundle_auth()
[all …]
Dsocket.c293 int retval = 0; in sctp_bind() local
302 retval = sctp_do_bind(sk, (union sctp_addr *)addr, in sctp_bind()
305 retval = -EINVAL; in sctp_bind()
309 return retval; in sctp_bind()
443 int retval = 0; in sctp_send_asconf() local
455 retval = sctp_primitive_ASCONF(net, asoc, chunk); in sctp_send_asconf()
456 if (retval) in sctp_send_asconf()
462 return retval; in sctp_send_asconf()
480 int retval = 0; in sctp_bindx_add() local
496 retval = -EINVAL; in sctp_bindx_add()
[all …]
Dstream_interleave.c29 struct sctp_chunk *retval; in sctp_make_idatafrag_empty() local
38 retval = sctp_make_idata(asoc, flags, sizeof(dp) + len, gfp); in sctp_make_idatafrag_empty()
39 if (!retval) in sctp_make_idatafrag_empty()
42 retval->subh.idata_hdr = sctp_addto_chunk(retval, sizeof(dp), &dp); in sctp_make_idatafrag_empty()
43 memcpy(&retval->sinfo, sinfo, sizeof(struct sctp_sndrcvinfo)); in sctp_make_idatafrag_empty()
45 return retval; in sctp_make_idatafrag_empty()
186 struct sctp_ulpevent *retval; in sctp_intl_retrieve_partial() local
244 retval = sctp_make_reassembled_event(sock_net(ulpq->asoc->base.sk), in sctp_intl_retrieve_partial()
247 if (retval) { in sctp_intl_retrieve_partial()
250 retval->msg_flags |= MSG_EOR; in sctp_intl_retrieve_partial()
[all …]
Dulpqueue.c405 struct sctp_ulpevent *retval = NULL; in sctp_ulpq_retrieve_reassembled() local
489 retval = sctp_make_reassembled_event(sock_net(asoc->base.sk), in sctp_ulpq_retrieve_reassembled()
493 if (retval) in sctp_ulpq_retrieve_reassembled()
498 return retval; in sctp_ulpq_retrieve_reassembled()
500 retval = sctp_make_reassembled_event(sock_net(ulpq->asoc->base.sk), in sctp_ulpq_retrieve_reassembled()
502 if (retval) in sctp_ulpq_retrieve_reassembled()
503 retval->msg_flags |= MSG_EOR; in sctp_ulpq_retrieve_reassembled()
514 struct sctp_ulpevent *retval; in sctp_ulpq_retrieve_partial() local
525 retval = NULL; in sctp_ulpq_retrieve_partial()
566 retval = sctp_make_reassembled_event(sock_net(ulpq->asoc->base.sk), in sctp_ulpq_retrieve_partial()
[all …]
Dstream.c226 int retval = 0; in sctp_send_reconf() local
228 retval = sctp_primitive_RECONF(net, asoc, chunk); in sctp_send_reconf()
229 if (retval) in sctp_send_reconf()
232 return retval; in sctp_send_reconf()
265 int retval = -EINVAL; in sctp_send_reset_streams() local
271 retval = -ENOPROTOOPT; in sctp_send_reset_streams()
276 retval = -EINPROGRESS; in sctp_send_reset_streams()
315 retval = -ENOMEM; in sctp_send_reset_streams()
324 retval = -EAGAIN; in sctp_send_reset_streams()
333 retval = -ENOMEM; in sctp_send_reset_streams()
[all …]
Dbind_addr.c210 union sctp_params retval; in sctp_bind_addrs_to_raw() local
230 retval.v = NULL; in sctp_bind_addrs_to_raw()
234 retval.v = kmalloc(len, gfp); in sctp_bind_addrs_to_raw()
235 if (!retval.v) in sctp_bind_addrs_to_raw()
238 addrparms = retval; in sctp_bind_addrs_to_raw()
250 return retval; in sctp_bind_addrs_to_raw()
263 int retval = 0; in sctp_raw_to_bind_addrs() local
274 retval = -EINVAL; in sctp_raw_to_bind_addrs()
282 retval = sctp_add_bind_addr(bp, &addr, sizeof(addr), in sctp_raw_to_bind_addrs()
284 if (retval) { in sctp_raw_to_bind_addrs()
[all …]
Dendpointola.c244 struct sctp_endpoint *retval = NULL; in sctp_endpoint_is_match() local
250 retval = ep; in sctp_endpoint_is_match()
253 return retval; in sctp_endpoint_is_match()
Dipv6.c676 enum sctp_scope retval; in sctp_v6_scope() local
686 retval = SCTP_SCOPE_LOOPBACK; in sctp_v6_scope()
689 retval = SCTP_SCOPE_LINK; in sctp_v6_scope()
692 retval = SCTP_SCOPE_PRIVATE; in sctp_v6_scope()
695 retval = SCTP_SCOPE_GLOBAL; in sctp_v6_scope()
699 return retval; in sctp_v6_scope()
Dprotocol.c383 enum sctp_scope retval; in sctp_v4_scope() local
387 retval = SCTP_SCOPE_UNUSABLE; in sctp_v4_scope()
389 retval = SCTP_SCOPE_LOOPBACK; in sctp_v4_scope()
391 retval = SCTP_SCOPE_LINK; in sctp_v4_scope()
395 retval = SCTP_SCOPE_PRIVATE; in sctp_v4_scope()
397 retval = SCTP_SCOPE_GLOBAL; in sctp_v4_scope()
400 return retval; in sctp_v4_scope()
Dsm_statefuns.c1452 enum sctp_disposition retval; in sctp_sf_do_unexpected_init() local
1511 retval = SCTP_DISPOSITION_CONSUME; in sctp_sf_do_unexpected_init()
1513 retval = SCTP_DISPOSITION_NOMEM; in sctp_sf_do_unexpected_init()
1554 retval = SCTP_DISPOSITION_CONSUME; in sctp_sf_do_unexpected_init()
1606 retval = SCTP_DISPOSITION_CONSUME; in sctp_sf_do_unexpected_init()
1608 return retval; in sctp_sf_do_unexpected_init()
1611 retval = SCTP_DISPOSITION_NOMEM; in sctp_sf_do_unexpected_init()
1618 return retval; in sctp_sf_do_unexpected_init()
2107 enum sctp_disposition retval; in sctp_sf_do_5_2_4_dupcook() local
2178 retval = sctp_sf_do_dupcook_a(net, ep, asoc, chunk, commands, in sctp_sf_do_5_2_4_dupcook()
[all …]
/net/bpf/
Dtest_run.c18 u32 *retval, u32 *time) in bpf_test_run() argument
44 *retval = BPF_PROG_RUN(prog, ctx); in bpf_test_run()
78 u32 size, u32 retval, u32 duration) in bpf_test_finish() argument
97 if (copy_to_user(&uattr->test.retval, &retval, sizeof(retval))) in bpf_test_finish()
248 u32 retval, duration; in bpf_prog_test_run_skb() local
310 ret = bpf_test_run(prog, skb, repeat, &retval, &duration); in bpf_prog_test_run_skb()
330 ret = bpf_test_finish(kattr, uattr, skb->data, size, retval, duration); in bpf_prog_test_run_skb()
349 u32 retval, duration; in bpf_prog_test_run_xdp() local
368 ret = bpf_test_run(prog, &xdp, repeat, &retval, &duration); in bpf_prog_test_run_xdp()
374 ret = bpf_test_finish(kattr, uattr, xdp.data, size, retval, duration); in bpf_prog_test_run_xdp()
[all …]
/net/appletalk/
Dddp.c343 struct atalk_addr *retval; in atalk_find_primary() local
355 retval = &iface->address; in atalk_find_primary()
361 retval = &fiface->address; in atalk_find_primary()
363 retval = &atalk_interfaces->address; in atalk_find_primary()
365 retval = NULL; in atalk_find_primary()
368 return retval; in atalk_find_primary()
501 int retval = -EINVAL; in atrtr_create() local
545 retval = -ENETUNREACH; in atrtr_create()
555 retval = -ENOBUFS; in atrtr_create()
570 retval = 0; in atrtr_create()
[all …]
Daarp.c483 int hash, retval = -EPROTONOSUPPORT; in aarp_proxy_probe_network() local
500 retval = -ENOMEM; in aarp_proxy_probe_network()
530 retval = -EADDRINUSE; /* return network full */ in aarp_proxy_probe_network()
533 retval = 1; in aarp_proxy_probe_network()
538 return retval; in aarp_proxy_probe_network()
/net/vmw_vsock/
Dvmci_transport_notify_qstate.c20 bool retval; in vmci_transport_notify_waiting_write() local
59 retval = vmci_qpair_consume_free_space(vmci_trans(vsk)->qpair) > in vmci_transport_notify_waiting_write()
62 if (retval) { in vmci_transport_notify_waiting_write()
69 return retval; in vmci_transport_notify_waiting_write()
Dvmci_transport_notify.c20 bool retval; in vmci_transport_notify_waiting_write() local
68 retval = vmci_qpair_consume_free_space(vmci_trans(vsk)->qpair) > in vmci_transport_notify_waiting_write()
71 if (retval) { in vmci_transport_notify_waiting_write()
80 return retval; in vmci_transport_notify_waiting_write()
Daf_vsock.c538 int retval; in __vsock_bind() local
556 retval = __vsock_bind_stream(vsk, addr); in __vsock_bind()
561 retval = __vsock_bind_dgram(vsk, addr); in __vsock_bind()
565 retval = -EINVAL; in __vsock_bind()
569 return retval; in __vsock_bind()
1881 int retval = 0; in vsock_dev_do_ioctl() local
1886 retval = -EFAULT; in vsock_dev_do_ioctl()
1891 retval = -EINVAL; in vsock_dev_do_ioctl()
1894 return retval; in vsock_dev_do_ioctl()
/net/sched/
Dact_mirred.c218 int retval, err = 0; in tcf_mirred_act() local
240 retval = READ_ONCE(m->tcf_action); in tcf_mirred_act()
259 tcf_mirred_can_reinsert(retval); in tcf_mirred_act()
310 retval = TC_ACT_SHOT; in tcf_mirred_act()
314 return retval; in tcf_mirred_act()
Dact_sample.c163 int retval; in tcf_sample_act() local
170 retval = READ_ONCE(s->tcf_action); in tcf_sample_act()
196 return retval; in tcf_sample_act()
Dact_ct.c388 int nh_ofs, err, retval; in tcf_ct_act() local
395 retval = READ_ONCE(c->tcf_action); in tcf_ct_act()
422 retval = TC_ACT_STOLEN; in tcf_ct_act()
480 return retval; in tcf_ct_act()
/net/rds/
Dsend.c895 int retval; in rds_rm_size() local
928 retval = rds_rdma_extra_size(CMSG_DATA(cmsg), iov); in rds_rm_size()
929 if (retval < 0) in rds_rm_size()
930 return retval; in rds_rm_size()
931 size += retval; in rds_rm_size()
/net/core/
Dethtool.c415 bool retval = true; in ethtool_convert_link_mode_to_legacy_u32() local
427 retval = false; in ethtool_convert_link_mode_to_legacy_u32()
431 return retval; in ethtool_convert_link_mode_to_legacy_u32()
443 bool retval = true; in convert_legacy_settings_to_link_ksettings() local
453 retval = false; in convert_legacy_settings_to_link_ksettings()
480 return retval; in convert_legacy_settings_to_link_ksettings()
491 bool retval = true; in convert_link_ksettings_to_legacy_settings() local
500 retval &= ethtool_convert_link_mode_to_legacy_u32( in convert_link_ksettings_to_legacy_settings()
503 retval &= ethtool_convert_link_mode_to_legacy_u32( in convert_link_ksettings_to_legacy_settings()
506 retval &= ethtool_convert_link_mode_to_legacy_u32( in convert_link_ksettings_to_legacy_settings()
[all …]
Dnet-sysfs.c1613 int retval; in netdev_uevent() local
1616 retval = add_uevent_var(env, "INTERFACE=%s", dev->name); in netdev_uevent()
1617 if (retval) in netdev_uevent()
1624 retval = add_uevent_var(env, "IFINDEX=%d", dev->ifindex); in netdev_uevent()
1627 return retval; in netdev_uevent()
/net/atm/
Dmpc.c1338 int i, retval ; in set_mpc_ctrl_addr_rcvd() local
1358 retval = priv->lane2_ops->associate_req(mpc->dev, in set_mpc_ctrl_addr_rcvd()
1361 if (retval == 0) in set_mpc_ctrl_addr_rcvd()
1364 retval = priv->lane2_ops->resolve(mpc->dev, NULL, 1, NULL, NULL); in set_mpc_ctrl_addr_rcvd()
1365 if (retval < 0) in set_mpc_ctrl_addr_rcvd()
/net/openvswitch/
Ddatapath.c879 int retval; in ovs_flow_cmd_build_info() local
886 retval = ovs_flow_cmd_fill_info(flow, dp_ifindex, skb, in ovs_flow_cmd_build_info()
889 if (WARN_ON_ONCE(retval < 0)) { in ovs_flow_cmd_build_info()
891 skb = ERR_PTR(retval); in ovs_flow_cmd_build_info()
1955 int retval; in ovs_vport_cmd_build_info() local
1961 retval = ovs_vport_cmd_fill_info(vport, skb, net, portid, seq, 0, cmd, in ovs_vport_cmd_build_info()
1963 BUG_ON(retval < 0); in ovs_vport_cmd_build_info()

12