Lines Matching full:passive

98  * key: | (reserved)|passive idx| active idx|pending idx|
109 passive:2, /* rx only */ member
113 passive:2, /* rx only */
1170 if (key.active && key.passive) in tipc_crypto_key_attach()
1181 key.passive = pos; in tipc_crypto_key_attach()
1184 } else if (!key.active && !key.passive) { in tipc_crypto_key_attach()
1190 key.pending = key_next(key.active ?: key.passive); in tipc_crypto_key_attach()
1199 tipc_crypto_key_set_state(c, key.passive, key.active, in tipc_crypto_key_attach()
1253 * Note: A potential passive key can exist, it will be shifted correspondingly!
1284 /* Move passive key if any */ in tipc_crypto_key_try_align()
1285 if (key.passive) { in tipc_crypto_key_try_align()
1286 tmp2 = rcu_replace_pointer(rx->aead[key.passive], tmp2, lockdep_is_held(&rx->lock)); in tipc_crypto_key_try_align()
1287 x = (key.passive - key.pending + new_pending) % KEY_MAX; in tipc_crypto_key_try_align()
1347 ((i == 1) ? key.active : key.passive); in tipc_crypto_key_pick_tx()
1458 tipc_crypto_key_set_state(tx, key.passive, 0, key.pending); in tipc_crypto_key_revoke()
1568 tipc_crypto_key_set_state(tx, key.passive, key.pending, 0); in tipc_crypto_timeout()
1584 key.passive = key.active; in tipc_crypto_timeout()
1587 tipc_crypto_key_set_state(rx, key.passive, key.active, 0); in tipc_crypto_timeout()
1597 tipc_crypto_key_set_state(rx, key.passive, key.active, 0); in tipc_crypto_timeout()
1611 key.passive = key.active; in tipc_crypto_timeout()
1615 tipc_crypto_key_set_state(rx, key.passive, 0, key.pending); in tipc_crypto_timeout()
1621 /* RX passive: outdated or not working -> free */ in tipc_crypto_timeout()
1622 if (!key.passive) in tipc_crypto_timeout()
1625 tipc_aead_users(rx->aead[key.passive]) > -10) in tipc_crypto_timeout()
1629 tipc_crypto_key_detach(rx->aead[key.passive], &rx->lock); in tipc_crypto_timeout()
1630 pr_debug("%s: key[%d] is freed\n", rx->name, key.passive); in tipc_crypto_timeout()
1835 tx_key == key.passive) in tipc_crypto_rcv()
1966 /* Mark this point, RX passive still works */ in tipc_crypto_rcv_complete()
1967 if (rx->key.passive && ehdr->tx_key == rx->key.passive) in tipc_crypto_rcv_complete()
2097 if (k == key.passive) in tipc_crypto_key_dump()
2139 if (k == key->passive) in tipc_key_change_dump()