Lines Matching refs:consumerIndex

242 …ulAddr = ((unsigned long) &fcChip->ERQ->consumerIndex - (unsigned long) fcChip->ERQ) + (unsigned l…  in CpqTsCreateTachLiteQues()
260 writel(fcChip->IMQ->consumerIndex, (fcChip->Registers.ReMapMemBase + IMQ_CONSUMER_INDEX)); in CpqTsCreateTachLiteQues()
529 u32 CI = fcChip->IMQ->consumerIndex; in PeekIMQEntry()
659 if (fcChip->IMQ->producerIndex != fcChip->IMQ->consumerIndex) { // need to process message in CpqTsProcessIMQEntry()
663 …\n", fcChip->IMQ->producerIndex, fcChip->IMQ->consumerIndex, fcChip->IMQ->QEntry[fcChip->IMQ->cons… 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()
1088 if (fcChip->ERQ->producerIndex != fcChip->ERQ->consumerIndex) { in CpqTsProcessIMQEntry()
1091 fcChip->ERQ->producerIndex = fcChip->ERQ->consumerIndex = 0; 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 …("Process IMQ: no message PI %Xh CI %Xh", fcChip->IMQ->producerIndex, fcChip->IMQ->consumerIndex); in CpqTsProcessIMQEntry()
1674 fcChip->IMQ->consumerIndex = 0; in CpqTsDestroyTachLiteQues()
1724 u32 consumerIndex = fcChip->SFQ->consumerIndex; in CpqTsGetSFQEntry() local
1730 while (producerNdx != consumerIndex) { // need to process message in CpqTsGetSFQEntry()
1734 memcpy(ulDestPtr, &fcChip->SFQ->QEntry[consumerIndex], 64); // each SFQ entry is 64 bytes in CpqTsGetSFQEntry()
1740 if (++consumerIndex >= SFQ_LEN) // check for rollover in CpqTsGetSFQEntry()
1741 consumerIndex = 0L; // reset it in CpqTsGetSFQEntry()
1746 fcChip->SFQ->consumerIndex = consumerIndex; in CpqTsGetSFQEntry()
1747 writel(fcChip->SFQ->consumerIndex, fcChip->Registers.SFQconsumerIndex.address); in CpqTsGetSFQEntry()