• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/staging/otus/hal/

Lines Matching defs:hpPriv

28 //#define zm_hp_priv(x) struct zsHpPriv* hpPriv=zgWlanDev.hpPrivate;
32 struct zsHpPriv* hpPriv;
35 hpPriv = (struct zsHpPriv*)(wd->hpPrivate);
41 hpPriv->cmdTail = hpPriv->cmdHead = hpPriv->cmdSend = 0;
43 hpPriv->cmdTail = hpPriv->cmdHead = 0;
45 hpPriv->cmdPending = 0;
46 hpPriv->cmd.delayWcmdCount = 0;
53 struct zsHpPriv* hpPriv;
56 hpPriv=wd->hpPrivate;
61 //zm_assert(((hpPriv->cmdTail+1) & (ZM_CMD_QUEUE_SIZE-1)) != hpPriv->cmdHead);
62 if (((hpPriv->cmdTail+1) & (ZM_CMD_QUEUE_SIZE-1)) == hpPriv->cmdHead ) {
67 hpPriv->cmdQ[hpPriv->cmdTail].cmdLen = cmdLen;
68 hpPriv->cmdQ[hpPriv->cmdTail].src = src;
69 hpPriv->cmdQ[hpPriv->cmdTail].buf = buf;
72 hpPriv->cmdQ[hpPriv->cmdTail].cmd[i] = cmd[i];
75 hpPriv->cmdTail = (hpPriv->cmdTail+1) & (ZM_CMD_QUEUE_SIZE-1);
83 struct zsHpPriv* hpPriv;
86 hpPriv=wd->hpPrivate;
88 if (hpPriv->cmdTail == hpPriv->cmdHead)
93 *cmdLen = hpPriv->cmdQ[hpPriv->cmdHead].cmdLen;
94 *src = hpPriv->cmdQ[hpPriv->cmdHead].src;
95 *buf = hpPriv->cmdQ[hpPriv->cmdHead].buf;
98 cmd[i] = hpPriv->cmdQ[hpPriv->cmdHead].cmd[i];
101 hpPriv->cmdHead = (hpPriv->cmdHead+1) & (ZM_CMD_QUEUE_SIZE-1);
113 struct zsHpPriv* hpPriv;
116 hpPriv=wd->hpPrivate;
122 if (hpPriv->cmdPending == 0)
124 if (hpPriv->cmdTail != hpPriv->cmdSend)
128 ncmdLen= hpPriv->cmdQ[hpPriv->cmdSend].cmdLen;
131 ncmd[i] = hpPriv->cmdQ[hpPriv->cmdSend].cmd[i];
133 hpPriv->cmdSend = (hpPriv->cmdSend+1) & (ZM_CMD_QUEUE_SIZE-1);
135 hpPriv->cmdPending = 1;
149 struct zsHpPriv* hpPriv;
152 hpPriv=wd->hpPrivate;
157 hpPriv->cmdPending = 0;
168 struct zsHpPriv* hpPriv;
171 hpPriv=wd->hpPrivate;
190 if (hpPriv->cmdPending == 0)
192 hpPriv->cmdPending = 1;
225 struct zsHpPriv* hpPriv;
228 hpPriv=wd->hpPrivate;
247 if (hpPriv->cmdTail != hpPriv->cmdHead)
251 ncmdLen= hpPriv->cmdQ[hpPriv->cmdHead].cmdLen;
254 ncmd[i] = hpPriv->cmdQ[hpPriv->cmdHead].cmd[i];
259 hpPriv->cmdPending = 0;
326 if ( hpPriv->isSiteSurvey == 2 )
328 if ( hpPriv->recordFreqRetryCounter < 2 )
331 zfHpSetFrequencyEx(dev, hpPriv->latestFrequency,
332 hpPriv->latestBw40,
333 hpPriv->latestExtOffset,
335 hpPriv->recordFreqRetryCounter++;
336 zm_debug_msg1("Retry to issue the frequency change command(cold reset) counter = ", hpPriv->recordFreqRetryCounter);
342 hpPriv->coldResetNeedFreq = 0;
343 hpPriv->recordFreqRetryCounter = 0;
350 hpPriv->coldResetNeedFreq = 1;
351 hpPriv->recordFreqRetryCounter = 0;
361 if ( hpPriv->isSiteSurvey == 2 )
363 if ( hpPriv->recordFreqRetryCounter < 1 )
366 zfHpSetFrequencyEx(dev, hpPriv->latestFrequency,
367 hpPriv->latestBw40,
368 hpPriv->latestExtOffset,
370 hpPriv->recordFreqRetryCounter++;
371 zm_debug_msg1("2 Retry to issue the frequency change command(cold reset) counter = ", hpPriv->recordFreqRetryCounter);
377 hpPriv->coldResetNeedFreq = 0;
378 hpPriv->recordFreqRetryCounter = 0;
385 hpPriv->coldResetNeedFreq = 0;
386 hpPriv->recordFreqRetryCounter = 0;
393 // hpPriv->coldResetNeedFreq = 0;
394 // hpPriv->recordFreqRetryCounter = 0;
399 //hpPriv->freqRetryCounter = 0;
403 if (hpPriv->enableBBHeavyClip && hpPriv->hwBBHeavyClip &&
404 hpPriv->doBBHeavyClip)
408 setValue |= hpPriv->setValueHeavyClip;
416 hpPriv->coldResetNeedFreq = 0;
417 hpPriv->recordFreqRetryCounter = 0;
470 //zm_debug_msg1("Is Site Survey = ", hpPriv->isSiteSurvey);
495 //hpPriv->eepromHeavyClipFlag = (u8_t)((rsp[6]>>24) & 0xff); // force enable 8107
496 //zm_msg2_mm(ZM_LV_0, "eepromHeavyClipFlag", hpPriv->eepromHeavyClipFlag);
529 hpPriv->OpFlags = (u8_t)((rsp[4]>>16) & 0xff);
533 hpPriv->halCapability |= ZM_HP_CAP_11N_ONE_TX_STREAM;
539 if (hpPriv->OpFlags & 0x1)
541 hpPriv->halCapability |= ZM_HP_CAP_5G;
543 if (hpPriv->OpFlags & 0x2)
545 hpPriv->halCapability |= ZM_HP_CAP_2G;
584 if (hpPriv->eepromImageIndex < 1024)
586 hpPriv->eepromImage[hpPriv->eepromImageIndex++] = rsp[i+1];
590 if (hpPriv->eepromImageIndex == (ZM_HAL_MAX_EEPROM_REQ*ZM_HAL_MAX_EEPROM_PRQ))
592 zm_msg2_mm(ZM_LV_0, "MAC [1]=", hpPriv->eepromImage[0x20c/4]);
593 zm_msg2_mm(ZM_LV_0, "MAC [2]=", hpPriv->eepromImage[0x210/4]);
598 hpPriv->eepromImageRdReq++;
615 hpPriv->ctlBusy += rsp[1];
616 hpPriv->extBusy += rsp[2];
707 struct zsHpPriv* hpPriv;
710 hpPriv=wd->hpPrivate;
718 hpPriv->cmd.delayWcmdAddr[hpPriv->cmd.delayWcmdCount] = addr;
719 hpPriv->cmd.delayWcmdVal[hpPriv->cmd.delayWcmdCount++] = val;
722 if ((hpPriv->cmd.delayWcmdCount) >= ((ZM_MAX_CMD_SIZE - 4) >> 3))
724 cmd[0] = 0x00000100 + (hpPriv->cmd.delayWcmdCount<<3);
727 for (i=0; i<hpPriv->cmd.delayWcmdCount; i++)
729 cmd[1+(i<<1)] = hpPriv->cmd.delayWcmdAddr[i];
730 cmd[2+(i<<1)] = hpPriv->cmd.delayWcmdVal[i];
733 hpPriv->cmd.delayWcmdCount = 0;
774 struct zsHpPriv* hpPriv;
777 hpPriv=wd->hpPrivate;
785 if (hpPriv->cmd.delayWcmdCount > 0)
787 cmd[0] = 0x00000100 + (hpPriv->cmd.delayWcmdCount<<3);
790 for (i=0; i<hpPriv->cmd.delayWcmdCount; i++)
792 cmd[1+(i<<1)] = hpPriv->cmd.delayWcmdAddr[i];
793 cmd[2+(i<<1)] = hpPriv->cmd.delayWcmdVal[i];
796 hpPriv->cmd.delayWcmdCount = 0;