/net/mac802154/ |
D | mib.c | 25 int res; in mac802154_dev_set_page_channel() local 31 res = drv_set_channel(local, page, chan); in mac802154_dev_set_page_channel() 32 if (res) { in mac802154_dev_set_page_channel() 44 int res; in mac802154_get_params() local 49 res = mac802154_llsec_get_params(&sdata->sec, params); in mac802154_get_params() 52 return res; in mac802154_get_params() 60 int res; in mac802154_set_params() local 65 res = mac802154_llsec_set_params(&sdata->sec, params, changed); in mac802154_set_params() 68 return res; in mac802154_set_params() 76 int res; in mac802154_add_key() local [all …]
|
D | cfg.c | 303 int res; in ieee802154_set_llsec_params() local 306 res = mac802154_llsec_set_params(&sdata->sec, params, changed); in ieee802154_set_llsec_params() 309 return res; in ieee802154_set_llsec_params() 319 int res; in ieee802154_get_llsec_params() local 322 res = mac802154_llsec_get_params(&sdata->sec, params); in ieee802154_get_llsec_params() 325 return res; in ieee802154_get_llsec_params() 335 int res; in ieee802154_add_llsec_key() local 338 res = mac802154_llsec_key_add(&sdata->sec, id, key); in ieee802154_add_llsec_key() 341 return res; in ieee802154_add_llsec_key() 350 int res; in ieee802154_del_llsec_key() local [all …]
|
/net/hsr/ |
D | hsr_netlink.c | 192 int res; in hsr_nl_ringerror() local 203 res = nla_put(skb, HSR_A_NODE_ADDR, ETH_ALEN, addr); in hsr_nl_ringerror() 204 if (res < 0) in hsr_nl_ringerror() 207 res = nla_put_u32(skb, HSR_A_IFINDEX, port->dev->ifindex); in hsr_nl_ringerror() 208 if (res < 0) in hsr_nl_ringerror() 234 int res; in hsr_nl_nodedown() local 244 res = nla_put(skb, HSR_A_NODE_ADDR, ETH_ALEN, addr); in hsr_nl_nodedown() 245 if (res < 0) in hsr_nl_nodedown() 288 int res; in hsr_get_node_status() local 311 res = -ENOMEM; in hsr_get_node_status() [all …]
|
D | hsr_slave.c | 130 int res; in hsr_portdev_setup() local 132 res = dev_set_promiscuity(dev, 1); in hsr_portdev_setup() 133 if (res) in hsr_portdev_setup() 134 return res; in hsr_portdev_setup() 139 res = netdev_upper_dev_link(dev, hsr_dev, extack); in hsr_portdev_setup() 140 if (res) in hsr_portdev_setup() 143 res = netdev_rx_handler_register(dev, hsr_handle_frame, port); in hsr_portdev_setup() 144 if (res) in hsr_portdev_setup() 154 return res; in hsr_portdev_setup() 161 int res; in hsr_add_port() local [all …]
|
D | hsr_main.c | 39 int res; in hsr_netdev_notify() local 85 res = hsr_create_self_node(hsr, in hsr_netdev_notify() 90 if (res) in hsr_netdev_notify() 140 int res; in hsr_init() local 145 res = hsr_netlink_init(); in hsr_init() 147 return res; in hsr_init()
|
D | hsr_device.c | 486 int res; in hsr_dev_finalize() local 508 res = hsr_create_self_node(hsr, hsr_dev->dev_addr, in hsr_dev_finalize() 510 if (res < 0) in hsr_dev_finalize() 511 return res; in hsr_dev_finalize() 539 res = hsr_add_port(hsr, hsr_dev, HSR_PT_MASTER, extack); in hsr_dev_finalize() 540 if (res) in hsr_dev_finalize() 543 res = register_netdevice(hsr_dev); in hsr_dev_finalize() 544 if (res) in hsr_dev_finalize() 549 res = hsr_add_port(hsr, slave[0], HSR_PT_SLAVE_A, extack); in hsr_dev_finalize() 550 if (res) in hsr_dev_finalize() [all …]
|
/net/mac80211/ |
D | fils_aead.c | 75 int res; in aes_siv_encrypt() local 91 res = crypto_shash_setkey(tfm, key, key_len); in aes_siv_encrypt() 92 if (!res) in aes_siv_encrypt() 93 res = aes_s2v(tfm, num_elem, addr, len, v); in aes_siv_encrypt() 95 if (res) in aes_siv_encrypt() 96 return res; in aes_siv_encrypt() 122 res = crypto_skcipher_setkey(tfm2, key + key_len, key_len); in aes_siv_encrypt() 123 if (res) in aes_siv_encrypt() 128 res = -ENOMEM; in aes_siv_encrypt() 135 res = crypto_skcipher_encrypt(req); in aes_siv_encrypt() [all …]
|
/net/wireless/ |
D | pmsr.c | 376 struct cfg80211_pmsr_result *res) in nl80211_pmsr_send_ftm_res() argument 378 if (res->status == NL80211_PMSR_STATUS_FAILURE) { in nl80211_pmsr_send_ftm_res() 380 res->ftm.failure_reason)) in nl80211_pmsr_send_ftm_res() 383 if (res->ftm.failure_reason == in nl80211_pmsr_send_ftm_res() 385 res->ftm.busy_retry_time && in nl80211_pmsr_send_ftm_res() 387 res->ftm.busy_retry_time)) in nl80211_pmsr_send_ftm_res() 397 res->ftm.val)) \ in nl80211_pmsr_send_ftm_res() 403 if (res->ftm.val##_valid) \ in nl80211_pmsr_send_ftm_res() 411 res->ftm.val, \ in nl80211_pmsr_send_ftm_res() 418 if (res->ftm.val##_valid) \ in nl80211_pmsr_send_ftm_res() [all …]
|
/net/ipv6/ |
D | route.c | 112 static struct rt6_info *rt6_find_cached_rt(const struct fib6_result *res, 411 void fib6_select_path(const struct net *net, struct fib6_result *res, in fib6_select_path() argument 416 struct fib6_info *match = res->f6i; in fib6_select_path() 421 if (match->nh && have_oif_match && res->nh) in fib6_select_path() 432 nexthop_path_fib6_result(res, fl6->mp_hash); in fib6_select_path() 454 res->f6i = match; in fib6_select_path() 455 res->nh = match->fib6_nh; in fib6_select_path() 502 struct fib6_result *res, in rt6_nh_dev_match() argument 522 static void rt6_device_match(struct net *net, struct fib6_result *res, in rt6_device_match() argument 525 struct fib6_info *f6i = res->f6i; in rt6_device_match() [all …]
|
D | fib6_rules.c | 64 struct fib6_result *res, int flags) in fib6_lookup() argument 72 .result = res, in fib6_lookup() 82 fl6, res, flags); in fib6_lookup() 83 if (err || res->f6i == net->ipv6.fib6_null_entry) in fib6_lookup() 85 oif, fl6, res, flags); in fib6_lookup() 96 struct fib6_result res = {}; in fib6_rule_lookup() local 100 .result = &res, in fib6_rule_lookup() 110 if (res.rt6) in fib6_rule_lookup() 111 return &res.rt6->dst; in fib6_rule_lookup() 160 struct fib6_result *res = arg->result; in fib6_rule_action_alt() local [all …]
|
/net/l3mdev/ |
D | l3mdev.c | 32 int res; in l3mdev_table_lookup_register() local 34 res = l3mdev_check_type(l3type); in l3mdev_table_lookup_register() 35 if (res) in l3mdev_table_lookup_register() 36 return res; in l3mdev_table_lookup_register() 43 res = -EBUSY; in l3mdev_table_lookup_register() 48 res = 0; in l3mdev_table_lookup_register() 53 return res; in l3mdev_table_lookup_register() 82 int res; in l3mdev_ifindex_lookup_by_table_id() local 84 res = l3mdev_check_type(l3type); in l3mdev_ifindex_lookup_by_table_id() 85 if (res) in l3mdev_ifindex_lookup_by_table_id() [all …]
|
/net/sched/ |
D | cls_basic.c | 32 struct tcf_result res; member 40 struct tcf_result *res) in basic_classify() argument 51 *res = f->res; in basic_classify() 52 r = tcf_exts_exec(skb, &f->exts, res); in basic_classify() 114 tcf_unbind_filter(tp, &f->res); in basic_destroy() 132 tcf_unbind_filter(tp, &f->res); in basic_delete() 162 f->res.classid = nla_get_u32(tb[TCA_BASIC_CLASSID]); in basic_set_parms() 163 tcf_bind_filter(tp, &f->res, base); in basic_set_parms() 232 tcf_unbind_filter(tp, &fold->res); in basic_change() 271 if (f && f->res.classid == classid) { in basic_bind_class() [all …]
|
D | cls_fw.c | 36 struct tcf_result res; member 51 struct tcf_result *res) in fw_classify() argument 64 *res = f->res; in fw_classify() 67 r = tcf_exts_exec(skb, &f->exts, res); in fw_classify() 80 res->classid = id; in fw_classify() 81 res->class = 0; in fw_classify() 144 tcf_unbind_filter(tp, &f->res); in fw_destroy() 173 tcf_unbind_filter(tp, &f->res); in fw_delete() 230 f->res.classid = nla_get_u32(tb[TCA_FW_CLASSID]); in fw_set_parms() 231 tcf_bind_filter(tp, &f->res, base); in fw_set_parms() [all …]
|
D | cls_route.c | 51 struct tcf_result res; member 111 *res = f->res; \ 113 int r = tcf_exts_exec(skb, &f->exts, res); \ 125 struct tcf_result *res) in route4_classify() argument 153 *res = f->res; in route4_classify() 297 tcf_unbind_filter(tp, &f->res); in route4_destroy() 342 tcf_unbind_filter(tp, &f->res); in route4_delete() 463 f->res.classid = nla_get_u32(tb[TCA_ROUTE4_CLASSID]); in route4_set_parms() 464 tcf_bind_filter(tp, &f->res, base); in route4_set_parms() 557 tcf_unbind_filter(tp, &fold->res); in route4_change() [all …]
|
D | cls_matchall.c | 18 struct tcf_result res; member 28 struct tcf_result *res) in mall_classify() argument 38 *res = head->res; in mall_classify() 40 return tcf_exts_exec(skb, &head->exts, res); in mall_classify() 136 tcf_unbind_filter(tp, &head->res); in mall_destroy() 177 head->res.classid = nla_get_u32(tb[TCA_MATCHALL_CLASSID]); in mall_set_parms() 178 tcf_bind_filter(tp, &head->res, base); in mall_set_parms() 367 if (head->res.classid && in mall_dump() 368 nla_put_u32(skb, TCA_MATCHALL_CLASSID, head->res.classid)) in mall_dump() 405 if (head && head->res.classid == classid) { in mall_bind_class() [all …]
|
D | cls_bpf.c | 40 struct tcf_result res; member 81 struct tcf_result *res) in cls_bpf_classify() argument 93 qdisc_skb_cb(skb)->tc_classid = prog->res.classid; in cls_bpf_classify() 109 res->class = 0; in cls_bpf_classify() 110 res->classid = TC_H_MAJ(prog->res.classid) | in cls_bpf_classify() 122 res->class = 0; in cls_bpf_classify() 123 res->classid = filter_res; in cls_bpf_classify() 125 *res = prog->res; in cls_bpf_classify() 128 ret = tcf_exts_exec(skb, &prog->exts, res); in cls_bpf_classify() 295 tcf_unbind_filter(tp, &prog->res); in __cls_bpf_delete() [all …]
|
/net/ipv4/ |
D | route.c | 773 struct fib_result res; in __ip_do_redirect() local 818 if (fib_lookup(net, fl4, &res, 0) == 0) { in __ip_do_redirect() 821 fib_select_path(net, &res, fl4, skb); in __ip_do_redirect() 822 nhc = FIB_RES_NHC(res); in __ip_do_redirect() 1050 struct fib_result res; in __ip_rt_update_pmtu() local 1071 if (fib_lookup(net, fl4, &res, 0) == 0) { in __ip_rt_update_pmtu() 1074 fib_select_path(net, &res, fl4, NULL); in __ip_rt_update_pmtu() 1075 nhc = FIB_RES_NHC(res); in __ip_rt_update_pmtu() 1245 int res; in ipv4_send_dest_unreach() local 1262 res = __ip_options_compile(dev_net(dev), &opt, skb, NULL); in ipv4_send_dest_unreach() [all …]
|
D | ipmr_base.c | 86 if (c->mfc_un.res.ttls[vifi] < 255) in mr_mfc_find_any_parent() 100 if (c->mfc_un.res.ttls[vifi] < 255) in mr_mfc_find_any() 105 if (proxy && proxy->mfc_un.res.ttls[vifi] < 255) in mr_mfc_find_any() 235 for (ct = c->mfc_un.res.minvif; ct < c->mfc_un.res.maxvif; ct++) { in mr_fill_mroute() 236 if (VIF_EXISTS(mrt, ct) && c->mfc_un.res.ttls[ct] < 255) { in mr_fill_mroute() 246 nhp->rtnh_hops = c->mfc_un.res.ttls[ct]; in mr_fill_mroute() 255 lastuse = READ_ONCE(c->mfc_un.res.lastuse); in mr_fill_mroute() 258 mfcs.mfcs_packets = c->mfc_un.res.pkt; in mr_fill_mroute() 259 mfcs.mfcs_bytes = c->mfc_un.res.bytes; in mr_fill_mroute() 260 mfcs.mfcs_wrong_if = c->mfc_un.res.wrong_if; in mr_fill_mroute() [all …]
|
/net/core/ |
D | sock_diag.c | 28 u64 res = atomic64_read(&sk->sk_cookie); in __sock_gen_cookie() local 30 if (res) in __sock_gen_cookie() 31 return res; in __sock_gen_cookie() 32 res = gen_cookie_next(&sock_cookie); in __sock_gen_cookie() 33 atomic64_cmpxchg(&sk->sk_cookie, 0, res); in __sock_gen_cookie() 39 u64 res; in sock_diag_check_cookie() local 44 res = sock_gen_cookie(sk); in sock_diag_check_cookie() 45 if ((u32)res != cookie[0] || (u32)(res >> 32) != cookie[1]) in sock_diag_check_cookie() 54 u64 res = sock_gen_cookie(sk); in sock_diag_save_cookie() local 56 cookie[0] = (u32)res; in sock_diag_save_cookie() [all …]
|
/net/ieee802154/6lowpan/ |
D | reassembly.c | 141 int res; in lowpan_frag_queue() local 145 res = lowpan_frag_reasm(fq, skb, prev_tail, ldev); in lowpan_frag_queue() 147 return res; in lowpan_frag_queue() 188 lowpan_rx_result res) in lowpan_frag_rx_handlers_result() argument 190 switch (res) { in lowpan_frag_rx_handlers_result() 221 lowpan_rx_result res; in lowpan_invoke_frag_rx_handlers() local 225 res = rxh(skb); \ in lowpan_invoke_frag_rx_handlers() 226 if (res != RX_CONTINUE) \ in lowpan_invoke_frag_rx_handlers() 235 return lowpan_frag_rx_handlers_result(skb, res); in lowpan_invoke_frag_rx_handlers() 445 int res; in lowpan_frags_init_net() local [all …]
|
/net/ |
D | devres.c | 16 struct net_device_devres *res = this; in devm_free_netdev() local 18 free_netdev(res->ndev); in devm_free_netdev() 44 struct net_device_devres *res = this; in devm_unregister_netdev() local 46 unregister_netdev(res->ndev); in devm_unregister_netdev() 51 struct net_device_devres *res = this; in netdev_devres_match() local 54 return ndev == res->ndev; in netdev_devres_match()
|
/net/ax25/ |
D | ax25_uid.c | 52 ax25_uid_assoc *ax25_uid, *res = NULL; in ax25_findbyuid() local 58 res = ax25_uid; in ax25_findbyuid() 64 return res; in ax25_findbyuid() 73 unsigned long res; in ax25_uid_ioctl() local 77 res = -ENOENT; in ax25_uid_ioctl() 81 res = from_kuid_munged(current_user_ns(), ax25_uid->uid); in ax25_uid_ioctl() 87 return res; in ax25_uid_ioctl()
|
D | af_ax25.c | 559 int res = 0; in ax25_setsockopt() local 577 res = -EINVAL; in ax25_setsockopt() 582 res = -EINVAL; in ax25_setsockopt() 591 res = -EINVAL; in ax25_setsockopt() 600 res = -EINVAL; in ax25_setsockopt() 608 res = -EINVAL; in ax25_setsockopt() 616 res = -EINVAL; in ax25_setsockopt() 624 res = -EINVAL; in ax25_setsockopt() 632 res = -EINVAL; in ax25_setsockopt() 652 res = -EINVAL; in ax25_setsockopt() [all …]
|
/net/sunrpc/ |
D | timer.c | 112 unsigned long res; in rpc_calc_rto() local 117 res = ((rt->srtt[timer] + 7) >> 3) + rt->sdrtt[timer]; in rpc_calc_rto() 118 if (res > RPC_RTO_MAX) in rpc_calc_rto() 119 res = RPC_RTO_MAX; in rpc_calc_rto() 121 return res; in rpc_calc_rto()
|
/net/sunrpc/auth_gss/ |
D | gss_rpc_upcall.c | 284 struct gssx_res_accept_sec_context res = { in gssp_accept_sec_context_upcall() local 291 .rpc_resp = &res, in gssp_accept_sec_context_upcall() 300 res.output_token->len = GSSX_max_output_token_sz; in gssp_accept_sec_context_upcall() 312 data->major_status = res.status.major_status; in gssp_accept_sec_context_upcall() 313 data->minor_status = res.status.minor_status; in gssp_accept_sec_context_upcall() 314 if (res.context_handle) { in gssp_accept_sec_context_upcall() 326 if (res.options.count == 1) { in gssp_accept_sec_context_upcall() 327 gssx_buffer *value = &res.options.data[0].value; in gssp_accept_sec_context_upcall() 340 if (res.options.count != 0) { in gssp_accept_sec_context_upcall() 341 kfree(res.options.data); in gssp_accept_sec_context_upcall()
|