/net/ceph/ |
D | ceph_hash.c | 10 #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 …]
|
D | armor.c | 15 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 …]
|
D | osdmap.c | 176 void clear_choose_args(struct crush_map *c) in clear_choose_args() argument 178 while (!RB_EMPTY_ROOT(&c->choose_args)) { in clear_choose_args() 180 rb_entry(rb_first(&c->choose_args), in clear_choose_args() 183 erase_choose_arg_map(&c->choose_args, arg_map); in clear_choose_args() 261 static int decode_choose_args(void **p, void *end, struct crush_map *c) in decode_choose_args() argument 277 arg_map->size = c->max_buckets; in decode_choose_args() 300 arg->ids_size != c->buckets[bucket_index]->size) in decode_choose_args() 304 insert_choose_arg_map(&c->choose_args, arg_map); in decode_choose_args() 316 static void crush_finalize(struct crush_map *c) in crush_finalize() argument 321 c->working_size = sizeof(struct crush_work) + in crush_finalize() [all …]
|
D | pagelist.c | 137 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/ |
D | hash.c | 13 #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/ |
D | ipt_CLUSTERIP.c | 83 clusterip_config_get(struct clusterip_config *c) in clusterip_config_get() argument 85 refcount_inc(&c->refcount); in clusterip_config_get() 103 clusterip_config_put(struct clusterip_config *c) in clusterip_config_put() argument 105 if (refcount_dec_and_test(&c->refcount)) in clusterip_config_put() 106 call_rcu(&c->rcu, clusterip_config_rcu_free); in clusterip_config_put() 113 clusterip_config_entry_put(struct clusterip_config *c) in clusterip_config_entry_put() argument 115 struct clusterip_net *cn = clusterip_pernet(c->net); in clusterip_config_entry_put() 118 if (refcount_dec_and_lock(&c->entries, &cn->lock)) { in clusterip_config_entry_put() 119 list_del_rcu(&c->list); in clusterip_config_entry_put() 128 proc_remove(c->pde); in clusterip_config_entry_put() [all …]
|
/net/bridge/netfilter/ |
D | ebt_stp.c | 47 const struct ebt_stp_config_info *c; in ebt_filter_config() local 51 c = &info->config; in ebt_filter_config() 53 NF_INVF(info, EBT_STP_FLAGS, c->flags != stpc->flags)) in ebt_filter_config() 58 v16 < c->root_priol || v16 > c->root_priou)) in ebt_filter_config() 64 c->root_addr, in ebt_filter_config() 65 c->root_addrmsk))) in ebt_filter_config() 71 v32 < c->root_costl || v32 > c->root_costu)) in ebt_filter_config() 77 v16 < c->sender_priol || v16 > c->sender_priou)) in ebt_filter_config() 83 c->sender_addr, in ebt_filter_config() 84 c->sender_addrmsk))) in ebt_filter_config() [all …]
|
/net/tipc/ |
D | addr.c | 85 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 …]
|
/net/ipv4/ |
D | ipmr_base.c | 67 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 …]
|
D | ipmr.c | 362 struct mfc_cache *c = (struct mfc_cache *)ptr; in ipmr_hash_cmp() local 364 return cmparg->mfc_mcastgrp != c->mfc_mcastgrp || in ipmr_hash_cmp() 365 cmparg->mfc_origin != c->mfc_origin; in ipmr_hash_cmp() 730 struct mr_mfc *c = container_of(head, struct mr_mfc, rcu); in ipmr_cache_free_rcu() local 732 kmem_cache_free(mrt_cachep, (struct mfc_cache *)c); in ipmr_cache_free_rcu() 735 static void ipmr_cache_free(struct mfc_cache *c) in ipmr_cache_free() argument 737 call_rcu(&c->_c.rcu, ipmr_cache_free_rcu); in ipmr_cache_free() 743 static void ipmr_destroy_unres(struct mr_table *mrt, struct mfc_cache *c) in ipmr_destroy_unres() argument 751 while ((skb = skb_dequeue(&c->_c.mfc_un.unres.unresolved))) { in ipmr_destroy_unres() 768 ipmr_cache_free(c); in ipmr_destroy_unres() [all …]
|
/net/9p/ |
D | error.c | 180 struct errormap *c; in p9_error_init() local 188 for (c = errmap; c->name != NULL; 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 …]
|
D | trans_rdma.c | 241 struct p9_client *c = id->context; in p9_cm_event_handler() local 242 struct p9_trans_rdma *rdma = c->trans; in p9_cm_event_handler() 262 c->status = Disconnected; in p9_cm_event_handler() 279 c->status = Disconnected; in p9_cm_event_handler() 294 struct p9_rdma_context *c = in recv_done() local 301 ib_dma_unmap_single(rdma->cm_id->device, c->busa, client->msize, in recv_done() 307 c->rc.size = wc->byte_len; in recv_done() 308 err = p9_parse_header(&c->rc, NULL, NULL, &tag, 1); in recv_done() 323 req->rc.size = c->rc.size; in recv_done() 324 req->rc.sdata = c->rc.sdata; in recv_done() [all …]
|
D | client.c | 225 static int p9_fcall_init(struct p9_client *c, struct p9_fcall *fc, in p9_fcall_init() argument 228 if (likely(c->fcall_cache) && alloc_msize == c->msize) { in p9_fcall_init() 229 fc->sdata = kmem_cache_alloc(c->fcall_cache, GFP_NOFS); in p9_fcall_init() 230 fc->cache = c->fcall_cache; in p9_fcall_init() 268 p9_tag_alloc(struct p9_client *c, int8_t type, unsigned int max_size) in p9_tag_alloc() argument 271 int alloc_msize = min(c->msize, max_size); in p9_tag_alloc() 277 if (p9_fcall_init(c, &req->tc, alloc_msize)) in p9_tag_alloc() 279 if (p9_fcall_init(c, &req->rc, alloc_msize)) in p9_tag_alloc() 290 spin_lock_irq(&c->lock); in p9_tag_alloc() 292 tag = idr_alloc(&c->reqs, req, P9_NOTAG, P9_NOTAG + 1, in p9_tag_alloc() [all …]
|
/net/ipv6/ |
D | ip6mr.c | 344 struct mfc6_cache *c = (struct mfc6_cache *)ptr; in ip6mr_hash_cmp() local 346 return !ipv6_addr_equal(&c->mf6c_mcastgrp, &cmparg->mf6c_mcastgrp) || in ip6mr_hash_cmp() 347 !ipv6_addr_equal(&c->mf6c_origin, &cmparg->mf6c_origin); in ip6mr_hash_cmp() 754 struct mr_mfc *c = container_of(head, struct mr_mfc, rcu); in ip6mr_cache_free_rcu() local 756 kmem_cache_free(mrt_cachep, (struct mfc6_cache *)c); in ip6mr_cache_free_rcu() 759 static inline void ip6mr_cache_free(struct mfc6_cache *c) in ip6mr_cache_free() argument 761 call_rcu(&c->_c.rcu, ip6mr_cache_free_rcu); in ip6mr_cache_free() 768 static void ip6mr_destroy_unres(struct mr_table *mrt, struct mfc6_cache *c) in ip6mr_destroy_unres() argument 775 while ((skb = skb_dequeue(&c->_c.mfc_un.unres.unresolved)) != NULL) { in ip6mr_destroy_unres() 788 ip6mr_cache_free(c); in ip6mr_destroy_unres() [all …]
|
/net/wireless/ |
D | chan.c | 222 static void chandef_primary_freqs(const struct cfg80211_chan_def *c, in chandef_primary_freqs() argument 227 switch (c->width) { in chandef_primary_freqs() 229 *pri40 = c->center_freq1; in chandef_primary_freqs() 234 *pri80 = c->center_freq1; in chandef_primary_freqs() 236 tmp = (30 + c->chan->center_freq - c->center_freq1)/20; in chandef_primary_freqs() 240 *pri40 = c->center_freq1 - 20 + 40 * tmp; in chandef_primary_freqs() 244 tmp = (70 + c->chan->center_freq - c->center_freq1)/20; in chandef_primary_freqs() 248 *pri40 = c->center_freq1 - 60 + 40 * tmp; in chandef_primary_freqs() 251 *pri80 = c->center_freq1 - 40 + 80 * tmp; in chandef_primary_freqs() 258 static int cfg80211_chandef_get_width(const struct cfg80211_chan_def *c) in cfg80211_chandef_get_width() argument [all …]
|
/net/core/ |
D | utils.c | 86 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/xfrm/ |
D | xfrm_user.c | 678 struct km_event c; in xfrm_add_sa() local 706 c.seq = nlh->nlmsg_seq; in xfrm_add_sa() 707 c.portid = nlh->nlmsg_pid; in xfrm_add_sa() 708 c.event = nlh->nlmsg_type; in xfrm_add_sa() 710 km_state_notify(x, &c); in xfrm_add_sa() 756 struct km_event c; in xfrm_del_sa() local 776 c.seq = nlh->nlmsg_seq; in xfrm_del_sa() 777 c.portid = nlh->nlmsg_pid; in xfrm_del_sa() 778 c.event = nlh->nlmsg_type; in xfrm_del_sa() 779 km_state_notify(x, &c); in xfrm_del_sa() [all …]
|
/net/key/ |
D | af_key.c | 1477 static int key_notify_sa(struct xfrm_state *x, const struct km_event *c) in key_notify_sa() argument 1489 hdr->sadb_msg_type = event2keytype(c->event); in key_notify_sa() 1493 hdr->sadb_msg_seq = c->seq; in key_notify_sa() 1494 hdr->sadb_msg_pid = c->portid; in key_notify_sa() 1506 struct km_event c; in pfkey_add() local 1527 c.event = XFRM_MSG_NEWSA; in pfkey_add() 1529 c.event = XFRM_MSG_UPDSA; in pfkey_add() 1530 c.seq = hdr->sadb_msg_seq; in pfkey_add() 1531 c.portid = hdr->sadb_msg_pid; in pfkey_add() 1532 km_state_notify(x, &c); in pfkey_add() [all …]
|
/net/sched/ |
D | act_ct.c | 390 struct tcf_ct *c = to_ct(a); in tcf_ct_act() local 398 p = rcu_dereference_bh(c->params); in tcf_ct_act() 400 retval = READ_ONCE(c->tcf_action); in tcf_ct_act() 681 struct tcf_ct *c; in tcf_ct_init() local 725 c = to_ct(*a); in tcf_ct_init() 737 spin_lock_bh(&c->tcf_lock); in tcf_ct_init() 739 rcu_swap_protected(c->params, params, lockdep_is_held(&c->tcf_lock)); in tcf_ct_init() 740 spin_unlock_bh(&c->tcf_lock); in tcf_ct_init() 760 struct tcf_ct *c = to_ct(a); in tcf_ct_cleanup() local 762 params = rcu_dereference_protected(c->params, 1); in tcf_ct_cleanup() [all …]
|
D | act_connmark.c | 39 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 = c->mark; in tcf_connmark_act() 82 c = nf_ct_tuplehash_to_ctrack(thash); in tcf_connmark_act() 85 skb->mark = c->mark; in tcf_connmark_act() 86 nf_ct_put(c); in tcf_connmark_act()
|
/net/dsa/ |
D | tag_dsa.c | 123 __wsum c = skb->csum; in dsa_rcv() local 124 c = csum_add(c, csum_partial(new_header + 2, 2, 0)); in dsa_rcv() 125 c = csum_sub(c, csum_partial(dsa_header + 2, 2, 0)); in dsa_rcv() 126 skb->csum = c; in dsa_rcv()
|
D | tag_edsa.c | 171 __wsum c = skb->csum; in edsa_rcv() local 172 c = csum_add(c, csum_partial(new_header + 2, 2, 0)); in edsa_rcv() 173 c = csum_sub(c, csum_partial(edsa_header + 2, 2, 0)); in edsa_rcv() 174 skb->csum = c; in edsa_rcv()
|
/net/sunrpc/ |
D | addr.c | 318 char *c, buf[RPCBIND_MAXUADDRLEN + sizeof('\0')]; in rpc_uaddr2sockaddr() local 328 c = strrchr(buf, '.'); in rpc_uaddr2sockaddr() 329 if (unlikely(c == NULL)) in rpc_uaddr2sockaddr() 331 if (unlikely(kstrtou8(c + 1, 10, &portlo) != 0)) in rpc_uaddr2sockaddr() 334 *c = '\0'; in rpc_uaddr2sockaddr() 335 c = strrchr(buf, '.'); in rpc_uaddr2sockaddr() 336 if (unlikely(c == NULL)) in rpc_uaddr2sockaddr() 338 if (unlikely(kstrtou8(c + 1, 10, &porthi) != 0)) in rpc_uaddr2sockaddr() 343 *c = '\0'; in rpc_uaddr2sockaddr()
|
/net/sunrpc/auth_gss/ |
D | gss_rpc_upcall.c | 231 char *c; in gssp_hostbased_service() local 237 c = strchr(*principal, '@'); in gssp_hostbased_service() 238 if (c) { in gssp_hostbased_service() 239 *c = '\0'; in gssp_hostbased_service() 242 c = strchr(*principal, '/'); in gssp_hostbased_service() 243 if (c) in gssp_hostbased_service() 244 *c = '@'; in gssp_hostbased_service() 246 if (!c) { in gssp_hostbased_service()
|
/net/netfilter/ |
D | nf_conntrack_sip.c | 89 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 …]
|