Lines Matching refs:uic_cmd
2092 ufshcd_dispatch_uic_cmd(struct ufs_hba *hba, struct uic_command *uic_cmd) in ufshcd_dispatch_uic_cmd() argument
2096 hba->active_uic_cmd = uic_cmd; in ufshcd_dispatch_uic_cmd()
2099 ufshcd_writel(hba, uic_cmd->argument1, REG_UIC_COMMAND_ARG_1); in ufshcd_dispatch_uic_cmd()
2100 ufshcd_writel(hba, uic_cmd->argument2, REG_UIC_COMMAND_ARG_2); in ufshcd_dispatch_uic_cmd()
2101 ufshcd_writel(hba, uic_cmd->argument3, REG_UIC_COMMAND_ARG_3); in ufshcd_dispatch_uic_cmd()
2103 ufshcd_add_uic_command_trace(hba, uic_cmd, "send"); in ufshcd_dispatch_uic_cmd()
2106 ufshcd_writel(hba, uic_cmd->command & COMMAND_OPCODE_MASK, in ufshcd_dispatch_uic_cmd()
2119 ufshcd_wait_for_uic_cmd(struct ufs_hba *hba, struct uic_command *uic_cmd) in ufshcd_wait_for_uic_cmd() argument
2124 if (wait_for_completion_timeout(&uic_cmd->done, in ufshcd_wait_for_uic_cmd()
2126 ret = uic_cmd->argument2 & MASK_UIC_COMMAND_RESULT; in ufshcd_wait_for_uic_cmd()
2131 uic_cmd->command, uic_cmd->argument3); in ufshcd_wait_for_uic_cmd()
2133 if (!uic_cmd->cmd_active) { in ufshcd_wait_for_uic_cmd()
2136 ret = uic_cmd->argument2 & MASK_UIC_COMMAND_RESULT; in ufshcd_wait_for_uic_cmd()
2158 __ufshcd_send_uic_cmd(struct ufs_hba *hba, struct uic_command *uic_cmd, in __ufshcd_send_uic_cmd() argument
2168 init_completion(&uic_cmd->done); in __ufshcd_send_uic_cmd()
2170 uic_cmd->cmd_active = 1; in __ufshcd_send_uic_cmd()
2171 ufshcd_dispatch_uic_cmd(hba, uic_cmd); in __ufshcd_send_uic_cmd()
2183 int ufshcd_send_uic_cmd(struct ufs_hba *hba, struct uic_command *uic_cmd) in ufshcd_send_uic_cmd() argument
2193 ret = __ufshcd_send_uic_cmd(hba, uic_cmd, true); in ufshcd_send_uic_cmd()
2196 ret = ufshcd_wait_for_uic_cmd(hba, uic_cmd); in ufshcd_send_uic_cmd()
3569 struct uic_command uic_cmd = {0}; in ufshcd_dme_link_startup() local
3572 uic_cmd.command = UIC_CMD_DME_LINK_STARTUP; in ufshcd_dme_link_startup()
3574 ret = ufshcd_send_uic_cmd(hba, &uic_cmd); in ufshcd_dme_link_startup()
3591 struct uic_command uic_cmd = {0}; in ufshcd_dme_reset() local
3594 uic_cmd.command = UIC_CMD_DME_RESET; in ufshcd_dme_reset()
3596 ret = ufshcd_send_uic_cmd(hba, &uic_cmd); in ufshcd_dme_reset()
3614 struct uic_command uic_cmd = {0}; in ufshcd_dme_enable() local
3617 uic_cmd.command = UIC_CMD_DME_ENABLE; in ufshcd_dme_enable()
3619 ret = ufshcd_send_uic_cmd(hba, &uic_cmd); in ufshcd_dme_enable()
3671 struct uic_command uic_cmd = {0}; in ufshcd_dme_set_attr() local
3680 uic_cmd.command = peer ? in ufshcd_dme_set_attr()
3682 uic_cmd.argument1 = attr_sel; in ufshcd_dme_set_attr()
3683 uic_cmd.argument2 = UIC_ARG_ATTR_TYPE(attr_set); in ufshcd_dme_set_attr()
3684 uic_cmd.argument3 = mib_val; in ufshcd_dme_set_attr()
3688 ret = ufshcd_send_uic_cmd(hba, &uic_cmd); in ufshcd_dme_set_attr()
3715 struct uic_command uic_cmd = {0}; in ufshcd_dme_get_attr() local
3749 uic_cmd.command = peer ? in ufshcd_dme_get_attr()
3751 uic_cmd.argument1 = attr_sel; in ufshcd_dme_get_attr()
3755 ret = ufshcd_send_uic_cmd(hba, &uic_cmd); in ufshcd_dme_get_attr()
3767 *mib_val = uic_cmd.argument3; in ufshcd_dme_get_attr()
3886 struct uic_command uic_cmd = {0}; in ufshcd_uic_change_pwr_mode() local
3899 uic_cmd.command = UIC_CMD_DME_SET; in ufshcd_uic_change_pwr_mode()
3900 uic_cmd.argument1 = UIC_ARG_MIB(PA_PWRMODE); in ufshcd_uic_change_pwr_mode()
3901 uic_cmd.argument3 = mode; in ufshcd_uic_change_pwr_mode()
3903 ret = ufshcd_uic_pwr_ctrl(hba, &uic_cmd); in ufshcd_uic_change_pwr_mode()
3942 struct uic_command uic_cmd = {0}; in ufshcd_uic_hibern8_enter() local
3947 uic_cmd.command = UIC_CMD_DME_HIBER_ENTER; in ufshcd_uic_hibern8_enter()
3948 ret = ufshcd_uic_pwr_ctrl(hba, &uic_cmd); in ufshcd_uic_hibern8_enter()
3964 struct uic_command uic_cmd = {0}; in ufshcd_uic_hibern8_exit() local
3970 uic_cmd.command = UIC_CMD_DME_HIBER_EXIT; in ufshcd_uic_hibern8_exit()
3971 ret = ufshcd_uic_pwr_ctrl(hba, &uic_cmd); in ufshcd_uic_hibern8_exit()