• Home
  • Raw
  • Download

Lines Matching refs:scmd

289 int smu_queue_simple(struct smu_simple_cmd *scmd, u8 command,  in smu_queue_simple()  argument
294 struct smu_cmd *cmd = &scmd->cmd; in smu_queue_simple()
298 if (data_len > sizeof(scmd->buffer)) in smu_queue_simple()
301 memset(scmd, 0, sizeof(*scmd)); in smu_queue_simple()
304 cmd->data_buf = scmd->buffer; in smu_queue_simple()
305 cmd->reply_len = sizeof(scmd->buffer); in smu_queue_simple()
306 cmd->reply_buf = scmd->buffer; in smu_queue_simple()
312 scmd->buffer[i] = (u8)va_arg(list, int); in smu_queue_simple()
744 list_add_tail(&cmd->scmd.link, &smu->cmd_list); in smu_i2c_complete_command()
765 cmd->scmd.reply_len = sizeof(cmd->pdata); in smu_i2c_retry()
766 smu_queue_cmd(&cmd->scmd); in smu_i2c_retry()
770 static void smu_i2c_low_completion(struct smu_cmd *scmd, void *misc) in smu_i2c_low_completion() argument
776 cmd->stage, scmd->status, cmd->pdata[0], scmd->reply_len); in smu_i2c_low_completion()
779 if (scmd->status < 0) in smu_i2c_low_completion()
813 scmd->reply_buf = cmd->pdata; in smu_i2c_low_completion()
814 scmd->reply_len = sizeof(cmd->pdata); in smu_i2c_low_completion()
815 scmd->data_buf = cmd->pdata; in smu_i2c_low_completion()
816 scmd->data_len = 1; in smu_i2c_low_completion()
820 smu_queue_cmd(scmd); in smu_i2c_low_completion()
832 cmd->scmd.cmd = SMU_CMD_I2C_COMMAND; in smu_queue_i2c()
833 cmd->scmd.done = smu_i2c_low_completion; in smu_queue_i2c()
834 cmd->scmd.misc = cmd; in smu_queue_i2c()
835 cmd->scmd.reply_buf = cmd->pdata; in smu_queue_i2c()
836 cmd->scmd.reply_len = sizeof(cmd->pdata); in smu_queue_i2c()
837 cmd->scmd.data_buf = (u8 *)(char *)&cmd->info; in smu_queue_i2c()
838 cmd->scmd.status = 1; in smu_queue_i2c()
870 cmd->scmd.data_len = 9; in smu_queue_i2c()
874 cmd->scmd.data_len = 9 + cmd->info.datalen; in smu_queue_i2c()
890 list_add_tail(&cmd->scmd.link, &smu->cmd_list); in smu_queue_i2c()