Lines Matching defs:fail
707 static void smu_i2c_complete_command(struct smu_i2c_cmd *cmd, int fail)
714 if (!fail && cmd->read) {
716 fail = 1;
722 DPRINTK("SMU: completing, success: %d\n", !fail);
731 cmd->status = fail ? -EIO : 0;
773 int fail = 0;
780 fail = 1;
783 fail = cmd->pdata[0] != 0;
785 fail = cmd->pdata[0] >= 0x80;
787 fail = cmd->pdata[0] != 0;
792 if (fail && --cmd->retries > 0) {
805 if (fail || cmd->stage != 0) {
806 smu_i2c_complete_command(cmd, fail);