Lines Matching refs:crypto
318 struct rt2x00lib_crypto *crypto, in rt61pci_config_shared_key() argument
326 if (crypto->cmd == SET_KEY) { in rt61pci_config_shared_key()
337 mask = (0xf << crypto->bssidx); in rt61pci_config_shared_key()
350 memcpy(key_entry.key, crypto->key, in rt61pci_config_shared_key()
352 memcpy(key_entry.tx_mic, crypto->tx_mic, in rt61pci_config_shared_key()
354 memcpy(key_entry.rx_mic, crypto->rx_mic, in rt61pci_config_shared_key()
373 rt2x00_set_field32(®, field, crypto->cipher); in rt61pci_config_shared_key()
380 rt2x00_set_field32(®, field, crypto->cipher); in rt61pci_config_shared_key()
405 if (crypto->cmd == SET_KEY) in rt61pci_config_shared_key()
407 else if (crypto->cmd == DISABLE_KEY) in rt61pci_config_shared_key()
415 struct rt2x00lib_crypto *crypto, in rt61pci_config_pairwise_key() argument
423 if (crypto->cmd == SET_KEY) { in rt61pci_config_pairwise_key()
446 memcpy(key_entry.key, crypto->key, in rt61pci_config_pairwise_key()
448 memcpy(key_entry.tx_mic, crypto->tx_mic, in rt61pci_config_pairwise_key()
450 memcpy(key_entry.rx_mic, crypto->rx_mic, in rt61pci_config_pairwise_key()
454 memcpy(&addr_entry, crypto->address, ETH_ALEN); in rt61pci_config_pairwise_key()
455 addr_entry.cipher = crypto->cipher; in rt61pci_config_pairwise_key()
471 reg |= (1 << crypto->bssidx); in rt61pci_config_pairwise_key()
496 if (crypto->cmd == SET_KEY) in rt61pci_config_pairwise_key()
498 else if (crypto->cmd == DISABLE_KEY) in rt61pci_config_pairwise_key()
505 if (crypto->cmd == SET_KEY) in rt61pci_config_pairwise_key()
507 else if (crypto->cmd == DISABLE_KEY) in rt61pci_config_pairwise_key()