| /net/ceph/ |
| A D | ceph_hash.c | 12 a = a - b; a = a - c; a = a ^ (c >> 13); \ 14 c = c - a; c = c - b; c = c ^ (b >> 13); \ 15 a = a - b; a = a - c; a = a ^ (c >> 12); \ 17 c = c - a; c = c - b; c = c ^ (b >> 5); \ 18 a = a - b; a = a - c; a = a ^ (c >> 3); \ 20 c = c - a; c = c - b; c = c ^ (b >> 15); \ 49 c = c + length; in ceph_str_hash_rjenkins() 52 c = c + ((__u32)k[10] << 24); in ceph_str_hash_rjenkins() 55 c = c + ((__u32)k[9] << 16); in ceph_str_hash_rjenkins() 58 c = c + ((__u32)k[8] << 8); in ceph_str_hash_rjenkins() [all …]
|
| A D | armor.c | 17 return pem_key[c]; in encode_bits() 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() 28 if (c == '+') in decode_bits() 30 if (c == '/') in decode_bits() 32 if (c == '=') in decode_bits() 51 c = *src++; in ceph_armor() [all …]
|
| A D | osdmap.c | 414 if (!c->buckets[b]) in crush_finalize() 427 c->working_size += c->buckets[b]->size * sizeof(__u32); in crush_finalize() 442 c = kzalloc(sizeof(*c), GFP_NOFS); in crush_decode() 443 if (c == NULL) in crush_decode() 447 c->names = RB_ROOT; in crush_decode() 467 c->buckets = kcalloc(c->max_buckets, sizeof(*c->buckets), GFP_NOFS); in crush_decode() 470 c->rules = kcalloc(c->max_rules, sizeof(*c->rules), GFP_NOFS); in crush_decode() 593 c->rules[i] = r; in crush_decode() 661 crush_finalize(c); in crush_decode() 663 return c; in crush_decode() [all …]
|
| /net/ceph/crush/ |
| A D | hash.c | 14 a = a-b; a = a-c; a = a^(c>>13); \ 16 c = c-a; c = c-b; c = c^(b>>13); \ 17 a = a-b; a = a-c; a = a^(c>>12); \ 19 c = c-a; c = c-b; c = c^(b>>5); \ 20 a = a-b; a = a-c; a = a^(c>>3); \ 22 c = c-a; c = c-b; c = c^(b>>15); \ 55 crush_hashmix(c, x, hash); in crush_hash32_rjenkins1_3() 58 crush_hashmix(y, c, hash); in crush_hash32_rjenkins1_3() 68 crush_hashmix(c, d, hash); in crush_hash32_rjenkins1_4() 71 crush_hashmix(c, x, hash); in crush_hash32_rjenkins1_4() [all …]
|
| /net/mac80211/tests/ |
| A D | tpe.c | 36 .c.chan = &chan6g_1, 37 .c.center_freq1 = 5955, 44 .c.chan = &chan6g_1, 45 .c.center_freq1 = 5965, 53 .c.chan = &chan6g_1, 62 .c.chan = &chan6g_1, 70 .c.chan = &chan6g_1, 78 .c.chan = &chan6g_61, 86 .c.chan = &chan6g_61, 95 .c.chan = &chan6g_1, [all …]
|
| /net/bridge/netfilter/ |
| A D | ebt_stp.c | 50 c = &info->config; 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() 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() 89 v16 < c->portl || v16 > c->portu)) in ebt_filter_config() 95 v16 < c->msg_agel || v16 > c->msg_ageu)) in ebt_filter_config() 101 v16 < c->max_agel || v16 > c->max_ageu)) in ebt_filter_config() 107 v16 < c->hello_timel || v16 > c->hello_timeu)) in ebt_filter_config() [all …]
|
| /net/tipc/ |
| A 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 …]
|
| A D | crypto.c | 1196 aead->gen = (is_tx(c)) ? ++c->key_gen : c->key_gen; in tipc_crypto_key_attach() 1197 tipc_aead_rcu_replace(c->aead[new_key], aead, &c->lock); in tipc_crypto_key_attach() 1219 rx = c; in tipc_crypto_key_flush() 1239 tipc_crypto_key_detach(c->aead[k], &c->lock); in tipc_crypto_key_flush() 1475 c = kzalloc(sizeof(*c), GFP_ATOMIC); in tipc_crypto_start() 1476 if (!c) in tipc_crypto_start() 1483 kfree(c); in tipc_crypto_start() 1491 if (c->wq) in tipc_crypto_start() 1510 (is_rx(c)) ? tipc_node_get_id_str(c->node) : in tipc_crypto_start() 1518 *crypto = c; in tipc_crypto_start() [all …]
|
| /net/ipv4/ |
| A D | ipmr_base.c | 67 struct mr_mfc *c; in mr_mfc_find_parent() local 72 return c; in mr_mfc_find_parent() 81 struct mr_mfc *c; in mr_mfc_find_any_parent() local 87 return c; in mr_mfc_find_any_parent() 96 struct mr_mfc *c, *proxy; in mr_mfc_find_any() local 101 return c; in mr_mfc_find_any() 106 return c; in mr_mfc_find_any() 178 struct mr_mfc *c = v; in mr_mfc_seq_next() local 240 for (ct = c->mfc_un.res.minvif; ct < c->mfc_un.res.maxvif; ct++) { in mr_fill_mroute() 280 const struct mr_mfc *c, in mr_mfc_uses_dev() argument [all …]
|
| A D | ipmr.c | 976 if (c) { in ipmr_cache_alloc() 982 return c; in ipmr_cache_alloc() 989 if (c) { in ipmr_cache_alloc_unres() 993 return c; in ipmr_cache_alloc_unres() 1203 if (!c) in ipmr_mfc_delete() 1230 if (c) { in ipmr_mfc_add() 1248 if (!c) in ipmr_mfc_add() 1673 if (c) { in ipmr_ioctl() 1745 if (c) { in ipmr_compat_ioctl() 2071 c->_c.mfc_un.res.ttls[c->_c.mfc_parent]) { in ip_mr_forward() [all …]
|
| A D | tcp_sigpool.c | 260 int tcp_sigpool_start(unsigned int id, struct tcp_sigpool *c) __cond_acquires(RCU_BH) in tcp_sigpool_start() argument 276 c->req = ahash_request_alloc(hash, GFP_ATOMIC); in tcp_sigpool_start() 277 if (!c->req) { in tcp_sigpool_start() 282 ahash_request_set_callback(c->req, 0, NULL, NULL); in tcp_sigpool_start() 288 c->scratch = rcu_dereference_bh(*this_cpu_ptr(&sigpool_scratch.pad)); in tcp_sigpool_start() 293 void tcp_sigpool_end(struct tcp_sigpool *c) __releases(RCU_BH) in tcp_sigpool_end() argument 295 struct crypto_ahash *hash = crypto_ahash_reqtfm(c->req); in tcp_sigpool_end() 299 ahash_request_free(c->req); in tcp_sigpool_end()
|
| /net/9p/ |
| A D | error.c | 179 struct errormap *c; in p9_error_init() local 183 for (c = errmap; c->name; c++) { in p9_error_init() 184 c->namelen = strlen(c->name); in p9_error_init() 185 hash = jhash(c->name, c->namelen, 0); in p9_error_init() 186 INIT_HLIST_NODE(&c->list); in p9_error_init() 187 hash_add(hash_errmap, &c->list, hash); in p9_error_init() 204 struct errormap *c; in p9_errstr2errno() local 208 c = NULL; in p9_errstr2errno() 210 hash_for_each_possible(hash_errmap, c, list, hash) { in p9_errstr2errno() 211 if (c->namelen == len && !memcmp(c->name, errstr, len)) { in p9_errstr2errno() [all …]
|
| A D | trans_rdma.c | 329 kfree(c); in recv_done() 349 c->busa, c->req->tc.size, in send_done() 353 kfree(c); in send_done() 398 sge.addr = c->busa; in post_recv() 403 wr.wr_cqe = &c->cqe; in post_recv() 478 c = kmalloc(sizeof *c, GFP_NOFS); in rdma_request() 479 if (!c) { in rdma_request() 483 c->req = req; in rdma_request() 486 c->req->tc.sdata, c->req->tc.size, in rdma_request() 495 sge.addr = c->busa; in rdma_request() [all …]
|
| A D | client.c | 229 if (likely(c->fcall_cache) && alloc_msize == c->msize) { in p9_fcall_init() 457 p9_req_put(c, req); in p9_client_cb() 618 c->trans_mod->cancelled(c, oldreq); in p9_client_flush() 621 p9_req_put(c, req); in p9_client_flush() 688 const uint rsize = c->trans_mod->pooled_rbuffers ? c->msize : 0; in p9_client_rpc() 706 err = c->trans_mod->request(c, req); in p9_client_rpc() 740 if (c->trans_mod->cancel(c, req)) in p9_client_rpc() 808 err = c->trans_mod->zc_request(c, req, uidata, uodata, in p9_client_zc_rpc() 825 if (c->trans_mod->cancel(c, req)) in p9_client_zc_rpc() 918 c->msize, c->proto_version); in p9_client_version() [all …]
|
| /net/ipv6/ |
| A D | ip6mr.c | 1002 if (!c) in ip6mr_cache_alloc() 1008 return c; in ip6mr_cache_alloc() 1014 if (!c) in ip6mr_cache_alloc_unres() 1018 return c; in ip6mr_cache_alloc_unres() 1246 if (!c) in ip6mr_mfc_delete() 1466 if (c) { in ip6mr_mfc_add() 1484 if (!c) in ip6mr_mfc_add() 1937 if (c) { in ip6mr_ioctl() 2009 if (c) { in ip6mr_compat_ioctl() 2214 c->_c.mfc_un.res.ttls[c->_c.mfc_parent]) { in ip6_mr_forward() [all …]
|
| /net/wireless/ |
| A D | chan.c | 488 *punctured = c->punctured; in cfg80211_chandef_primary() 629 struct ieee80211_channel *c; in cfg80211_set_dfs_state() local 641 if (!c || !(c->flags & IEEE80211_CHAN_RADAR)) in cfg80211_set_dfs_state() 644 c->dfs_state = dfs_state; in cfg80211_set_dfs_state() 730 if (!c) in cfg80211_get_chans_dfs_required() 804 if (!c) in cfg80211_chandef_dfs_usable() 1017 if (!c) in cfg80211_chandef_dfs_available() 1049 if (!c || (c->flags & IEEE80211_CHAN_DISABLED)) { in cfg80211_chandef_dfs_cac_time() 1061 t1 = c->dfs_cac_ms; in cfg80211_chandef_dfs_cac_time() 1064 t2 = c->dfs_cac_ms; in cfg80211_chandef_dfs_cac_time() [all …]
|
| /net/core/ |
| A D | utils.c | 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 153 w = (w * 10) + c; in in4_pton() 204 int c; in in6_pton() local 207 if (!(c & state)) in in6_pton() 216 if (c & IN6PTON_DELIM) { in in6_pton() 248 if (c & IN6PTON_DOT) { in in6_pton() [all …]
|
| /net/key/ |
| A D | af_key.c | 1502 struct km_event c; in pfkey_add() local 1538 struct km_event c; in pfkey_delete() local 1762 struct km_event c; in pfkey_flush() local 1781 c.net = net; in pfkey_flush() 2234 if (c->data.byid && c->event == XFRM_MSG_DELPOLICY) in key_notify_policy() 2254 struct km_event c; in pfkey_spdadd() local 2369 struct km_event c; in pfkey_spddelete() local 2427 c.data.byid = 0; in pfkey_spddelete() 2676 c.data.byid = 1; in pfkey_spdget() 2797 c.net = net; in pfkey_spdflush() [all …]
|
| /net/xfrm/ |
| A D | xfrm_user.c | 1013 struct km_event c; in xfrm_add_sa() local 1091 struct km_event c; in xfrm_del_sa() local 2232 struct km_event c; in xfrm_add_policy() local 2554 struct km_event c; in xfrm_get_policy() local 2634 struct km_event c; in xfrm_flush_sa() local 2648 c.net = net; in xfrm_flush_sa() 2750 struct km_event c; in xfrm_get_ae() local 2792 struct km_event c; in xfrm_new_ae() local 2868 c.net = net; in xfrm_flush_policy() 3714 nlh = nlmsg_put(skb, c->portid, c->seq, c->event, headlen, 0); in xfrm_notify_sa() [all …]
|
| /net/sunrpc/ |
| A D | addr.c | 314 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/sunrpc/auth_gss/ |
| A D | gss_rpc_upcall.c | 237 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/sched/ |
| A D | act_connmark.c | 41 struct nf_conn *c; in tcf_connmark_act() local 66 c = nf_ct_get(skb, &ctinfo); in tcf_connmark_act() 67 if (c) { in tcf_connmark_act() 68 skb->mark = READ_ONCE(c->mark); in tcf_connmark_act() 83 c = nf_ct_tuplehash_to_ctrack(thash); in tcf_connmark_act() 84 skb->mark = READ_ONCE(c->mark); in tcf_connmark_act() 85 nf_ct_put(c); in tcf_connmark_act()
|
| /net/netfilter/ |
| A 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 523 if (*c == ':') { in ct_sip_parse_header_uri() 524 c++; in ct_sip_parse_header_uri() 525 p = simple_strtoul(c, (char **)&c, 10); in ct_sip_parse_header_uri() [all …]
|
| /net/dsa/ |
| A D | tag_dsa.c | 311 __wsum c = skb->csum; in dsa_rcv_ll() local 312 c = csum_add(c, csum_partial(new_header + 2, 2, 0)); in dsa_rcv_ll() 313 c = csum_sub(c, csum_partial(dsa_header + 2, 2, 0)); in dsa_rcv_ll() 314 skb->csum = c; in dsa_rcv_ll()
|
| /net/bluetooth/ |
| A D | l2cap_core.c | 125 c = l2cap_chan_hold_unless_zero(c); in l2cap_get_chan_by_scid() 126 if (c) in l2cap_get_chan_by_scid() 144 c = l2cap_chan_hold_unless_zero(c); in l2cap_get_chan_by_dcid() 145 if (c) in l2cap_get_chan_by_dcid() 176 if (c->sport == psm && !bacmp(&c->src, src)) in __l2cap_global_chan_by_addr() 7222 c = list_next_entry(c, global_l); in l2cap_global_fixed_chan() 7236 c = l2cap_chan_hold_unless_zero(c); in l2cap_global_fixed_chan() 7662 &c->src, c->src_type, &c->dst, c->dst_type, in l2cap_debugfs_show() 7663 c->state, __le16_to_cpu(c->psm), in l2cap_debugfs_show() 7664 c->scid, c->dcid, c->imtu, c->omtu, in l2cap_debugfs_show() [all …]
|