Lines Matching refs:key_addr
4214 static void rtl_patch_key_set(struct r8152 *tp, u16 key_addr, u16 patch_key)
4216 if (patch_key && key_addr) {
4217 sram_write(tp, key_addr, patch_key);
4219 } else if (key_addr) {
4228 sram_write(tp, key_addr, 0x0000);
4235 rtl_pre_ram_code(struct r8152 *tp, u16 key_addr, u16 patch_key, bool wait)
4240 rtl_patch_key_set(tp, key_addr, patch_key);
4245 static int rtl_post_ram_code(struct r8152 *tp, u16 key_addr, bool wait)
4247 rtl_patch_key_set(tp, key_addr, 0);
5207 u16 key_addr = 0;
5233 key_addr = __le16_to_cpu(key->key_reg);
5234 rtl_pre_ram_code(tp, key_addr, __le16_to_cpu(key->key_data), !power_cut);
5239 WARN_ON(!key_addr);
5240 rtl_post_ram_code(tp, key_addr, !power_cut);