Searched refs:raw_kidx (Results 1 – 2 of 2) sorted by relevance
236 u8 b43legacy_kidx_to_fw(struct b43legacy_wldev *dev, u8 raw_kidx) in b43legacy_kidx_to_fw() argument240 firmware_kidx = raw_kidx; in b43legacy_kidx_to_fw()242 if (raw_kidx >= 4) /* Is per STA key? */ in b43legacy_kidx_to_fw()243 firmware_kidx = raw_kidx - 4; in b43legacy_kidx_to_fw()245 firmware_kidx = raw_kidx; /* TX default key */ in b43legacy_kidx_to_fw()252 u8 raw_kidx; in b43legacy_kidx_to_raw() local254 raw_kidx = firmware_kidx; in b43legacy_kidx_to_raw()257 raw_kidx = firmware_kidx + 4; in b43legacy_kidx_to_raw()258 return raw_kidx; in b43legacy_kidx_to_raw()
376 static inline u8 b43_kidx_to_fw(struct b43_wldev *dev, u8 raw_kidx) in b43_kidx_to_fw() argument380 firmware_kidx = raw_kidx; in b43_kidx_to_fw()382 if (raw_kidx >= 4) /* Is per STA key? */ in b43_kidx_to_fw()383 firmware_kidx = raw_kidx - 4; in b43_kidx_to_fw()385 firmware_kidx = raw_kidx; /* TX default key */ in b43_kidx_to_fw()391 u8 raw_kidx; in b43_kidx_to_raw() local393 raw_kidx = firmware_kidx; in b43_kidx_to_raw()395 raw_kidx = firmware_kidx + 4; /* RX default keys or per STA keys */ in b43_kidx_to_raw()396 return raw_kidx; in b43_kidx_to_raw()