if ((stat & flags) == 0) { 
if ((stat & flags) == 0) 
int av7110_wait_msgstate(struct av7110 *av7110, u16 flags){	unsigned long start;	u32 stat;	if (FW_VERSION(av7110->arm_app) <= 0x261c) {		/* not supported by old firmware */		msleep(50);		return 0;	}	/* new firmware */	start = jiffies;	for (;;) {		if (down_interruptible(&av7110->dcomlock))			return -ERESTARTSYS;		stat = rdebi(av7110, DEBINOSWAP, MSGSTATE, 0, 2);		up(&av7110->dcomlock);		if ((stat & flags) == 0) {			break;		}		if (time_after(jiffies, start + ARM_WAIT_FREE)) {			printk(KERN_ERR "%s: timeout waiting for MSGSTATE %04x\n",				__FUNCTION__, stat & flags);			return -ETIMEDOUT;		}		msleep(1);	}	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/25de192660627e1e8dc8ee6a120ff8b54d108593/av7110_hw.c/clean/drivers/media/dvb/ttpci/av7110_hw.c