Lines Matching refs:uic_cmd
909 ufshcd_dispatch_uic_cmd(struct ufs_hba *hba, struct uic_command *uic_cmd) in ufshcd_dispatch_uic_cmd() argument
913 hba->active_uic_cmd = uic_cmd; in ufshcd_dispatch_uic_cmd()
916 ufshcd_writel(hba, uic_cmd->argument1, REG_UIC_COMMAND_ARG_1); in ufshcd_dispatch_uic_cmd()
917 ufshcd_writel(hba, uic_cmd->argument2, REG_UIC_COMMAND_ARG_2); in ufshcd_dispatch_uic_cmd()
918 ufshcd_writel(hba, uic_cmd->argument3, REG_UIC_COMMAND_ARG_3); in ufshcd_dispatch_uic_cmd()
921 ufshcd_writel(hba, uic_cmd->command & COMMAND_OPCODE_MASK, in ufshcd_dispatch_uic_cmd()
934 ufshcd_wait_for_uic_cmd(struct ufs_hba *hba, struct uic_command *uic_cmd) in ufshcd_wait_for_uic_cmd() argument
939 if (wait_for_completion_timeout(&uic_cmd->done, in ufshcd_wait_for_uic_cmd()
941 ret = uic_cmd->argument2 & MASK_UIC_COMMAND_RESULT; in ufshcd_wait_for_uic_cmd()
962 __ufshcd_send_uic_cmd(struct ufs_hba *hba, struct uic_command *uic_cmd) in __ufshcd_send_uic_cmd() argument
970 init_completion(&uic_cmd->done); in __ufshcd_send_uic_cmd()
972 ufshcd_dispatch_uic_cmd(hba, uic_cmd); in __ufshcd_send_uic_cmd()
985 ufshcd_send_uic_cmd(struct ufs_hba *hba, struct uic_command *uic_cmd) in ufshcd_send_uic_cmd() argument
995 ret = __ufshcd_send_uic_cmd(hba, uic_cmd); in ufshcd_send_uic_cmd()
998 ret = ufshcd_wait_for_uic_cmd(hba, uic_cmd); in ufshcd_send_uic_cmd()
2068 struct uic_command uic_cmd = {0}; in ufshcd_dme_link_startup() local
2071 uic_cmd.command = UIC_CMD_DME_LINK_STARTUP; in ufshcd_dme_link_startup()
2073 ret = ufshcd_send_uic_cmd(hba, &uic_cmd); in ufshcd_dme_link_startup()
2124 struct uic_command uic_cmd = {0}; in ufshcd_dme_set_attr() local
2132 uic_cmd.command = peer ? in ufshcd_dme_set_attr()
2134 uic_cmd.argument1 = attr_sel; in ufshcd_dme_set_attr()
2135 uic_cmd.argument2 = UIC_ARG_ATTR_TYPE(attr_set); in ufshcd_dme_set_attr()
2136 uic_cmd.argument3 = mib_val; in ufshcd_dme_set_attr()
2138 ret = ufshcd_send_uic_cmd(hba, &uic_cmd); in ufshcd_dme_set_attr()
2159 struct uic_command uic_cmd = {0}; in ufshcd_dme_get_attr() local
2192 uic_cmd.command = peer ? in ufshcd_dme_get_attr()
2194 uic_cmd.argument1 = attr_sel; in ufshcd_dme_get_attr()
2196 ret = ufshcd_send_uic_cmd(hba, &uic_cmd); in ufshcd_dme_get_attr()
2204 *mib_val = uic_cmd.argument3; in ufshcd_dme_get_attr()
2294 struct uic_command uic_cmd = {0}; in ufshcd_uic_change_pwr_mode() local
2307 uic_cmd.command = UIC_CMD_DME_SET; in ufshcd_uic_change_pwr_mode()
2308 uic_cmd.argument1 = UIC_ARG_MIB(PA_PWRMODE); in ufshcd_uic_change_pwr_mode()
2309 uic_cmd.argument3 = mode; in ufshcd_uic_change_pwr_mode()
2311 ret = ufshcd_uic_pwr_ctrl(hba, &uic_cmd); in ufshcd_uic_change_pwr_mode()
2320 struct uic_command uic_cmd = {0}; in ufshcd_uic_hibern8_enter() local
2322 uic_cmd.command = UIC_CMD_DME_HIBER_ENTER; in ufshcd_uic_hibern8_enter()
2324 return ufshcd_uic_pwr_ctrl(hba, &uic_cmd); in ufshcd_uic_hibern8_enter()
2329 struct uic_command uic_cmd = {0}; in ufshcd_uic_hibern8_exit() local
2332 uic_cmd.command = UIC_CMD_DME_HIBER_EXIT; in ufshcd_uic_hibern8_exit()
2333 ret = ufshcd_uic_pwr_ctrl(hba, &uic_cmd); in ufshcd_uic_hibern8_exit()