Lines Matching refs:BitMask
37 phy_CalculateBitShift(u32 BitMask);
326 * u32 BitMask //The target bit position in the target address
332 u32 rtl8192_QueryBBReg(struct net_device* dev, u32 RegAddr, u32 BitMask)
338 RT_TRACE(COMP_RF, "--->PHY_QueryBBReg(): RegAddr(%#x), BitMask(%#x)\n", RegAddr, BitMask);
362 BitShift = phy_CalculateBitShift(BitMask);
363 ReturnValue = (OriginalValue & BitMask) >> BitShift;
366 RT_TRACE(COMP_RF, "<---PHY_QueryBBReg(): RegAddr(%#x), BitMask(%#x), OriginalValue(%#x)\n", RegAddr, BitMask, OriginalValue);
378 * u32 BitMask //The target bit position in the target address
387 void rtl8192_setBBreg(struct net_device* dev, u32 RegAddr, u32 BitMask, u32 Data)
392 RT_TRACE(COMP_RF, "--->PHY_SetBBReg(): RegAddr(%#x), BitMask(%#x), Data(%#x)\n", RegAddr, BitMask, Data);
408 if(BitMask!= bMaskDWord)
411 BitShift = phy_CalculateBitShift(BitMask);
412 NewValue = (((OriginalValue) & (~BitMask))|(Data << BitShift));
419 if(BitMask!= bMaskDWord)
422 BitShift = phy_CalculateBitShift(BitMask);
423 NewValue = (((OriginalValue) & (~BitMask)) | (Data << BitShift));
446 * u32 BitMask //The target bit position in the target address
453 u32 rtl8192_phy_QueryRFReg(struct net_device* dev, RF90_RADIO_PATH_E eRFPath, u32 RegAddr, u32 BitMask)
459 RT_TRACE(COMP_RF, "--->PHY_QueryRFReg(): RegAddr(%#x), eRFPath(%#x), BitMask(%#x)\n", RegAddr, eRFPath,BitMask);
482 BitShift = phy_CalculateBitShift(BitMask);
483 Readback_Value = (Original_Value & BitMask) >> BitShift;
498 * u32 BitMask //The target bit position in the target address
507 void rtl8192_phy_SetRFReg(struct net_device* dev, RF90_RADIO_PATH_E eRFPath, u32 RegAddr, u32 BitMask, u32 Data)
513 RT_TRACE(COMP_RF, "--->PHY_SetRFReg(): RegAddr(%#x), BitMask(%#x), Data(%#x), eRFPath(%#x)\n",
514 RegAddr, BitMask, Data, eRFPath);
533 if (BitMask != bRFRegOffsetMask) // RF data is 12 bits only
536 BitShift = phy_CalculateBitShift(BitMask);
537 New_Value = (((Original_Value)&(~BitMask))|(Data<< BitShift));
543 RT_TRACE(COMP_RF, "<---PHY_SetRFReg(): RegAddr(%#x), BitMask(%#x), Data(%#x), eRFPath(%#x)\n",
544 RegAddr, BitMask, Data, eRFPath);
551 * OverView: Get shifted position of the BitMask
554 * u32 BitMask,
560 static u32 phy_CalculateBitShift(u32 BitMask)
566 if ( ((BitMask>>i) & 0x1 ) == 1)
2032 u4Byte BitMask;
3329 u32 BitMask;
3340 BitMask = bMaskByte0;
3343 priv->initgain_backup.xaagccore1 = (u8)rtl8192_QueryBBReg(dev, rOFDM0_XAAGCCore1, BitMask);
3344 priv->initgain_backup.xbagccore1 = (u8)rtl8192_QueryBBReg(dev, rOFDM0_XBAGCCore1, BitMask);
3345 priv->initgain_backup.xcagccore1 = (u8)rtl8192_QueryBBReg(dev, rOFDM0_XCAGCCore1, BitMask);
3346 priv->initgain_backup.xdagccore1 = (u8)rtl8192_QueryBBReg(dev, rOFDM0_XDAGCCore1, BitMask);
3347 BitMask = bMaskByte2;
3348 priv->initgain_backup.cca = (u8)rtl8192_QueryBBReg(dev, rCCK0_CCA, BitMask);
3366 BitMask = 0x7f; //Bit0~ Bit6
3370 rtl8192_setBBreg(dev, rOFDM0_XAAGCCore1, BitMask, (u32)priv->initgain_backup.xaagccore1);
3371 rtl8192_setBBreg(dev, rOFDM0_XBAGCCore1, BitMask, (u32)priv->initgain_backup.xbagccore1);
3372 rtl8192_setBBreg(dev, rOFDM0_XCAGCCore1, BitMask, (u32)priv->initgain_backup.xcagccore1);
3373 rtl8192_setBBreg(dev, rOFDM0_XDAGCCore1, BitMask, (u32)priv->initgain_backup.xdagccore1);
3374 BitMask = bMaskByte2;
3375 rtl8192_setBBreg(dev, rCCK0_CCA, BitMask, (u32)priv->initgain_backup.cca);