Home
last modified time | relevance | path

Searched refs:k (Results 1 – 25 of 49) sorted by relevance

12

/net/ceph/
Dceph_hash.c25 const unsigned char *k = (const unsigned char *)str; in ceph_str_hash_rjenkins() local
37 a = a + (k[0] + ((__u32)k[1] << 8) + ((__u32)k[2] << 16) + in ceph_str_hash_rjenkins()
38 ((__u32)k[3] << 24)); in ceph_str_hash_rjenkins()
39 b = b + (k[4] + ((__u32)k[5] << 8) + ((__u32)k[6] << 16) + in ceph_str_hash_rjenkins()
40 ((__u32)k[7] << 24)); in ceph_str_hash_rjenkins()
41 c = c + (k[8] + ((__u32)k[9] << 8) + ((__u32)k[10] << 16) + in ceph_str_hash_rjenkins()
42 ((__u32)k[11] << 24)); in ceph_str_hash_rjenkins()
44 k = k + 12; 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()
[all …]
/net/rxrpc/
Dconn_service.c31 struct rxrpc_conn_proto k; in rxrpc_find_service_conn_rcu() local
36 k.epoch = sp->hdr.epoch; in rxrpc_find_service_conn_rcu()
37 k.cid = sp->hdr.cid & RXRPC_CIDMASK; in rxrpc_find_service_conn_rcu()
51 if (conn->proto.index_key < k.index_key) in rxrpc_find_service_conn_rcu()
53 else if (conn->proto.index_key > k.index_key) in rxrpc_find_service_conn_rcu()
74 struct rxrpc_conn_proto k = conn->proto; in rxrpc_publish_service_conn() local
86 if (cursor->proto.index_key < k.index_key) in rxrpc_publish_service_conn()
88 else if (cursor->proto.index_key > k.index_key) in rxrpc_publish_service_conn()
Dconn_object.c75 struct rxrpc_conn_proto k; in rxrpc_find_connection_rcu() local
94 k.epoch = sp->hdr.epoch; in rxrpc_find_connection_rcu()
95 k.cid = sp->hdr.cid & RXRPC_CIDMASK; in rxrpc_find_connection_rcu()
122 if (conn->proto.epoch != k.epoch || in rxrpc_find_connection_rcu()
/net/ax25/
Dsysctl_net_ax25.c151 int k; in ax25_register_dev_sysctl() local
158 for (k = 0; k < AX25_MAX_VALUES; k++) in ax25_register_dev_sysctl()
159 table[k].data = &ax25_dev->values[k]; in ax25_register_dev_sysctl()
Dax25_route.c384 int k; in ax25_adjust_path() local
386 for (k = 0; k < digipeat->ndigi; k++) { in ax25_adjust_path()
387 if (ax25cmp(addr, &digipeat->calls[k]) == 0) in ax25_adjust_path()
391 digipeat->ndigi = k; in ax25_adjust_path()
Daf_ax25.c366 unsigned int k; in ax25_ctl_ioctl() local
383 for (k = 0; k < digi.ndigi; k++) in ax25_ctl_ioctl()
384 digi.calls[k] = ax25_ctl.digi_addr[k]; in ax25_ctl_ioctl()
1939 int k; in ax25_info_show() local
1954 for (k=0; (ax25->digipeat != NULL) && (k < ax25->digipeat->ndigi); k++) { in ax25_info_show()
1956 ax2asc(buf, &ax25->digipeat->calls[k]), in ax25_info_show()
1957 ax25->digipeat->repeated[k]? "*":""); in ax25_info_show()
/net/netfilter/ipvs/
Dip_vs_est.c160 struct ip_vs_kstats *k = &stats->kstats; in ip_vs_zero_estimator() local
163 est->last_inbytes = k->inbytes; in ip_vs_zero_estimator()
164 est->last_outbytes = k->outbytes; in ip_vs_zero_estimator()
165 est->last_conns = k->conns; in ip_vs_zero_estimator()
166 est->last_inpkts = k->inpkts; in ip_vs_zero_estimator()
167 est->last_outpkts = k->outpkts; in ip_vs_zero_estimator()
/net/tipc/
Dcrypto.c1216 int k; in tipc_crypto_key_flush() local
1230 k = atomic_xchg(&rx->peer_rx_active, 0); in tipc_crypto_key_flush()
1231 if (k) { in tipc_crypto_key_flush()
1232 tipc_aead_users_dec(tx->aead[k], 0); in tipc_crypto_key_flush()
1240 for (k = KEY_MIN; k <= KEY_MAX; k++) in tipc_crypto_key_flush()
1241 tipc_crypto_key_detach(c->aead[k], &c->lock); in tipc_crypto_key_flush()
1329 u8 k, i = 0; in tipc_crypto_key_pick_tx() local
1348 k = (i == 0) ? key.pending : in tipc_crypto_key_pick_tx()
1350 if (!k) in tipc_crypto_key_pick_tx()
1352 aead = tipc_aead_rcu_ptr(tx->aead[k], &tx->lock); in tipc_crypto_key_pick_tx()
[all …]
/net/smc/
Dsmc_stats.c385 int rc_srv = 0, rc_clnt = 0, k; in smc_nl_get_fback_stats() local
391 for (k = 0; k < SMC_MAX_FBACK_RSN_CNT; k++) { in smc_nl_get_fback_stats()
392 if (k < snum) in smc_nl_get_fback_stats()
395 rc_srv = smc_nl_get_fback_details(skb, cb, k, is_srv); in smc_nl_get_fback_stats()
401 rc_clnt = smc_nl_get_fback_details(skb, cb, k, !is_srv); in smc_nl_get_fback_stats()
411 cb_ctx->pos[0] = k; in smc_nl_get_fback_stats()
Dsmc_llc.c1005 int i, j, k; in smc_llc_find_asym_link() local
1026 for (k = 0; k < SMC_LINKS_PER_LGR_MAX; k++) { in smc_llc_find_asym_link()
1027 if (!smc_link_usable(&lgr->lnk[k])) in smc_llc_find_asym_link()
1029 if (k != i && in smc_llc_find_asym_link()
1030 !memcmp(lgr->lnk[i].peer_gid, lgr->lnk[k].peer_gid, in smc_llc_find_asym_link()
1035 if (k != j && in smc_llc_find_asym_link()
1036 !memcmp(lgr->lnk[j].peer_gid, lgr->lnk[k].peer_gid, in smc_llc_find_asym_link()
/net/netfilter/
Dnft_set_bitmap.c55 u32 k; in nft_bitmap_location() local
58 k = *(u16 *)key; in nft_bitmap_location()
60 k = *(u8 *)key; in nft_bitmap_location()
61 k <<= 1; in nft_bitmap_location()
63 *idx = k / BITS_PER_BYTE; in nft_bitmap_location()
64 *off = k % BITS_PER_BYTE; in nft_bitmap_location()
Dnft_set_pipapo.c366 int k, ret = -1; in pipapo_refill() local
368 for (k = 0; k < len; k++) { in pipapo_refill()
369 bitset = map[k]; in pipapo_refill()
373 int i = k * BITS_PER_LONG + r; in pipapo_refill()
376 map[k] = 0; in pipapo_refill()
391 map[k] = 0; in pipapo_refill()
902 static int pipapo_insert(struct nft_pipapo_field *f, const uint8_t *k, in pipapo_insert() argument
917 v = k[group / (BITS_PER_BYTE / f->bb)]; in pipapo_insert()
Dnft_xfrm.c96 static bool xfrm_state_addr_ok(enum nft_xfrm_keys k, u8 family, u8 mode) in xfrm_state_addr_ok() argument
98 switch (k) { in xfrm_state_addr_ok()
/net/netfilter/ipset/
Dip_set_hash_gen.h478 u8 k; in mtype_gc_do() local
500 for (k = 0; k < IPSET_NET_COUNT; k++) in mtype_gc_do()
502 NCIDR_PUT(DCIDR_GET(data->cidr, k)), in mtype_gc_do()
503 k); in mtype_gc_do()
1030 int i, j, k, r, ret = -IPSET_ERR_EXIST; in mtype_del() local
1048 for (i = 0, k = 0; i < n->pos; i++) { in mtype_del()
1050 k++; in mtype_del()
1087 k++; in mtype_del()
1089 if (n->pos == 0 && k == 0) { in mtype_del()
1093 } else if (k >= AHASH_INIT_SIZE) { in mtype_del()
[all …]
/net/dccp/ccids/lib/
Dloss_interval.c61 int i, k = tfrc_lh_length(lh) - 1; /* k is as in rfc3448bis, 5.4 */ in tfrc_lh_calc_i_mean() local
63 if (k <= 0) in tfrc_lh_calc_i_mean()
66 for (i = 0; i <= k; i++) { in tfrc_lh_calc_i_mean()
69 if (i < k) { in tfrc_lh_calc_i_mean()
/net/sched/
Dact_pedit.c45 struct tcf_pedit_key_ex *k; in tcf_pedit_keys_ex_parse() local
53 keys_ex = kcalloc(n, sizeof(*k), GFP_KERNEL); in tcf_pedit_keys_ex_parse()
57 k = keys_ex; in tcf_pedit_keys_ex_parse()
85 k->htype = nla_get_u16(tb[TCA_PEDIT_KEY_EX_HTYPE]); in tcf_pedit_keys_ex_parse()
86 k->cmd = nla_get_u16(tb[TCA_PEDIT_KEY_EX_CMD]); in tcf_pedit_keys_ex_parse()
88 if (k->htype > TCA_PEDIT_HDR_TYPE_MAX || in tcf_pedit_keys_ex_parse()
89 k->cmd > TCA_PEDIT_CMD_MAX) { in tcf_pedit_keys_ex_parse()
94 k++; in tcf_pedit_keys_ex_parse()
Dsch_cake.c750 u32 i, k; in cake_hash() local
755 for (i = 0, k = inner_hash; i < CAKE_SET_WAYS; in cake_hash()
756 i++, k = (k + 1) % CAKE_SET_WAYS) { in cake_hash()
757 if (q->tags[outer_hash + k] == flow_hash) { in cake_hash()
761 if (!q->flows[outer_hash + k].set) { in cake_hash()
775 i++, k = (k + 1) % CAKE_SET_WAYS) { in cake_hash()
776 if (!q->flows[outer_hash + k].set) { in cake_hash()
788 if (q->flows[outer_hash + k].set == CAKE_SET_BULK) { in cake_hash()
796 reduced_hash = outer_hash + k; in cake_hash()
803 for (i = 0, k = inner_hash; i < CAKE_SET_WAYS; in cake_hash()
[all …]
/net/bluetooth/
Dhci_core.c2369 struct smp_ltk *k, *tmp; in hci_smp_ltks_clear() local
2371 list_for_each_entry_safe(k, tmp, &hdev->long_term_keys, list) { in hci_smp_ltks_clear()
2372 list_del_rcu(&k->list); in hci_smp_ltks_clear()
2373 kfree_rcu(k, rcu); in hci_smp_ltks_clear()
2379 struct smp_irk *k, *tmp; in hci_smp_irks_clear() local
2381 list_for_each_entry_safe(k, tmp, &hdev->identity_resolving_keys, list) { in hci_smp_irks_clear()
2382 list_del_rcu(&k->list); in hci_smp_irks_clear()
2383 kfree_rcu(k, rcu); in hci_smp_irks_clear()
2416 struct link_key *k; in hci_find_link_key() local
2419 list_for_each_entry_rcu(k, &hdev->link_keys, list) { in hci_find_link_key()
[all …]
Dsmp.c168 static int aes_cmac(struct crypto_shash *tfm, const u8 k[16], const u8 *m, in aes_cmac()
183 swap_buf(k, tmp, 16); in aes_cmac()
187 SMP_DBG("key %16phN", k); in aes_cmac()
374 static int smp_e(const u8 *k, u8 *r) in smp_e() argument
380 SMP_DBG("k %16phN r %16phN", k, r); in smp_e()
383 swap_buf(k, tmp, 16); in smp_e()
405 static int smp_c1(const u8 k[16], in smp_c1()
412 SMP_DBG("k %16phN r %16phN", k, r); in smp_c1()
430 err = smp_e(k, res); in smp_c1()
447 err = smp_e(k, res); in smp_c1()
[all …]
/net/xfrm/
Dxfrm_policy.c122 struct xfrm_pol_inexact_key k; member
699 struct xfrm_pol_inexact_key k = { in xfrm_policy_inexact_alloc_bin() local
709 write_pnet(&k.net, net); in xfrm_policy_inexact_alloc_bin()
710 bin = rhashtable_lookup_fast(&xfrm_policy_inexact_table, &k, in xfrm_policy_inexact_alloc_bin()
719 bin->k = k; in xfrm_policy_inexact_alloc_bin()
726 &bin->k, &bin->head, in xfrm_policy_inexact_alloc_bin()
1108 struct net *net = read_pnet(&b->k.net); in xfrm_policy_inexact_prune_bin()
1455 const struct xfrm_pol_inexact_key *k = data; in xfrm_pol_bin_key() local
1456 u32 a = k->type << 24 | k->dir << 16 | k->family; in xfrm_pol_bin_key()
1458 return jhash_3words(a, k->if_id, net_hash_mix(read_pnet(&k->net)), in xfrm_pol_bin_key()
[all …]
Dxfrm_user.c2582 struct xfrm_kmaddress *k, in copy_from_user_migrate() argument
2589 if (k != NULL) { in copy_from_user_migrate()
2593 memcpy(&k->local, &uk->local, sizeof(k->local)); in copy_from_user_migrate()
2594 memcpy(&k->remote, &uk->remote, sizeof(k->remote)); in copy_from_user_migrate()
2595 k->family = uk->family; in copy_from_user_migrate()
2596 k->reserved = uk->reserved; in copy_from_user_migrate()
2695 static int copy_to_user_kmaddress(const struct xfrm_kmaddress *k, struct sk_buff *skb) in copy_to_user_kmaddress() argument
2700 uk.family = k->family; in copy_to_user_kmaddress()
2701 uk.reserved = k->reserved; in copy_to_user_kmaddress()
2702 memcpy(&uk.local, &k->local, sizeof(uk.local)); in copy_to_user_kmaddress()
[all …]
/net/ipv4/netfilter/
Dipt_CLUSTERIP.c626 int j, k; in arp_print() local
628 for (k = 0, j = 0; k < HBUFFERLEN - 3 && j < ETH_ALEN; j++) { in arp_print()
629 hbuffer[k++] = hex_asc_hi(payload->src_hw[j]); in arp_print()
630 hbuffer[k++] = hex_asc_lo(payload->src_hw[j]); in arp_print()
631 hbuffer[k++] = ':'; in arp_print()
633 hbuffer[--k] = '\0'; in arp_print()
/net/ipv4/
Darp.c1354 int k, j; in arp_format_neigh_entry() local
1366 for (k = 0, j = 0; k < HBUFFERLEN - 3 && j < dev->addr_len; j++) { in arp_format_neigh_entry()
1367 hbuffer[k++] = hex_asc_hi(n->ha[j]); in arp_format_neigh_entry()
1368 hbuffer[k++] = hex_asc_lo(n->ha[j]); in arp_format_neigh_entry()
1369 hbuffer[k++] = ':'; in arp_format_neigh_entry()
1371 if (k != 0) in arp_format_neigh_entry()
1372 --k; in arp_format_neigh_entry()
1373 hbuffer[k] = 0; in arp_format_neigh_entry()
/net/xdp/
Dxskmap.c217 int k = *(u32 *)key; in xsk_map_delete_elem() local
219 if (k >= map->max_entries) in xsk_map_delete_elem()
223 map_entry = &m->xsk_map[k]; in xsk_map_delete_elem()
/net/key/
Daf_key.c2558 struct xfrm_kmaddress k; in pfkey_migrate() local
2578 k.reserved = kma->sadb_x_kmaddress_reserved; in pfkey_migrate()
2581 &k.local, &k.remote, &k.family); in pfkey_migrate()
2633 kma ? &k : NULL, net, NULL, 0); in pfkey_migrate()
2920 int i, k, sz = 0; in count_esp_combs() local
2933 for (k = 1; ; k++) { in count_esp_combs()
2934 const struct xfrm_algo_desc *aalg = xfrm_aalg_get_byidx(k); in count_esp_combs()
2990 int i, k; in dump_esp_combs() local
3009 for (k = 1; ; k++) { in dump_esp_combs()
3011 const struct xfrm_algo_desc *aalg = xfrm_aalg_get_byidx(k); in dump_esp_combs()
[all …]

12