Lines Matching refs:cipher
500 switch (key->cipher) { in mt76_mac_get_key_info()
517 enum mt76_cipher_type cipher; in mt76_mac_wcid_set_key() local
522 cipher = mt76_mac_get_key_info(key, key_data); in mt76_mac_wcid_set_key()
523 if (cipher == MT_CIPHER_NONE && key) in mt76_mac_wcid_set_key()
533 if (cipher >= MT_CIPHER_TKIP) { in mt76_mac_wcid_set_key()
545 val |= FIELD_PREP(MT_WCID_ATTR_PKEY_MODE, cipher & 7) | in mt76_mac_wcid_set_key()
546 FIELD_PREP(MT_WCID_ATTR_PKEY_MODE_EXT, cipher >> 3); in mt76_mac_wcid_set_key()
558 enum mt76_cipher_type cipher; in mt76_mac_shared_key_setup() local
562 cipher = mt76_mac_get_key_info(key, key_data); in mt76_mac_shared_key_setup()
563 if (cipher == MT_CIPHER_NONE && key) in mt76_mac_shared_key_setup()
573 val |= cipher << MT_SKEY_MODE_SHIFT(vif_idx, key_idx); in mt76_mac_shared_key_setup()