Lines Matching defs:fail
706 static void smu_i2c_complete_command(struct smu_i2c_cmd *cmd, int fail)
713 if (!fail && cmd->read) {
715 fail = 1;
721 DPRINTK("SMU: completing, success: %d\n", !fail);
730 cmd->status = fail ? -EIO : 0;
772 int fail = 0;
779 fail = 1;
782 fail = cmd->pdata[0] != 0;
784 fail = cmd->pdata[0] >= 0x80;
786 fail = cmd->pdata[0] != 0;
791 if (fail && --cmd->retries > 0) {
804 if (fail || cmd->stage != 0) {
805 smu_i2c_complete_command(cmd, fail);