Lines Matching refs:pTNETWIF
168 TNETWIF_t *pTNETWIF;
171 pTNETWIF = os_memoryAlloc (hOs, sizeof(TNETWIF_t));
173 if (pTNETWIF == NULL)
176 os_memoryZero (hOs, pTNETWIF, sizeof(TNETWIF_t));
178 pTNETWIF->hOs = hOs;
181 pTNETWIF->hTNETWArb = TNETWArb_Init (hOs);
184 pTNETWIF->hHwAccess = whal_hwAccess_Create (hOs);
187 pTNETWIF->hELPCtrl = elpCtrl_Create (hOs);
189 return (TI_HANDLE)pTNETWIF;
206 TNETWIF_t *pTNETWIF = (TNETWIF_t *)hTNETWIF;
209 elpCtrl_Destroy (pTNETWIF->hELPCtrl);
212 whal_hwAccess_Destroy (pTNETWIF->hHwAccess);
215 TNETWArb_Destroy (pTNETWIF->hTNETWArb);
218 os_memoryFree (pTNETWIF->hOs, pTNETWIF, sizeof(TNETWIF_t));
238 TNETWIF_t *pTNETWIF = (TNETWIF_t *)hTNETWIF;
240 switch (pTNETWIF->uInitStage)
243 pTNETWIF->uInitStage ++;
250 pTNETWIF->uInitStage = 3;
254 TNETWArb_register_handler (pTNETWIF->hTNETWArb,
260 status = (TI_STATUS)whal_hwAccess_Config (pTNETWIF->hHwAccess,
261 pTNETWIF->hReport,
262 pTNETWIF->uRegBaseAddr,
263 pTNETWIF->uMemBaseAddr,
265 pTNETWIF->hOs);
269 pTNETWIF->status = TNETWIF_PENDING;
274 pTNETWIF->status = TNETWIF_ERROR;
278 pTNETWIF->status = TNETWIF_COMPLETE;
282 pTNETWIF->uInitStage ++;
293 pTNETWIF->status = TNETWIF_PENDING;
298 pTNETWIF->status = TNETWIF_COMPLETE;
303 pTNETWIF->uInitStage ++;
313 pTNETWIF->status = TNETWIF_PENDING;
318 pTNETWIF->status = TNETWIF_COMPLETE;
323 pTNETWIF->fCb (pTNETWIF->hCb, module_id, pTNETWIF->status);
324 pTNETWIF->uInitStage = 0;
326 WLAN_REPORT_INIT (pTNETWIF->hReport, TNETW_IF_MODULE_LOG,
345 TNETWIF_t *pTNETWIF = (TNETWIF_t *)hTNETWIF;
347 pTNETWIF->hReport = hReport;
348 pTNETWIF->uInitStage = 0;
349 pTNETWIF->uRegBaseAddr = uRegBaseAddr;
350 pTNETWIF->uMemBaseAddr = uMemBaseAddr;
351 pTNETWIF->fCb = fCb;
352 pTNETWIF->hCb = hCb;
353 pTNETWIF->status = TNETWIF_PENDING;
356 os_memoryZero(pTNETWIF->hOs, (void*)tDebug, sizeof(tDebug));
361 TNETWArb_Config (pTNETWIF->hTNETWArb, hReport, pTNETWIF->hELPCtrl);
364 elpCtrl_Configure (pTNETWIF->hELPCtrl, hTNETWIF, TNETWArb_TxnCb);
369 return pTNETWIF->status;
386 TNETWIF_t *pTNETWIF = (TNETWIF_t *)hTNETWIF;
390 whal_hwAccess_Stop (pTNETWIF->hHwAccess);
410 TNETWIF_t *pTNETWIF = (TNETWIF_t *)hTNETWIF;
413 TNETWIF_TRACE(pTNETWIF->hOs,Start_FUNC,module_id,fCb)
416 status = TNETWArb_Start (pTNETWIF->hTNETWArb, module_id, hCb, fCb);
435 TNETWIF_t *pTNETWIF = (TNETWIF_t *)hTNETWIF;
438 TNETWIF_TRACE(pTNETWIF->hOs,Restart_FUNC,module_id,fCb)
441 status = TNETWArb_Restart (pTNETWIF->hTNETWArb, module_id, hCb, fCb);
460 TNETWIF_t *pTNETWIF = (TNETWIF_t *)hTNETWIF;
463 TNETWIF_TRACE(pTNETWIF->hOs,Finish_FUNC,module_id,fCb)
466 status = TNETWArb_Finish (pTNETWIF->hTNETWArb, module_id, hCb, fCb);
480 TNETWIF_t *pTNETWIF = (TNETWIF_t *)hTNETWIF;
482 TNETWIF_TRACE(pTNETWIF->hOs,UnMux_FUNC,0xFF,0)
484 return (TI_STATUS)elpCtrl_UnMux(pTNETWIF->hELPCtrl);
499 TNETWIF_t *pTNETWIF = (TNETWIF_t *)hTNETWIF;
501 TNETWIF_TRACE(pTNETWIF->hOs,BusComplete_FUNC,0xFF,0)
503 TNETWArb_CallTxnCb (pTNETWIF->hTNETWArb);
516 TNETWIF_t *pTNETWIF = (TNETWIF_t *)hTNETWIF;
518 elpCtrl_Mode (pTNETWIF->hELPCtrl, mode);
560 TNETWIF_t *pTNETWIF = (TNETWIF_t *)hTNETWIF;
564 status = whal_hwAccess_WriteMem (pTNETWIF->hHwAccess, addr, data, len);
588 TNETWIF_t *pTNETWIF = (TNETWIF_t *)hTNETWIF;
592 status = (TI_STATUS)whal_hwAccess_ReadMem (pTNETWIF->hHwAccess, addr, data, len);
613 TNETWIF_t *pTNETWIF = (TNETWIF_t *)hTNETWIF;
617 status = (TI_STATUS)whal_hwAccess_ReadReg (pTNETWIF->hHwAccess, addr, data);
638 TNETWIF_t *pTNETWIF = (TNETWIF_t *)hTNETWIF;
642 status = (TI_STATUS)whal_hwAccess_WriteReg (pTNETWIF->hHwAccess, addr, data);
675 TNETWIF_t *pTNETWIF = (TNETWIF_t *)hTNETWIF;
677 TNETWIF_TRACE(pTNETWIF->hOs,ReadMem_FUNC,module_id,data)
680 TNETWArb_register_handler (pTNETWIF->hTNETWArb, module_id, fCb, hCb);
683 return (TI_STATUS)whal_hwAccess_ReadMemAsync (pTNETWIF->hHwAccess, addr, data, len);
708 TNETWIF_t *pTNETWIF = (TNETWIF_t *)hTNETWIF;
710 TNETWIF_TRACE(pTNETWIF->hOs,WriteMem_FUNC,module_id,*(UINT32*)(data + TNETWIF_WRITE_OFFSET_BYTES))
713 TNETWArb_register_handler (pTNETWIF->hTNETWArb, module_id, fCb, hCb);
716 return whal_hwAccess_WriteMemAsync (pTNETWIF->hHwAccess, addr, data, len);
733 TNETWIF_t *pTNETWIF = (TNETWIF_t *)hTNETWIF;
735 TNETWIF_TRACE(pTNETWIF->hOs,ReadReg_FUNC,module_id,data)
738 TNETWArb_register_handler (pTNETWIF->hTNETWArb, module_id, fCb, hCb);
741 return (TI_STATUS)whal_hwAccess_ReadRegAsync (pTNETWIF->hHwAccess, addr, data);
758 TNETWIF_t *pTNETWIF = (TNETWIF_t *)hTNETWIF;
760 TNETWIF_TRACE(pTNETWIF->hOs,WriteReg_FUNC,module_id,data)
763 TNETWArb_register_handler (pTNETWIF->hTNETWArb, module_id, fCb, hCb);
766 return (TI_STATUS)whal_hwAccess_WriteRegAsync (pTNETWIF->hHwAccess, addr, data);
783 TNETWIF_t *pTNETWIF = (TNETWIF_t *)hTNETWIF;
786 return (TI_STATUS)whal_hwAccess_WriteELP (pTNETWIF->hHwAccess, data);
804 TNETWIF_t *pTNETWIF = (TNETWIF_t *)hTNETWIF;
806 TNETWIF_TRACE(pTNETWIF->hOs,WriteElp_FUNC,module_id,data)
810 TNETWArb_register_handler (pTNETWIF->hTNETWArb, module_id, fCb, hCb);
813 return (TI_STATUS)whal_hwAccess_WriteELPAsync (pTNETWIF->hHwAccess, data, fCb != NULL, bMore);
829 TNETWIF_t *pTNETWIF = (TNETWIF_t *)hTNETWIF;
831 TNETWIF_TRACE(pTNETWIF->hOs,ReadElp_FUNC,module_id,data)
835 TNETWArb_register_handler (pTNETWIF->hTNETWArb, module_id, fCb, hCb);
838 return (TI_STATUS)whal_hwAccess_ReadELPAsync (pTNETWIF->hHwAccess, data, fCb != NULL, bMore);
862 TNETWIF_t *pTNETWIF = (TNETWIF_t *)hTNETWIF;
865 Value = whal_hwAccess_GetU08 (pTNETWIF->hHwAccess, Addr);
885 TNETWIF_t *pTNETWIF = (TNETWIF_t *)hTNETWIF;
887 whal_hwAccess_SetU08 (pTNETWIF->hHwAccess, Addr, Val);
893 TNETWIF_t *pTNETWIF = (TNETWIF_t *)hTNETWIF;
895 whal_hwAccess_ResetU08_Bits (pTNETWIF->hHwAccess, Addr, BitsVal);
902 TNETWIF_t *pTNETWIF = (TNETWIF_t *)hTNETWIF;
905 U16Value = whal_hwAccess_GetU16 (pTNETWIF->hHwAccess,Addr);
913 TNETWIF_t *pTNETWIF
915 whal_hwAccess_SetU16 (pTNETWIF->hHwAccess, Addr, Val);
921 TNETWIF_t *pTNETWIF = (TNETWIF_t *)hTNETWIF;
923 whal_hwAccess_SetU16_Bits (pTNETWIF->hHwAccess,Addr,BitsVal);
929 TNETWIF_t *pTNETWIF = (TNETWIF_t *)hTNETWIF;
931 whal_hwAccess_ResetU16_Bits (pTNETWIF->hHwAccess, Addr, BitsVal);
937 TNETWIF_t *pTNETWIF = (TNETWIF_t *)hTNETWIF;
940 U32Value = whal_hwAccess_GetU32 (pTNETWIF->hHwAccess, Addr);
948 TNETWIF_t *pTNETWIF = (TNETWIF_t *)hTNETWIF;
950 whal_hwAccess_SetU32 (pTNETWIF->hHwAccess ,Addr, Val);
957 TNETWIF_t *pTNETWIF = (TNETWIF_t *)hTNETWIF;
959 whal_hwAccess_SetU32_Bits (pTNETWIF->hHwAccess, Addr, BitsVal);
966 TNETWIF_t *pTNETWIF = (TNETWIF_t *)hTNETWIF;
968 whal_hwAccess_ResetU32_Bits (pTNETWIF->hHwAccess, Addr, BitsVal);
978 TNETWIF_t *pTNETWIF = (TNETWIF_t *)hTNETWIF;
980 whal_hwAccess_RegSetBitVal (pTNETWIF->hHwAccess, RegAddr, BitVal);
987 TNETWIF_t *pTNETWIF = (TNETWIF_t *)hTNETWIF;
989 whal_hwAccess_RegResetBitVal (pTNETWIF->hHwAccess, RegAddr, BitVal);
996 TNETWIF_t *pTNETWIF = (TNETWIF_t *)hTNETWIF;
999 status = whal_hwAccess_RegIsBitSet (pTNETWIF->hHwAccess, RegAddr, BitVal);
1029 TNETWIF_t *pTNETWIF = (TNETWIF_t *)hTNETWIF;
1031 return (TI_STATUS)whal_hwAccess_SetPartitions (pTNETWIF->hHwAccess, partitionMode, partition_start);
1039 TNETWIF_t *pTNETWIF = (TNETWIF_t *)hTNETWIF;
1042 TNETWArb_register_handler (pTNETWIF->hTNETWArb, module_id, fCb, hCb);
1044 return (TI_STATUS)whal_hwAccess_SetPartitionsAsync (pTNETWIF->hHwAccess, partitionMode, partition_start);
1066 TNETWIF_t *pTNETWIF = (TNETWIF_t *)hTNETWIF;
1068 elpCtrl_RegisterFailureEventCB (pTNETWIF->hELPCtrl, failureEventCB, hFailureEventObj);
1090 TNETWIF_t *pTNETWIF = (TNETWIF_t *)hTNETWIF;
1091 whal_hwAccess_RegisterForErrorCB (pTNETWIF->hHwAccess, failureEventCB, hFailureEventObj);