Lines Matching refs:ufs_params
28 static ufs_params_t ufs_params;
57 assert((ufs_params.reg_base != 0) && (val != NULL));
59 base = ufs_params.reg_base;
92 assert((ufs_params.reg_base != 0));
94 base = ufs_params.reg_base;
159 data = mmio_read_32(ufs_params.reg_base + UTRLDBR);
183 base = ufs_params.desc_base + (slot * UFS_DESC_SIZE);
219 mmio_write_32(ufs_params.reg_base + UTRLBA,
221 mmio_write_32(ufs_params.reg_base + UTRLBAU,
321 mmio_write_32(ufs_params.reg_base + UTRLBA,
323 mmio_write_32(ufs_params.reg_base + UTRLBAU,
373 mmio_write_32(ufs_params.reg_base + UTRLBA,
375 mmio_write_32(ufs_params.reg_base + UTRLBAU,
398 mmio_write_32(ufs_params.reg_base + IS, ~0);
400 mmio_write_32(ufs_params.reg_base + UTRLRSR, 1);
402 data = mmio_read_32(ufs_params.reg_base + UTRLRSR);
407 mmio_write_32(ufs_params.reg_base + UTRIACR, data);
409 mmio_setbits_32(ufs_params.reg_base + UTRLDBR, 1 << slot);
424 data = mmio_read_32(ufs_params.reg_base + IS);
430 data = mmio_read_32(ufs_params.reg_base + UTRLDBR);
448 mmio_read_32(ufs_params.reg_base + UTRLDBR));
594 assert((ufs_params.reg_base != 0) &&
595 (ufs_params.desc_base != 0) &&
596 (ufs_params.desc_size >= UFS_DESC_SIZE) &&
641 assert((ufs_params.reg_base != 0) &&
642 (ufs_params.desc_base != 0) &&
643 (ufs_params.desc_size >= UFS_DESC_SIZE));
665 assert((ufs_params.reg_base != 0) &&
666 (ufs_params.desc_base != 0) &&
667 (ufs_params.desc_size >= UFS_DESC_SIZE));
689 nutrs = (mmio_read_32(ufs_params.reg_base + CAP) & CAP_NUTRS_MASK) + 1;
690 if (nutrs > (ufs_params.desc_size / UFS_DESC_SIZE))
691 nutrs = ufs_params.desc_size / UFS_DESC_SIZE;
719 memcpy(&ufs_params, params, sizeof(ufs_params_t));
721 if (ufs_params.flags & UFS_FLAGS_SKIPINIT) {
730 result = ufshc_send_uic_cmd(ufs_params.reg_base,
733 data = mmio_read_32(ufs_params.reg_base + UCMDARG2);
736 data = mmio_read_32(ufs_params.reg_base + IS);
738 mmio_write_32(ufs_params.reg_base + IS, UFS_INT_UHXS);
739 data = mmio_read_32(ufs_params.reg_base + HCS);
749 ufshc_reset(ufs_params.reg_base);
750 ops->phy_init(&ufs_params);
751 result = ufshc_link_startup(ufs_params.reg_base);
753 ops->phy_set_pwr_mode(&ufs_params);