/net/sctp/ |
D | sm_make_chunk.c | 216 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 …]
|
D | output.c | 183 enum sctp_xmit retval; in sctp_packet_transmit_chunk() local 188 switch ((retval = (sctp_packet_append_chunk(packet, chunk)))) { in sctp_packet_transmit_chunk() 201 retval = sctp_packet_append_chunk(packet, in sctp_packet_transmit_chunk() 212 return retval; in sctp_packet_transmit_chunk() 244 enum sctp_xmit retval = SCTP_XMIT_OK; in sctp_packet_bundle_auth() local 249 return retval; in sctp_packet_bundle_auth() 255 return retval; in sctp_packet_bundle_auth() 261 return retval; in sctp_packet_bundle_auth() 265 return retval; in sctp_packet_bundle_auth() 270 retval = __sctp_packet_append_chunk(pkt, auth); in sctp_packet_bundle_auth() [all …]
|
D | socket.c | 308 int retval = 0; in sctp_bind() local 317 retval = sctp_do_bind(sk, (union sctp_addr *)addr, in sctp_bind() 320 retval = -EINVAL; in sctp_bind() 324 return retval; in sctp_bind() 471 int retval = 0; in sctp_send_asconf() local 483 retval = sctp_primitive_ASCONF(asoc->base.net, asoc, chunk); in sctp_send_asconf() 484 if (retval) in sctp_send_asconf() 490 return retval; in sctp_send_asconf() 508 int retval = 0; in sctp_bindx_add() local 524 retval = -EINVAL; in sctp_bindx_add() [all …]
|
D | stream_interleave.c | 29 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(ulpq->asoc->base.net, &ulpq->reasm, in sctp_intl_retrieve_partial() 246 if (retval) { in sctp_intl_retrieve_partial() 249 retval->msg_flags |= MSG_EOR; in sctp_intl_retrieve_partial() [all …]
|
D | ulpqueue.c | 405 struct sctp_ulpevent *retval = NULL; in sctp_ulpq_retrieve_reassembled() local 489 retval = sctp_make_reassembled_event(asoc->base.net, in sctp_ulpq_retrieve_reassembled() 492 if (retval) in sctp_ulpq_retrieve_reassembled() 497 return retval; in sctp_ulpq_retrieve_reassembled() 499 retval = sctp_make_reassembled_event(ulpq->asoc->base.net, in sctp_ulpq_retrieve_reassembled() 501 if (retval) in sctp_ulpq_retrieve_reassembled() 502 retval->msg_flags |= MSG_EOR; in sctp_ulpq_retrieve_reassembled() 513 struct sctp_ulpevent *retval; in sctp_ulpq_retrieve_partial() local 524 retval = NULL; in sctp_ulpq_retrieve_partial() 565 retval = sctp_make_reassembled_event(ulpq->asoc->base.net, &ulpq->reasm, in sctp_ulpq_retrieve_partial() [all …]
|
D | stream.c | 232 int retval = 0; in sctp_send_reconf() local 234 retval = sctp_primitive_RECONF(asoc->base.net, asoc, chunk); in sctp_send_reconf() 235 if (retval) in sctp_send_reconf() 238 return retval; in sctp_send_reconf() 271 int retval = -EINVAL; in sctp_send_reset_streams() local 277 retval = -ENOPROTOOPT; in sctp_send_reset_streams() 282 retval = -EINPROGRESS; in sctp_send_reset_streams() 321 retval = -ENOMEM; in sctp_send_reset_streams() 330 retval = -EAGAIN; in sctp_send_reset_streams() 339 retval = -ENOMEM; in sctp_send_reset_streams() [all …]
|
D | bind_addr.c | 216 union sctp_params retval; in sctp_bind_addrs_to_raw() local 236 retval.v = NULL; in sctp_bind_addrs_to_raw() 240 retval.v = kmalloc(len, gfp); in sctp_bind_addrs_to_raw() 241 if (!retval.v) in sctp_bind_addrs_to_raw() 244 addrparms = retval; in sctp_bind_addrs_to_raw() 256 return retval; in sctp_bind_addrs_to_raw() 269 int retval = 0; in sctp_raw_to_bind_addrs() local 281 retval = -EINVAL; in sctp_raw_to_bind_addrs() 287 retval = sctp_add_bind_addr(bp, &addr, sizeof(addr), in sctp_raw_to_bind_addrs() 289 if (retval) in sctp_raw_to_bind_addrs() [all …]
|
D | endpointola.c | 251 struct sctp_endpoint *retval = NULL; in sctp_endpoint_is_match() local 257 retval = ep; in sctp_endpoint_is_match() 260 return retval; in sctp_endpoint_is_match()
|
D | ipv6.c | 737 enum sctp_scope retval; in sctp_v6_scope() local 747 retval = SCTP_SCOPE_LOOPBACK; in sctp_v6_scope() 750 retval = SCTP_SCOPE_LINK; in sctp_v6_scope() 753 retval = SCTP_SCOPE_PRIVATE; in sctp_v6_scope() 756 retval = SCTP_SCOPE_GLOBAL; in sctp_v6_scope() 760 return retval; in sctp_v6_scope()
|
D | protocol.c | 390 enum sctp_scope retval; in sctp_v4_scope() local 394 retval = SCTP_SCOPE_UNUSABLE; in sctp_v4_scope() 396 retval = SCTP_SCOPE_LOOPBACK; in sctp_v4_scope() 398 retval = SCTP_SCOPE_LINK; in sctp_v4_scope() 403 retval = SCTP_SCOPE_PRIVATE; in sctp_v4_scope() 405 retval = SCTP_SCOPE_GLOBAL; in sctp_v4_scope() 408 return retval; in sctp_v4_scope()
|
D | sm_statefuns.c | 1516 enum sctp_disposition retval; in sctp_sf_do_unexpected_init() local 1575 retval = SCTP_DISPOSITION_CONSUME; in sctp_sf_do_unexpected_init() 1577 retval = SCTP_DISPOSITION_NOMEM; in sctp_sf_do_unexpected_init() 1618 retval = SCTP_DISPOSITION_CONSUME; in sctp_sf_do_unexpected_init() 1670 retval = SCTP_DISPOSITION_CONSUME; in sctp_sf_do_unexpected_init() 1672 return retval; in sctp_sf_do_unexpected_init() 1675 retval = SCTP_DISPOSITION_NOMEM; in sctp_sf_do_unexpected_init() 1682 return retval; in sctp_sf_do_unexpected_init() 2201 enum sctp_disposition retval; in sctp_sf_do_5_2_4_dupcook() local 2274 retval = sctp_sf_do_dupcook_a(net, ep, asoc, chunk, commands, in sctp_sf_do_5_2_4_dupcook() [all …]
|
/net/bpf/ |
D | test_run.c | 90 u32 *retval, u32 *time, bool xdp) in bpf_test_run() argument 117 *retval = bpf_prog_run_xdp(prog, ctx); in bpf_test_run() 119 *retval = bpf_prog_run(prog, ctx); in bpf_test_run() 132 u32 size, u32 retval, u32 duration) in bpf_test_finish() argument 151 if (copy_to_user(&uattr->test.retval, &retval, sizeof(retval))) in bpf_test_finish() 282 u32 retval = 0; in bpf_prog_test_run_tracing() local 309 retval = ((u32)side_effect << 16) | ret; in bpf_prog_test_run_tracing() 310 if (copy_to_user(&uattr->test.retval, &retval, sizeof(retval))) in bpf_prog_test_run_tracing() 322 u32 retval; member 331 info->retval = bpf_prog_run(info->prog, info->ctx); in __bpf_prog_test_run_raw_tp() [all …]
|
/net/appletalk/ |
D | ddp.c | 344 struct atalk_addr *retval; in atalk_find_primary() local 356 retval = &iface->address; in atalk_find_primary() 362 retval = &fiface->address; in atalk_find_primary() 364 retval = &atalk_interfaces->address; in atalk_find_primary() 366 retval = NULL; in atalk_find_primary() 369 return retval; in atalk_find_primary() 502 int retval = -EINVAL; in atrtr_create() local 546 retval = -ENETUNREACH; in atrtr_create() 556 retval = -ENOBUFS; in atrtr_create() 571 retval = 0; in atrtr_create() [all …]
|
D | aarp.c | 483 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/ |
D | vmci_transport_notify_qstate.c | 20 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()
|
D | vmci_transport_notify.c | 20 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()
|
D | af_vsock.c | 681 int retval; in __vsock_bind() local 699 retval = __vsock_bind_connectible(vsk, addr); in __vsock_bind() 704 retval = __vsock_bind_dgram(vsk, addr); in __vsock_bind() 708 retval = -EINVAL; in __vsock_bind() 712 return retval; in __vsock_bind() 2242 int retval = 0; in vsock_dev_do_ioctl() local 2255 retval = -EFAULT; in vsock_dev_do_ioctl() 2259 retval = -ENOIOCTLCMD; in vsock_dev_do_ioctl() 2262 return retval; in vsock_dev_do_ioctl()
|
/net/sched/ |
D | act_mirred.c | 234 int retval, err = 0; in tcf_mirred_act() local 257 retval = READ_ONCE(m->tcf_action); in tcf_mirred_act() 277 tcf_mirred_can_reinsert(retval); in tcf_mirred_act() 328 retval = TC_ACT_SHOT; in tcf_mirred_act() 332 return retval; in tcf_mirred_act()
|
D | act_sample.c | 170 int retval; in tcf_sample_act() local 174 retval = READ_ONCE(s->tcf_action); in tcf_sample_act() 198 return retval; in tcf_sample_act()
|
/net/ethtool/ |
D | common.c | 449 bool retval = true; in convert_legacy_settings_to_link_ksettings() local 459 retval = false; in convert_legacy_settings_to_link_ksettings() 486 return retval; in convert_legacy_settings_to_link_ksettings()
|
/net/rds/ |
D | send.c | 895 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/atm/ |
D | mpc.c | 1338 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()
|
D | lec.c | 1083 int retval; in lane2_resolve() local 1102 retval = send_to_lecd(priv, l_arp_xmt, dst_mac, NULL, NULL); in lane2_resolve() 1110 retval = send_to_lecd(priv, l_arp_xmt, dst_mac, NULL, skb); in lane2_resolve() 1112 return retval; in lane2_resolve() 1125 int retval; in lane2_associate_req() local 1144 retval = send_to_lecd(priv, l_associate_req, NULL, NULL, skb); in lane2_associate_req() 1145 if (retval != 0) in lane2_associate_req()
|
/net/openvswitch/ |
D | datapath.c | 923 int retval; in ovs_flow_cmd_build_info() local 930 retval = ovs_flow_cmd_fill_info(flow, dp_ifindex, skb, in ovs_flow_cmd_build_info() 933 if (WARN_ON_ONCE(retval < 0)) { in ovs_flow_cmd_build_info() 935 skb = ERR_PTR(retval); in ovs_flow_cmd_build_info() 2117 int retval; in ovs_vport_cmd_build_info() local 2123 retval = ovs_vport_cmd_fill_info(vport, skb, net, portid, seq, 0, cmd, in ovs_vport_cmd_build_info() 2125 BUG_ON(retval < 0); in ovs_vport_cmd_build_info()
|
/net/core/ |
D | net-sysfs.c | 1872 int retval; in netdev_uevent() local 1875 retval = add_uevent_var(env, "INTERFACE=%s", dev->name); in netdev_uevent() 1876 if (retval) in netdev_uevent() 1883 retval = add_uevent_var(env, "IFINDEX=%d", dev->ifindex); in netdev_uevent() 1886 return retval; in netdev_uevent()
|