Home
last modified time | relevance | path

Searched refs:c (Results 1 – 25 of 121) sorted by relevance

12345

/net/ceph/
Dceph_hash.c10 #define mix(a, b, c) \ argument
12 a = a - b; a = a - c; a = a ^ (c >> 13); \
13 b = b - c; b = b - a; b = b ^ (a << 8); \
14 c = c - a; c = c - b; c = c ^ (b >> 13); \
15 a = a - b; a = a - c; a = a ^ (c >> 12); \
16 b = b - c; b = b - a; b = b ^ (a << 16); \
17 c = c - a; c = c - b; c = c ^ (b >> 5); \
18 a = a - b; a = a - c; a = a ^ (c >> 3); \
19 b = b - c; b = b - a; b = b ^ (a << 10); \
20 c = c - a; c = c - b; c = c ^ (b >> 15); \
[all …]
Darmor.c15 static int encode_bits(int c) in encode_bits() argument
17 return pem_key[c]; in encode_bits()
20 static int decode_bits(char c) in decode_bits() argument
22 if (c >= 'A' && c <= 'Z') in decode_bits()
23 return c - 'A'; in decode_bits()
24 if (c >= 'a' && c <= 'z') in decode_bits()
25 return c - 'a' + 26; in decode_bits()
26 if (c >= '0' && c <= '9') in decode_bits()
27 return c - '0' + 52; in decode_bits()
28 if (c == '+') in decode_bits()
[all …]
Dosdmap.c249 void clear_choose_args(struct crush_map *c) in clear_choose_args() argument
251 while (!RB_EMPTY_ROOT(&c->choose_args)) { in clear_choose_args()
253 rb_entry(rb_first(&c->choose_args), in clear_choose_args()
256 erase_choose_arg_map(&c->choose_args, arg_map); in clear_choose_args()
334 static int decode_choose_args(void **p, void *end, struct crush_map *c) in decode_choose_args() argument
350 arg_map->size = c->max_buckets; in decode_choose_args()
373 arg->ids_size != c->buckets[bucket_index]->size) in decode_choose_args()
377 insert_choose_arg_map(&c->choose_args, arg_map); in decode_choose_args()
389 static void crush_finalize(struct crush_map *c) in crush_finalize() argument
394 c->working_size = sizeof(struct crush_work) + in crush_finalize()
[all …]
Dpagelist.c137 struct ceph_pagelist_cursor *c) in ceph_pagelist_set_cursor() argument
139 c->pl = pl; in ceph_pagelist_set_cursor()
140 c->page_lru = pl->head.prev; in ceph_pagelist_set_cursor()
141 c->room = pl->room; in ceph_pagelist_set_cursor()
151 struct ceph_pagelist_cursor *c) in ceph_pagelist_truncate() argument
155 if (pl != c->pl) in ceph_pagelist_truncate()
158 while (pl->head.prev != c->page_lru) { in ceph_pagelist_truncate()
164 pl->room = c->room; in ceph_pagelist_truncate()
/net/ceph/crush/
Dhash.c13 #define crush_hashmix(a, b, c) do { \ argument
14 a = a-b; a = a-c; a = a^(c>>13); \
15 b = b-c; b = b-a; b = b^(a<<8); \
16 c = c-a; c = c-b; c = c^(b>>13); \
17 a = a-b; a = a-c; a = a^(c>>12); \
18 b = b-c; b = b-a; b = b^(a<<16); \
19 c = c-a; c = c-b; c = c^(b>>5); \
20 a = a-b; a = a-c; a = a^(c>>3); \
21 b = b-c; b = b-a; b = b^(a<<10); \
22 c = c-a; c = c-b; c = c^(b>>15); \
[all …]
/net/ipv4/netfilter/
Dipt_CLUSTERIP.c94 clusterip_config_get(struct clusterip_config *c) in clusterip_config_get() argument
96 refcount_inc(&c->refcount); in clusterip_config_get()
114 clusterip_config_put(struct clusterip_config *c) in clusterip_config_put() argument
116 if (refcount_dec_and_test(&c->refcount)) in clusterip_config_put()
117 call_rcu(&c->rcu, clusterip_config_rcu_free); in clusterip_config_put()
124 clusterip_config_entry_put(struct clusterip_config *c) in clusterip_config_entry_put() argument
126 struct clusterip_net *cn = clusterip_pernet(c->net); in clusterip_config_entry_put()
129 if (refcount_dec_and_lock(&c->entries, &cn->lock)) { in clusterip_config_entry_put()
130 list_del_rcu(&c->list); in clusterip_config_entry_put()
139 proc_remove(c->pde); in clusterip_config_entry_put()
[all …]
/net/bridge/netfilter/
Debt_stp.c46 const struct ebt_stp_config_info *c; in ebt_filter_config() local
50 c = &info->config; in ebt_filter_config()
52 NF_INVF(info, EBT_STP_FLAGS, c->flags != stpc->flags)) in ebt_filter_config()
57 v16 < c->root_priol || v16 > c->root_priou)) in ebt_filter_config()
63 c->root_addr, in ebt_filter_config()
64 c->root_addrmsk))) in ebt_filter_config()
70 v32 < c->root_costl || v32 > c->root_costu)) in ebt_filter_config()
76 v16 < c->sender_priol || v16 > c->sender_priou)) in ebt_filter_config()
82 c->sender_addr, in ebt_filter_config()
83 c->sender_addrmsk))) in ebt_filter_config()
[all …]
/net/ipv4/
Dipmr_base.c67 struct mr_mfc *c; in mr_mfc_find_parent() local
70 rhl_for_each_entry_rcu(c, tmp, list, mnode) in mr_mfc_find_parent()
71 if (parent == -1 || parent == c->mfc_parent) in mr_mfc_find_parent()
72 return c; in mr_mfc_find_parent()
81 struct mr_mfc *c; in mr_mfc_find_any_parent() local
85 rhl_for_each_entry_rcu(c, tmp, list, mnode) in mr_mfc_find_any_parent()
86 if (c->mfc_un.res.ttls[vifi] < 255) in mr_mfc_find_any_parent()
87 return c; in mr_mfc_find_any_parent()
96 struct mr_mfc *c, *proxy; in mr_mfc_find_any() local
99 rhl_for_each_entry_rcu(c, tmp, list, mnode) { in mr_mfc_find_any()
[all …]
Dipmr.c366 struct mfc_cache *c = (struct mfc_cache *)ptr; in ipmr_hash_cmp() local
368 return cmparg->mfc_mcastgrp != c->mfc_mcastgrp || in ipmr_hash_cmp()
369 cmparg->mfc_origin != c->mfc_origin; in ipmr_hash_cmp()
707 struct mr_mfc *c = container_of(head, struct mr_mfc, rcu); in ipmr_cache_free_rcu() local
709 kmem_cache_free(mrt_cachep, (struct mfc_cache *)c); in ipmr_cache_free_rcu()
712 static void ipmr_cache_free(struct mfc_cache *c) in ipmr_cache_free() argument
714 call_rcu(&c->_c.rcu, ipmr_cache_free_rcu); in ipmr_cache_free()
720 static void ipmr_destroy_unres(struct mr_table *mrt, struct mfc_cache *c) in ipmr_destroy_unres() argument
728 while ((skb = skb_dequeue(&c->_c.mfc_un.unres.unresolved))) { in ipmr_destroy_unres()
745 ipmr_cache_free(c); in ipmr_destroy_unres()
[all …]
/net/tipc/
Daddr.c85 u8 c; in tipc_nodeid2string() local
89 c = id[i]; in tipc_nodeid2string()
90 if (c >= '0' && c <= '9') in tipc_nodeid2string()
92 if (c >= 'A' && c <= 'Z') in tipc_nodeid2string()
94 if (c >= 'a' && c <= 'z') in tipc_nodeid2string()
96 if (c == '.') in tipc_nodeid2string()
98 if (c == ':') in tipc_nodeid2string()
100 if (c == '_') in tipc_nodeid2string()
102 if (c == '-') in tipc_nodeid2string()
104 if (c == '@') in tipc_nodeid2string()
[all …]
Dcrypto.c278 static inline void tipc_crypto_key_set_state(struct tipc_crypto *c,
282 static int tipc_crypto_key_attach(struct tipc_crypto *c,
300 static char *tipc_crypto_key_dump(struct tipc_crypto *c, char *buf);
1101 static inline void tipc_crypto_key_set_state(struct tipc_crypto *c, in tipc_crypto_key_set_state() argument
1106 struct tipc_key old = c->key; in tipc_crypto_key_set_state()
1109 c->key.keys = ((new_passive & KEY_MASK) << (KEY_BITS * 2)) | in tipc_crypto_key_set_state()
1113 pr_debug("%s: key changing %s ::%pS\n", c->name, in tipc_crypto_key_set_state()
1114 tipc_key_change_dump(old, c->key, buf), in tipc_crypto_key_set_state()
1130 int tipc_crypto_key_init(struct tipc_crypto *c, struct tipc_aead_key *ukey, in tipc_crypto_key_init() argument
1141 rc = tipc_crypto_key_attach(c, aead, 0, master_key); in tipc_crypto_key_init()
[all …]
/net/ipv6/
Dip6mr.c348 struct mfc6_cache *c = (struct mfc6_cache *)ptr; in ip6mr_hash_cmp() local
350 return !ipv6_addr_equal(&c->mf6c_mcastgrp, &cmparg->mf6c_mcastgrp) || in ip6mr_hash_cmp()
351 !ipv6_addr_equal(&c->mf6c_origin, &cmparg->mf6c_origin); in ip6mr_hash_cmp()
757 struct mr_mfc *c = container_of(head, struct mr_mfc, rcu); in ip6mr_cache_free_rcu() local
759 kmem_cache_free(mrt_cachep, (struct mfc6_cache *)c); in ip6mr_cache_free_rcu()
762 static inline void ip6mr_cache_free(struct mfc6_cache *c) in ip6mr_cache_free() argument
764 call_rcu(&c->_c.rcu, ip6mr_cache_free_rcu); in ip6mr_cache_free()
771 static void ip6mr_destroy_unres(struct mr_table *mrt, struct mfc6_cache *c) in ip6mr_destroy_unres() argument
778 while ((skb = skb_dequeue(&c->_c.mfc_un.unres.unresolved)) != NULL) { in ip6mr_destroy_unres()
791 ip6mr_cache_free(c); in ip6mr_destroy_unres()
[all …]
/net/9p/
Dtrans_rdma.c244 struct p9_client *c = id->context; in p9_cm_event_handler() local
245 struct p9_trans_rdma *rdma = c->trans; in p9_cm_event_handler()
265 c->status = Disconnected; in p9_cm_event_handler()
282 c->status = Disconnected; in p9_cm_event_handler()
297 struct p9_rdma_context *c = in recv_done() local
304 ib_dma_unmap_single(rdma->cm_id->device, c->busa, client->msize, in recv_done()
310 c->rc.size = wc->byte_len; in recv_done()
311 err = p9_parse_header(&c->rc, NULL, NULL, &tag, 1); in recv_done()
326 req->rc.size = c->rc.size; in recv_done()
327 req->rc.sdata = c->rc.sdata; in recv_done()
[all …]
Derror.c180 struct errormap *c; in p9_error_init() local
188 for (c = errmap; c->name; c++) { in p9_error_init()
189 c->namelen = strlen(c->name); in p9_error_init()
190 bucket = jhash(c->name, c->namelen, 0) % ERRHASHSZ; in p9_error_init()
191 INIT_HLIST_NODE(&c->list); in p9_error_init()
192 hlist_add_head(&c->list, &hash_errmap[bucket]); in p9_error_init()
209 struct errormap *c; in p9_errstr2errno() local
213 c = NULL; in p9_errstr2errno()
215 hlist_for_each_entry(c, &hash_errmap[bucket], list) { in p9_errstr2errno()
216 if (c->namelen == len && !memcmp(c->name, errstr, len)) { in p9_errstr2errno()
[all …]
Dclient.c223 static int p9_fcall_init(struct p9_client *c, struct p9_fcall *fc, in p9_fcall_init() argument
226 if (likely(c->fcall_cache) && alloc_msize == c->msize) { in p9_fcall_init()
227 fc->sdata = kmem_cache_alloc(c->fcall_cache, GFP_NOFS); in p9_fcall_init()
228 fc->cache = c->fcall_cache; in p9_fcall_init()
266 p9_tag_alloc(struct p9_client *c, int8_t type, unsigned int max_size) in p9_tag_alloc() argument
269 int alloc_msize = min(c->msize, max_size); in p9_tag_alloc()
275 if (p9_fcall_init(c, &req->tc, alloc_msize)) in p9_tag_alloc()
277 if (p9_fcall_init(c, &req->rc, alloc_msize)) in p9_tag_alloc()
293 spin_lock_irq(&c->lock); in p9_tag_alloc()
295 tag = idr_alloc(&c->reqs, req, P9_NOTAG, P9_NOTAG + 1, in p9_tag_alloc()
[all …]
/net/wireless/
Dchan.c194 static int cfg80211_chandef_get_width(const struct cfg80211_chan_def *c) in cfg80211_chandef_get_width() argument
196 return nl80211_chan_width_to_mhz(c->width); in cfg80211_chandef_get_width()
323 static void chandef_primary_freqs(const struct cfg80211_chan_def *c, in chandef_primary_freqs() argument
328 switch (c->width) { in chandef_primary_freqs()
330 *pri40 = c->center_freq1; in chandef_primary_freqs()
337 *pri80 = c->center_freq1; in chandef_primary_freqs()
339 tmp = (30 + c->chan->center_freq - c->center_freq1)/20; in chandef_primary_freqs()
343 *pri40 = c->center_freq1 - 20 + 40 * tmp; in chandef_primary_freqs()
346 *pri160 = c->center_freq1; in chandef_primary_freqs()
348 tmp = (70 + c->chan->center_freq - c->center_freq1)/20; in chandef_primary_freqs()
[all …]
/net/core/
Dutils.c86 static inline int xdigit2bin(char c, int delim) in xdigit2bin() argument
90 if (c == delim || c == '\0') in xdigit2bin()
92 if (c == ':') in xdigit2bin()
94 if (c == '.') in xdigit2bin()
97 val = hex_to_bin(c); in xdigit2bin()
135 int c; in in4_pton() local
136 c = xdigit2bin(srclen > 0 ? *s : '\0', delim); in in4_pton()
137 if (!(c & (IN6PTON_DIGIT | IN6PTON_DOT | IN6PTON_DELIM | IN6PTON_COLON_MASK))) { in in4_pton()
140 if (c & (IN6PTON_DOT | IN6PTON_DELIM | IN6PTON_COLON_MASK)) { in in4_pton()
146 if (c & (IN6PTON_DELIM | IN6PTON_COLON_MASK)) { in in4_pton()
[all …]
/net/key/
Daf_key.c1473 static int key_notify_sa(struct xfrm_state *x, const struct km_event *c) in key_notify_sa() argument
1485 hdr->sadb_msg_type = event2keytype(c->event); in key_notify_sa()
1489 hdr->sadb_msg_seq = c->seq; in key_notify_sa()
1490 hdr->sadb_msg_pid = c->portid; in key_notify_sa()
1502 struct km_event c; in pfkey_add() local
1523 c.event = XFRM_MSG_NEWSA; in pfkey_add()
1525 c.event = XFRM_MSG_UPDSA; in pfkey_add()
1526 c.seq = hdr->sadb_msg_seq; in pfkey_add()
1527 c.portid = hdr->sadb_msg_pid; in pfkey_add()
1528 km_state_notify(x, &c); in pfkey_add()
[all …]
/net/xfrm/
Dxfrm_user.c686 struct km_event c; in xfrm_add_sa() local
714 c.seq = nlh->nlmsg_seq; in xfrm_add_sa()
715 c.portid = nlh->nlmsg_pid; in xfrm_add_sa()
716 c.event = nlh->nlmsg_type; in xfrm_add_sa()
718 km_state_notify(x, &c); in xfrm_add_sa()
764 struct km_event c; in xfrm_del_sa() local
784 c.seq = nlh->nlmsg_seq; in xfrm_del_sa()
785 c.portid = nlh->nlmsg_pid; in xfrm_del_sa()
786 c.event = nlh->nlmsg_type; in xfrm_del_sa()
787 km_state_notify(x, &c); in xfrm_del_sa()
[all …]
/net/sunrpc/
Daddr.c314 char *c, buf[RPCBIND_MAXUADDRLEN + sizeof('\0')]; in rpc_uaddr2sockaddr() local
324 c = strrchr(buf, '.'); in rpc_uaddr2sockaddr()
325 if (unlikely(c == NULL)) in rpc_uaddr2sockaddr()
327 if (unlikely(kstrtou8(c + 1, 10, &portlo) != 0)) in rpc_uaddr2sockaddr()
330 *c = '\0'; in rpc_uaddr2sockaddr()
331 c = strrchr(buf, '.'); in rpc_uaddr2sockaddr()
332 if (unlikely(c == NULL)) in rpc_uaddr2sockaddr()
334 if (unlikely(kstrtou8(c + 1, 10, &porthi) != 0)) in rpc_uaddr2sockaddr()
339 *c = '\0'; in rpc_uaddr2sockaddr()
/net/sched/
Dact_ct.c947 struct tcf_ct *c = to_ct(a); in tcf_ct_act() local
957 p = rcu_dereference_bh(c->params); in tcf_ct_act()
959 retval = READ_ONCE(c->tcf_action); in tcf_ct_act()
965 tcf_lastuse_update(&c->tcf_tm); in tcf_ct_act()
966 tcf_action_update_bstats(&c->common, skb); in tcf_ct_act()
1059 tcf_action_inc_drop_qstats(&c->common); in tcf_ct_act()
1063 tcf_action_inc_drop_qstats(&c->common); in tcf_ct_act()
1251 struct tcf_ct *c; in tcf_ct_init() local
1295 c = to_ct(*a); in tcf_ct_init()
1311 spin_lock_bh(&c->tcf_lock); in tcf_ct_init()
[all …]
Dact_connmark.c39 struct nf_conn *c; in tcf_connmark_act() local
63 c = nf_ct_get(skb, &ctinfo); in tcf_connmark_act()
64 if (c) { in tcf_connmark_act()
65 skb->mark = READ_ONCE(c->mark); in tcf_connmark_act()
82 c = nf_ct_tuplehash_to_ctrack(thash); in tcf_connmark_act()
85 skb->mark = READ_ONCE(c->mark); in tcf_connmark_act()
86 nf_ct_put(c); in tcf_connmark_act()
/net/sunrpc/auth_gss/
Dgss_krb5_mech.c314 struct xdr_netobj c, keyin, keyout; in context_derive_keys_des3() local
318 c.len = GSS_KRB5_K5CLENGTH; in context_derive_keys_des3()
319 c.data = cdata; in context_derive_keys_des3()
339 err = krb5_derive_key(ctx->gk5e, &keyin, &keyout, &c, gfp_mask); in context_derive_keys_des3()
359 struct xdr_netobj c, keyin, keyout; in context_derive_keys_new() local
363 c.len = GSS_KRB5_K5CLENGTH; in context_derive_keys_new()
364 c.data = cdata; in context_derive_keys_new()
373 err = krb5_derive_key(ctx->gk5e, &keyin, &keyout, &c, gfp_mask); in context_derive_keys_new()
388 err = krb5_derive_key(ctx->gk5e, &keyin, &keyout, &c, gfp_mask); in context_derive_keys_new()
403 err = krb5_derive_key(ctx->gk5e, &keyin, &keyout, &c, gfp_mask); in context_derive_keys_new()
[all …]
Dgss_rpc_upcall.c237 char *c; in gssp_hostbased_service() local
243 c = strchr(*principal, '@'); in gssp_hostbased_service()
244 if (c) { in gssp_hostbased_service()
245 *c = '\0'; in gssp_hostbased_service()
248 c = strchr(*principal, '/'); in gssp_hostbased_service()
249 if (c) in gssp_hostbased_service()
250 *c = '@'; in gssp_hostbased_service()
252 if (!c) { in gssp_hostbased_service()
/net/netfilter/
Dnf_conntrack_sip.c89 static int iswordc(const char c) in iswordc() argument
91 if (isalnum(c) || c == '!' || c == '"' || c == '%' || in iswordc()
92 (c >= '(' && c <= '+') || c == ':' || c == '<' || c == '>' || in iswordc()
93 c == '?' || (c >= '[' && c <= ']') || c == '_' || c == '`' || in iswordc()
94 c == '{' || c == '}' || c == '~' || (c >= '-' && c <= '/') || in iswordc()
95 c == '\'') in iswordc()
511 const char *c, *limit = dptr + datalen; in ct_sip_parse_header_uri() local
521 if (!sip_parse_addr(ct, dptr + *matchoff, &c, addr, limit, true)) in ct_sip_parse_header_uri()
523 if (*c == ':') { in ct_sip_parse_header_uri()
524 c++; in ct_sip_parse_header_uri()
[all …]

12345