Searched refs:nk (Results 1 – 5 of 5) sorted by relevance
/linux-6.1.9/drivers/clk/sunxi-ng/ |
D | ccu_nk.c | 19 struct _ccu_nk *nk) in ccu_nk_find_best() argument 25 for (_k = nk->min_k; _k <= nk->max_k; _k++) { in ccu_nk_find_best() 26 for (_n = nk->min_n; _n <= nk->max_n; _n++) { in ccu_nk_find_best() 40 nk->k = best_k; in ccu_nk_find_best() 41 nk->n = best_n; in ccu_nk_find_best() 46 struct ccu_nk *nk = hw_to_ccu_nk(hw); in ccu_nk_disable() local 48 return ccu_gate_helper_disable(&nk->common, nk->enable); in ccu_nk_disable() 53 struct ccu_nk *nk = hw_to_ccu_nk(hw); in ccu_nk_enable() local 55 return ccu_gate_helper_enable(&nk->common, nk->enable); in ccu_nk_enable() 60 struct ccu_nk *nk = hw_to_ccu_nk(hw); in ccu_nk_is_enabled() local [all …]
|
/linux-6.1.9/drivers/net/ethernet/marvell/prestera/ |
D | prestera_router.c | 108 struct prestera_kern_neigh_cache_key *nk) in prestera_util_nhc2nc_key() argument 110 memset(nk, 0, sizeof(*nk)); in prestera_util_nhc2nc_key() 112 nk->addr.v = PRESTERA_IPV4; in prestera_util_nhc2nc_key() 113 nk->addr.u.ipv4 = nhc->nhc_gw.ipv4; in prestera_util_nhc2nc_key() 115 nk->addr.v = PRESTERA_IPV6; in prestera_util_nhc2nc_key() 116 nk->addr.u.ipv6 = nhc->nhc_gw.ipv6; in prestera_util_nhc2nc_key() 119 nk->dev = nhc->nhc_dev; in prestera_util_nhc2nc_key() 125 struct prestera_nh_neigh_key *nk) in prestera_util_nc_key2nh_key() argument 127 memset(nk, 0, sizeof(*nk)); in prestera_util_nc_key2nh_key() 128 nk->addr = ck->addr; in prestera_util_nc_key2nh_key() [all …]
|
/linux-6.1.9/drivers/md/bcache/ |
D | writeback.c | 479 int nk, i; in read_dirty() local 499 nk = 0; in read_dirty() 508 if (nk >= MAX_WRITEBACKS_IN_PASS) in read_dirty() 527 if ((nk != 0) && bkey_cmp(&keys[nk-1]->key, in read_dirty() 532 keys[nk++] = next; in read_dirty() 536 for (i = 0; i < nk; i++) { in read_dirty()
|
/linux-6.1.9/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac_selftests.c | 1091 int ret, i, nk = 1; in stmmac_test_rxp() local 1098 sel = kzalloc(struct_size(sel, keys, nk), GFP_KERNEL); in stmmac_test_rxp() 1108 actions = kcalloc(nk, sizeof(*actions), GFP_KERNEL); in stmmac_test_rxp() 1114 gact = kcalloc(nk, sizeof(*gact), GFP_KERNEL); in stmmac_test_rxp() 1127 exts->nr_actions = nk; in stmmac_test_rxp() 1129 for (i = 0; i < nk; i++) { in stmmac_test_rxp() 1134 sel->nkeys = nk; in stmmac_test_rxp()
|
/linux-6.1.9/drivers/crypto/chelsio/ |
D | chcr_algo.c | 235 u8 nr, nk; in get_aes_decrypt_key() local 239 nk = KEYLENGTH_4BYTES; in get_aes_decrypt_key() 243 nk = KEYLENGTH_6BYTES; in get_aes_decrypt_key() 247 nk = KEYLENGTH_8BYTES; in get_aes_decrypt_key() 253 for (i = 0; i < nk; i++) in get_aes_decrypt_key() 257 temp = w_ring[nk - 1]; in get_aes_decrypt_key() 258 while (i + nk < (nr + 1) * 4) { in get_aes_decrypt_key() 259 if (!(i % nk)) { in get_aes_decrypt_key() 263 temp ^= round_constant[i / nk]; in get_aes_decrypt_key() 264 } else if (nk == 8 && (i % 4 == 0)) { in get_aes_decrypt_key() [all …]
|