Lines Matching refs:uic_cmd
1995 ufshcd_dispatch_uic_cmd(struct ufs_hba *hba, struct uic_command *uic_cmd) in ufshcd_dispatch_uic_cmd() argument
1999 hba->active_uic_cmd = uic_cmd; in ufshcd_dispatch_uic_cmd()
2002 ufshcd_writel(hba, uic_cmd->argument1, REG_UIC_COMMAND_ARG_1); in ufshcd_dispatch_uic_cmd()
2003 ufshcd_writel(hba, uic_cmd->argument2, REG_UIC_COMMAND_ARG_2); in ufshcd_dispatch_uic_cmd()
2004 ufshcd_writel(hba, uic_cmd->argument3, REG_UIC_COMMAND_ARG_3); in ufshcd_dispatch_uic_cmd()
2007 ufshcd_writel(hba, uic_cmd->command & COMMAND_OPCODE_MASK, in ufshcd_dispatch_uic_cmd()
2020 ufshcd_wait_for_uic_cmd(struct ufs_hba *hba, struct uic_command *uic_cmd) in ufshcd_wait_for_uic_cmd() argument
2025 if (wait_for_completion_timeout(&uic_cmd->done, in ufshcd_wait_for_uic_cmd()
2027 ret = uic_cmd->argument2 & MASK_UIC_COMMAND_RESULT; in ufshcd_wait_for_uic_cmd()
2049 __ufshcd_send_uic_cmd(struct ufs_hba *hba, struct uic_command *uic_cmd, in __ufshcd_send_uic_cmd() argument
2059 init_completion(&uic_cmd->done); in __ufshcd_send_uic_cmd()
2061 ufshcd_dispatch_uic_cmd(hba, uic_cmd); in __ufshcd_send_uic_cmd()
2073 int ufshcd_send_uic_cmd(struct ufs_hba *hba, struct uic_command *uic_cmd) in ufshcd_send_uic_cmd() argument
2083 ret = __ufshcd_send_uic_cmd(hba, uic_cmd, true); in ufshcd_send_uic_cmd()
2086 ret = ufshcd_wait_for_uic_cmd(hba, uic_cmd); in ufshcd_send_uic_cmd()
3525 struct uic_command uic_cmd = {0}; in ufshcd_dme_link_startup() local
3528 uic_cmd.command = UIC_CMD_DME_LINK_STARTUP; in ufshcd_dme_link_startup()
3530 ret = ufshcd_send_uic_cmd(hba, &uic_cmd); in ufshcd_dme_link_startup()
3547 struct uic_command uic_cmd = {0}; in ufshcd_dme_reset() local
3550 uic_cmd.command = UIC_CMD_DME_RESET; in ufshcd_dme_reset()
3552 ret = ufshcd_send_uic_cmd(hba, &uic_cmd); in ufshcd_dme_reset()
3570 struct uic_command uic_cmd = {0}; in ufshcd_dme_enable() local
3573 uic_cmd.command = UIC_CMD_DME_ENABLE; in ufshcd_dme_enable()
3575 ret = ufshcd_send_uic_cmd(hba, &uic_cmd); in ufshcd_dme_enable()
3627 struct uic_command uic_cmd = {0}; in ufshcd_dme_set_attr() local
3636 uic_cmd.command = peer ? in ufshcd_dme_set_attr()
3638 uic_cmd.argument1 = attr_sel; in ufshcd_dme_set_attr()
3639 uic_cmd.argument2 = UIC_ARG_ATTR_TYPE(attr_set); in ufshcd_dme_set_attr()
3640 uic_cmd.argument3 = mib_val; in ufshcd_dme_set_attr()
3644 ret = ufshcd_send_uic_cmd(hba, &uic_cmd); in ufshcd_dme_set_attr()
3671 struct uic_command uic_cmd = {0}; in ufshcd_dme_get_attr() local
3705 uic_cmd.command = peer ? in ufshcd_dme_get_attr()
3707 uic_cmd.argument1 = attr_sel; in ufshcd_dme_get_attr()
3711 ret = ufshcd_send_uic_cmd(hba, &uic_cmd); in ufshcd_dme_get_attr()
3723 *mib_val = uic_cmd.argument3; in ufshcd_dme_get_attr()
3825 struct uic_command uic_cmd = {0}; in ufshcd_uic_change_pwr_mode() local
3838 uic_cmd.command = UIC_CMD_DME_SET; in ufshcd_uic_change_pwr_mode()
3839 uic_cmd.argument1 = UIC_ARG_MIB(PA_PWRMODE); in ufshcd_uic_change_pwr_mode()
3840 uic_cmd.argument3 = mode; in ufshcd_uic_change_pwr_mode()
3842 ret = ufshcd_uic_pwr_ctrl(hba, &uic_cmd); in ufshcd_uic_change_pwr_mode()
3877 struct uic_command uic_cmd = {0}; in __ufshcd_uic_hibern8_enter() local
3882 uic_cmd.command = UIC_CMD_DME_HIBER_ENTER; in __ufshcd_uic_hibern8_enter()
3883 ret = ufshcd_uic_pwr_ctrl(hba, &uic_cmd); in __ufshcd_uic_hibern8_enter()
3919 struct uic_command uic_cmd = {0}; in ufshcd_uic_hibern8_exit() local
3925 uic_cmd.command = UIC_CMD_DME_HIBER_EXIT; in ufshcd_uic_hibern8_exit()
3926 ret = ufshcd_uic_pwr_ctrl(hba, &uic_cmd); in ufshcd_uic_hibern8_exit()