Home
last modified time | relevance | path

Searched refs:nk (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.15/drivers/clk/sunxi-ng/
Dccu_nk.c19 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-v5.15/drivers/md/bcache/
Dwriteback.c440 int nk, i; in read_dirty() local
460 nk = 0; in read_dirty()
469 if (nk >= MAX_WRITEBACKS_IN_PASS) in read_dirty()
488 if ((nk != 0) && bkey_cmp(&keys[nk-1]->key, in read_dirty()
493 keys[nk++] = next; in read_dirty()
497 for (i = 0; i < nk; i++) { in read_dirty()
/Linux-v5.15/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_selftests.c1090 int ret, i, nk = 1; in stmmac_test_rxp() local
1097 sel = kzalloc(struct_size(sel, keys, nk), GFP_KERNEL); in stmmac_test_rxp()
1107 actions = kzalloc(nk * sizeof(*actions), GFP_KERNEL); in stmmac_test_rxp()
1113 act = kzalloc(nk * sizeof(*act), GFP_KERNEL); in stmmac_test_rxp()
1126 exts->nr_actions = nk; in stmmac_test_rxp()
1128 for (i = 0; i < nk; i++) { in stmmac_test_rxp()
1135 sel->nkeys = nk; in stmmac_test_rxp()
/Linux-v5.15/drivers/crypto/chelsio/
Dchcr_algo.c235 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 …]