Home
last modified time | relevance | path

Searched refs:r (Results 1 – 25 of 90) sorted by relevance

1234

/net/nfc/hci/
Dcore.c55 int r = 0; in nfc_hci_msg_tx_work() local
85 r = nfc_llc_xmit_from_hci(hdev->llc, skb); in nfc_hci_msg_tx_work()
86 if (r < 0) { in nfc_hci_msg_tx_work()
90 msg->cb(msg->cb_context, NULL, r); in nfc_hci_msg_tx_work()
96 if (r) in nfc_hci_msg_tx_work()
196 int r; in nfc_hci_target_discovered() local
206 r = nfc_hci_get_param(hdev, NFC_HCI_RF_READER_A_GATE, in nfc_hci_target_discovered()
208 if (r < 0) in nfc_hci_target_discovered()
211 r = nfc_hci_get_param(hdev, NFC_HCI_RF_READER_A_GATE, in nfc_hci_target_discovered()
213 if (r < 0) in nfc_hci_target_discovered()
[all …]
Dcommand.c176 int r; in nfc_hci_set_param() local
196 r = nfc_hci_send_cmd(hdev, gate, NFC_HCI_ANY_SET_PARAMETER, in nfc_hci_set_param()
201 return r; in nfc_hci_set_param()
218 int r; in nfc_hci_open_pipe() local
222 r = nfc_hci_execute_cmd(hdev, pipe, NFC_HCI_ANY_OPEN_PIPE, in nfc_hci_open_pipe()
224 if (r == 0) { in nfc_hci_open_pipe()
232 return r; in nfc_hci_open_pipe()
300 int r; in nfc_hci_disconnect_gate() local
308 r = nfc_hci_close_pipe(hdev, pipe); in nfc_hci_disconnect_gate()
309 if (r < 0) in nfc_hci_disconnect_gate()
[all …]
Dllc_shdlc.c154 int r; in llc_shdlc_send_s_frame() local
165 r = shdlc->xmit_to_drv(shdlc->hdev, skb); in llc_shdlc_send_s_frame()
169 return r; in llc_shdlc_send_s_frame()
177 int r; in llc_shdlc_send_u_frame() local
183 r = shdlc->xmit_to_drv(shdlc->hdev, skb); in llc_shdlc_send_u_frame()
187 return r; in llc_shdlc_send_u_frame()
354 static void llc_shdlc_connect_complete(struct llc_shdlc *shdlc, int r) in llc_shdlc_connect_complete() argument
356 pr_debug("result=%d\n", r); in llc_shdlc_connect_complete()
360 if (r == 0) { in llc_shdlc_connect_complete()
370 shdlc->connect_result = r; in llc_shdlc_connect_complete()
[all …]
Dllc.c27 int r; in nfc_llc_init() local
29 r = nfc_llc_nop_register(); in nfc_llc_init()
30 if (r) in nfc_llc_init()
33 r = nfc_llc_shdlc_register(); in nfc_llc_init()
34 if (r) in nfc_llc_init()
41 return r; in nfc_llc_init()
/net/ipv4/
Dinet_diag.c97 struct inet_diag_msg *r; in inet_sk_diag_fill() local
107 nlh = nlmsg_put(skb, portid, seq, unlh->nlmsg_type, sizeof(*r), in inet_sk_diag_fill()
112 r = nlmsg_data(nlh); in inet_sk_diag_fill()
115 r->idiag_family = sk->sk_family; in inet_sk_diag_fill()
116 r->idiag_state = sk->sk_state; in inet_sk_diag_fill()
117 r->idiag_timer = 0; in inet_sk_diag_fill()
118 r->idiag_retrans = 0; in inet_sk_diag_fill()
120 r->id.idiag_if = sk->sk_bound_dev_if; in inet_sk_diag_fill()
121 sock_diag_save_cookie(sk, r->id.idiag_cookie); in inet_sk_diag_fill()
123 r->id.idiag_sport = inet->inet_sport; in inet_sk_diag_fill()
[all …]
Darp.c1013 static int arp_req_set_public(struct net *net, struct arpreq *r, in arp_req_set_public() argument
1016 __be32 ip = ((struct sockaddr_in *)&r->arp_pa)->sin_addr.s_addr; in arp_req_set_public()
1017 __be32 mask = ((struct sockaddr_in *)&r->arp_netmask)->sin_addr.s_addr; in arp_req_set_public()
1021 if (!dev && (r->arp_flags & ATF_COM)) { in arp_req_set_public()
1022 dev = dev_getbyhwaddr_rcu(net, r->arp_ha.sa_family, in arp_req_set_public()
1023 r->arp_ha.sa_data); in arp_req_set_public()
1036 static int arp_req_set(struct net *net, struct arpreq *r, in arp_req_set() argument
1043 if (r->arp_flags & ATF_PUBL) in arp_req_set()
1044 return arp_req_set_public(net, r, dev); in arp_req_set()
1046 ip = ((struct sockaddr_in *)&r->arp_pa)->sin_addr.s_addr; in arp_req_set()
[all …]
Dudp_diag.c95 struct inet_diag_req_v2 *r, struct nlattr *bc) in udp_dump() argument
122 if (!(r->idiag_states & (1 << sk->sk_state))) in udp_dump()
124 if (r->sdiag_family != AF_UNSPEC && in udp_dump()
125 sk->sk_family != r->sdiag_family) in udp_dump()
127 if (r->id.idiag_sport != inet->inet_sport && in udp_dump()
128 r->id.idiag_sport) in udp_dump()
130 if (r->id.idiag_dport != inet->inet_dport && in udp_dump()
131 r->id.idiag_dport) in udp_dump()
134 if (sk_diag_dump(sk, skb, cb, r, bc, net_admin) < 0) { in udp_dump()
149 struct inet_diag_req_v2 *r, struct nlattr *bc) in udp_diag_dump() argument
[all …]
Dtcp_diag.c21 static void tcp_diag_get_info(struct sock *sk, struct inet_diag_msg *r, in tcp_diag_get_info() argument
28 r->idiag_rqueue = sk->sk_ack_backlog; in tcp_diag_get_info()
29 r->idiag_wqueue = sk->sk_max_ack_backlog; in tcp_diag_get_info()
31 r->idiag_rqueue = max_t(int, tp->rcv_nxt - tp->copied_seq, 0); in tcp_diag_get_info()
32 r->idiag_wqueue = tp->write_seq - tp->snd_una; in tcp_diag_get_info()
39 struct inet_diag_req_v2 *r, struct nlattr *bc) in tcp_diag_dump() argument
41 inet_diag_dump_icsk(&tcp_hashinfo, skb, cb, r, bc); in tcp_diag_dump()
Dinetpeer.c262 struct inet_peer *node, *l, *r; in peer_avl_rebalance() local
269 r = rcu_deref_locked(node->avl_right, base); in peer_avl_rebalance()
271 rh = node_height(r); in peer_avl_rebalance()
280 RCU_INIT_POINTER(node->avl_right, r); /* r: RH */ in peer_avl_rebalance()
290 RCU_INIT_POINTER(node->avl_right, r); /* r: RH */ in peer_avl_rebalance()
303 rr = rcu_deref_locked(r->avl_right, base); in peer_avl_rebalance()
304 rl = rcu_deref_locked(r->avl_left, base); in peer_avl_rebalance()
310 RCU_INIT_POINTER(r->avl_right, rr); /* rr: LH+1 */ in peer_avl_rebalance()
311 RCU_INIT_POINTER(r->avl_left, node); /* node: LH+1 or LH+2 */ in peer_avl_rebalance()
312 r->avl_height = node->avl_height + 1; in peer_avl_rebalance()
[all …]
/net/decnet/
Ddn_rules.c62 res->r = arg.rule; in dn_fib_lookup()
109 struct dn_fib_rule *r = (struct dn_fib_rule *)rule; in dn_fib_rule_match() local
114 if (((saddr ^ r->src) & r->srcmask) || in dn_fib_rule_match()
115 ((daddr ^ r->dst) & r->dstmask)) in dn_fib_rule_match()
126 struct dn_fib_rule *r = (struct dn_fib_rule *)rule; in dn_fib_rule_configure() local
146 r->src = nla_get_le16(tb[FRA_SRC]); in dn_fib_rule_configure()
149 r->dst = nla_get_le16(tb[FRA_DST]); in dn_fib_rule_configure()
151 r->src_len = frh->src_len; in dn_fib_rule_configure()
152 r->srcmask = dnet_make_mask(r->src_len); in dn_fib_rule_configure()
153 r->dst_len = frh->dst_len; in dn_fib_rule_configure()
[all …]
Ddn_fib.c164 const struct rtmsg *r) in dn_fib_get_nhs() argument
174 nh->nh_flags = (r->rtm_flags&~0xFF) | nhp->rtnh_flags; in dn_fib_get_nhs()
191 static int dn_fib_check_nh(const struct rtmsg *r, struct dn_fib_info *fi, struct dn_fib_nh *nh) in dn_fib_check_nh() argument
202 if (r->rtm_scope >= RT_SCOPE_LINK) in dn_fib_check_nh()
219 fld.flowidn_scope = r->rtm_scope + 1; in dn_fib_check_nh()
263 struct dn_fib_info *dn_fib_create_info(const struct rtmsg *r, struct nlattr *attrs[], in dn_fib_create_info() argument
271 if (r->rtm_type > RTN_MAX) in dn_fib_create_info()
274 if (dn_fib_props[r->rtm_type].scope > r->rtm_scope) in dn_fib_create_info()
286 fi->fib_protocol = r->rtm_protocol; in dn_fib_create_info()
288 fi->fib_flags = r->rtm_flags; in dn_fib_create_info()
[all …]
/net/can/
Daf_can.c475 struct receiver *r; in can_rx_register() local
485 r = kmem_cache_alloc(rcv_cache, GFP_KERNEL); in can_rx_register()
486 if (!r) in can_rx_register()
495 r->can_id = can_id; in can_rx_register()
496 r->mask = mask; in can_rx_register()
497 r->matches = 0; in can_rx_register()
498 r->func = func; in can_rx_register()
499 r->data = data; in can_rx_register()
500 r->ident = ident; in can_rx_register()
501 r->sk = sk; in can_rx_register()
[all …]
/net/netfilter/
Dxt_limit.c71 const struct xt_rateinfo *r = par->matchinfo; in limit_mt() local
72 struct xt_limit_priv *priv = r->master; in limit_mt()
77 if (priv->credit > r->credit_cap) in limit_mt()
78 priv->credit = r->credit_cap; in limit_mt()
80 if (priv->credit >= r->cost) { in limit_mt()
82 priv->credit -= r->cost; in limit_mt()
104 struct xt_rateinfo *r = par->matchinfo; in limit_mt_check() local
108 if (r->burst == 0 in limit_mt_check()
109 || user2credits(r->avg * r->burst) < user2credits(r->avg)) { in limit_mt_check()
111 r->avg, r->burst); in limit_mt_check()
[all …]
Dxt_rateest.c21 struct gnet_stats_rate_est64 *r; in xt_rateest_mt() local
26 r = &info->est1->rstats; in xt_rateest_mt()
28 bps1 = info->bps1 >= r->bps ? info->bps1 - r->bps : 0; in xt_rateest_mt()
29 pps1 = info->pps1 >= r->pps ? info->pps1 - r->pps : 0; in xt_rateest_mt()
31 bps1 = r->bps; in xt_rateest_mt()
32 pps1 = r->pps; in xt_rateest_mt()
41 r = &info->est2->rstats; in xt_rateest_mt()
43 bps2 = info->bps2 >= r->bps ? info->bps2 - r->bps : 0; in xt_rateest_mt()
44 pps2 = info->pps2 >= r->pps ? info->pps2 - r->pps : 0; in xt_rateest_mt()
46 bps2 = r->bps; in xt_rateest_mt()
[all …]
Dxt_time.c77 static inline unsigned int localtime_1(struct xtm *r, time_t time) in localtime_1() argument
83 r->second = v % 60; in localtime_1()
85 r->minute = w % 60; in localtime_1()
86 r->hour = w / 60; in localtime_1()
90 static inline void localtime_2(struct xtm *r, time_t time) in localtime_2() argument
96 r->dse = time / 86400; in localtime_2()
102 r->weekday = (4 + r->dse - 1) % 7 + 1; in localtime_2()
105 static void localtime_3(struct xtm *r, time_t time) in localtime_3() argument
107 unsigned int year, i, w = r->dse; in localtime_3()
143 r->monthday = w - days_since_leapyear[i] + 1; in localtime_3()
[all …]
/net/ipx/
Dipx_route.c31 struct ipx_route *r; in ipxrtr_lookup() local
34 list_for_each_entry(r, &ipx_routes, node) in ipxrtr_lookup()
35 if (r->ir_net == net) { in ipxrtr_lookup()
36 ipxrtr_hold(r); in ipxrtr_lookup()
39 r = NULL; in ipxrtr_lookup()
42 return r; in ipxrtr_lookup()
92 struct ipx_route *r, *tmp; in ipxrtr_del_routes() local
95 list_for_each_entry_safe(r, tmp, &ipx_routes, node) in ipxrtr_del_routes()
96 if (r->ir_intrfc == intrfc) { in ipxrtr_del_routes()
97 list_del(&r->node); in ipxrtr_del_routes()
[all …]
/net/sched/
Dcls_tcindex.c53 tcindex_filter_is_set(struct tcindex_filter_result *r) in tcindex_filter_is_set() argument
55 return tcf_exts_is_predicative(&r->exts) || r->res.classid; in tcindex_filter_is_set()
110 struct tcindex_filter_result *r; in tcindex_get() local
115 r = tcindex_lookup(p, handle); in tcindex_get()
116 return r && tcindex_filter_is_set(r) ? (unsigned long) r : 0UL; in tcindex_get()
147 struct tcindex_filter_result *r = (struct tcindex_filter_result *) arg; in tcindex_delete() local
153 if (!r->res.class) in tcindex_delete()
162 if (&f->result == r) in tcindex_delete()
171 tcf_unbind_filter(tp, &r->res); in tcindex_delete()
172 tcf_exts_destroy(&r->exts); in tcindex_delete()
[all …]
/net/sunrpc/xprtrdma/
Dverbs.c147 frmr->r.frmr.fr_state = FRMR_IS_STALE; in rpcrdma_sendcq_process_wc()
994 struct rpcrdma_mw *r; in rpcrdma_init_fmrs() local
1001 r = kzalloc(sizeof(*r), GFP_KERNEL); in rpcrdma_init_fmrs()
1002 if (r == NULL) in rpcrdma_init_fmrs()
1005 r->r.fmr = ib_alloc_fmr(ia->ri_pd, mr_access_flags, &fmr_attr); in rpcrdma_init_fmrs()
1006 if (IS_ERR(r->r.fmr)) { in rpcrdma_init_fmrs()
1007 rc = PTR_ERR(r->r.fmr); in rpcrdma_init_fmrs()
1013 list_add(&r->mw_list, &buf->rb_mws); in rpcrdma_init_fmrs()
1014 list_add(&r->mw_all, &buf->rb_all); in rpcrdma_init_fmrs()
1019 kfree(r); in rpcrdma_init_fmrs()
[all …]
/net/mac80211/
Dmichael.c19 mctx->r ^= rol32(mctx->l, 17); in michael_block()
20 mctx->l += mctx->r; in michael_block()
21 mctx->r ^= ((mctx->l & 0xff00ff00) >> 8) | in michael_block()
23 mctx->l += mctx->r; in michael_block()
24 mctx->r ^= rol32(mctx->l, 3); in michael_block()
25 mctx->l += mctx->r; in michael_block()
26 mctx->r ^= ror32(mctx->l, 2); in michael_block()
27 mctx->l += mctx->r; in michael_block()
43 mctx->r = get_unaligned_le32(key + 4); in michael_mic_hdr()
85 put_unaligned_le32(mctx.r, mic + 4); in michael_mic()
Drc80211_minstrel.c67 if (mi->r[i].rix == rix) in rix_to_ndx()
78 while (j > 0 && mi->r[i].stats.cur_tp > mi->r[tp_list[j - 1]].stats.cur_tp) in minstrel_sort_best_tp_rates()
90 struct minstrel_rate *r = &mi->r[idx]; in minstrel_set_rate() local
92 ratetbl->rate[offset].idx = r->rix; in minstrel_set_rate()
93 ratetbl->rate[offset].count = r->adjusted_retry_count; in minstrel_set_rate()
94 ratetbl->rate[offset].count_cts = r->retry_count_cts; in minstrel_set_rate()
95 ratetbl->rate[offset].count_rts = r->stats.retry_count_rtscts; in minstrel_set_rate()
142 struct minstrel_rate *mr = &mi->r[i]; in minstrel_update_stats()
143 struct minstrel_rate_stats *mrs = &mi->r[i].stats; in minstrel_update_stats()
196 if (mrs->cur_tp >= mi->r[tmp_prob_rate].stats.cur_tp) in minstrel_update_stats()
[all …]
/net/ceph/crush/
Dmapper.c70 int x, int r) in bucket_perm_choose() argument
72 unsigned int pr = r % bucket->size; in bucket_perm_choose()
124 bucket->size, x, r, pr, s); in bucket_perm_choose()
130 int x, int r) in bucket_uniform_choose() argument
132 return bucket_perm_choose(&bucket->h, x, r); in bucket_uniform_choose()
137 int x, int r) in bucket_list_choose() argument
143 r, bucket->h.id); in bucket_list_choose()
147 i, x, r, bucket->h.items[i], bucket->item_weights[i], in bucket_list_choose()
190 int x, int r) in bucket_tree_choose() argument
203 t = (__u64)crush_hash32_4(bucket->h.hash, x, n, r, in bucket_tree_choose()
[all …]
/net/appletalk/
Datalk_proc.c83 struct atalk_route *r; in atalk_get_route_idx() local
85 for (r = atalk_routes; pos && r; r = r->next) in atalk_get_route_idx()
88 return r; in atalk_get_route_idx()
102 struct atalk_route *r; in atalk_seq_route_next() local
106 r = NULL; in atalk_seq_route_next()
108 r = atalk_routes; in atalk_seq_route_next()
111 r = v; in atalk_seq_route_next()
112 r = r->next; in atalk_seq_route_next()
114 return r; in atalk_seq_route_next()
/net/ipv6/
Dfib6_rules.c86 struct fib6_rule *r = (struct fib6_rule *)rule; in fib6_rule_action() local
93 r->src.plen && !(flags & RT6_LOOKUP_F_HAS_SADDR)) { in fib6_rule_action()
102 if (!ipv6_prefix_equal(&saddr, &r->src.addr, in fib6_rule_action()
103 r->src.plen)) in fib6_rule_action()
152 struct fib6_rule *r = (struct fib6_rule *) rule; in fib6_rule_match() local
155 if (r->dst.plen && in fib6_rule_match()
156 !ipv6_prefix_equal(&fl6->daddr, &r->dst.addr, r->dst.plen)) in fib6_rule_match()
164 if (r->src.plen) { in fib6_rule_match()
166 if (!ipv6_prefix_equal(&fl6->saddr, &r->src.addr, in fib6_rule_match()
167 r->src.plen)) in fib6_rule_match()
[all …]
/net/core/
Dfib_rules.c28 struct fib_rule *r; in fib_default_rule_add() local
30 r = kzalloc(ops->rule_size, GFP_KERNEL); in fib_default_rule_add()
31 if (r == NULL) in fib_default_rule_add()
34 atomic_set(&r->refcnt, 1); in fib_default_rule_add()
35 r->action = FR_ACT_TO_TBL; in fib_default_rule_add()
36 r->pref = pref; in fib_default_rule_add()
37 r->table = table; in fib_default_rule_add()
38 r->flags = flags; in fib_default_rule_add()
39 r->fr_net = hold_net(ops->fro_net); in fib_default_rule_add()
40 r->uid_range = fib_kuid_range_unset; in fib_default_rule_add()
[all …]
/net/bluetooth/bnep/
Dnetdev.c55 struct bnep_set_filter_req *r; in bnep_net_set_mc_list() local
61 size = sizeof(*r) + (BNEP_MAX_MULTICAST_FILTERS + 1) * ETH_ALEN * 2; in bnep_net_set_mc_list()
68 r = (void *) skb->data; in bnep_net_set_mc_list()
69 __skb_put(skb, sizeof(*r)); in bnep_net_set_mc_list()
71 r->type = BNEP_CONTROL; in bnep_net_set_mc_list()
72 r->ctrl = BNEP_FILTER_MULTI_ADDR_SET; in bnep_net_set_mc_list()
80 r->len = htons(ETH_ALEN * 2); in bnep_net_set_mc_list()
101 r->len = htons(skb->len - len); in bnep_net_set_mc_list()

1234