/linux-2.6.39/drivers/staging/winbond/ |
D | reg.c | 831 void Uxx_ReadEthernetAddress(struct hw_data *pHwData) in Uxx_ReadEthernetAddress() argument 839 Wb35Reg_WriteSync(pHwData, 0x03b4, 0x08000000); /* Start EEPROM access + Read + address(0x0d) */ in Uxx_ReadEthernetAddress() 840 Wb35Reg_ReadSync(pHwData, 0x03b4, <mp); in Uxx_ReadEthernetAddress() 841 *(u16 *)pHwData->PermanentMacAddress = cpu_to_le16((u16) ltmp); in Uxx_ReadEthernetAddress() 842 Wb35Reg_WriteSync(pHwData, 0x03b4, 0x08010000); /* Start EEPROM access + Read + address(0x0d) */ in Uxx_ReadEthernetAddress() 843 Wb35Reg_ReadSync(pHwData, 0x03b4, <mp); in Uxx_ReadEthernetAddress() 844 *(u16 *)(pHwData->PermanentMacAddress + 2) = cpu_to_le16((u16) ltmp); in Uxx_ReadEthernetAddress() 845 Wb35Reg_WriteSync(pHwData, 0x03b4, 0x08020000); /* Start EEPROM access + Read + address(0x0d) */ in Uxx_ReadEthernetAddress() 846 Wb35Reg_ReadSync(pHwData, 0x03b4, <mp); in Uxx_ReadEthernetAddress() 847 *(u16 *)(pHwData->PermanentMacAddress + 4) = cpu_to_le16((u16) ltmp); in Uxx_ReadEthernetAddress() [all …]
|
D | wbusb.c | 55 static void hal_set_beacon_period(struct hw_data *pHwData, u16 beacon_period) in hal_set_beacon_period() argument 59 if (pHwData->SurpriseRemove) in hal_set_beacon_period() 62 pHwData->BeaconPeriod = beacon_period; in hal_set_beacon_period() 63 tmp = pHwData->BeaconPeriod << 16; in hal_set_beacon_period() 64 tmp |= pHwData->ProbeDelay; in hal_set_beacon_period() 65 Wb35Reg_Write(pHwData, 0x0848, tmp); in hal_set_beacon_period() 155 static void hal_set_radio_mode(struct hw_data *pHwData, unsigned char radio_off) in hal_set_radio_mode() argument 157 struct wb35_reg *reg = &pHwData->reg; in hal_set_radio_mode() 159 if (pHwData->SurpriseRemove) in hal_set_radio_mode() 163 pHwData->CurrentRadioSw = 1; /* off */ in hal_set_radio_mode() [all …]
|
D | wb35reg.c | 17 unsigned char Wb35Reg_BurstWrite(struct hw_data *pHwData, u16 RegisterNo, u32 *pRegisterData, u8 Nu… in Wb35Reg_BurstWrite() argument 19 struct wb35_reg *reg = &pHwData->reg; in Wb35Reg_BurstWrite() 27 if (pHwData->SurpriseRemove) in Wb35Reg_BurstWrite() 63 Wb35Reg_EP0VM_start(pHwData); in Wb35Reg_BurstWrite() 75 void Wb35Reg_Update(struct hw_data *pHwData, u16 RegisterNo, u32 RegisterValue) in Wb35Reg_Update() argument 77 struct wb35_reg *reg = &pHwData->reg; in Wb35Reg_Update() 121 unsigned char Wb35Reg_WriteSync(struct hw_data *pHwData, u16 RegisterNo, u32 RegisterValue) in Wb35Reg_WriteSync() argument 123 struct wb35_reg *reg = &pHwData->reg; in Wb35Reg_WriteSync() 127 if (pHwData->SurpriseRemove) in Wb35Reg_WriteSync() 141 ret = usb_control_msg(pHwData->udev, in Wb35Reg_WriteSync() [all …]
|
D | wb35tx.c | 18 Wb35Tx_get_tx_buffer(struct hw_data * pHwData, u8 **pBuffer) in Wb35Tx_get_tx_buffer() argument 20 struct wb35_tx *pWb35Tx = &pHwData->Wb35Tx; in Wb35Tx_get_tx_buffer() 31 struct hw_data * pHwData = &adapter->sHwData; in Wb35Tx_complete() local 32 struct wb35_tx *pWb35Tx = &pHwData->Wb35Tx; in Wb35Tx_complete() 43 if (pHwData->SurpriseRemove) // Let WbWlanHalt to handle surprise remove in Wb35Tx_complete() 67 struct hw_data * pHwData = &adapter->sHwData; in Wb35Tx() local 68 struct wb35_tx *pWb35Tx = &pHwData->Wb35Tx; in Wb35Tx() 76 if (pHwData->SurpriseRemove) in Wb35Tx() 91 usb_fill_bulk_urb(pUrb, pHwData->udev, in Wb35Tx() 92 usb_sndbulkpipe(pHwData->udev, 4), in Wb35Tx() [all …]
|
D | wb35rx.c | 76 struct hw_data *pHwData = &priv->sHwData; in Wb35Rx_indicate() local 78 struct wb35_rx *pWb35Rx = &pHwData->Wb35Rx; in Wb35Rx_indicate() 153 struct hw_data *pHwData = &priv->sHwData; in Wb35Rx_Complete() local 154 struct wb35_rx *pWb35Rx = &pHwData->Wb35Rx; in Wb35Rx_Complete() 173 if (pHwData->SurpriseRemove) /* Must be here, or RxBufferId is invalid */ in Wb35Rx_Complete() 191 if (!HAL_USB_MODE_BURST(pHwData)) { in Wb35Rx_Complete() 228 struct hw_data *pHwData = &priv->sHwData; in Wb35Rx() local 229 struct wb35_rx *pWb35Rx = &pHwData->Wb35Rx; in Wb35Rx() 236 if (pHwData->SurpriseRemove) in Wb35Rx() 263 usb_fill_bulk_urb(urb, pHwData->udev, in Wb35Rx() [all …]
|
D | mds.c | 439 struct hw_data *pHwData = &adapter->sHwData; in Mds_Tx() local 451 if (!hal_driver_init_OK(pHwData)) in Mds_Tx() 507 pHwData->IsKeyPreSet = 1; in Mds_Tx() 529 …} while (HAL_USB_MODE_BURST(pHwData)); /* End of multiple MSDU copy loop. false = single true = mu… in Mds_Tx() 556 if (!pHwData->IsKeyPreSet) in Mds_Tx() 567 struct hw_data *pHwData = &adapter->sHwData; in Mds_SendComplete() local 584 pHwData->dto_tx_retry_count += (RetryCount+1); in Mds_SendComplete() 587 pHwData->tx_retry_count[RetryCount] += RetryCount; in Mds_SendComplete() 589 pHwData->tx_retry_count[7] += RetryCount; in Mds_SendComplete() 590 pr_debug("dto_tx_retry_count =%d\n", pHwData->dto_tx_retry_count); in Mds_SendComplete() [all …]
|
D | wb35rx_f.h | 10 unsigned char Wb35Rx_initial( struct hw_data * pHwData ); 11 void Wb35Rx_destroy( struct hw_data * pHwData ); 12 void Wb35Rx_stop( struct hw_data * pHwData );
|
D | phy_calibration.h | 81 void phy_set_rf_data(struct hw_data *pHwData, u32 index, u32 value);
|
D | phy_calibration.c | 299 static unsigned char hal_get_dxx_reg(struct hw_data *pHwData, u16 number, u32 * pValue) in hal_get_dxx_reg() argument 303 return Wb35Reg_ReadSync(pHwData, number, pValue); in hal_get_dxx_reg() 307 static unsigned char hal_set_dxx_reg(struct hw_data *pHwData, u16 number, u32 value) in hal_set_dxx_reg() argument 313 ret = Wb35Reg_WriteSync(pHwData, number, value); in hal_set_dxx_reg() 1477 void phy_set_rf_data(struct hw_data *pHwData, u32 index, u32 value) in phy_set_rf_data() argument 1481 switch (pHwData->phy_type) { in phy_set_rf_data() 1514 Wb35Reg_WriteSync(pHwData, 0x0864, ltmp); in phy_set_rf_data()
|