Lines Matching refs:entry

42 bool ath_hw_keyreset(struct ath_common *common, u16 entry)
47 if (entry >= common->keymax) {
48 ath_err(common, "keyreset: keycache entry %u out of range\n",
49 entry);
53 keyType = REG_READ(ah, AR_KEYTABLE_TYPE(entry));
57 REG_WRITE(ah, AR_KEYTABLE_KEY0(entry), 0);
58 REG_WRITE(ah, AR_KEYTABLE_KEY1(entry), 0);
59 REG_WRITE(ah, AR_KEYTABLE_KEY2(entry), 0);
60 REG_WRITE(ah, AR_KEYTABLE_KEY3(entry), 0);
61 REG_WRITE(ah, AR_KEYTABLE_KEY4(entry), 0);
62 REG_WRITE(ah, AR_KEYTABLE_TYPE(entry), AR_KEYTABLE_TYPE_CLR);
63 REG_WRITE(ah, AR_KEYTABLE_MAC0(entry), 0);
64 REG_WRITE(ah, AR_KEYTABLE_MAC1(entry), 0);
67 u16 micentry = entry + 64;
87 bool ath_hw_keysetmac(struct ath_common *common, u16 entry, const u8 *mac)
93 if (entry >= common->keymax) {
94 ath_err(common, "keysetmac: keycache entry %u out of range\n",
95 entry);
120 REG_WRITE(ah, AR_KEYTABLE_MAC0(entry), macLo);
121 REG_WRITE(ah, AR_KEYTABLE_MAC1(entry), macHi | unicast_flag);
129 static bool ath_hw_set_keycache_entry(struct ath_common *common, u16 entry,
137 if (entry >= common->keymax) {
138 ath_err(common, "set-entry: keycache entry %u out of range\n",
139 entry);
157 if (entry + 64 >= common->keymax) {
159 "entry %u inappropriate for TKIP\n", entry);
200 u16 micentry = entry + 64;
208 REG_WRITE(ah, AR_KEYTABLE_KEY0(entry), ~key0);
209 REG_WRITE(ah, AR_KEYTABLE_KEY1(entry), ~key1);
212 REG_WRITE(ah, AR_KEYTABLE_KEY2(entry), key2);
213 REG_WRITE(ah, AR_KEYTABLE_KEY3(entry), key3);
216 REG_WRITE(ah, AR_KEYTABLE_KEY4(entry), key4);
217 REG_WRITE(ah, AR_KEYTABLE_TYPE(entry), keyType);
219 /* Write MAC address for the entry */
220 (void) ath_hw_keysetmac(common, entry, mac);
225 * Michael MIC TX/RX keys in the same key cache entry
302 /* MAC address registers are reserved for the MIC entry */
311 REG_WRITE(ah, AR_KEYTABLE_KEY0(entry), key0);
312 REG_WRITE(ah, AR_KEYTABLE_KEY1(entry), key1);
319 REG_WRITE(ah, AR_KEYTABLE_KEY0(entry), key0);
320 REG_WRITE(ah, AR_KEYTABLE_KEY1(entry), key1);
323 REG_WRITE(ah, AR_KEYTABLE_KEY2(entry), key2);
324 REG_WRITE(ah, AR_KEYTABLE_KEY3(entry), key3);
327 REG_WRITE(ah, AR_KEYTABLE_KEY4(entry), key4);
328 REG_WRITE(ah, AR_KEYTABLE_TYPE(entry), keyType);
332 /* Write MAC address for the entry */
333 (void) ath_hw_keysetmac(common, entry, mac);
365 /* TX and RX keys share the same key cache entry. */
376 /* TX MIC entry failed. No need to proceed further */
588 * keyix pointing to this key entry. Instead, only clear the MAC address
589 * to prevent RX processing from using this key cache entry.