Lines Matching refs:cmd
33 int ufshc_send_uic_cmd(uintptr_t base, uic_cmd_t *cmd) in ufshc_send_uic_cmd() argument
37 if (base == 0 || cmd == NULL) in ufshc_send_uic_cmd()
44 mmio_write_32(base + UCMDARG1, cmd->arg1); in ufshc_send_uic_cmd()
45 mmio_write_32(base + UCMDARG2, cmd->arg2); in ufshc_send_uic_cmd()
46 mmio_write_32(base + UCMDARG3, cmd->arg3); in ufshc_send_uic_cmd()
47 mmio_write_32(base + UICCMD, cmd->op); in ufshc_send_uic_cmd()
61 uic_cmd_t cmd; in ufshc_dme_get() local
78 cmd.arg1 = (attr << 16) | GEN_SELECTOR_IDX(idx); in ufshc_dme_get()
79 cmd.arg2 = 0; in ufshc_dme_get()
80 cmd.arg3 = 0; in ufshc_dme_get()
81 cmd.op = DME_GET; in ufshc_dme_get()
83 result = ufshc_send_uic_cmd(base, &cmd); in ufshc_dme_get()
102 uic_cmd_t cmd; in ufshc_dme_set() local
107 cmd.arg1 = (attr << 16) | GEN_SELECTOR_IDX(idx); in ufshc_dme_set()
108 cmd.arg2 = 0; in ufshc_dme_set()
109 cmd.arg3 = val; in ufshc_dme_set()
110 cmd.op = DME_SET; in ufshc_dme_set()
113 result = ufshc_send_uic_cmd(base, &cmd); in ufshc_dme_set()
174 uic_cmd_t cmd; in ufshc_dme_link_startup() local
176 memset(&cmd, 0, sizeof(cmd)); in ufshc_dme_link_startup()
177 cmd.op = DME_LINKSTARTUP; in ufshc_dme_link_startup()
178 return ufshc_send_uic_cmd(base, &cmd); in ufshc_dme_link_startup()
788 uic_cmd_t cmd; in ufs_init() local
805 memset(&cmd, 0, sizeof(uic_cmd_t)); in ufs_init()
806 cmd.op = DME_HIBERNATE_EXIT; in ufs_init()
808 &cmd); in ufs_init()