| /net/ceph/ |
| A D | ceph_hash.c | 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() 58 c = c + ((__u32)k[8] << 8); in ceph_str_hash_rjenkins() 68 b = b + ((__u32)k[5] << 8); in ceph_str_hash_rjenkins() 71 b = b + k[4]; in ceph_str_hash_rjenkins() [all …]
|
| /net/sched/ |
| A D | act_pedit.c | 46 struct tcf_pedit_key_ex *k; in tcf_pedit_keys_ex_parse() local 54 keys_ex = kcalloc(n, sizeof(*k), GFP_KERNEL); in tcf_pedit_keys_ex_parse() 58 k = keys_ex; in tcf_pedit_keys_ex_parse() 97 k++; in tcf_pedit_keys_ex_parse() 561 int k; in tcf_pedit_offload_act_setup() local 563 for (k = 0; k < tcf_pedit_nkeys(act); k++) { in tcf_pedit_offload_act_setup() 564 switch (tcf_pedit_cmd(act, k)) { in tcf_pedit_offload_act_setup() 582 *index_inc = k; in tcf_pedit_offload_act_setup() 586 int k; in tcf_pedit_offload_act_setup() local 600 for (k = 1; k < tcf_pedit_nkeys(act); k++) { in tcf_pedit_offload_act_setup() [all …]
|
| A D | sch_cake.c | 794 u32 i, k; in cake_hash() local 800 i++, k = (k + 1) % CAKE_SET_WAYS) { in cake_hash() 819 i++, k = (k + 1) % CAKE_SET_WAYS) { in cake_hash() 841 reduced_hash = outer_hash + k; in cake_hash() 849 i++, k = (k + 1) % CAKE_SET_WAYS) { in cake_hash() 855 i++, k = (k + 1) % CAKE_SET_WAYS) { in cake_hash() 873 i++, k = (k + 1) % CAKE_SET_WAYS) { in cake_hash() 879 i++, k = (k + 1) % CAKE_SET_WAYS) { in cake_hash() 2774 q->overflow_heap[k].t = i; in cake_init() 2775 q->overflow_heap[k].b = j; in cake_init() [all …]
|
| /net/rxrpc/ |
| A D | conn_service.c | 25 struct rxrpc_conn_proto k; in rxrpc_find_service_conn_rcu() local 30 k.epoch = sp->hdr.epoch; in rxrpc_find_service_conn_rcu() 31 k.cid = sp->hdr.cid & RXRPC_CIDMASK; in rxrpc_find_service_conn_rcu() 45 if (conn->proto.index_key < k.index_key) in rxrpc_find_service_conn_rcu() 47 else if (conn->proto.index_key > k.index_key) in rxrpc_find_service_conn_rcu() 68 struct rxrpc_conn_proto k = conn->proto; in rxrpc_publish_service_conn() local 80 if (cursor->proto.index_key < k.index_key) in rxrpc_publish_service_conn() 82 else if (cursor->proto.index_key > k.index_key) in rxrpc_publish_service_conn()
|
| /net/ax25/ |
| A D | sysctl_net_ax25.c | 149 int k; in ax25_register_dev_sysctl() local 157 for (k = 0; k < AX25_MAX_VALUES; k++) in ax25_register_dev_sysctl() 158 table[k].data = &ax25_dev->values[k]; in ax25_register_dev_sysctl()
|
| A D | af_ax25.c | 370 unsigned int k; in ax25_ctl_ioctl() local 387 for (k = 0; k < digi.ndigi; k++) in ax25_ctl_ioctl() 388 digi.calls[k] = ax25_ctl.digi_addr[k]; in ax25_ctl_ioctl() 1954 int k; in ax25_info_show() local 1969 for (k=0; (ax25->digipeat != NULL) && (k < ax25->digipeat->ndigi); k++) { in ax25_info_show() 1971 ax2asc(buf, &ax25->digipeat->calls[k]), in ax25_info_show() 1972 ax25->digipeat->repeated[k]? "*":""); in ax25_info_show()
|
| /net/tipc/ |
| A D | crypto.c | 1214 int k; in tipc_crypto_key_flush() local 1229 if (k) { in tipc_crypto_key_flush() 1238 for (k = KEY_MIN; k <= KEY_MAX; k++) in tipc_crypto_key_flush() 1327 u8 k, i = 0; in tipc_crypto_key_pick_tx() local 1348 if (!k) in tipc_crypto_key_pick_tx() 1525 u8 k; in tipc_crypto_stop() local 1539 for (k = KEY_MIN; k <= KEY_MAX; k++) in tipc_crypto_stop() 2084 int k, i = 0; in tipc_crypto_key_dump() local 2087 for (k = KEY_MIN; k <= KEY_MAX; k++) { in tipc_crypto_key_dump() 2132 int k, i = 0; in tipc_key_change_dump() local [all …]
|
| /net/smc/ |
| A D | smc_stats.c | 391 int rc_srv = 0, rc_clnt = 0, k; in smc_nl_get_fback_stats() local 397 for (k = 0; k < SMC_MAX_FBACK_RSN_CNT; k++) { in smc_nl_get_fback_stats() 398 if (k < snum) in smc_nl_get_fback_stats() 401 rc_srv = smc_nl_get_fback_details(skb, cb, k, is_srv); in smc_nl_get_fback_stats() 407 rc_clnt = smc_nl_get_fback_details(skb, cb, k, !is_srv); in smc_nl_get_fback_stats() 417 cb_ctx->pos[0] = k; in smc_nl_get_fback_stats()
|
| A D | smc_stats.h | 140 #define SMC_STAT_RMB_SIZE_SUB(_smc_stats, _tech, k, _is_add, _len) \ argument 153 this_cpu_inc((*stats).smc[t].k ## _rmbsize.buf[_pos]); \ 154 this_cpu_add((*stats).smc[t].k ## _rmbuse, _l); \ 156 this_cpu_sub((*stats).smc[t].k ## _rmbuse, _l); \
|
| /net/netfilter/ |
| A D | nft_set_bitmap.c | 56 u32 k; in nft_bitmap_location() local 59 k = *(u16 *)key; in nft_bitmap_location() 61 k = *(u8 *)key; in nft_bitmap_location() 62 k <<= 1; in nft_bitmap_location() 64 *idx = k / BITS_PER_BYTE; in nft_bitmap_location() 65 *off = k % BITS_PER_BYTE; in nft_bitmap_location()
|
| A D | nft_set_pipapo.c | 367 unsigned int k; in pipapo_refill() local 370 for (k = 0; k < len; k++) { in pipapo_refill() 371 bitset = map[k]; in pipapo_refill() 375 int i = k * BITS_PER_LONG + r; in pipapo_refill() 378 map[k] = 0; in pipapo_refill() 393 map[k] = 0; in pipapo_refill() 936 static int pipapo_insert(struct nft_pipapo_field *f, const uint8_t *k, in pipapo_insert() argument 951 v = k[group / (BITS_PER_BYTE / f->bb)]; in pipapo_insert()
|
| A D | nft_ct.c | 39 enum nft_ct_keys k, in nft_ct_get_eval_counter() argument 43 return k == NFT_CT_BYTES ? atomic64_read(&c[d].bytes) : in nft_ct_get_eval_counter() 46 return nft_ct_get_eval_counter(c, k, IP_CT_DIR_ORIGINAL) + in nft_ct_get_eval_counter() 47 nft_ct_get_eval_counter(c, k, IP_CT_DIR_REPLY); in nft_ct_get_eval_counter() 805 u32 k = ntohl(nla_get_be32(tb[NFTA_CT_KEY])); in nft_ct_select_ops() local 807 switch (k) { in nft_ct_select_ops()
|
| A D | nft_xfrm.c | 98 static bool xfrm_state_addr_ok(enum nft_xfrm_keys k, u8 family, u8 mode) in xfrm_state_addr_ok() argument 100 switch (k) { in xfrm_state_addr_ok()
|
| /net/netfilter/ipset/ |
| A D | ip_set_hash_gen.h | 491 u8 k; in mtype_gc_do() local 513 for (k = 0; k < IPSET_NET_COUNT; k++) in mtype_gc_do() 516 k); in mtype_gc_do() 1063 k++; in mtype_del() 1100 k++; in mtype_del() 1118 set_bit(k, tmp->used); in mtype_del() 1119 k++; in mtype_del() 1121 tmp->pos = k; in mtype_del() 1169 int ret, i, j = 0, k; in mtype_test_cidrs() local 1180 for (k = 0; k < NLEN && h->nets[k].cidr[1] && !multi; in mtype_test_cidrs() [all …]
|
| /net/bluetooth/ |
| A D | hci_core.c | 1121 &k->bdaddr); in hci_find_link_key() 1125 return k; in hci_find_link_key() 1184 struct smp_ltk *k; in hci_find_ltk() local 1188 if (addr_type != k->bdaddr_type || bacmp(bdaddr, &k->bdaddr)) in hci_find_ltk() 1191 if (smp_ltk_is_sc(k) || ltk_role(k->type) == role) { in hci_find_ltk() 1198 &k->bdaddr); in hci_find_ltk() 1202 return k; in hci_find_ltk() 1396 if (bacmp(bdaddr, &k->bdaddr) || k->bdaddr_type != bdaddr_type) in hci_remove_ltk() 1414 if (bacmp(bdaddr, &k->bdaddr) || k->addr_type != addr_type) in hci_remove_irk() 1426 struct smp_ltk *k; in hci_bdaddr_is_paired() local [all …]
|
| A D | smp.c | 184 swap_buf(k, tmp, 16); in aes_cmac() 188 SMP_DBG("key %16phN", k); in aes_cmac() 384 swap_buf(k, tmp, 16); in smp_e() 406 static int smp_c1(const u8 k[16], in smp_c1() 431 err = smp_e(k, res); in smp_c1() 448 err = smp_e(k, res); in smp_c1() 455 static int smp_s1(const u8 k[16], in smp_s1() 464 err = smp_e(k, _r); in smp_s1() 3531 const u8 k[16] = { in test_c1() local 3561 const u8 k[16] = { in test_s1() local [all …]
|
| /net/sunrpc/auth_gss/ |
| A D | gss_krb5_keys.c | 308 __be32 k = cpu_to_be32(outlen * 8); in krb5_cmac_Ki() local 331 ret = crypto_shash_update(desc, (u8 *)&k, sizeof(k)); in krb5_cmac_Ki() 447 __be32 k = cpu_to_be32(outlen * 8); in krb5_hmac_K1() local 466 ret = crypto_shash_update(desc, (u8 *)&k, sizeof(k)); in krb5_hmac_K1()
|
| /net/ipv6/ |
| A D | ioam6_iptunnel.c | 36 u32 k; member 190 ilwt->freq.k = freq_k; in ioam6_build_state() 361 if (pkt_cnt % ilwt->freq.n >= ilwt->freq.k) in ioam6_output() 482 err = nla_put_u32(skb, IOAM6_IPTUNNEL_FREQ_K, ilwt->freq.k); in ioam6_fill_encap_info() 518 nlsize = nla_total_size(sizeof(ilwt->freq.k)) + in ioam6_encap_nlsize() 540 return (ilwt_a->freq.k != ilwt_b->freq.k || in ioam6_encap_cmp()
|
| /net/xfrm/ |
| A D | xfrm_policy.c | 772 bin->k = k; in xfrm_policy_inexact_alloc_bin() 1495 u32 a = k->type << 24 | k->dir << 16 | k->family; in xfrm_pol_bin_key() 1497 return jhash_3words(a, k->if_id, net_hash_mix(read_pnet(&k->net)), in xfrm_pol_bin_key() 2039 family = b->k.family; in xfrm_policy_find_inexact_candidates() 3542 for (; k < sp->len; k++) { in secpath_has_nontransport() 3544 *idxp = k; in secpath_has_nontransport() 3805 int i, k; in __xfrm_policy_check() local 3841 k = xfrm_policy_ok(tpp[i], sp, k, family, if_id); in __xfrm_policy_check() 3842 if (k < 0) { in __xfrm_policy_check() 3843 if (k < -1) in __xfrm_policy_check() [all …]
|
| A D | xfrm_user.c | 3050 struct xfrm_kmaddress *k, in copy_from_user_migrate() argument 3058 if (k != NULL) { in copy_from_user_migrate() 3062 memcpy(&k->local, &uk->local, sizeof(k->local)); in copy_from_user_migrate() 3063 memcpy(&k->remote, &uk->remote, sizeof(k->remote)); in copy_from_user_migrate() 3064 k->family = uk->family; in copy_from_user_migrate() 3065 k->reserved = uk->reserved; in copy_from_user_migrate() 3183 uk.family = k->family; in copy_to_user_kmaddress() 3184 uk.reserved = k->reserved; in copy_to_user_kmaddress() 3221 if (k != NULL) { in build_migrate() 3222 err = copy_to_user_kmaddress(k, skb); in build_migrate() [all …]
|
| /net/ipv4/ |
| A D | arp.c | 1420 int k, j; in arp_format_neigh_entry() local 1432 for (k = 0, j = 0; k < HBUFFERLEN - 3 && j < dev->addr_len; j++) { in arp_format_neigh_entry() 1433 hbuffer[k++] = hex_asc_hi(n->ha[j]); in arp_format_neigh_entry() 1434 hbuffer[k++] = hex_asc_lo(n->ha[j]); in arp_format_neigh_entry() 1435 hbuffer[k++] = ':'; in arp_format_neigh_entry() 1437 if (k != 0) in arp_format_neigh_entry() 1438 --k; in arp_format_neigh_entry() 1439 hbuffer[k] = 0; in arp_format_neigh_entry()
|
| /net/sunrpc/ |
| A D | stats.c | 86 unsigned int i, j, k; in svc_seq_show() local 110 for_each_possible_cpu(k) in svc_seq_show() 111 count += per_cpu(vers->vs_count[j], k); in svc_seq_show()
|
| /net/xdp/ |
| A D | xskmap.c | 227 u32 k = *(u32 *)key; in xsk_map_delete_elem() local 229 if (k >= map->max_entries) in xsk_map_delete_elem() 233 map_entry = &m->xsk_map[k]; in xsk_map_delete_elem()
|
| /net/netfilter/ipvs/ |
| A D | ip_vs_est.c | 903 struct ip_vs_kstats *k = &stats->kstats; in ip_vs_zero_estimator() local 906 est->last_inbytes = k->inbytes; in ip_vs_zero_estimator() 907 est->last_outbytes = k->outbytes; in ip_vs_zero_estimator() 908 est->last_conns = k->conns; in ip_vs_zero_estimator() 909 est->last_inpkts = k->inpkts; in ip_vs_zero_estimator() 910 est->last_outpkts = k->outpkts; in ip_vs_zero_estimator()
|
| /net/key/ |
| A D | af_key.c | 2558 struct xfrm_kmaddress k; in pfkey_migrate() local 2581 &k.local, &k.remote, &k.family); in pfkey_migrate() 2920 int i, k, sz = 0; in count_esp_combs() local 2933 for (k = 1; ; k++) { in count_esp_combs() 2990 int i, k; in dump_esp_combs() local 3009 for (k = 1; ; k++) { in dump_esp_combs() 3499 int family = k->family; in set_sadb_kmaddress() 3551 const struct xfrm_kmaddress *k, in pfkey_send_migrate() argument 3569 if (k != NULL) { in pfkey_send_migrate() 3612 if (k != NULL && (set_sadb_kmaddress(skb, k) < 0)) in pfkey_send_migrate() [all …]
|