Lines Matching refs:uic_cmd
893 ufshcd_dispatch_uic_cmd(struct ufs_hba *hba, struct uic_command *uic_cmd) in ufshcd_dispatch_uic_cmd() argument
897 hba->active_uic_cmd = uic_cmd; in ufshcd_dispatch_uic_cmd()
900 ufshcd_writel(hba, uic_cmd->argument1, REG_UIC_COMMAND_ARG_1); in ufshcd_dispatch_uic_cmd()
901 ufshcd_writel(hba, uic_cmd->argument2, REG_UIC_COMMAND_ARG_2); in ufshcd_dispatch_uic_cmd()
902 ufshcd_writel(hba, uic_cmd->argument3, REG_UIC_COMMAND_ARG_3); in ufshcd_dispatch_uic_cmd()
905 ufshcd_writel(hba, uic_cmd->command & COMMAND_OPCODE_MASK, in ufshcd_dispatch_uic_cmd()
918 ufshcd_wait_for_uic_cmd(struct ufs_hba *hba, struct uic_command *uic_cmd) in ufshcd_wait_for_uic_cmd() argument
923 if (wait_for_completion_timeout(&uic_cmd->done, in ufshcd_wait_for_uic_cmd()
925 ret = uic_cmd->argument2 & MASK_UIC_COMMAND_RESULT; in ufshcd_wait_for_uic_cmd()
946 __ufshcd_send_uic_cmd(struct ufs_hba *hba, struct uic_command *uic_cmd) in __ufshcd_send_uic_cmd() argument
954 init_completion(&uic_cmd->done); in __ufshcd_send_uic_cmd()
956 ufshcd_dispatch_uic_cmd(hba, uic_cmd); in __ufshcd_send_uic_cmd()
969 ufshcd_send_uic_cmd(struct ufs_hba *hba, struct uic_command *uic_cmd) in ufshcd_send_uic_cmd() argument
979 ret = __ufshcd_send_uic_cmd(hba, uic_cmd); in ufshcd_send_uic_cmd()
982 ret = ufshcd_wait_for_uic_cmd(hba, uic_cmd); in ufshcd_send_uic_cmd()
2052 struct uic_command uic_cmd = {0}; in ufshcd_dme_link_startup() local
2055 uic_cmd.command = UIC_CMD_DME_LINK_STARTUP; in ufshcd_dme_link_startup()
2057 ret = ufshcd_send_uic_cmd(hba, &uic_cmd); in ufshcd_dme_link_startup()
2108 struct uic_command uic_cmd = {0}; in ufshcd_dme_set_attr() local
2116 uic_cmd.command = peer ? in ufshcd_dme_set_attr()
2118 uic_cmd.argument1 = attr_sel; in ufshcd_dme_set_attr()
2119 uic_cmd.argument2 = UIC_ARG_ATTR_TYPE(attr_set); in ufshcd_dme_set_attr()
2120 uic_cmd.argument3 = mib_val; in ufshcd_dme_set_attr()
2122 ret = ufshcd_send_uic_cmd(hba, &uic_cmd); in ufshcd_dme_set_attr()
2143 struct uic_command uic_cmd = {0}; in ufshcd_dme_get_attr() local
2151 uic_cmd.command = peer ? in ufshcd_dme_get_attr()
2153 uic_cmd.argument1 = attr_sel; in ufshcd_dme_get_attr()
2155 ret = ufshcd_send_uic_cmd(hba, &uic_cmd); in ufshcd_dme_get_attr()
2163 *mib_val = uic_cmd.argument3; in ufshcd_dme_get_attr()
2249 struct uic_command uic_cmd = {0}; in ufshcd_uic_change_pwr_mode() local
2252 uic_cmd.command = UIC_CMD_DME_SET; in ufshcd_uic_change_pwr_mode()
2253 uic_cmd.argument1 = UIC_ARG_MIB(PA_PWRMODE); in ufshcd_uic_change_pwr_mode()
2254 uic_cmd.argument3 = mode; in ufshcd_uic_change_pwr_mode()
2256 ret = ufshcd_uic_pwr_ctrl(hba, &uic_cmd); in ufshcd_uic_change_pwr_mode()
2264 struct uic_command uic_cmd = {0}; in ufshcd_uic_hibern8_enter() local
2266 uic_cmd.command = UIC_CMD_DME_HIBER_ENTER; in ufshcd_uic_hibern8_enter()
2268 return ufshcd_uic_pwr_ctrl(hba, &uic_cmd); in ufshcd_uic_hibern8_enter()
2273 struct uic_command uic_cmd = {0}; in ufshcd_uic_hibern8_exit() local
2276 uic_cmd.command = UIC_CMD_DME_HIBER_EXIT; in ufshcd_uic_hibern8_exit()
2277 ret = ufshcd_uic_pwr_ctrl(hba, &uic_cmd); in ufshcd_uic_hibern8_exit()