/net/wimax/ |
D | op-rfkill.c | 81 int result; in wimax_report_rfkill_hw() local 90 result = wimax_dev_is_ready(wimax_dev); in wimax_report_rfkill_hw() 91 if (result < 0) in wimax_report_rfkill_hw() 102 result = rfkill_set_hw_state(wimax_dev->rfkill, in wimax_report_rfkill_hw() 110 wimax_dev, state, result); in wimax_report_rfkill_hw() 136 int result; in wimax_report_rfkill_sw() local 145 result = wimax_dev_is_ready(wimax_dev); in wimax_report_rfkill_sw() 146 if (result < 0) in wimax_report_rfkill_sw() 162 wimax_dev, state, result); in wimax_report_rfkill_sw() 193 int result = 0; in __wimax_rf_toggle_radio() local [all …]
|
D | op-msg.c | 110 int result; in wimax_msg_alloc() local 119 result = -ENOMEM; in wimax_msg_alloc() 129 result = nla_put_u32(skb, WIMAX_GNL_MSG_IFIDX, in wimax_msg_alloc() 131 if (result < 0) { in wimax_msg_alloc() 136 result = nla_put_string(skb, WIMAX_GNL_MSG_PIPE_NAME, in wimax_msg_alloc() 138 if (result < 0) { in wimax_msg_alloc() 143 result = nla_put(skb, WIMAX_GNL_MSG_DATA, size, msg); in wimax_msg_alloc() 144 if (result < 0) { in wimax_msg_alloc() 146 "attribute: %d\n", msg, size, result); in wimax_msg_alloc() 156 return ERR_PTR(result); in wimax_msg_alloc() [all …]
|
D | stack.c | 91 int result; in wimax_gnl_re_state_change_alloc() local 98 result = -ENOMEM; in wimax_gnl_re_state_change_alloc() 113 result = nla_put_u8(report_skb, WIMAX_GNL_STCH_STATE_OLD, old_state); in wimax_gnl_re_state_change_alloc() 114 if (result < 0) { in wimax_gnl_re_state_change_alloc() 115 dev_err(dev, "RE_STCH: Error adding OLD attr: %d\n", result); in wimax_gnl_re_state_change_alloc() 118 result = nla_put_u8(report_skb, WIMAX_GNL_STCH_STATE_NEW, new_state); in wimax_gnl_re_state_change_alloc() 119 if (result < 0) { in wimax_gnl_re_state_change_alloc() 120 dev_err(dev, "RE_STCH: Error adding NEW attr: %d\n", result); in wimax_gnl_re_state_change_alloc() 123 result = nla_put_u32(report_skb, WIMAX_GNL_STCH_IFIDX, in wimax_gnl_re_state_change_alloc() 125 if (result < 0) { in wimax_gnl_re_state_change_alloc() [all …]
|
D | op-reset.c | 56 int result = -EINVAL; in wimax_reset() local 69 result = wimax_dev->op_reset(wimax_dev); in wimax_reset() 74 d_fnend(3, dev, "(wimax_dev %p) = %d\n", wimax_dev, result); in wimax_reset() 75 return result; in wimax_reset() 89 int result, ifindex; in wimax_gnl_doit_reset() local 93 result = -ENODEV; in wimax_gnl_doit_reset() 103 result = wimax_reset(wimax_dev); in wimax_gnl_doit_reset() 106 d_fnend(3, NULL, "(skb %p info %p) = %d\n", skb, info, result); in wimax_gnl_doit_reset() 107 return result; in wimax_gnl_doit_reset()
|
D | op-state-get.c | 33 int result, ifindex; in wimax_gnl_doit_state_get() local 37 result = -ENODEV; in wimax_gnl_doit_state_get() 47 result = wimax_state_get(wimax_dev); in wimax_gnl_doit_state_get() 50 d_fnend(3, NULL, "(skb %p info %p) = %d\n", skb, info, result); in wimax_gnl_doit_state_get() 51 return result; in wimax_gnl_doit_state_get()
|
/net/sctp/ |
D | stream.c | 504 __u32 result) in sctp_update_strreset_result() argument 507 asoc->strreset_result[0] = result; in sctp_update_strreset_result() 517 __u32 result = SCTP_STRRESET_DENIED; in sctp_process_strreset_outreq() local 526 result = SCTP_STRRESET_IN_PROGRESS; in sctp_process_strreset_outreq() 532 result = SCTP_STRRESET_ERR_BAD_SEQNO; in sctp_process_strreset_outreq() 536 result = asoc->strreset_result[i]; in sctp_process_strreset_outreq() 552 result = SCTP_STRRESET_ERR_WRONG_SSN; in sctp_process_strreset_outreq() 562 result = SCTP_STRRESET_ERR_IN_PROGRESS; in sctp_process_strreset_outreq() 588 result = SCTP_STRRESET_PERFORMED; in sctp_process_strreset_outreq() 594 sctp_update_strreset_result(asoc, result); in sctp_process_strreset_outreq() [all …]
|
/net/bluetooth/ |
D | ecdh_helper.c | 65 struct ecdh_completion result; in compute_ecdh_secret() local 79 init_completion(&result.completion); in compute_ecdh_secret() 89 ecdh_complete, &result); in compute_ecdh_secret() 92 wait_for_completion(&result.completion); in compute_ecdh_secret() 93 err = result.err; in compute_ecdh_secret() 172 struct ecdh_completion result; in generate_ecdh_public_key() local 186 init_completion(&result.completion); in generate_ecdh_public_key() 191 ecdh_complete, &result); in generate_ecdh_public_key() 195 wait_for_completion(&result.completion); in generate_ecdh_public_key() 196 err = result.err; in generate_ecdh_public_key()
|
D | l2cap_core.c | 688 u16 result; in l2cap_chan_le_connect_reject() local 691 result = L2CAP_CR_LE_AUTHORIZATION; in l2cap_chan_le_connect_reject() 693 result = L2CAP_CR_LE_BAD_PSM; in l2cap_chan_le_connect_reject() 701 rsp.result = cpu_to_le16(result); in l2cap_chan_le_connect_reject() 711 u16 result; in l2cap_chan_connect_reject() local 714 result = L2CAP_CR_SEC_BLOCK; in l2cap_chan_connect_reject() 716 result = L2CAP_CR_BAD_PSM; in l2cap_chan_connect_reject() 722 rsp.result = cpu_to_le16(result); in l2cap_chan_connect_reject() 1483 rsp.result = cpu_to_le16(L2CAP_CR_PEND); in l2cap_conn_start() 1489 rsp.result = cpu_to_le16(L2CAP_CR_SUCCESS); in l2cap_conn_start() [all …]
|
/net/6lowpan/ |
D | nhc.c | 27 int result, len_dif, len; in lowpan_nhc_insert() local 36 result = memcmp(nhc->id, this->id, len); in lowpan_nhc_insert() 37 if (!result) in lowpan_nhc_insert() 38 result = len_dif; in lowpan_nhc_insert() 41 if (result < 0) in lowpan_nhc_insert() 43 else if (result > 0) in lowpan_nhc_insert() 70 int result, i; in lowpan_nhc_by_nhcid() local 80 result = memcmp(nhcid_skb_ptr_masked, nhc->id, nhc->idlen); in lowpan_nhc_by_nhcid() 81 if (result < 0) in lowpan_nhc_by_nhcid() 83 else if (result > 0) in lowpan_nhc_by_nhcid()
|
/net/caif/ |
D | chnl_net.c | 219 int result = -1; in chnl_net_start_xmit() local 246 result = priv->chnl.dn->transmit(priv->chnl.dn, pkt); in chnl_net_start_xmit() 247 if (result) { in chnl_net_start_xmit() 262 int result = -1; in chnl_net_open() local 274 result = caif_connect_client(dev_net(dev), &priv->conn_req, in chnl_net_open() 277 if (result != 0) { in chnl_net_open() 281 result); in chnl_net_open() 289 result = -ENODEV; in chnl_net_open() 310 result = -ENODEV; in chnl_net_open() 317 result = wait_event_interruptible_timeout(priv->netmgmt_wq, in chnl_net_open() [all …]
|
/net/mpls/ |
D | internal.h | 177 struct mpls_shim_hdr result; in mpls_entry_encode() local 178 result.label_stack_entry = in mpls_entry_encode() 183 return result; in mpls_entry_encode() 188 struct mpls_entry_decoded result; in mpls_entry_decode() local 191 result.label = (entry & MPLS_LS_LABEL_MASK) >> MPLS_LS_LABEL_SHIFT; in mpls_entry_decode() 192 result.ttl = (entry & MPLS_LS_TTL_MASK) >> MPLS_LS_TTL_SHIFT; in mpls_entry_decode() 193 result.tc = (entry & MPLS_LS_TC_MASK) >> MPLS_LS_TC_SHIFT; in mpls_entry_decode() 194 result.bos = (entry & MPLS_LS_S_MASK) >> MPLS_LS_S_SHIFT; in mpls_entry_decode() 196 return result; in mpls_entry_decode()
|
/net/ipv6/ |
D | inet6_hashtables.c | 124 struct sock *sk, *result = NULL; in inet6_lhash2_lookup() local 136 result = reuseport_select_sock(sk, phash, in inet6_lhash2_lookup() 138 if (result) in inet6_lhash2_lookup() 139 return result; in inet6_lhash2_lookup() 141 result = sk; in inet6_lhash2_lookup() 146 return result; in inet6_lhash2_lookup() 157 struct sock *result = NULL; in inet6_lookup_listener() local 163 result = inet6_lhash2_lookup(net, ilb2, skb, doff, in inet6_lookup_listener() 166 if (result) in inet6_lookup_listener() 173 result = inet6_lhash2_lookup(net, ilb2, skb, doff, in inet6_lookup_listener() [all …]
|
D | netfilter.c | 102 struct dst_entry *result; in __nf_ip6_route() local 105 result = ip6_route_output(net, sk, &fl->u.ip6); in __nf_ip6_route() 106 err = result->error; in __nf_ip6_route() 108 dst_release(result); in __nf_ip6_route() 110 *dst = result; in __nf_ip6_route()
|
/net/netfilter/ipvs/ |
D | ip_vs_sync.c | 1479 int result, salen; in make_send_sock() local 1482 result = sock_create_kern(ipvs->net, ipvs->mcfg.mcast_af, SOCK_DGRAM, in make_send_sock() 1484 if (result < 0) { in make_send_sock() 1489 result = set_mcast_if(sock->sk, dev); in make_send_sock() 1490 if (result < 0) { in make_send_sock() 1499 result = sysctl_sync_sock_size(ipvs); in make_send_sock() 1500 if (result > 0) in make_send_sock() 1501 set_sock_size(sock->sk, 1, result); in make_send_sock() 1504 result = bind_mcastif_addr(sock, dev); in make_send_sock() 1506 result = 0; in make_send_sock() [all …]
|
D | ip_vs_app.c | 150 int result; in ip_vs_app_inc_get() local 152 result = ip_vs_app_get(inc->app); in ip_vs_app_inc_get() 153 if (result) in ip_vs_app_inc_get() 155 return result; in ip_vs_app_inc_get() 176 int result; in register_ip_vs_app_inc() local 180 result = ip_vs_app_inc_new(ipvs, app, proto, port); in register_ip_vs_app_inc() 184 return result; in register_ip_vs_app_inc()
|
/net/sunrpc/ |
D | rpcb_clnt.c | 255 int result = 0; in rpcb_create_local_unix() local 266 result = PTR_ERR(clnt); in rpcb_create_local_unix() 281 return result; in rpcb_create_local_unix() 308 int result = 0; in rpcb_create_local_net() local 314 result = PTR_ERR(clnt); in rpcb_create_local_net() 334 return result; in rpcb_create_local_net() 344 int result = 0; in rpcb_create_local() local 347 return result; in rpcb_create_local() 354 result = rpcb_create_local_net(net); in rpcb_create_local() 358 return result; in rpcb_create_local() [all …]
|
D | auth.c | 209 int result; in rpcauth_get_gssinfo() local 215 result = -ENOENT; in rpcauth_get_gssinfo() 217 result = ops->flavor2info(pseudoflavor, info); in rpcauth_get_gssinfo() 220 return result; in rpcauth_get_gssinfo() 239 int i, len, result = 0; in rpcauth_list_flavors() local 244 if (result >= size) { in rpcauth_list_flavors() 245 result = -ENOMEM; in rpcauth_list_flavors() 252 array[result++] = ops->au_flavor; in rpcauth_list_flavors() 257 result = len; in rpcauth_list_flavors() 261 if (result >= size) { in rpcauth_list_flavors() [all …]
|
/net/netfilter/ |
D | nft_fib.c | 34 switch (priv->result) { in nft_fib_validate() 88 priv->result = ntohl(nla_get_be32(tb[NFTA_FIB_RESULT])); in nft_fib_init() 91 switch (priv->result) { in nft_fib_init() 125 if (nla_put_be32(skb, NFTA_FIB_RESULT, htonl(priv->result))) in nft_fib_dump() 141 switch (priv->result) { in nft_fib_store_result()
|
/net/mac80211/ |
D | main.c | 865 int result, i; in ieee80211_register_hw() local 1047 result = -EINVAL; in ieee80211_register_hw() 1108 result = ieee80211_init_cipher_suites(local); in ieee80211_register_hw() 1109 if (result < 0) in ieee80211_register_hw() 1136 result = wiphy_register(local->hw.wiphy); in ieee80211_register_hw() 1137 if (result < 0) in ieee80211_register_hw() 1150 result = -ENOMEM; in ieee80211_register_hw() 1181 result = ieee80211_wep_init(local); in ieee80211_register_hw() 1182 if (result < 0) in ieee80211_register_hw() 1184 result); in ieee80211_register_hw() [all …]
|
/net/ipv4/ |
D | fib_rules.c | 82 .result = res, in __fib_lookup() 133 (struct fib_result *)arg->result, in fib4_rule_action() 142 struct fib_result *result = (struct fib_result *) arg->result; in fib4_rule_suppress() local 145 if (result->fi) { in fib4_rule_suppress() 146 struct fib_nh_common *nhc = fib_info_nhc(result->fi, 0); in fib4_rule_suppress() 154 if (result->prefixlen <= rule->suppress_prefixlen) in fib4_rule_suppress() 167 fib_info_put(result->fi); in fib4_rule_suppress()
|
D | inet_hashtables.c | 266 struct sock *sk, *result = NULL; in inet_lhash2_lookup() local 278 result = reuseport_select_sock(sk, phash, in inet_lhash2_lookup() 280 if (result) in inet_lhash2_lookup() 281 return result; in inet_lhash2_lookup() 283 result = sk; in inet_lhash2_lookup() 288 return result; in inet_lhash2_lookup() 299 struct sock *result = NULL; in __inet_lookup_listener() local 305 result = inet_lhash2_lookup(net, ilb2, skb, doff, in __inet_lookup_listener() 308 if (result) in __inet_lookup_listener() 315 result = inet_lhash2_lookup(net, ilb2, skb, doff, in __inet_lookup_listener() [all …]
|
/net/sched/ |
D | cls_tcindex.c | 37 struct tcindex_filter_result result; member 76 return &f->result; in tcindex_lookup() 160 tcf_exts_destroy(&f->result.exts); in __tcindex_destroy_fexts() 161 tcf_exts_put_net(&f->result.exts); in __tcindex_destroy_fexts() 195 if (&f->result == r) in tcindex_delete() 210 if (tcf_exts_get_net(&f->result.exts)) in tcindex_delete() 434 err = tcindex_filter_result_init(&f->result, net); in tcindex_set_parms() 464 f->result.res = r->res; in tcindex_set_parms() 465 tcf_exts_change(&f->result.exts, &r->exts); in tcindex_set_parms() 550 if (walker->fn(tp, &f->result, walker) < 0) { in tcindex_walk() [all …]
|
/net/dccp/ccids/lib/ |
D | tfrc.h | 35 u64 result = scaled_div(a, b); in scaled_div32() local 37 if (result > UINT_MAX) { in scaled_div32() 42 return result; in scaled_div32()
|
D | tfrc_equation.c | 617 u64 result; in tfrc_calc_x() local 652 result = scaled_div(s, R); in tfrc_calc_x() 653 return scaled_div32(result, f); in tfrc_calc_x()
|
/net/ceph/ |
D | auth.c | 185 s32 result; in ceph_handle_auth_reply() local 197 result = ceph_decode_32(&p); in ceph_handle_auth_reply() 209 dout(" result %d '%.*s' gid %llu len %d\n", result, result_msg_len, in ceph_handle_auth_reply() 221 if (!protocol && result < 0) { in ceph_handle_auth_reply() 222 ret = result; in ceph_handle_auth_reply() 243 ret = ac->ops->handle_reply(ac, result, payload, payload_end); in ceph_handle_auth_reply()
|