/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 | 76 int res; in hsr_fill_info() local 80 res = 0; in hsr_fill_info() 85 res = nla_put_u32(skb, IFLA_HSR_SLAVE1, port->dev->ifindex); in hsr_fill_info() 87 if (res) in hsr_fill_info() 93 res = nla_put_u32(skb, IFLA_HSR_SLAVE2, port->dev->ifindex); in hsr_fill_info() 95 if (res) in hsr_fill_info() 146 int res; in hsr_nl_ringerror() local 157 res = nla_put(skb, HSR_A_NODE_ADDR, ETH_ALEN, addr); in hsr_nl_ringerror() 158 if (res < 0) in hsr_nl_ringerror() 161 res = nla_put_u32(skb, HSR_A_IFINDEX, port->dev->ifindex); in hsr_nl_ringerror() [all …]
|
D | hsr_slave.c | 99 int res; in hsr_portdev_setup() local 102 res = dev_set_promiscuity(dev, 1); in hsr_portdev_setup() 103 if (res) in hsr_portdev_setup() 111 res = netdev_rx_handler_register(dev, hsr_handle_frame, port); in hsr_portdev_setup() 112 if (res) in hsr_portdev_setup() 123 return res; in hsr_portdev_setup() 130 int res; in hsr_add_port() local 133 res = hsr_check_dev_ok(dev); in hsr_add_port() 134 if (res) in hsr_add_port() 135 return res; in hsr_add_port() [all …]
|
D | hsr_main.c | 25 int res; in hsr_netdev_notify() local 71 res = hsr_create_self_node(hsr, in hsr_netdev_notify() 76 if (res) in hsr_netdev_notify() 116 int res; in hsr_init() local 121 res = hsr_netlink_init(); in hsr_init() 123 return res; in hsr_init()
|
D | hsr_device.c | 439 int res; in hsr_dev_finalize() local 450 res = hsr_create_self_node(hsr, hsr_dev->dev_addr, in hsr_dev_finalize() 452 if (res < 0) in hsr_dev_finalize() 453 return res; in hsr_dev_finalize() 481 res = hsr_add_port(hsr, hsr_dev, HSR_PT_MASTER); in hsr_dev_finalize() 482 if (res) in hsr_dev_finalize() 485 res = register_netdevice(hsr_dev); in hsr_dev_finalize() 486 if (res) in hsr_dev_finalize() 489 res = hsr_add_port(hsr, slave[0], HSR_PT_SLAVE_A); in hsr_dev_finalize() 490 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 | 333 struct cfg80211_pmsr_result *res) in nl80211_pmsr_send_ftm_res() argument 335 if (res->status == NL80211_PMSR_STATUS_FAILURE) { in nl80211_pmsr_send_ftm_res() 337 res->ftm.failure_reason)) in nl80211_pmsr_send_ftm_res() 340 if (res->ftm.failure_reason == in nl80211_pmsr_send_ftm_res() 342 res->ftm.busy_retry_time && in nl80211_pmsr_send_ftm_res() 344 res->ftm.busy_retry_time)) in nl80211_pmsr_send_ftm_res() 354 res->ftm.val)) \ in nl80211_pmsr_send_ftm_res() 360 if (res->ftm.val##_valid) \ in nl80211_pmsr_send_ftm_res() 368 res->ftm.val, \ in nl80211_pmsr_send_ftm_res() 375 if (res->ftm.val##_valid) \ in nl80211_pmsr_send_ftm_res() [all …]
|
/net/ipv6/ |
D | route.c | 110 static struct rt6_info *rt6_find_cached_rt(const struct fib6_result *res, 427 void fib6_select_path(const struct net *net, struct fib6_result *res, in fib6_select_path() argument 432 struct fib6_info *match = res->f6i; in fib6_select_path() 445 nexthop_path_fib6_result(res, fl6->mp_hash); in fib6_select_path() 467 res->f6i = match; in fib6_select_path() 468 res->nh = match->fib6_nh; in fib6_select_path() 515 struct fib6_result *res, in rt6_nh_dev_match() argument 535 static void rt6_device_match(struct net *net, struct fib6_result *res, in rt6_device_match() argument 538 struct fib6_info *f6i = res->f6i; in rt6_device_match() 558 nh = rt6_nh_dev_match(net, spf6i->nh, res, saddr, in rt6_device_match() [all …]
|
D | fib6_rules.c | 62 struct fib6_result *res, int flags) in fib6_lookup() argument 70 .result = res, in fib6_lookup() 80 fl6, res, flags); in fib6_lookup() 81 if (err || res->f6i == net->ipv6.fib6_null_entry) in fib6_lookup() 83 oif, fl6, res, flags); in fib6_lookup() 94 struct fib6_result res = {}; in fib6_rule_lookup() local 98 .result = &res, in fib6_rule_lookup() 108 if (res.rt6) in fib6_rule_lookup() 109 return &res.rt6->dst; in fib6_rule_lookup() 156 struct fib6_result *res = arg->result; in fib6_rule_action_alt() local [all …]
|
/net/sched/ |
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() 214 f->res.classid = nla_get_u32(tb[TCA_FW_CLASSID]); in fw_set_parms() 215 tcf_bind_filter(tp, &f->res, base); in fw_set_parms() [all …]
|
D | cls_tcindex.c | 31 struct tcf_result res; member 57 return tcf_exts_has_actions(&r->exts) || r->res.classid; in tcindex_filter_is_set() 84 struct tcf_result *res) in tcindex_classify() argument 91 skb, tp, res, p); in tcindex_classify() 99 res->classid = TC_H_MAKE(TC_H_MAJ(q->handle), key); in tcindex_classify() 100 res->class = 0; in tcindex_classify() 101 pr_debug("alg 0x%x\n", res->classid); in tcindex_classify() 104 *res = f->res; in tcindex_classify() 105 pr_debug("map 0x%x\n", res->classid); in tcindex_classify() 107 return tcf_exts_exec(skb, &f->exts, res); in tcindex_classify() [all …]
|
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_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() 458 f->res.classid = nla_get_u32(tb[TCA_ROUTE4_CLASSID]); in route4_set_parms() 459 tcf_bind_filter(tp, &f->res, base); in route4_set_parms() 504 f->res = fold->res; in route4_change() [all …]
|
D | cls_rsvp.h | 91 struct tcf_result res; member 120 int r = tcf_exts_exec(skb, &f->exts, res); \ 128 struct tcf_result *res) in rsvp_classify() argument 194 *res = f->res; in rsvp_classify() 201 tunnelid = f->res.classid; in rsvp_classify() 210 *res = f->res; in rsvp_classify() 300 tcf_unbind_filter(tp, &f->res); in rsvp_delete_filter() 438 data->tgenerator = f->res.classid; in tunnel_recycle() 531 n->res.classid = nla_get_u32(tb[TCA_RSVP_CLASSID]); in rsvp_change() 532 tcf_bind_filter(tp, &n->res, base); in rsvp_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() 176 head->res.classid = nla_get_u32(tb[TCA_MATCHALL_CLASSID]); in mall_set_parms() 177 tcf_bind_filter(tp, &head->res, base); in mall_set_parms() 363 if (head->res.classid && in mall_dump() 364 nla_put_u32(skb, TCA_MATCHALL_CLASSID, head->res.classid)) in mall_dump() 401 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/decnet/ |
D | dn_route.c | 862 static int dn_rt_set_next_hop(struct dn_route *rt, struct dn_fib_res *res) in dn_rt_set_next_hop() argument 864 struct dn_fib_info *fi = res->fi; in dn_rt_set_next_hop() 870 if (DN_FIB_RES_GW(*res) && in dn_rt_set_next_hop() 871 DN_FIB_RES_NH(*res).nh_scope == RT_SCOPE_LINK) in dn_rt_set_next_hop() 872 rt->rt_gateway = DN_FIB_RES_GW(*res); in dn_rt_set_next_hop() 875 rt->rt_type = res->type; in dn_rt_set_next_hop() 936 static inline __le16 __dn_fib_res_prefsrc(struct dn_fib_res *res) in __dn_fib_res_prefsrc() argument 938 return dnet_select_source(DN_FIB_RES_DEV(*res), DN_FIB_RES_GW(*res), res->scope); in __dn_fib_res_prefsrc() 941 static inline __le16 dn_fib_rules_map_destination(__le16 daddr, struct dn_fib_res *res) in dn_fib_rules_map_destination() argument 943 __le16 mask = dnet_make_mask(res->prefixlen); in dn_fib_rules_map_destination() [all …]
|
/net/core/ |
D | sock_diag.c | 27 u64 res = atomic64_read(&sk->sk_cookie); in sock_gen_cookie() local 29 if (res) in sock_gen_cookie() 30 return res; in sock_gen_cookie() 31 res = atomic64_inc_return(&cookie_gen); in sock_gen_cookie() 32 atomic64_cmpxchg(&sk->sk_cookie, 0, res); in sock_gen_cookie() 38 u64 res; in sock_diag_check_cookie() local 43 res = sock_gen_cookie(sk); in sock_diag_check_cookie() 44 if ((u32)res != cookie[0] || (u32)(res >> 32) != cookie[1]) in sock_diag_check_cookie() 53 u64 res = sock_gen_cookie(sk); in sock_diag_save_cookie() local 55 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/ipv4/ |
D | route.c | 744 struct fib_result res; in __ip_do_redirect() local 789 if (fib_lookup(net, fl4, &res, 0) == 0) { in __ip_do_redirect() 790 struct fib_nh_common *nhc = FIB_RES_NHC(res); in __ip_do_redirect() 1018 struct fib_result res; in __ip_rt_update_pmtu() local 1037 if (fib_lookup(dev_net(dst->dev), fl4, &res, 0) == 0) { in __ip_rt_update_pmtu() 1038 struct fib_nh_common *nhc = FIB_RES_NHC(res); in __ip_rt_update_pmtu() 1200 int res; in ipv4_send_dest_unreach() local 1216 res = __ip_options_compile(dev_net(skb->dev), &opt, skb, NULL); in ipv4_send_dest_unreach() 1219 if (res) in ipv4_send_dest_unreach() 1262 struct fib_result res; in ip_rt_get_source() local [all …]
|
/net/netfilter/ |
D | xt_IDLETIMER.c | 108 int res; in notify_netlink_uevent() local 113 res = snprintf(iface_msg, NLMSG_MAX_SIZE, "INTERFACE=%s", in notify_netlink_uevent() 115 if (NLMSG_MAX_SIZE <= res) { in notify_netlink_uevent() 116 pr_err("message too long (%d)", res); in notify_netlink_uevent() 122 res = snprintf(state_msg, NLMSG_MAX_SIZE, "STATE=%s", in notify_netlink_uevent() 125 if (NLMSG_MAX_SIZE <= res) { in notify_netlink_uevent() 126 pr_err("message too long (%d)", res); in notify_netlink_uevent() 131 res = snprintf(uid_msg, NLMSG_MAX_SIZE, "UID=%u", timer->uid); in notify_netlink_uevent() 132 if (NLMSG_MAX_SIZE <= res) in notify_netlink_uevent() 133 pr_err("message too long (%d)", res); in notify_netlink_uevent() [all …]
|
/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 | 538 int res = 0; in ax25_setsockopt() local 556 res = -EINVAL; in ax25_setsockopt() 561 res = -EINVAL; in ax25_setsockopt() 570 res = -EINVAL; in ax25_setsockopt() 579 res = -EINVAL; in ax25_setsockopt() 587 res = -EINVAL; in ax25_setsockopt() 595 res = -EINVAL; in ax25_setsockopt() 603 res = -EINVAL; in ax25_setsockopt() 611 res = -EINVAL; in ax25_setsockopt() 631 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()
|