Lines Matching refs:UfsHc

40 static inline uint64_t ufs_mcq_reg_addr(UfsHc *u, int qid)  in ufs_mcq_reg_addr()
46 static inline uint64_t ufs_mcq_op_reg_addr(UfsHc *u, int qid) in ufs_mcq_op_reg_addr()
52 static inline uint64_t ufs_reg_size(UfsHc *u) in ufs_reg_size()
58 static inline bool ufs_is_mcq_reg(UfsHc *u, uint64_t addr, unsigned size) in ufs_is_mcq_reg()
71 static inline bool ufs_is_mcq_op_reg(UfsHc *u, uint64_t addr, unsigned size) in ufs_is_mcq_op_reg()
84 static MemTxResult ufs_addr_read(UfsHc *u, hwaddr addr, void *buf, int size) in ufs_addr_read()
99 static MemTxResult ufs_addr_write(UfsHc *u, hwaddr addr, const void *buf, in ufs_addr_write()
114 static inline hwaddr ufs_get_utrd_addr(UfsHc *u, uint32_t slot) in ufs_get_utrd_addr()
142 UfsHc *u = req->hc; in ufs_dma_read_utrd()
155 UfsHc *u = req->hc; in ufs_dma_read_req_upiu()
190 UfsHc *u = req->hc; in ufs_dma_read_prdt()
257 UfsHc *u = req->hc; in ufs_dma_write_utrd()
270 UfsHc *u = req->hc; in ufs_dma_write_rsp_upiu()
308 static void ufs_irq_check(UfsHc *u) in ufs_irq_check()
321 static void ufs_process_db(UfsHc *u, uint32_t val) in ufs_process_db()
356 static void ufs_process_uiccmd(UfsHc *u, uint32_t val) in ufs_process_uiccmd()
391 static void ufs_mcq_init_req(UfsHc *u, UfsRequest *req, UfsSq *sq) in ufs_mcq_init_req()
404 UfsHc *u = sq->u; in ufs_mcq_process_sq()
436 UfsHc *u = cq->u; in ufs_mcq_process_cq()
478 static bool ufs_mcq_create_sq(UfsHc *u, uint8_t qid, uint32_t attr) in ufs_mcq_create_sq()
521 static bool ufs_mcq_delete_sq(UfsHc *u, uint8_t qid) in ufs_mcq_delete_sq()
544 static bool ufs_mcq_create_cq(UfsHc *u, uint8_t qid, uint32_t attr) in ufs_mcq_create_cq()
575 static bool ufs_mcq_delete_cq(UfsHc *u, uint8_t qid) in ufs_mcq_delete_cq()
604 static void ufs_write_reg(UfsHc *u, hwaddr offset, uint32_t data, unsigned size) in ufs_write_reg()
677 static void ufs_write_mcq_reg(UfsHc *u, hwaddr offset, uint32_t data, in ufs_write_mcq_reg()
742 static void ufs_mcq_process_db(UfsHc *u, uint8_t qid, uint32_t db) in ufs_mcq_process_db()
761 static void ufs_write_mcq_op_reg(UfsHc *u, hwaddr offset, uint32_t data, in ufs_write_mcq_op_reg()
789 UfsHc *u = (UfsHc *)opaque; in ufs_mmio_read()
816 UfsHc *u = (UfsHc *)opaque; in ufs_mmio_write()
856 UfsHc *u = req->hc; in ufs_exec_scsi_cmd()
1006 UfsHc *u = req->hc; in ufs_exec_query_flag()
1037 static uint32_t ufs_read_attr_value(UfsHc *u, uint8_t idn) in ufs_read_attr_value()
1106 static void ufs_write_attr_value(UfsHc *u, uint8_t idn, uint32_t value) in ufs_write_attr_value()
1141 UfsHc *u = req->hc; in ufs_exec_query_attr()
1171 UfsHc *u = req->hc; in ufs_read_unit_desc()
1242 UfsHc *u = req->hc; in ufs_read_string_desc()
1279 UfsHc *u = req->hc; in ufs_read_desc()
1457 UfsHc *u = opaque; in ufs_process_req()
1476 UfsHc *u = req->hc; in ufs_complete_req()
1513 UfsHc *u = opaque; in ufs_sendback_req()
1550 static bool ufs_check_constraints(UfsHc *u, Error **errp) in ufs_check_constraints()
1572 static void ufs_init_pci(UfsHc *u, PCIDevice *pci_dev) in ufs_init_pci()
1585 static void ufs_init_state(UfsHc *u) in ufs_init_state()
1607 static void ufs_init_hc(UfsHc *u) in ufs_init_hc()
1700 UfsHc *u = UFS(pci_dev); in ufs_realize()
1721 UfsHc *u = UFS(pci_dev); in ufs_exit()
1744 DEFINE_PROP_STRING("serial", UfsHc, params.serial),
1745 DEFINE_PROP_UINT8("nutrs", UfsHc, params.nutrs, 32),
1746 DEFINE_PROP_UINT8("nutmrs", UfsHc, params.nutmrs, 8),
1747 DEFINE_PROP_BOOL("mcq", UfsHc, params.mcq, false),
1748 DEFINE_PROP_UINT8("mcq-maxq", UfsHc, params.mcq_maxq, 2),
1804 .instance_size = sizeof(UfsHc),