Home
last modified time | relevance | path

Searched refs:ret (Results 1 – 25 of 532) sorted by relevance

12345678910>>...22

/net/wireless/
Drdev-ops.h12 int ret; in rdev_suspend() local
14 ret = rdev->ops->suspend(&rdev->wiphy, wowlan); in rdev_suspend()
15 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_suspend()
16 return ret; in rdev_suspend()
21 int ret; in rdev_resume() local
23 ret = rdev->ops->resume(&rdev->wiphy); in rdev_resume()
24 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_resume()
25 return ret; in rdev_resume()
41 struct wireless_dev *ret; in rdev_add_virtual_intf() local
43 ret = rdev->ops->add_virtual_intf(&rdev->wiphy, name, type, flags, in rdev_add_virtual_intf()
[all …]
/net/mac80211/
Ddriver-ops.h71 int ret; in drv_start() local
78 ret = local->ops->start(&local->hw); in drv_start()
79 trace_drv_return_int(local, ret); in drv_start()
80 return ret; in drv_start()
104 int ret; in drv_suspend() local
109 ret = local->ops->suspend(&local->hw, wowlan); in drv_suspend()
110 trace_drv_return_int(local, ret); in drv_suspend()
111 return ret; in drv_suspend()
116 int ret; in drv_resume() local
121 ret = local->ops->resume(&local->hw); in drv_resume()
[all …]
/net/ceph/
Dauth.c41 int ret; in ceph_auth_init() local
45 ret = -ENOMEM; in ceph_auth_init()
61 return ERR_PTR(ret); in ceph_auth_init()
106 int ret; in ceph_auth_build_hello() local
127 ret = ceph_entity_name_encode(ac->name, &p, end); in ceph_auth_build_hello()
128 if (ret < 0) in ceph_auth_build_hello()
134 ret = p - buf; in ceph_auth_build_hello()
137 return ret; in ceph_auth_build_hello()
140 ret = -ERANGE; in ceph_auth_build_hello()
150 int ret; in ceph_build_auth_request() local
[all …]
Dauth_x.c54 int ret; in ceph_x_encrypt() local
56 ret = ceph_encrypt2(secret, obuf + sizeof(u32), &len, in ceph_x_encrypt()
58 if (ret) in ceph_x_encrypt()
59 return ret; in ceph_x_encrypt()
69 int len, ret; in ceph_x_decrypt() local
83 ret = ceph_decrypt2(secret, &head, &head_len, *obuf, &olen, *p, len); in ceph_x_decrypt()
84 if (ret) in ceph_x_decrypt()
85 return ret; in ceph_x_decrypt()
158 int ret; in process_one_ticket() local
171 ret = PTR_ERR(th); in process_one_ticket()
[all …]
Dcrypto.c60 int ret; in ceph_crypto_key_unarmor() local
73 ret = ceph_crypto_key_decode(key, &p, p + blen); in ceph_crypto_key_unarmor()
75 if (ret) in ceph_crypto_key_unarmor()
76 return ret; in ceph_crypto_key_unarmor()
114 int ret; in setup_sgtable() local
127 ret = sg_alloc_table(sgt, chunk_cnt, GFP_NOFS); in setup_sgtable()
128 if (ret) in setup_sgtable()
129 return ret; in setup_sgtable()
171 int ret; in ceph_aes_encrypt() local
187 ret = setup_sgtable(&sg_out, &prealloc_sg, dst, *dst_len); in ceph_aes_encrypt()
[all …]
Dmessenger.c480 int ret; in ceph_tcp_connect() local
483 ret = sock_create_kern(con->peer_addr.in_addr.ss_family, SOCK_STREAM, in ceph_tcp_connect()
485 if (ret) in ceph_tcp_connect()
486 return ret; in ceph_tcp_connect()
498 ret = sock->ops->connect(sock, (struct sockaddr *)paddr, sizeof(*paddr), in ceph_tcp_connect()
500 if (ret == -EINPROGRESS) { in ceph_tcp_connect()
504 } else if (ret < 0) { in ceph_tcp_connect()
506 ceph_pr_addr(&con->peer_addr.in_addr), ret); in ceph_tcp_connect()
510 return ret; in ceph_tcp_connect()
533 int ret; in ceph_tcp_recvpage() local
[all …]
/net/ipv4/netfilter/
Darp_tables.c67 int i, ret; in arp_devaddr_compare() local
72 ret = 0; in arp_devaddr_compare()
74 ret |= (hdr_addr[i] ^ ap->addr[i]) & ap->mask[i]; in arp_devaddr_compare()
76 return ret != 0; in arp_devaddr_compare()
87 unsigned long ret = ifname_compare_aligned(_a, _b, _mask); in ifname_compare() local
89 unsigned long ret = 0; in ifname_compare()
96 ret |= (a[i] ^ b[i]) & mask[i]; in ifname_compare()
98 return ret; in ifname_compare()
111 long ret; in arp_packet_match() local
184 ret = ifname_compare(indev, arpinfo->iniface, arpinfo->iniface_mask); in arp_packet_match()
[all …]
Dip_tables.c81 unsigned long ret; in ip_packet_match() local
100 ret = ifname_compare_aligned(indev, ipinfo->iniface, ipinfo->iniface_mask); in ip_packet_match()
102 if (FWINV(ret != 0, IPT_INV_VIA_IN)) { in ip_packet_match()
109 ret = ifname_compare_aligned(outdev, ipinfo->outiface, ipinfo->outiface_mask); in ip_packet_match()
111 if (FWINV(ret != 0, IPT_INV_VIA_OUT)) { in ip_packet_match()
599 int ret; in check_match() local
604 ret = xt_check_match(par, m->u.match_size - sizeof(*m), in check_match()
606 if (ret < 0) { in check_match()
608 return ret; in check_match()
617 int ret; in find_check_match() local
[all …]
/net/netfilter/
Dnfnetlink_cttimeout.c55 int ret = 0; in ctnl_timeout_parse_policy() local
60 ret = nla_parse_nested(tb, l4proto->ctnl_timeout.nlattr_max, in ctnl_timeout_parse_policy()
62 if (ret < 0) in ctnl_timeout_parse_policy()
63 return ret; in ctnl_timeout_parse_policy()
65 ret = l4proto->ctnl_timeout.nlattr_to_obj(tb, net, timeouts); in ctnl_timeout_parse_policy()
67 return ret; in ctnl_timeout_parse_policy()
81 int ret; in cttimeout_new_timeout() local
108 ret = -EOPNOTSUPP; in cttimeout_new_timeout()
119 ret = -EINVAL; in cttimeout_new_timeout()
123 ret = ctnl_timeout_parse_policy(&matching->data, in cttimeout_new_timeout()
[all …]
Dnf_conntrack_h323_main.c265 int ret = 0; in expect_rtp_rtcp() local
308 ret = nat_rtp_rtcp(skb, ct, ctinfo, protoff, data, dataoff, in expect_rtp_rtcp()
319 ret = -1; in expect_rtp_rtcp()
322 ret = -1; in expect_rtp_rtcp()
328 return ret; in expect_rtp_rtcp()
340 int ret = 0; in expect_t120() local
368 ret = nat_t120(skb, ct, ctinfo, protoff, data, dataoff, taddr, in expect_t120()
375 ret = -1; in expect_t120()
380 return ret; in expect_t120()
391 int ret; in process_h245_channel() local
[all …]
Dxt_CT.c127 int ret = 0; in xt_ct_set_timeout() local
133 ret = -ENOENT; in xt_ct_set_timeout()
140 ret = -EINVAL; in xt_ct_set_timeout()
148 ret = -ENOENT; in xt_ct_set_timeout()
154 ret = -EINVAL; in xt_ct_set_timeout()
164 ret = -EINVAL; in xt_ct_set_timeout()
172 ret = -ENOMEM; in xt_ct_set_timeout()
178 return ret; in xt_ct_set_timeout()
189 int ret = -EOPNOTSUPP; in xt_ct_tg_check() local
201 ret = nf_ct_l3proto_try_module_get(par->family); in xt_ct_tg_check()
[all …]
Dnft_compat.c60 int ret; in nft_target_eval() local
64 ret = target->target(skb, &pkt->xt); in nft_target_eval()
67 ret = NF_DROP; in nft_target_eval()
69 switch(ret) { in nft_target_eval()
74 data[NFT_REG_VERDICT].verdict = ret; in nft_target_eval()
172 int ret; in nft_target_init() local
174 ret = nft_compat_chain_validate_dependency(target->table, ctx->chain); in nft_target_init()
175 if (ret < 0) in nft_target_init()
181 ret = nft_parse_compat(ctx->nla[NFTA_RULE_COMPAT], &proto, &inv); in nft_target_init()
182 if (ret < 0) in nft_target_init()
[all …]
/net/rds/
Drdma_transport.c74 int ret = 0; in rds_rdma_cm_event_handler() local
96 ret = 1; in rds_rdma_cm_event_handler()
103 ret = trans->cm_handle_connect(cm_id, event); in rds_rdma_cm_event_handler()
108 ret = rdma_resolve_route(cm_id, in rds_rdma_cm_event_handler()
114 ret = trans->cm_initiate_connect(cm_id); in rds_rdma_cm_event_handler()
151 rds_cm_event_str(event->event), ret); in rds_rdma_cm_event_handler()
153 return ret; in rds_rdma_cm_event_handler()
160 int ret; in rds_rdma_listen_init() local
165 ret = PTR_ERR(cm_id); in rds_rdma_listen_init()
167 "rdma_create_id() returned %d\n", ret); in rds_rdma_listen_init()
[all …]
Daf_rds.c219 int ret = 0; in rds_cancel_sent_to() local
223 ret = -ENOTCONN; /* XXX not a great errno */ in rds_cancel_sent_to()
228 ret = -EINVAL; in rds_cancel_sent_to()
233 ret = -EFAULT; in rds_cancel_sent_to()
239 return ret; in rds_cancel_sent_to()
258 int ret; in rds_cong_monitor() local
260 ret = rds_set_bool_option(&rs->rs_cong_monitor, optval, optlen); in rds_cong_monitor()
261 if (ret == 0) { in rds_cong_monitor()
270 return ret; in rds_cong_monitor()
277 int ret; in rds_setsockopt() local
[all …]
/net/ipv6/netfilter/
Dip6_tables.c92 unsigned long ret; in ip6_packet_match() local
112 ret = ifname_compare_aligned(indev, ip6info->iniface, ip6info->iniface_mask); in ip6_packet_match()
114 if (FWINV(ret != 0, IP6T_INV_VIA_IN)) { in ip6_packet_match()
121 ret = ifname_compare_aligned(outdev, ip6info->outiface, ip6info->outiface_mask); in ip6_packet_match()
123 if (FWINV(ret != 0, IP6T_INV_VIA_OUT)) { in ip6_packet_match()
608 int ret; in check_match() local
613 ret = xt_check_match(par, m->u.match_size - sizeof(*m), in check_match()
615 if (ret < 0) { in check_match()
618 return ret; in check_match()
627 int ret; in find_check_match() local
[all …]
/net/netfilter/ipset/
Dip_set_hash_netiface.c225 int ret; in hash_netiface4_kadt() local
255 ret = iface_test(&h->rbtree, &e.iface); in hash_netiface4_kadt()
257 if (!ret) { in hash_netiface4_kadt()
258 ret = iface_add(&h->rbtree, &e.iface); in hash_netiface4_kadt()
259 if (ret) in hash_netiface4_kadt()
260 return ret; in hash_netiface4_kadt()
262 } else if (!ret) in hash_netiface4_kadt()
263 return ret; in hash_netiface4_kadt()
278 int ret; in hash_netiface4_uadt() local
294 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP], &ip) || in hash_netiface4_uadt()
[all …]
Dip_set_hash_ipmark.c111 int ret; in hash_ipmark4_uadt() local
126 ret = ip_set_get_ipaddr4(tb[IPSET_ATTR_IP], &e.ip) || in hash_ipmark4_uadt()
128 if (ret) in hash_ipmark4_uadt()
129 return ret; in hash_ipmark4_uadt()
136 ret = adtfn(set, &e, &ext, &ext, flags); in hash_ipmark4_uadt()
137 return ip_set_eexist(ret, flags) ? 0 : ret; in hash_ipmark4_uadt()
142 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in hash_ipmark4_uadt()
143 if (ret) in hash_ipmark4_uadt()
144 return ret; in hash_ipmark4_uadt()
159 ret = adtfn(set, &e, &ext, &ext, flags); in hash_ipmark4_uadt()
[all …]
/net/rxrpc/
Daf_rxrpc.c129 int ret; in rxrpc_bind() local
133 ret = rxrpc_validate_address(rx, srx, len); in rxrpc_bind()
134 if (ret < 0) in rxrpc_bind()
140 ret = -EINVAL; in rxrpc_bind()
149 ret = PTR_ERR(local); in rxrpc_bind()
176 ret = -EADDRINUSE; in rxrpc_bind()
181 _leave(" = %d", ret); in rxrpc_bind()
182 return ret; in rxrpc_bind()
192 int ret; in rxrpc_listen() local
200 ret = -EADDRNOTAVAIL; in rxrpc_listen()
[all …]
Dar-output.c143 int ret; in rxrpc_client_sendmsg() local
149 ret = rxrpc_sendmsg_cmsg(rx, msg, &user_call_ID, &cmd, &abort_code, in rxrpc_client_sendmsg()
151 if (ret < 0) in rxrpc_client_sendmsg()
152 return ret; in rxrpc_client_sendmsg()
185 ret = -ESHUTDOWN; in rxrpc_client_sendmsg()
189 ret = -EINVAL; in rxrpc_client_sendmsg()
192 ret = -EPROTO; in rxrpc_client_sendmsg()
194 ret = rxrpc_send_data(iocb, rx, call, msg, len); in rxrpc_client_sendmsg()
198 _leave(" = %d", ret); in rxrpc_client_sendmsg()
199 return ret; in rxrpc_client_sendmsg()
[all …]
Dar-accept.c35 int ret; in rxrpc_busy() local
59 ret = kernel_sendmsg(local->socket, &msg, iov, 1, len); in rxrpc_busy()
60 if (ret < 0) { in rxrpc_busy()
61 _leave(" = -EAGAIN [sendmsg failed: %d]", ret); in rxrpc_busy()
84 int ret; in rxrpc_accept_incoming_call() local
94 ret = -ENOMEM; in rxrpc_accept_incoming_call()
103 ret = -EBUSY; in rxrpc_accept_incoming_call()
111 ret = -EBUSY; in rxrpc_accept_incoming_call()
119 ret = PTR_ERR(conn); in rxrpc_accept_incoming_call()
127 ret = PTR_ERR(call); in rxrpc_accept_incoming_call()
[all …]
/net/bridge/netfilter/
Debtables.c365 int ret; in ebt_check_match() local
378 ret = xt_check_match(par, m->match_size, in ebt_check_match()
380 if (ret < 0) { in ebt_check_match()
382 return ret; in ebt_check_match()
396 int ret; in ebt_check_watcher() local
409 ret = xt_check_target(par, w->watcher_size, in ebt_check_watcher()
411 if (ret < 0) { in ebt_check_watcher()
413 return ret; in ebt_check_watcher()
658 int ret; in ebt_check_entry() local
707 ret = EBT_MATCH_ITERATE(e, ebt_check_match, &mtpar, &i); in ebt_check_entry()
[all …]
/net/dsa/
Ddsa.c48 struct dsa_switch_driver *ret; in dsa_switch_probe() local
52 ret = NULL; in dsa_switch_probe()
63 ret = drv; in dsa_switch_probe()
71 return ret; in dsa_switch_probe()
83 int ret; in dsa_switch_setup() local
127 ret = -EINVAL; in dsa_switch_setup()
141 ret = -EINVAL; in dsa_switch_setup()
180 ret = -ENOPROTOOPT; in dsa_switch_setup()
190 ret = drv->setup(ds); in dsa_switch_setup()
191 if (ret < 0) in dsa_switch_setup()
[all …]
/net/tipc/
Dserver.c204 int ret; in tipc_alloc_conn() local
217 ret = idr_alloc(&s->conn_idr, con, 0, 0, GFP_ATOMIC); in tipc_alloc_conn()
218 if (ret < 0) { in tipc_alloc_conn()
223 con->conid = ret; in tipc_alloc_conn()
240 int ret; in tipc_receive_from_sock() local
244 ret = -ENOMEM; in tipc_receive_from_sock()
251 ret = kernel_recvmsg(con->sock, &msg, &iov, 1, iov.iov_len, in tipc_receive_from_sock()
253 if (ret <= 0) { in tipc_receive_from_sock()
258 s->tipc_conn_recvmsg(con->conid, &addr, con->usr_data, buf, ret); in tipc_receive_from_sock()
265 if (ret != -EWOULDBLOCK) in tipc_receive_from_sock()
[all …]
/net/dcb/
Ddcbnl.c238 int ret; in dcbnl_getpfccfg() local
248 ret = nla_parse_nested(data, DCB_PFC_UP_ATTR_MAX, in dcbnl_getpfccfg()
251 if (ret) in dcbnl_getpfccfg()
252 return ret; in dcbnl_getpfccfg()
267 ret = nla_put_u8(skb, i, value); in dcbnl_getpfccfg()
268 if (ret) { in dcbnl_getpfccfg()
270 return ret; in dcbnl_getpfccfg()
297 int ret; in dcbnl_getcap() local
307 ret = nla_parse_nested(data, DCB_CAP_ATTR_MAX, tb[DCB_ATTR_CAP], in dcbnl_getcap()
309 if (ret) in dcbnl_getcap()
[all …]
/net/ipv4/
Dxfrm4_protocol.c51 int ret; in xfrm4_rcv_cb() local
59 if ((ret = handler->cb_handler(skb, err)) <= 0) in xfrm4_rcv_cb()
60 return ret; in xfrm4_rcv_cb()
69 int ret; in xfrm4_rcv_encap() local
81 if ((ret = handler->input_handler(skb, nexthdr, spi, encap_type)) != -EINVAL) in xfrm4_rcv_encap()
82 return ret; in xfrm4_rcv_encap()
94 int ret; in xfrm4_esp_rcv() local
100 if ((ret = handler->handler(skb)) != -EINVAL) in xfrm4_esp_rcv()
101 return ret; in xfrm4_esp_rcv()
120 int ret; in xfrm4_ah_rcv() local
[all …]

12345678910>>...22