Lines Matching refs:IMQ

155 …fcChip->IMQ = fcMemManager(cpqfcHBAdata->PciDev, &cpqfcHBAdata->dynamic_mem[0], sizeof(TachyonIMQ)…  in CpqTsCreateTachLiteQues()
156 if (!fcChip->IMQ) { in CpqTsCreateTachLiteQues()
161 fcChip->IMQ->length = IMQ_LEN - 1; in CpqTsCreateTachLiteQues()
171 fcChip->IMQ->base = (u32) ulAddr; // copy for quick reference in CpqTsCreateTachLiteQues()
255 printk(" cpqfcTS: writing IMQ BASE %Xh ", fcChip->IMQ->base); in CpqTsCreateTachLiteQues()
256 writel(fcChip->IMQ->base, (fcChip->Registers.ReMapMemBase + IMQ_BASE)); in CpqTsCreateTachLiteQues()
258 writel(fcChip->IMQ->length, (fcChip->Registers.ReMapMemBase + IMQ_LENGTH)); in CpqTsCreateTachLiteQues()
260 writel(fcChip->IMQ->consumerIndex, (fcChip->Registers.ReMapMemBase + IMQ_CONSUMER_INDEX)); in CpqTsCreateTachLiteQues()
266 …ulAddr = ((unsigned long) &fcChip->IMQ->producerIndex - (unsigned long) fcChip->IMQ) + (unsigned l… in CpqTsCreateTachLiteQues()
529 u32 CI = fcChip->IMQ->consumerIndex; in PeekIMQEntry()
530 u32 PI = fcChip->IMQ->producerIndex; // snapshot of IMQ indexes in PeekIMQEntry()
542 if ((fcChip->IMQ->QEntry[CI].type & 0x1FF) == 0x104) { in PeekIMQEntry()
545 u16 SFQpi = (u16) (fcChip->IMQ->QEntry[CI].word[0] & 0x0fffL); in PeekIMQEntry()
562 if ((fcChip->IMQ->QEntry[CI].type & 0x1FF) == 0x00) { in PeekIMQEntry()
565 if (fcChip->IMQ->QEntry[CI].word[2] & 0x7a000000L) in PeekIMQEntry()
659 if (fcChip->IMQ->producerIndex != fcChip->IMQ->consumerIndex) { // need to process message in CpqTsProcessIMQEntry()
663 …("PI %X, CI %X type: %X\n", fcChip->IMQ->producerIndex, fcChip->IMQ->consumerIndex, fcChip->IMQ->… in CpqTsProcessIMQEntry()
667 switch ((u8) (fcChip->IMQ->QEntry[fcChip->IMQ->consumerIndex].type & 0xffL)) { in CpqTsProcessIMQEntry()
684 ulBuff = fcChip->IMQ->QEntry[fcChip->IMQ->consumerIndex].word[1]; in CpqTsProcessIMQEntry()
705 ulBuff = fcChip->IMQ->QEntry[fcChip->IMQ->consumerIndex].word[2]; in CpqTsProcessIMQEntry()
840 (fcChip->IMQ->QEntry[fcChip->IMQ->consumerIndex].word[0] & 0x0fffL); in CpqTsProcessIMQEntry()
848 if (!(fcChip->IMQ->QEntry[fcChip->IMQ->consumerIndex].word[2] in CpqTsProcessIMQEntry()
852 (fcChip->IMQ->QEntry[fcChip->IMQ->consumerIndex].word[2] & 0x0fL); in CpqTsProcessIMQEntry()
1048 …fcChip->IMQ->QEntry[fcChip->IMQ->consumerIndex].word[0] = fcChip->Registers.FMstatus.value; // (fo… in CpqTsProcessIMQEntry()
1222 …fcChip->IMQ->QEntry[fcChip->IMQ->consumerIndex].word[1] = fcChip->Registers.my_al_pa; // (for debu… in CpqTsProcessIMQEntry()
1304 …fcChip->IMQ->QEntry[fcChip->IMQ->consumerIndex].word[1] = (fcChip->Registers.rcv_al_pa.value & 0xf… in CpqTsProcessIMQEntry()
1307 fcChip->IMQ->QEntry[fcChip->IMQ->consumerIndex].word[1], // port id in CpqTsProcessIMQEntry()
1321 printk(" #BAD alpa %Xh# ", fcChip->IMQ->QEntry[fcChip->IMQ->consumerIndex].word[1]); in CpqTsProcessIMQEntry()
1328 …fcChip->IMQ->QEntry[fcChip->IMQ->consumerIndex].word[2] = (fcChip->Registers.rcv_al_pa.value & 0xf… in CpqTsProcessIMQEntry()
1363 ulBuff = fcChip->IMQ->QEntry[fcChip->IMQ->consumerIndex].word[0]; in CpqTsProcessIMQEntry()
1441 fcChip->IMQ->consumerIndex++; // increment OUR consumerIndex in CpqTsProcessIMQEntry()
1442 if (fcChip->IMQ->consumerIndex >= IMQ_LEN) // check for rollover in CpqTsProcessIMQEntry()
1443 fcChip->IMQ->consumerIndex = 0L; // reset it in CpqTsProcessIMQEntry()
1446 if (fcChip->IMQ->producerIndex == fcChip->IMQ->consumerIndex) { // all Messages are processed - in CpqTsProcessIMQEntry()
1458 writel(fcChip->IMQ->consumerIndex, (fcChip->Registers.ReMapMemBase + IMQ_CONSUMER_INDEX)); in CpqTsProcessIMQEntry()
1461 printk("Process IMQ: writing consumer ndx %d\n ", fcChip->IMQ->consumerIndex); in CpqTsProcessIMQEntry()
1462 printk("PI %X, CI %X\n", fcChip->IMQ->producerIndex, fcChip->IMQ->consumerIndex); in CpqTsProcessIMQEntry()
1471 …printk("Process IMQ: no message PI %Xh CI %Xh", fcChip->IMQ->producerIndex, fcChip->IMQ->consumer… in CpqTsProcessIMQEntry()
1671 if (fcChip->IMQ) { in CpqTsDestroyTachLiteQues()
1673 fcChip->IMQ->producerIndex = 0; in CpqTsDestroyTachLiteQues()
1674 fcChip->IMQ->consumerIndex = 0; in CpqTsDestroyTachLiteQues()
1676 ulPtr = (unsigned long) fcChip->IMQ; in CpqTsDestroyTachLiteQues()
1678 fcChip->IMQ = 0L; // null invalid ptr in CpqTsDestroyTachLiteQues()