Lines Matching refs:bckp_idx

461 	u8 bckp_idx = 0;  in download_firmware_reg_backup()  local
464 bckp[bckp_idx].len = 1; in download_firmware_reg_backup()
465 bckp[bckp_idx].reg = REG_TXDMA_PQ_MAP + 1; in download_firmware_reg_backup()
466 bckp[bckp_idx].val = rtw_read8(rtwdev, REG_TXDMA_PQ_MAP + 1); in download_firmware_reg_backup()
467 bckp_idx++; in download_firmware_reg_backup()
472 bckp[bckp_idx].len = 1; in download_firmware_reg_backup()
473 bckp[bckp_idx].reg = REG_CR; in download_firmware_reg_backup()
474 bckp[bckp_idx].val = rtw_read8(rtwdev, REG_CR); in download_firmware_reg_backup()
475 bckp_idx++; in download_firmware_reg_backup()
476 bckp[bckp_idx].len = 4; in download_firmware_reg_backup()
477 bckp[bckp_idx].reg = REG_H2CQ_CSR; in download_firmware_reg_backup()
478 bckp[bckp_idx].val = BIT_H2CQ_FULL; in download_firmware_reg_backup()
479 bckp_idx++; in download_firmware_reg_backup()
485 bckp[bckp_idx].len = 2; in download_firmware_reg_backup()
486 bckp[bckp_idx].reg = REG_FIFOPAGE_INFO_1; in download_firmware_reg_backup()
487 bckp[bckp_idx].val = rtw_read16(rtwdev, REG_FIFOPAGE_INFO_1); in download_firmware_reg_backup()
488 bckp_idx++; in download_firmware_reg_backup()
489 bckp[bckp_idx].len = 4; in download_firmware_reg_backup()
490 bckp[bckp_idx].reg = REG_RQPN_CTRL_2; in download_firmware_reg_backup()
491 bckp[bckp_idx].val = rtw_read32(rtwdev, REG_RQPN_CTRL_2) | BIT_LD_RQPN; in download_firmware_reg_backup()
492 bckp_idx++; in download_firmware_reg_backup()
494 rtw_write32(rtwdev, REG_RQPN_CTRL_2, bckp[bckp_idx - 1].val); in download_firmware_reg_backup()
501 bckp[bckp_idx].len = 1; in download_firmware_reg_backup()
502 bckp[bckp_idx].reg = REG_BCN_CTRL; in download_firmware_reg_backup()
503 bckp[bckp_idx].val = tmp; in download_firmware_reg_backup()
504 bckp_idx++; in download_firmware_reg_backup()
508 WARN(bckp_idx != DLFW_RESTORE_REG_NUM, "wrong backup number\n"); in download_firmware_reg_backup()