/net/hsr/ |
D | hsr_netlink.c | 82 int res; in hsr_fill_info() local 86 res = 0; in hsr_fill_info() 91 res = nla_put_u32(skb, IFLA_HSR_SLAVE1, port->dev->ifindex); in hsr_fill_info() 93 if (res) in hsr_fill_info() 99 res = nla_put_u32(skb, IFLA_HSR_SLAVE2, port->dev->ifindex); in hsr_fill_info() 101 if (res) in hsr_fill_info() 152 int res; in hsr_nl_ringerror() local 163 res = nla_put(skb, HSR_A_NODE_ADDR, ETH_ALEN, addr); in hsr_nl_ringerror() 164 if (res < 0) in hsr_nl_ringerror() 167 res = nla_put_u32(skb, HSR_A_IFINDEX, port->dev->ifindex); in hsr_nl_ringerror() [all …]
|
D | hsr_slave.c | 101 int res; in hsr_portdev_setup() local 104 res = dev_set_promiscuity(dev, 1); in hsr_portdev_setup() 105 if (res) in hsr_portdev_setup() 113 res = netdev_rx_handler_register(dev, hsr_handle_frame, port); in hsr_portdev_setup() 114 if (res) in hsr_portdev_setup() 125 return res; in hsr_portdev_setup() 132 int res; in hsr_add_port() local 135 res = hsr_check_dev_ok(dev); in hsr_add_port() 136 if (res) in hsr_add_port() 137 return res; in hsr_add_port() [all …]
|
D | hsr_device.c | 440 int res; in hsr_dev_finalize() local 451 res = hsr_create_self_node(hsr, hsr_dev->dev_addr, in hsr_dev_finalize() 453 if (res < 0) in hsr_dev_finalize() 454 return res; in hsr_dev_finalize() 482 res = hsr_add_port(hsr, hsr_dev, HSR_PT_MASTER); in hsr_dev_finalize() 483 if (res) in hsr_dev_finalize() 486 res = register_netdevice(hsr_dev); in hsr_dev_finalize() 487 if (res) in hsr_dev_finalize() 490 res = hsr_add_port(hsr, slave[0], HSR_PT_SLAVE_A); in hsr_dev_finalize() 491 if (res) in hsr_dev_finalize() [all …]
|
/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/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 …]
|
D | debugfs.c | 25 int res; in mac80211_format_buffer() local 28 res = vscnprintf(buf, sizeof(buf), fmt, args); in mac80211_format_buffer() 31 return simple_read_from_buffer(userbuf, count, ppos, buf, res); in mac80211_format_buffer() 345 int q, res = 0; in queues_read() local 349 res += sprintf(buf + res, "%02d: %#.8lx/%d\n", q, in queues_read() 354 return simple_read_from_buffer(user_buf, count, ppos, buf, res); in queues_read() 371 int res; in format_devstat_counter() local 374 res = drv_get_stats(local, &stats); in format_devstat_counter() 376 if (res) in format_devstat_counter() 377 return res; in format_devstat_counter() [all …]
|
/net/wireless/ |
D | pmsr.c | 345 struct cfg80211_pmsr_result *res) in nl80211_pmsr_send_ftm_res() argument 347 if (res->status == NL80211_PMSR_STATUS_FAILURE) { in nl80211_pmsr_send_ftm_res() 349 res->ftm.failure_reason)) in nl80211_pmsr_send_ftm_res() 352 if (res->ftm.failure_reason == in nl80211_pmsr_send_ftm_res() 354 res->ftm.busy_retry_time && in nl80211_pmsr_send_ftm_res() 356 res->ftm.busy_retry_time)) in nl80211_pmsr_send_ftm_res() 366 res->ftm.val)) \ in nl80211_pmsr_send_ftm_res() 372 if (res->ftm.val##_valid) \ in nl80211_pmsr_send_ftm_res() 380 res->ftm.val, \ in nl80211_pmsr_send_ftm_res() 387 if (res->ftm.val##_valid) \ in nl80211_pmsr_send_ftm_res() [all …]
|
/net/ipv6/ |
D | route.c | 111 static struct rt6_info *rt6_find_cached_rt(const struct fib6_result *res, 428 void fib6_select_path(const struct net *net, struct fib6_result *res, in fib6_select_path() argument 433 struct fib6_info *match = res->f6i; in fib6_select_path() 438 if (match->nh && have_oif_match && res->nh) in fib6_select_path() 449 nexthop_path_fib6_result(res, fl6->mp_hash); in fib6_select_path() 471 res->f6i = match; in fib6_select_path() 472 res->nh = match->fib6_nh; in fib6_select_path() 519 struct fib6_result *res, in rt6_nh_dev_match() argument 539 static void rt6_device_match(struct net *net, struct fib6_result *res, in rt6_device_match() argument 542 struct fib6_info *f6i = res->f6i; 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_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() 364 if (head->res.classid && in mall_dump() 365 nla_put_u32(skb, TCA_MATCHALL_CLASSID, head->res.classid)) in mall_dump() 402 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 | 764 struct fib_result res; in __ip_do_redirect() local 809 if (fib_lookup(net, fl4, &res, 0) == 0) { in __ip_do_redirect() 812 fib_select_path(net, &res, fl4, skb); in __ip_do_redirect() 813 nhc = FIB_RES_NHC(res); in __ip_do_redirect() 1041 struct fib_result res; in __ip_rt_update_pmtu() local 1060 if (fib_lookup(net, fl4, &res, 0) == 0) { in __ip_rt_update_pmtu() 1063 fib_select_path(net, &res, fl4, NULL); in __ip_rt_update_pmtu() 1064 nhc = FIB_RES_NHC(res); in __ip_rt_update_pmtu() 1226 int res; in ipv4_send_dest_unreach() local 1243 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 | 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/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 | 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()
|
/net/tipc/ |
D | socket.c | 329 int res = -EINVAL; in tipc_set_sk_state() local 333 res = 0; in tipc_set_sk_state() 338 res = 0; in tipc_set_sk_state() 343 res = 0; in tipc_set_sk_state() 348 res = 0; in tipc_set_sk_state() 352 if (!res) in tipc_set_sk_state() 355 return res; in tipc_set_sk_state() 633 int res = -EINVAL; in tipc_bind() local 637 res = tipc_sk_withdraw(tsk, 0, NULL); in tipc_bind() 641 res = -EACCES; in tipc_bind() [all …]
|