/net/wireless/ |
D | rdev-ops.h | 13 int ret; in rdev_suspend() local 15 ret = rdev->ops->suspend(&rdev->wiphy, wowlan); in rdev_suspend() 16 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_suspend() 17 return ret; in rdev_suspend() 22 int ret; in rdev_resume() local 24 ret = rdev->ops->resume(&rdev->wiphy); in rdev_resume() 25 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_resume() 26 return ret; in rdev_resume() 43 struct wireless_dev *ret; in rdev_add_virtual_intf() local 45 ret = rdev->ops->add_virtual_intf(&rdev->wiphy, name, name_assign_type, in rdev_add_virtual_intf() [all …]
|
/net/mac802154/ |
D | driver-ops.h | 29 int ret; in drv_start() local 36 ret = local->ops->start(&local->hw); in drv_start() 37 trace_802154_drv_return_int(local, ret); in drv_start() 38 return ret; in drv_start() 61 int ret; in drv_set_channel() local 66 ret = local->ops->set_channel(&local->hw, page, channel); in drv_set_channel() 67 trace_802154_drv_return_int(local, ret); in drv_set_channel() 68 return ret; in drv_set_channel() 73 int ret; in drv_set_tx_power() local 83 ret = local->ops->set_txpower(&local->hw, mbm); in drv_set_tx_power() [all …]
|
/net/ieee802154/ |
D | rdev-ops.h | 30 int ret; in rdev_suspend() local 32 ret = rdev->ops->suspend(&rdev->wpan_phy); in rdev_suspend() 33 trace_802154_rdev_return_int(&rdev->wpan_phy, ret); in rdev_suspend() 34 return ret; in rdev_suspend() 40 int ret; in rdev_resume() local 42 ret = rdev->ops->resume(&rdev->wpan_phy); in rdev_resume() 43 trace_802154_rdev_return_int(&rdev->wpan_phy, ret); in rdev_resume() 44 return ret; in rdev_resume() 52 int ret; in rdev_add_virtual_intf() local 56 ret = rdev->ops->add_virtual_intf(&rdev->wpan_phy, name, in rdev_add_virtual_intf() [all …]
|
/net/ceph/ |
D | auth_x.c | 59 int ret; in ceph_x_encrypt() local 64 ret = ceph_crypt(secret, true, buf + sizeof(u32), buf_len - sizeof(u32), in ceph_x_encrypt() 67 if (ret) in ceph_x_encrypt() 68 return ret; in ceph_x_encrypt() 79 int ret; in __ceph_x_decrypt() local 81 ret = ceph_crypt(secret, false, p, ciphertext_len, ciphertext_len, in __ceph_x_decrypt() 83 if (ret) in __ceph_x_decrypt() 84 return ret; in __ceph_x_decrypt() 97 int ret; in ceph_x_decrypt() local 102 ret = __ceph_x_decrypt(secret, *p, ciphertext_len); in ceph_x_decrypt() [all …]
|
D | auth.c | 42 int ret; in ceph_auth_init() local 46 ret = -ENOMEM; in ceph_auth_init() 62 return ERR_PTR(ret); in ceph_auth_init() 110 int ret; in ceph_auth_build_hello() local 131 ret = ceph_auth_entity_name_encode(ac->name, &p, end); in ceph_auth_build_hello() 132 if (ret < 0) in ceph_auth_build_hello() 138 ret = p - buf; in ceph_auth_build_hello() 141 return ret; in ceph_auth_build_hello() 144 ret = -ERANGE; in ceph_auth_build_hello() 154 int ret; in ceph_build_auth_request() local [all …]
|
D | cls_lock_client.c | 37 int ret; in ceph_cls_lock() local 73 ret = ceph_osdc_call(osdc, oid, oloc, "lock", "lock", in ceph_cls_lock() 77 dout("%s: status %d\n", __func__, ret); in ceph_cls_lock() 79 return ret; in ceph_cls_lock() 99 int ret; in ceph_cls_unlock() local 121 ret = ceph_osdc_call(osdc, oid, oloc, "lock", "unlock", in ceph_cls_unlock() 125 dout("%s: status %d\n", __func__, ret); in ceph_cls_unlock() 127 return ret; in ceph_cls_unlock() 149 int ret; in ceph_cls_break_lock() local 174 ret = ceph_osdc_call(osdc, oid, oloc, "lock", "break_lock", in ceph_cls_break_lock() [all …]
|
D | crypto.c | 26 int ret; in set_secret() local 45 ret = -ENOMEM; in set_secret() 54 ret = PTR_ERR(key->tfm); in set_secret() 59 ret = crypto_sync_skcipher_setkey(key->tfm, key->key, key->len); in set_secret() 60 if (ret) in set_secret() 67 return ret; in set_secret() 91 int ret; in ceph_crypto_key_decode() local 98 ret = set_secret(key, *p); in ceph_crypto_key_decode() 100 return ret; in ceph_crypto_key_decode() 112 int ret; in ceph_crypto_key_unarmor() local [all …]
|
/net/mac80211/ |
D | driver-ops.h | 93 int ret; in drv_suspend() local 98 ret = local->ops->suspend(&local->hw, wowlan); in drv_suspend() 99 trace_drv_return_int(local, ret); in drv_suspend() 100 return ret; in drv_suspend() 105 int ret; in drv_resume() local 110 ret = local->ops->resume(&local->hw); in drv_resume() 111 trace_drv_return_int(local, ret); in drv_resume() 112 return ret; in drv_resume() 141 int ret; in drv_config() local 146 ret = local->ops->config(&local->hw, changed); in drv_config() [all …]
|
D | driver-ops.c | 12 int ret; in drv_start() local 23 ret = local->ops->start(&local->hw); in drv_start() 24 trace_drv_return_int(local, ret); in drv_start() 26 if (ret) in drv_start() 29 return ret; in drv_start() 55 int ret; in drv_add_interface() local 66 ret = local->ops->add_interface(&local->hw, &sdata->vif); in drv_add_interface() 67 trace_drv_return_int(local, ret); in drv_add_interface() 69 if (ret == 0) in drv_add_interface() 72 return ret; in drv_add_interface() [all …]
|
/net/ipv4/netfilter/ |
D | arp_tables.c | 47 int i, ret; in arp_devaddr_compare() local 52 ret = 0; in arp_devaddr_compare() 54 ret |= (hdr_addr[i] ^ ap->addr[i]) & ap->mask[i]; in arp_devaddr_compare() 56 return ret != 0; in arp_devaddr_compare() 67 unsigned long ret = ifname_compare_aligned(_a, _b, _mask); in ifname_compare() local 69 unsigned long ret = 0; in ifname_compare() 76 ret |= (a[i] ^ b[i]) & mask[i]; in ifname_compare() 78 return ret; in ifname_compare() 91 long ret; in arp_packet_match() local 132 ret = ifname_compare(indev, arpinfo->iniface, arpinfo->iniface_mask); in arp_packet_match() [all …]
|
D | ip_tables.c | 51 unsigned long ret; in ip_packet_match() local 59 ret = ifname_compare_aligned(indev, ipinfo->iniface, ipinfo->iniface_mask); in ip_packet_match() 61 if (NF_INVF(ipinfo, IPT_INV_VIA_IN, ret != 0)) in ip_packet_match() 64 ret = ifname_compare_aligned(outdev, ipinfo->outiface, ipinfo->outiface_mask); in ip_packet_match() 66 if (NF_INVF(ipinfo, IPT_INV_VIA_OUT, ret != 0)) in ip_packet_match() 480 int ret; in find_check_match() local 488 ret = check_match(m, par); in find_check_match() 489 if (ret) in find_check_match() 495 return ret; in find_check_match() 522 int ret; in find_check_entry() local [all …]
|
/net/core/ |
D | lwtunnel.c | 85 int ret; in lwtunnel_encap_del_ops() local 91 ret = (cmpxchg((const struct lwtunnel_encap_ops **) in lwtunnel_encap_del_ops() 97 return ret; in lwtunnel_encap_del_ops() 108 int ret = -EINVAL; in lwtunnel_build_state() local 114 return ret; in lwtunnel_build_state() 117 ret = -EOPNOTSUPP; in lwtunnel_build_state() 125 ret = ops->build_state(encap, family, cfg, lws, extack); in lwtunnel_build_state() 126 if (ret) in lwtunnel_build_state() 136 return ret; in lwtunnel_build_state() 143 int ret = -EINVAL; in lwtunnel_valid_encap_type() local [all …]
|
/net/rxrpc/ |
D | af_rxrpc.c | 135 int ret; in rxrpc_bind() local 139 ret = rxrpc_validate_address(rx, srx, len); in rxrpc_bind() 140 if (ret < 0) in rxrpc_bind() 151 ret = PTR_ERR(local); in rxrpc_bind() 171 ret = -EINVAL; in rxrpc_bind() 174 ret = -EADDRINUSE; in rxrpc_bind() 177 ret = -EINVAL; in rxrpc_bind() 186 ret = -EINVAL; in rxrpc_bind() 197 ret = -EADDRINUSE; in rxrpc_bind() 201 _leave(" = %d", ret); in rxrpc_bind() [all …]
|
D | recvmsg.c | 67 int ret; in rxrpc_recvmsg_term() local 71 ret = 0; in rxrpc_recvmsg_term() 73 ret = put_cmsg(msg, SOL_RXRPC, RXRPC_ACK, 0, &tmp); in rxrpc_recvmsg_term() 77 ret = put_cmsg(msg, SOL_RXRPC, RXRPC_ABORT, 4, &tmp); in rxrpc_recvmsg_term() 81 ret = put_cmsg(msg, SOL_RXRPC, RXRPC_ABORT, 4, &tmp); in rxrpc_recvmsg_term() 85 ret = put_cmsg(msg, SOL_RXRPC, RXRPC_NET_ERROR, 4, &tmp); in rxrpc_recvmsg_term() 89 ret = put_cmsg(msg, SOL_RXRPC, RXRPC_LOCAL_ERROR, 4, &tmp); in rxrpc_recvmsg_term() 98 call->rx_pkt_offset, call->rx_pkt_len, ret); in rxrpc_recvmsg_term() 99 return ret; in rxrpc_recvmsg_term() 113 int tmp = 0, ret; in rxrpc_recvmsg_new_call() local [all …]
|
/net/ipv6/netfilter/ |
D | ip6_tables.c | 56 unsigned long ret; in ip6_packet_match() local 67 ret = ifname_compare_aligned(indev, ip6info->iniface, ip6info->iniface_mask); in ip6_packet_match() 69 if (NF_INVF(ip6info, IP6T_INV_VIA_IN, ret != 0)) in ip6_packet_match() 72 ret = ifname_compare_aligned(outdev, ip6info->outiface, ip6info->outiface_mask); in ip6_packet_match() 74 if (NF_INVF(ip6info, IP6T_INV_VIA_OUT, ret != 0)) in ip6_packet_match() 497 int ret; in find_check_match() local 506 ret = check_match(m, par); in find_check_match() 507 if (ret) in find_check_match() 513 return ret; in find_check_match() 541 int ret; in find_check_entry() local [all …]
|
/net/rds/ |
D | rdma_transport.c | 56 int ret = 0; in rds_rdma_cm_event_handler_cmn() local 78 ret = 1; in rds_rdma_cm_event_handler_cmn() 85 ret = trans->cm_handle_connect(cm_id, event, isv6); in rds_rdma_cm_event_handler_cmn() 91 ret = rdma_resolve_route(cm_id, in rds_rdma_cm_event_handler_cmn() 106 ret = trans->cm_initiate_connect(cm_id, isv6); in rds_rdma_cm_event_handler_cmn() 175 rdma_event_msg(event->event), ret); in rds_rdma_cm_event_handler_cmn() 177 return ret; in rds_rdma_cm_event_handler_cmn() 199 int ret; in rds_rdma_listen_init_common() local 204 ret = PTR_ERR(cm_id); in rds_rdma_listen_init_common() 206 "rdma_create_id() returned %d\n", ret); in rds_rdma_listen_init_common() [all …]
|
D | tcp_listen.c | 47 int ret = 0; in rds_tcp_keepalive() local 49 ret = kernel_setsockopt(sock, SOL_SOCKET, SO_KEEPALIVE, in rds_tcp_keepalive() 51 if (ret < 0) in rds_tcp_keepalive() 54 ret = kernel_setsockopt(sock, IPPROTO_TCP, TCP_KEEPCNT, in rds_tcp_keepalive() 56 if (ret < 0) in rds_tcp_keepalive() 59 ret = kernel_setsockopt(sock, IPPROTO_TCP, TCP_KEEPIDLE, in rds_tcp_keepalive() 61 if (ret < 0) in rds_tcp_keepalive() 67 ret = kernel_setsockopt(sock, IPPROTO_TCP, TCP_KEEPINTVL, in rds_tcp_keepalive() 70 return ret; in rds_tcp_keepalive() 129 int ret; in rds_tcp_accept_one() local [all …]
|
D | af_rds.c | 298 int ret = 0; in rds_cancel_sent_to() local 302 ret = -ENOTCONN; /* XXX not a great errno */ in rds_cancel_sent_to() 307 ret = -EINVAL; in rds_cancel_sent_to() 312 ret = -EFAULT; in rds_cancel_sent_to() 320 ret = -EFAULT; in rds_cancel_sent_to() 327 return ret; in rds_cancel_sent_to() 346 int ret; in rds_cong_monitor() local 348 ret = rds_set_bool_option(&rs->rs_cong_monitor, optval, optlen); in rds_cong_monitor() 349 if (ret == 0) { in rds_cong_monitor() 358 return ret; in rds_cong_monitor() [all …]
|
/net/bridge/netfilter/ |
D | ebtables.c | 360 int ret; in ebt_check_match() local 379 ret = xt_check_match(par, m->match_size, in ebt_check_match() 381 if (ret < 0) { in ebt_check_match() 383 return ret; in ebt_check_match() 397 int ret; in ebt_check_watcher() local 416 ret = xt_check_target(par, w->watcher_size, in ebt_check_watcher() 418 if (ret < 0) { in ebt_check_watcher() 420 return ret; in ebt_check_watcher() 651 int ret; in ebt_check_entry() local 700 ret = EBT_MATCH_ITERATE(e, ebt_check_match, &mtpar, &i); in ebt_check_entry() [all …]
|
/net/netfilter/ |
D | nfnetlink_cttimeout.c | 51 int ret = 0; in ctnl_timeout_parse_policy() local 59 ret = nla_parse_nested_deprecated(tb, in ctnl_timeout_parse_policy() 64 if (ret < 0) in ctnl_timeout_parse_policy() 67 ret = l4proto->ctnl_timeout.nlattr_to_obj(tb, net, timeout); in ctnl_timeout_parse_policy() 71 return ret; in ctnl_timeout_parse_policy() 85 int ret; in cttimeout_new_timeout() local 129 ret = -EOPNOTSUPP; in cttimeout_new_timeout() 136 ret = -ENOMEM; in cttimeout_new_timeout() 140 ret = ctnl_timeout_parse_policy(&timeout->timeout.data, l4proto, net, in cttimeout_new_timeout() 142 if (ret < 0) in cttimeout_new_timeout() [all …]
|
D | nf_conntrack_h323_main.c | 262 int ret = 0; in expect_rtp_rtcp() local 305 ret = nat_rtp_rtcp(skb, ct, ctinfo, protoff, data, dataoff, in expect_rtp_rtcp() 316 ret = -1; in expect_rtp_rtcp() 319 ret = -1; in expect_rtp_rtcp() 325 return ret; in expect_rtp_rtcp() 336 int ret = 0; in expect_t120() local 364 ret = nat_t120(skb, ct, ctinfo, protoff, data, dataoff, taddr, in expect_t120() 371 ret = -1; in expect_t120() 376 return ret; in expect_t120() 386 int ret; in process_h245_channel() local [all …]
|
/net/l2tp/ |
D | l2tp_netlink.c | 78 int ret = -ENOBUFS; in l2tp_nl_cmd_noop() local 82 ret = -ENOMEM; in l2tp_nl_cmd_noop() 89 ret = -EMSGSIZE; in l2tp_nl_cmd_noop() 101 return ret; in l2tp_nl_cmd_noop() 110 int ret; in l2tp_tunnel_notify() local 116 ret = l2tp_nl_tunnel_send(msg, info->snd_portid, info->snd_seq, in l2tp_tunnel_notify() 119 if (ret >= 0) { in l2tp_tunnel_notify() 120 ret = genlmsg_multicast_allns(family, msg, 0, 0, GFP_ATOMIC); in l2tp_tunnel_notify() 122 if (ret == -ESRCH) in l2tp_tunnel_notify() 123 ret = 0; in l2tp_tunnel_notify() [all …]
|
/net/netfilter/ipset/ |
D | ip_set_hash_ipportip.c | 116 int ret; in hash_ipportip4_uadt() local 126 ret = ip_set_get_ipaddr4(tb[IPSET_ATTR_IP], &e.ip); in hash_ipportip4_uadt() 127 if (ret) in hash_ipportip4_uadt() 128 return ret; in hash_ipportip4_uadt() 130 ret = ip_set_get_extensions(set, tb, &ext); in hash_ipportip4_uadt() 131 if (ret) in hash_ipportip4_uadt() 132 return ret; in hash_ipportip4_uadt() 134 ret = ip_set_get_ipaddr4(tb[IPSET_ATTR_IP2], &e.ip2); in hash_ipportip4_uadt() 135 if (ret) in hash_ipportip4_uadt() 136 return ret; in hash_ipportip4_uadt() [all …]
|
D | ip_set_hash_ipmark.c | 104 int ret; in hash_ipmark4_uadt() local 113 ret = ip_set_get_ipaddr4(tb[IPSET_ATTR_IP], &e.ip); in hash_ipmark4_uadt() 114 if (ret) in hash_ipmark4_uadt() 115 return ret; in hash_ipmark4_uadt() 117 ret = ip_set_get_extensions(set, tb, &ext); in hash_ipmark4_uadt() 118 if (ret) in hash_ipmark4_uadt() 119 return ret; in hash_ipmark4_uadt() 126 ret = adtfn(set, &e, &ext, &ext, flags); in hash_ipmark4_uadt() 127 return ip_set_eexist(ret, flags) ? 0 : ret; in hash_ipmark4_uadt() 132 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in hash_ipmark4_uadt() [all …]
|
D | ip_set_hash_ipport.c | 113 int ret; in hash_ipport4_uadt() local 123 ret = ip_set_get_ipaddr4(tb[IPSET_ATTR_IP], &e.ip); in hash_ipport4_uadt() 124 if (ret) in hash_ipport4_uadt() 125 return ret; in hash_ipport4_uadt() 127 ret = ip_set_get_extensions(set, tb, &ext); in hash_ipport4_uadt() 128 if (ret) in hash_ipport4_uadt() 129 return ret; in hash_ipport4_uadt() 149 ret = adtfn(set, &e, &ext, &ext, flags); in hash_ipport4_uadt() 150 return ip_set_eexist(ret, flags) ? 0 : ret; in hash_ipport4_uadt() 155 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in hash_ipport4_uadt() [all …]
|