Home
last modified time | relevance | path

Searched refs:k (Results 1 – 25 of 38) 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()
54 c = c + ((__u32)k[9] << 16); in ceph_str_hash_rjenkins()
[all …]
/net/rxrpc/
Dconn_service.c29 struct rxrpc_conn_proto k; in rxrpc_find_service_conn_rcu() local
34 k.epoch = sp->hdr.epoch; in rxrpc_find_service_conn_rcu()
35 k.cid = sp->hdr.cid & RXRPC_CIDMASK; in rxrpc_find_service_conn_rcu()
48 if (conn->proto.index_key < k.index_key) in rxrpc_find_service_conn_rcu()
50 else if (conn->proto.index_key > k.index_key) in rxrpc_find_service_conn_rcu()
72 struct rxrpc_conn_proto k = conn->proto; in rxrpc_publish_service_conn() local
84 if (cursor->proto.index_key < k.index_key) in rxrpc_publish_service_conn()
86 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
85 k.epoch = sp->hdr.epoch; in rxrpc_find_connection_rcu()
86 k.cid = sp->hdr.cid & RXRPC_CIDMASK; in rxrpc_find_connection_rcu()
96 k.epoch = sp->hdr.epoch; in rxrpc_find_connection_rcu()
97 k.cid = sp->hdr.cid & RXRPC_CIDMASK; in rxrpc_find_connection_rcu()
123 if (conn->proto.epoch != k.epoch || in rxrpc_find_connection_rcu()
/net/ax25/
Dsysctl_net_ax25.c154 int k; in ax25_register_dev_sysctl() local
161 for (k = 0; k < AX25_MAX_VALUES; k++) in ax25_register_dev_sysctl()
162 table[k].data = &ax25_dev->values[k]; in ax25_register_dev_sysctl()
Dax25_route.c397 int k; in ax25_adjust_path() local
399 for (k = 0; k < digipeat->ndigi; k++) { in ax25_adjust_path()
400 if (ax25cmp(addr, &digipeat->calls[k]) == 0) in ax25_adjust_path()
404 digipeat->ndigi = k; in ax25_adjust_path()
Daf_ax25.c354 unsigned int k; in ax25_ctl_ioctl() local
370 for (k = 0; k < digi.ndigi; k++) in ax25_ctl_ioctl()
371 digi.calls[k] = ax25_ctl.digi_addr[k]; in ax25_ctl_ioctl()
1876 int k; in ax25_info_show() local
1891 for (k=0; (ax25->digipeat != NULL) && (k < ax25->digipeat->ndigi); k++) { in ax25_info_show()
1893 ax2asc(buf, &ax25->digipeat->calls[k]), in ax25_info_show()
1894 ax25->digipeat->repeated[k]? "*":""); in ax25_info_show()
/net/bluetooth/
Decc.c260 unsigned int i, k; in vli_mult() local
265 for (k = 0; k < NUM_ECC_DIGITS * 2 - 1; k++) { in vli_mult()
268 if (k < NUM_ECC_DIGITS) in vli_mult()
271 min = (k + 1) - NUM_ECC_DIGITS; in vli_mult()
273 for (i = min; i <= k && i < NUM_ECC_DIGITS; i++) { in vli_mult()
276 product = mul_64_64(left[i], right[k - i]); in vli_mult()
282 result[k] = r01.m_low; in vli_mult()
295 int i, k; in vli_square() local
297 for (k = 0; k < NUM_ECC_DIGITS * 2 - 1; k++) { in vli_square()
300 if (k < NUM_ECC_DIGITS) in vli_square()
[all …]
Dhci_core.c2148 struct smp_ltk *k; in hci_smp_ltks_clear() local
2150 list_for_each_entry_rcu(k, &hdev->long_term_keys, list) { in hci_smp_ltks_clear()
2151 list_del_rcu(&k->list); in hci_smp_ltks_clear()
2152 kfree_rcu(k, rcu); in hci_smp_ltks_clear()
2158 struct smp_irk *k; in hci_smp_irks_clear() local
2160 list_for_each_entry_rcu(k, &hdev->identity_resolving_keys, list) { in hci_smp_irks_clear()
2161 list_del_rcu(&k->list); in hci_smp_irks_clear()
2162 kfree_rcu(k, rcu); in hci_smp_irks_clear()
2168 struct link_key *k; in hci_find_link_key() local
2171 list_for_each_entry_rcu(k, &hdev->link_keys, list) { in hci_find_link_key()
[all …]
Dsmp.c170 static int aes_cmac(struct crypto_shash *tfm, const u8 k[16], const u8 *m, in aes_cmac()
189 swap_buf(k, tmp, 16); in aes_cmac()
193 SMP_DBG("key %16phN", k); in aes_cmac()
365 static int smp_e(struct crypto_cipher *tfm, const u8 *k, u8 *r) in smp_e() argument
370 SMP_DBG("k %16phN r %16phN", k, r); in smp_e()
378 swap_buf(k, tmp, 16); in smp_e()
399 static int smp_c1(struct crypto_cipher *tfm_aes, const u8 k[16], in smp_c1()
406 SMP_DBG("k %16phN r %16phN", k, r); in smp_c1()
424 err = smp_e(tfm_aes, k, res); in smp_c1()
441 err = smp_e(tfm_aes, k, res); in smp_c1()
[all …]
/net/netfilter/ipvs/
Dip_vs_est.c164 struct ip_vs_kstats *k = &stats->kstats; in ip_vs_zero_estimator() local
167 est->last_inbytes = k->inbytes; in ip_vs_zero_estimator()
168 est->last_outbytes = k->outbytes; in ip_vs_zero_estimator()
169 est->last_conns = k->conns; in ip_vs_zero_estimator()
170 est->last_inpkts = k->inpkts; in ip_vs_zero_estimator()
171 est->last_outpkts = k->outpkts; in ip_vs_zero_estimator()
/net/netfilter/ipset/
Dip_set_hash_gen.h483 u8 k; in mtype_expire() local
502 for (k = 0; k < IPSET_NET_COUNT; k++) in mtype_expire()
505 k)), in mtype_expire()
506 nets_length, k); in mtype_expire()
860 int i, j, k, ret = -IPSET_ERR_EXIST; in mtype_del() local
869 for (i = 0, k = 0; i < n->pos; i++) { in mtype_del()
871 k++; in mtype_del()
896 k++; in mtype_del()
898 if (n->pos == 0 && k == 0) { in mtype_del()
901 } else if (k >= AHASH_INIT_SIZE) { in mtype_del()
[all …]
/net/dccp/ccids/lib/
Dloss_interval.c65 int i, k = tfrc_lh_length(lh) - 1; /* k is as in rfc3448bis, 5.4 */ in tfrc_lh_calc_i_mean() local
67 if (k <= 0) in tfrc_lh_calc_i_mean()
70 for (i = 0; i <= k; i++) { in tfrc_lh_calc_i_mean()
73 if (i < k) { in tfrc_lh_calc_i_mean()
/net/ipv4/netfilter/
Dipt_CLUSTERIP.c505 int j, k; in arp_print() local
507 for (k = 0, j = 0; k < HBUFFERLEN - 3 && j < ETH_ALEN; j++) { in arp_print()
508 hbuffer[k++] = hex_asc_hi(payload->src_hw[j]); in arp_print()
509 hbuffer[k++] = hex_asc_lo(payload->src_hw[j]); in arp_print()
510 hbuffer[k++] = ':'; in arp_print()
512 hbuffer[--k] = '\0'; in arp_print()
/net/core/
Dfilter.c224 switch (fp->k) { in convert_bpf_extensions()
251 if (fp->k == SKF_AD_OFF + SKF_AD_IFINDEX) in convert_bpf_extensions()
310 switch (fp->k) { in convert_bpf_extensions()
458 *insn = BPF_RAW_INSN(fp->code, BPF_REG_A, BPF_REG_X, 0, fp->k); in bpf_convert_filter()
477 target = i + fp->k + 1; in bpf_convert_filter()
490 if (BPF_SRC(fp->code) == BPF_K && (int) fp->k < 0) { in bpf_convert_filter()
495 *insn++ = BPF_MOV32_IMM(BPF_REG_TMP, fp->k); in bpf_convert_filter()
502 insn->imm = fp->k; in bpf_convert_filter()
539 *insn++ = BPF_LD_ABS(BPF_B, fp->k); in bpf_convert_filter()
557 0, fp->k); in bpf_convert_filter()
[all …]
Dskbuff.c1610 int i, k, eat = (skb->tail + delta) - skb->end; in __pskb_pull_tail() local
1695 k = 0; in __pskb_pull_tail()
1703 skb_shinfo(skb)->frags[k] = skb_shinfo(skb)->frags[i]; in __pskb_pull_tail()
1705 skb_shinfo(skb)->frags[k].page_offset += eat; in __pskb_pull_tail()
1706 skb_frag_size_sub(&skb_shinfo(skb)->frags[k], eat); in __pskb_pull_tail()
1709 k++; in __pskb_pull_tail()
1712 skb_shinfo(skb)->nr_frags = k; in __pskb_pull_tail()
2571 int i, k = 0; in skb_split_no_header() local
2583 skb_shinfo(skb1)->frags[k] = skb_shinfo(skb)->frags[i]; in skb_split_no_header()
2600 k++; in skb_split_no_header()
[all …]
/net/ipv4/
Darp.c1318 int k, j; in arp_format_neigh_entry() local
1330 for (k = 0, j = 0; k < HBUFFERLEN - 3 && j < dev->addr_len; j++) { in arp_format_neigh_entry()
1331 hbuffer[k++] = hex_asc_hi(n->ha[j]); in arp_format_neigh_entry()
1332 hbuffer[k++] = hex_asc_lo(n->ha[j]); in arp_format_neigh_entry()
1333 hbuffer[k++] = ':'; in arp_format_neigh_entry()
1335 if (k != 0) in arp_format_neigh_entry()
1336 --k; in arp_format_neigh_entry()
1337 hbuffer[k] = 0; in arp_format_neigh_entry()
/net/netfilter/
Dnft_ct.c35 enum nft_ct_keys k, in nft_ct_get_eval_counter() argument
39 return k == NFT_CT_BYTES ? atomic64_read(&c[d].bytes) : in nft_ct_get_eval_counter()
42 return nft_ct_get_eval_counter(c, k, IP_CT_DIR_ORIGINAL) + in nft_ct_get_eval_counter()
43 nft_ct_get_eval_counter(c, k, IP_CT_DIR_REPLY); in nft_ct_get_eval_counter()
/net/decnet/
Ddn_table.c97 dn_fib_key_t k; in dz_key() local
98 k.datum = dst & DZ_MASK(dz); in dz_key()
99 return k; in dz_key()
796 dn_fib_key_t k = dz_key(flp->daddr, dz); in dn_fib_table_lookup() local
798 for(f = dz_chain(k, dz); f; f = f->fn_next) { in dn_fib_table_lookup()
799 if (!dn_key_eq(k, f->fn_key)) { in dn_fib_table_lookup()
800 if (dn_key_leq(k, f->fn_key)) in dn_fib_table_lookup()
/net/key/
Daf_key.c2548 struct xfrm_kmaddress k; in pfkey_migrate() local
2568 k.reserved = kma->sadb_x_kmaddress_reserved; in pfkey_migrate()
2571 &k.local, &k.remote, &k.family); in pfkey_migrate()
2623 kma ? &k : NULL, net); in pfkey_migrate()
2906 int i, k, sz = 0; in count_esp_combs() local
2919 for (k = 1; ; k++) { in count_esp_combs()
2920 const struct xfrm_algo_desc *aalg = xfrm_aalg_get_byidx(k); in count_esp_combs()
2972 int i, k; in dump_esp_combs() local
2991 for (k = 1; ; k++) { in dump_esp_combs()
2993 const struct xfrm_algo_desc *aalg = xfrm_aalg_get_byidx(k); in dump_esp_combs()
[all …]
/net/xfrm/
Dxfrm_user.c2200 struct xfrm_kmaddress *k, in copy_from_user_migrate() argument
2207 if (k != NULL) { in copy_from_user_migrate()
2211 memcpy(&k->local, &uk->local, sizeof(k->local)); in copy_from_user_migrate()
2212 memcpy(&k->remote, &uk->remote, sizeof(k->remote)); in copy_from_user_migrate()
2213 k->family = uk->family; in copy_from_user_migrate()
2214 k->reserved = uk->reserved; in copy_from_user_migrate()
2303 static int copy_to_user_kmaddress(const struct xfrm_kmaddress *k, struct sk_buff *skb) in copy_to_user_kmaddress() argument
2308 uk.family = k->family; in copy_to_user_kmaddress()
2309 uk.reserved = k->reserved; in copy_to_user_kmaddress()
2310 memcpy(&uk.local, &k->local, sizeof(uk.local)); in copy_to_user_kmaddress()
[all …]
Dxfrm_policy.c2443 static inline int secpath_has_nontransport(const struct sec_path *sp, int k, int *idxp) in secpath_has_nontransport() argument
2445 for (; k < sp->len; k++) { in secpath_has_nontransport()
2446 if (sp->xvec[k]->props.mode != XFRM_MODE_TRANSPORT) { in secpath_has_nontransport()
2447 *idxp = k; in secpath_has_nontransport()
2555 int i, k; in __xfrm_policy_check() local
2585 for (i = xfrm_nr-1, k = 0; i >= 0; i--) { in __xfrm_policy_check()
2586 k = xfrm_policy_ok(tpp[i], sp, k, family); in __xfrm_policy_check()
2587 if (k < 0) { in __xfrm_policy_check()
2588 if (k < -1) in __xfrm_policy_check()
2590 xerr_idx = -(2+k); in __xfrm_policy_check()
[all …]
/net/sched/
Dcls_rsvp.h442 int i, k; in gen_tunnel() local
444 for (k = 0; k < 2; k++) { in gen_tunnel()
/net/wireless/
Dnl80211.c729 static int nl80211_parse_key_new(struct nlattr *key, struct key_parse *k) in nl80211_parse_key_new() argument
737 k->def = !!tb[NL80211_KEY_DEFAULT]; in nl80211_parse_key_new()
738 k->defmgmt = !!tb[NL80211_KEY_DEFAULT_MGMT]; in nl80211_parse_key_new()
740 if (k->def) { in nl80211_parse_key_new()
741 k->def_uni = true; in nl80211_parse_key_new()
742 k->def_multi = true; in nl80211_parse_key_new()
744 if (k->defmgmt) in nl80211_parse_key_new()
745 k->def_multi = true; in nl80211_parse_key_new()
748 k->idx = nla_get_u8(tb[NL80211_KEY_IDX]); in nl80211_parse_key_new()
751 k->p.key = nla_data(tb[NL80211_KEY_DATA]); in nl80211_parse_key_new()
[all …]
/net/rds/
Dib_recv.c793 unsigned int k; in rds_ib_cong_recv() local
802 for (k = 0; k < to_copy; k += 8) { in rds_ib_cong_recv()
/net/llc/
Dllc_c_ac.c1072 if (llc->k - unacked_pdu < 1) in llc_conn_ac_dec_tx_win_size()
1073 llc->k = 1; in llc_conn_ac_dec_tx_win_size()
1075 llc->k -= unacked_pdu; in llc_conn_ac_dec_tx_win_size()
1091 llc->k += 1; in llc_conn_ac_inc_tx_win_size()
1092 if (llc->k > (u8) ~LLC_2_SEQ_NBR_MODULO) in llc_conn_ac_inc_tx_win_size()
1093 llc->k = (u8) ~LLC_2_SEQ_NBR_MODULO; in llc_conn_ac_inc_tx_win_size()

12