Lines Matching refs:ufs_params
30 static ufs_params_t ufs_params; variable
59 assert((ufs_params.reg_base != 0) && (val != NULL)); in ufshc_dme_get()
61 base = ufs_params.reg_base; in ufshc_dme_get()
94 assert((ufs_params.reg_base != 0)); in ufshc_dme_set()
96 base = ufs_params.reg_base; in ufshc_dme_set()
161 data = mmio_read_32(ufs_params.reg_base + UTRLDBR); in get_empty_slot()
185 base = ufs_params.desc_base + (slot * UFS_DESC_SIZE); in get_utrd()
221 mmio_write_32(ufs_params.reg_base + UTRLBA, in ufs_prepare_cmd()
223 mmio_write_32(ufs_params.reg_base + UTRLBAU, in ufs_prepare_cmd()
324 mmio_write_32(ufs_params.reg_base + UTRLBA, in ufs_prepare_query()
326 mmio_write_32(ufs_params.reg_base + UTRLBAU, in ufs_prepare_query()
377 mmio_write_32(ufs_params.reg_base + UTRLBA, in ufs_prepare_nop_out()
379 mmio_write_32(ufs_params.reg_base + UTRLBAU, in ufs_prepare_nop_out()
402 mmio_write_32(ufs_params.reg_base + IS, ~0); in ufs_send_request()
404 mmio_write_32(ufs_params.reg_base + UTRLRSR, 1); in ufs_send_request()
406 data = mmio_read_32(ufs_params.reg_base + UTRLRSR); in ufs_send_request()
411 mmio_write_32(ufs_params.reg_base + UTRIACR, data); in ufs_send_request()
413 mmio_setbits_32(ufs_params.reg_base + UTRLDBR, 1 << slot); in ufs_send_request()
428 data = mmio_read_32(ufs_params.reg_base + IS); in ufs_check_resp()
434 data = mmio_read_32(ufs_params.reg_base + UTRLDBR); in ufs_check_resp()
452 mmio_read_32(ufs_params.reg_base + UTRLDBR)); in dump_upiu()
604 assert((ufs_params.reg_base != 0) && in ufs_read_capacity()
605 (ufs_params.desc_base != 0) && in ufs_read_capacity()
606 (ufs_params.desc_size >= UFS_DESC_SIZE) && in ufs_read_capacity()
651 assert((ufs_params.reg_base != 0) && in ufs_read_blocks()
652 (ufs_params.desc_base != 0) && in ufs_read_blocks()
653 (ufs_params.desc_size >= UFS_DESC_SIZE)); in ufs_read_blocks()
675 assert((ufs_params.reg_base != 0) && in ufs_write_blocks()
676 (ufs_params.desc_base != 0) && in ufs_write_blocks()
677 (ufs_params.desc_size >= UFS_DESC_SIZE)); in ufs_write_blocks()
699 nutrs = (mmio_read_32(ufs_params.reg_base + CAP) & CAP_NUTRS_MASK) + 1; in ufs_enum()
700 if (nutrs > (ufs_params.desc_size / UFS_DESC_SIZE)) in ufs_enum()
701 nutrs = ufs_params.desc_size / UFS_DESC_SIZE; in ufs_enum()
745 memcpy(&ufs_params, params, sizeof(ufs_params_t)); in ufs_init()
747 if (ufs_params.flags & UFS_FLAGS_SKIPINIT) { in ufs_init()
756 result = ufshc_send_uic_cmd(ufs_params.reg_base, in ufs_init()
759 data = mmio_read_32(ufs_params.reg_base + UCMDARG2); in ufs_init()
762 data = mmio_read_32(ufs_params.reg_base + IS); in ufs_init()
764 mmio_write_32(ufs_params.reg_base + IS, UFS_INT_UHXS); in ufs_init()
765 data = mmio_read_32(ufs_params.reg_base + HCS); in ufs_init()
775 ufshc_reset(ufs_params.reg_base); in ufs_init()
776 ops->phy_init(&ufs_params); in ufs_init()
777 result = ufshc_link_startup(ufs_params.reg_base); in ufs_init()
784 ufs_params.flags |= UFS_FLAGS_VENDOR_SKHYNIX; in ufs_init()
787 ops->phy_set_pwr_mode(&ufs_params); in ufs_init()