if (ap->flags & (ATA_FLAG_PORT_DISABLED | ATA_FLAG_NOINTR)) 
if (ap->flags & ATA_FLAG_PORT_DISABLED) 
static inline unsigned int adma_intr_pkt(struct ata_host_set *host_set){	unsigned int handled = 0, port_no;	u8 __iomem *mmio_base = host_set->mmio_base;	for (port_no = 0; port_no < host_set->n_ports; ++port_no) {		struct ata_port *ap = host_set->ports[port_no];		struct adma_port_priv *pp;		struct ata_queued_cmd *qc;		void __iomem *chan = ADMA_REGS(mmio_base, port_no);		u8 drv_stat = 0, status = readb(chan + ADMA_STATUS);		if (status == 0)			continue;		handled = 1;		adma_enter_reg_mode(ap);		if (ap->flags & (ATA_FLAG_PORT_DISABLED | ATA_FLAG_NOINTR))			continue;		pp = ap->private_data;		if (!pp || pp->state != adma_state_pkt)			continue;		qc = ata_qc_from_tag(ap, ap->active_tag);		if (qc && (!(qc->tf.ctl & ATA_NIEN))) {			if ((status & (aPERR | aPSD | aUIRQ)))				drv_stat = ATA_ERR;			else if (pp->pkt[0] != cDONE)				drv_stat = ATA_ERR;			ata_qc_complete(qc, drv_stat);		}	}	return handled;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/94ec1ef1cf29e137e5c79372e432b040c6604be6/pdc_adma.c/clean/drivers/scsi/pdc_adma.c