Lines Matching +full:5 +full:k
67 static int qlcfg5 = (XTALFREQ << 5); /* 15625/512 */
71 static int qlcfg9 = ((XTALFREQ + 4) / 5);
188 int k; in ql_wai() local
192 k = 0; in ql_wai()
195 !((k = inb(qbase + 4)) & 0xe0)) { in ql_wai()
203 if (k & 0x60) in ql_wai()
205 if (k & 0x20) in ql_wai()
207 if (k & 0x40) in ql_wai()
229 inb(qbase + 5); /* clear interrupts */ in ql_icmd()
230 if (inb(qbase + 5)) /* if still interrupting */ in ql_icmd()
234 while (inb(qbase + 5)); /* clear ints */ in ql_icmd()
248 outb(qlcfg5, qbase + 5); /* select timer */ in ql_icmd()
250 /* outb(0x99, qbase + 5); */ in ql_icmd()
267 unsigned long k; in ql_pcmd() local
279 i = inb(qbase + 5); in ql_pcmd()
284 i |= inb(qbase + 5); /* the 0x10 bit can be set after the 0x08 */ in ql_pcmd()
291 j &= 7; /* j = inb( qbase + 7 ) >> 5; */ in ql_pcmd()
338 if ((k = ql_wai(priv))) { in ql_pcmd()
339 set_host_byte(cmd, k); in ql_pcmd()
342 k = inb(qbase + 5); /* should be 0x10, bus service */ in ql_pcmd()
349 k = jiffies + WATCHDOG; in ql_pcmd()
351 while (time_before(jiffies, k) && !priv->qabort && in ql_pcmd()
355 if (time_after_eq(jiffies, k)) { in ql_pcmd()
362 while (inb(qbase + 5)) in ql_pcmd()
372 if ((k = ql_wai(priv))) { in ql_pcmd()
373 set_host_byte(cmd, k); in ql_pcmd()
376 i = inb(qbase + 5); /* get chip irq stat */ in ql_pcmd()
391 if ((k = ql_wai(priv))) { in ql_pcmd()
392 set_host_byte(cmd, k); in ql_pcmd()
400 i = inb(qbase + 5); /* should be bus service */ in ql_pcmd()
404 i |= inb(qbase + 5); in ql_pcmd()
439 while (i-- && inb(qbase + 5)); /* maybe also ql_zap() */ in ql_ihandl()
575 outb(qlcfg5, qbase + 5); /* select timer */ in qlogicfas408_setup()