Lines Matching refs:bckp_idx

407 	u8 bckp_idx = 0;  in download_firmware_reg_backup()  local
410 bckp[bckp_idx].len = 1; in download_firmware_reg_backup()
411 bckp[bckp_idx].reg = REG_TXDMA_PQ_MAP + 1; in download_firmware_reg_backup()
412 bckp[bckp_idx].val = rtw_read8(rtwdev, REG_TXDMA_PQ_MAP + 1); in download_firmware_reg_backup()
413 bckp_idx++; in download_firmware_reg_backup()
418 bckp[bckp_idx].len = 1; in download_firmware_reg_backup()
419 bckp[bckp_idx].reg = REG_CR; in download_firmware_reg_backup()
420 bckp[bckp_idx].val = rtw_read8(rtwdev, REG_CR); in download_firmware_reg_backup()
421 bckp_idx++; in download_firmware_reg_backup()
422 bckp[bckp_idx].len = 4; in download_firmware_reg_backup()
423 bckp[bckp_idx].reg = REG_H2CQ_CSR; in download_firmware_reg_backup()
424 bckp[bckp_idx].val = BIT_H2CQ_FULL; in download_firmware_reg_backup()
425 bckp_idx++; in download_firmware_reg_backup()
431 bckp[bckp_idx].len = 2; in download_firmware_reg_backup()
432 bckp[bckp_idx].reg = REG_FIFOPAGE_INFO_1; in download_firmware_reg_backup()
433 bckp[bckp_idx].val = rtw_read16(rtwdev, REG_FIFOPAGE_INFO_1); in download_firmware_reg_backup()
434 bckp_idx++; in download_firmware_reg_backup()
435 bckp[bckp_idx].len = 4; in download_firmware_reg_backup()
436 bckp[bckp_idx].reg = REG_RQPN_CTRL_2; in download_firmware_reg_backup()
437 bckp[bckp_idx].val = rtw_read32(rtwdev, REG_RQPN_CTRL_2) | BIT_LD_RQPN; in download_firmware_reg_backup()
438 bckp_idx++; in download_firmware_reg_backup()
440 rtw_write32(rtwdev, REG_RQPN_CTRL_2, bckp[bckp_idx - 1].val); in download_firmware_reg_backup()
444 bckp[bckp_idx].len = 1; in download_firmware_reg_backup()
445 bckp[bckp_idx].reg = REG_BCN_CTRL; in download_firmware_reg_backup()
446 bckp[bckp_idx].val = tmp; in download_firmware_reg_backup()
447 bckp_idx++; in download_firmware_reg_backup()
451 WARN(bckp_idx != DLFW_RESTORE_REG_NUM, "wrong backup number\n"); in download_firmware_reg_backup()