Lines Matching defs:fail
702 static void smu_i2c_complete_command(struct smu_i2c_cmd *cmd, int fail)
709 if (!fail && cmd->read) {
711 fail = 1;
717 DPRINTK("SMU: completing, success: %d\n", !fail);
726 cmd->status = fail ? -EIO : 0;
768 int fail = 0;
775 fail = 1;
778 fail = cmd->pdata[0] != 0;
780 fail = cmd->pdata[0] >= 0x80;
782 fail = cmd->pdata[0] != 0;
787 if (fail && --cmd->retries > 0) {
800 if (fail || cmd->stage != 0) {
801 smu_i2c_complete_command(cmd, fail);