staging: wilc1000: remove WILC_Uint32
Subsystems (2)
PATCH v3 4/9 staging: wilc1000: remove WILC_Uint32
Use u32 instead of WILC_Uint32.
Signed-off-by Chaehyun Lim <[email protected]>
---
V3: rebased on the top of staging-testing
V2: remove the spaces on the subject
capitalize the name on the From and the Signed-off-by
drivers/staging/wilc1000/coreconfigurator.c | 74 +++--- drivers/staging/wilc1000/coreconfigurator.h | 16 +- drivers/staging/wilc1000/fifo_buffer.c | 20 +- drivers/staging/wilc1000/fifo_buffer.h | 22 +- drivers/staging/wilc1000/host_interface.c | 266 +++++++++++----------- drivers/staging/wilc1000/host_interface.h | 70 +++--- drivers/staging/wilc1000/linux_mon.c | 4 +- drivers/staging/wilc1000/linux_wlan.c | 12 +- drivers/staging/wilc1000/wilc_memory.c | 14 +- drivers/staging/wilc1000/wilc_memory.h | 18 +- drivers/staging/wilc1000/wilc_msgqueue.c | 6 +- drivers/staging/wilc1000/wilc_msgqueue.h | 6 +- drivers/staging/wilc1000/wilc_oswrapper.h | 1 - drivers/staging/wilc1000/wilc_platform.h | 4 +- drivers/staging/wilc1000/wilc_sleep.c | 4 +- drivers/staging/wilc1000/wilc_sleep.h | 2 +- drivers/staging/wilc1000/wilc_strutils.c | 14 +- drivers/staging/wilc1000/wilc_strutils.h | 14 +- drivers/staging/wilc1000/wilc_timer.c | 2 +- drivers/staging/wilc1000/wilc_timer.h | 2 +- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 54 ++--- drivers/staging/wilc1000/wilc_wfi_netdevice.h | 6 +- drivers/staging/wilc1000/wilc_wlan.c | 6 +- drivers/staging/wilc1000/wilc_wlan_cfg.c | 2 +- drivers/staging/wilc1000/wilc_wlan_if.h | 4 +- 25 files changed, 321 insertions(+), 322 deletions(-)
drivers/staging/wilc1000/coreconfigurator.c +37 -37
@@ -159,9 +159,9 @@ typedef struct {/* Extern Function Declarations */ /*****************************************************************************/ extern WILC_Sint32 SendRawPacket (WILC_Sint8 *ps8Packet,WILC_Sint32 s32PacketLen); -extern void NetworkInfoReceived (u8 *pu8Buffer,WILC_Uint32 u32Length); -extern void GnrlAsyncInfoReceived (u8 *pu8Buffer,WILC_Uint32 u32Length); -extern void host_int_ScanCompleteReceived (u8 *pu8Buffer,WILC_Uint32 u32Length); +extern void NetworkInfoReceived (u8 *pu8Buffer,u32 u32Length); +extern void GnrlAsyncInfoReceived (u8 *pu8Buffer,u32 u32Length); +extern void host_int_ScanCompleteReceived (u8 *pu8Buffer,u32 u32Length);/*****************************************************************************/ /* Global Variables */ /*****************************************************************************/
@@ -359,8 +359,8 @@ INLINE u16 extract_mac_addr(WILC_Char *str, u8 *buff)/* integers. */ INLINE void create_mac_addr(u8 *str, u8 *buff) { -WILC_Uint32 i =0 ; -WILC_Uint32 j =0 ; +u32 i =0 ; +u32 j =0 ;for (i =0 ; i <MAC_ADDR_LEN ; i++) { str[j++] =get_hex_char ((u8)((buff[i] >>4 ) &0x0F ));
@@ -376,7 +376,7 @@ INLINE void create_mac_addr(u8 *str, u8 *buff)/* inet_addr is platform independent. */ /* ips=>IP Address String in dotted decimal format */ /* ipn=>Pointer to IP Address in integer format */ -INLINE u8 conv_ip_to_int(u8 *ips, WILC_Uint32 *ipn) +INLINE u8 conv_ip_to_int(u8 *ips, u32 *ipn) {u8 i =0 ;u8 ipb =0 ;
@@ -403,7 +403,7 @@ INLINE u8 conv_ip_to_int(u8 *ips, WILC_Uint32 *ipn)/* decimal string format. Alternative to std library fn inet_ntoa(). */ /* ips=>Buffer to hold IP Address String dotted decimal format (Min 17B) */ /* ipn=>IP Address in integer format */ -INLINE u8 conv_int_to_ip(u8 *ips, WILC_Uint32 ipn) +INLINE u8 conv_int_to_ip(u8 *ips, u32 ipn) {u8 i =0 ;u8 ipb =0 ;
@@ -442,7 +442,7 @@ INLINE u8 conv_int_to_ip(u8 *ips, WILC_Uint32 ipn)return i; } -INLINE tenuWIDtype get_wid_type(WILC_Uint32 wid_num) +INLINE tenuWIDtype get_wid_type(u32 wid_num) {/* Check for iconfig specific WID types first */ if ((wid_num = WID_BSSID) ||
@@ -486,10 +486,10 @@ INLINE u16 get_beacon_period(u8 *data)return bcn_per; } -INLINE WILC_Uint32 get_beacon_timestamp_lo(u8 *data) +INLINE u32 get_beacon_timestamp_lo(u8 *data) { -WILC_Uint32 time_stamp =0 ; -WILC_Uint32 index =MAC_HDR_LEN ; +u32 time_stamp =0 ; +u32 index =MAC_HDR_LEN ; time_stamp |= data[index++]; time_stamp |= (data[index++] <<8 );
@@ -812,8 +812,8 @@ WILC_Sint32 ParseNetworkInfo(u8 *pu8MsgBuffer, tstrNetworkInfo **ppstrNetworkInfu8 *pu8IEs =0 ;u16 u16IEsLen =0 ;u8 u8index =0 ; -WILC_Uint32 u32Tsf_Lo; -WILC_Uint32 u32Tsf_Hi; +u32 u32Tsf_Lo; +u32 u32Tsf_Hi; pstrNetworkInfo = (tstrNetworkInfo *)WILC_MALLOC (sizeof (tstrNetworkInfo));WILC_memset ((void *)(pstrNetworkInfo),0 ,sizeof (tstrNetworkInfo));
@@ -924,7 +924,7 @@ WILC_Sint32 DeallocateNetworkInfo(tstrNetworkInfo *pstrNetworkInfo)* @date 2 Apr 2012 * @version 1.0 */ -WILC_Sint32 ParseAssocRespInfo (u8 *pu8Buffer,WILC_Uint32 u32BufferLen, +WILC_Sint32 ParseAssocRespInfo (u8 *pu8Buffer,u32 u32BufferLen,tstrConnectRespInfo **ppstrConnectRespInfo) {WILC_Sint32 s32Error =WILC_SUCCESS ;
@@ -1001,17 +1001,17 @@ WILC_Sint32 DeallocateAssocRespInfo(tstrConnectRespInfo *pstrConnectRespInfo)#ifndef CONNECT_DIRECT WILC_Sint32 ParseSurveyResults (u8 ppu8RcvdSiteSurveyResults[][MAX_SURVEY_RESULT_FRAG_SIZE ],wid_site_survey_reslts_s **ppstrSurveyResults, -WILC_Uint32 *pu32SurveyResultsCount) +u32 *pu32SurveyResultsCount) {WILC_Sint32 s32Error =WILC_SUCCESS ;wid_site_survey_reslts_s *pstrSurveyResults =NULL ; -WILC_Uint32 u32SurveyResultsCount =0 ; -WILC_Uint32 u32SurveyBytesLength =0 ; +u32 u32SurveyResultsCount =0 ; +u32 u32SurveyBytesLength =0 ;u8 *pu8BufferPtr; -WILC_Uint32 u32RcvdSurveyResultsNum =2 ; +u32 u32RcvdSurveyResultsNum =2 ;u8 u8ReadSurveyResFragNum; -WILC_Uint32 i; -WILC_Uint32 j; +u32 i; +u32 j;for (i =0 ; i < u32RcvdSurveyResultsNum; i++) { u32SurveyBytesLength = ppu8RcvdSiteSurveyResults[i][0 ];
@@ -1208,8 +1208,8 @@ void ProcessShortWid(WILC_Char *pcPacket, WILC_Sint32 *ps32PktLen,void ProcessIntWid (WILC_Char *pcPacket,WILC_Sint32 *ps32PktLen,tstrWID *pstrWID,WILC_Sint8 *ps8WidVal) { -WILC_Uint32 *pu32val = (WILC_Uint32 *)ps8WidVal; -WILC_Uint32 u32val =0 ; +u32 *pu32val = (u32 *)ps8WidVal; +u32 u32val =0 ;WILC_Sint32 s32PktLen = *ps32PktLen;if (pstrWID =NULL ) {PRINT_WRN (CORECONFIG_DBG ,"Can't set INT val 0x%x , NULL structure\n" , u32val);
@@ -1224,7 +1224,7 @@ void ProcessIntWid(WILC_Char *pcPacket, WILC_Sint32 *ps32PktLen, u32val = *pu32val;/* Length */ - pcPacket[s32PktLen++] =sizeof (WILC_Uint32); + pcPacket[s32PktLen++] =sizeof (u32);/* Value */ pcPacket[s32PktLen++] = (u8)(u32val &0xFF );
@@ -1266,7 +1266,7 @@ void ProcessIntWid(WILC_Char *pcPacket, WILC_Sint32 *ps32PktLen,void ProcessIPwid (WILC_Char *pcPacket,WILC_Sint32 *ps32PktLen,tstrWID *pstrWID,u8 *pu8ip) { -WILC_Uint32 u32val =0 ; +u32 u32val =0 ;WILC_Sint32 s32PktLen = *ps32PktLen;if (pstrWID =NULL ) {
@@ -1280,7 +1280,7 @@ void ProcessIPwid(WILC_Char *pcPacket, WILC_Sint32 *ps32PktLen,if (g_oper_mode =SET_CFG ) {/* Length */ - pcPacket[s32PktLen++] =sizeof (WILC_Uint32); + pcPacket[s32PktLen++] =sizeof (u32);/* Convert the IP Address String to Integer */ conv_ip_to_int (pu8ip, &u32val);
@@ -1521,14 +1521,14 @@ WILC_Sint32 further_process_response(u8 *resp,u16 u16WIDid, u16 cfg_len, WILC_Bool process_wid_num, - WILC_Uint32 cnt, + u32 cnt, tstrWID *pstrWIDresult) { - WILC_Uint32 retval = 0; -WILC_Uint32 idx =0 ; + u32 retval = 0; +u32 idx =0 ;u8 cfg_chr =0 ;u16 cfg_sht =0 ; -WILC_Uint32 cfg_int =0 ; +u32 cfg_int =0 ;u8 cfg_str[256 ] = {0 };tenuWIDtype enuWIDtype =WID_UNDEF ;
@@ -1558,7 +1558,7 @@ WILC_Sint32 further_process_response(u8 *resp,case WID_INT : { -WILC_Uint32 *pu32val = (WILC_Uint32 *)(pstrWIDresult->ps8WidVal); +u32 *pu32val = (u32 *)(pstrWIDresult->ps8WidVal); cfg_int =MAKE_WORD32 (MAKE_WORD16 (resp[idx], resp[idx +1 ]), MAKE_WORD16(resp[idx + 2], resp[idx + 3])
@@ -1694,9 +1694,9 @@ WILC_Sint32 ParseResponse(u8 *resp, tstrWID *pstrWIDcfgResult)u16 cfg_len =0 ;tenuWIDtype enuWIDtype =WID_UNDEF ;WILC_Bool num_wid_processed =WILC_FALSE ; -WILC_Uint32 cnt =0 ; -WILC_Uint32 idx =0 ; -WILC_Uint32 ResCnt =0 ; +u32 cnt =0 ; +u32 idx =0 ; +u32 ResCnt =0 ;/* Check whether the received frame is a valid response */ if (RESP_MSG_TYPE != resp[0 ]) {PRINT_INFO (CORECONFIG_DBG ,"Received Message format incorrect.\n" );
@@ -1858,10 +1858,10 @@ WILC_Sint32 CreatePacketHeader(WILC_Char *pcpacket, WILC_Sint32 *ps32PacketLengt*/ WILC_Sint32 CreateConfigPacket (WILC_Sint8 *ps8packet,WILC_Sint32 *ps32PacketLength, -tstrWID *pstrWIDs,WILC_Uint32 u32WIDsCount) +tstrWID *pstrWIDs,u32 u32WIDsCount) {WILC_Sint32 s32Error =WILC_SUCCESS ; -WILC_Uint32 u32idx =0 ; +u32 u32idx =0 ; *ps32PacketLength =MSG_HEADER_LEN ;for (u32idx =0 ; u32idx < u32WIDsCount; u32idx++) {switch (pstrWIDs[u32idx].enuWIDtype) {
@@ -1950,7 +1950,7 @@ WILC_Sint32 ConfigWaitResponse(WILC_Char *pcRespBuffer, WILC_Sint32 s32MaxRespBu*/ #ifdef SIMULATION WILC_Sint32 SendConfigPkt (u8 u8Mode,tstrWID *pstrWIDs, -WILC_Uint32 u32WIDsCount,WILC_Bool bRespRequired,WILC_Uint32 drvHandler) +u32 u32WIDsCount,WILC_Bool bRespRequired,u32 drvHandler) {WILC_Sint32 s32Error =WILC_SUCCESS ;WILC_Sint32 err =WILC_SUCCESS ;
@@ -2129,7 +2129,7 @@ extern wilc_wlan_oup_t *gpstrWlanOps;* @version 1.0 */ WILC_Sint32 SendConfigPkt (u8 u8Mode,tstrWID *pstrWIDs, -WILC_Uint32 u32WIDsCount,WILC_Bool bRespRequired,WILC_Uint32 drvHandler) +u32 u32WIDsCount,WILC_Bool bRespRequired,u32 drvHandler) {WILC_Sint32 counter =0 , ret =0 ;if (gpstrWlanOps =NULL ) {
drivers/staging/wilc1000/coreconfigurator.h +8 -8
@@ -66,7 +66,7 @@ extern u16 g_num_total_switches;/* Function Macros */ /*****************************************************************************/ #define MAKE_WORD16 (lsb, msb) ((((u16)(msb) << 8) & 0xFF00) | (lsb)) -#define MAKE_WORD32 (lsw, msw) ((((WILC_Uint32)(msw) << 16) & 0xFFFF0000) | (lsw)) +#define MAKE_WORD32 (lsw, msw) ((((u32)(msw) << 16) & 0xFFFF0000) | (lsw))/*****************************************************************************/
@@ -423,7 +423,7 @@ typedef struct {u8 u8Found;#endif #ifdef WILC_P2P -WILC_Uint32 u32Tsf;/* time-stamp [Low only 32 bit] */ +u32 u32Tsf;/* time-stamp [Low only 32 bit] */ #endif u8 *pu8IEs;u16 u16IEsLen;
@@ -476,23 +476,23 @@ extern WILC_Sint32 CoreConfiguratorInit(void);extern WILC_Sint32 CoreConfiguratorDeInit (void );extern WILC_Sint32 SendConfigPkt (u8 u8Mode,tstrWID *pstrWIDs, -WILC_Uint32 u32WIDsCount,WILC_Bool bRespRequired,WILC_Uint32 drvHandler); +u32 u32WIDsCount,WILC_Bool bRespRequired,u32 drvHandler);extern WILC_Sint32 ParseNetworkInfo (u8 *pu8MsgBuffer,tstrNetworkInfo **ppstrNetworkInfo);extern WILC_Sint32 DeallocateNetworkInfo (tstrNetworkInfo *pstrNetworkInfo); -extern WILC_Sint32 ParseAssocRespInfo (u8 *pu8Buffer,WILC_Uint32 u32BufferLen, +extern WILC_Sint32 ParseAssocRespInfo (u8 *pu8Buffer,u32 u32BufferLen,tstrConnectRespInfo **ppstrConnectRespInfo);extern WILC_Sint32 DeallocateAssocRespInfo (tstrConnectRespInfo *pstrConnectRespInfo);#ifndef CONNECT_DIRECT extern WILC_Sint32 ParseSurveyResults (u8 ppu8RcvdSiteSurveyResults[][MAX_SURVEY_RESULT_FRAG_SIZE ], -wid_site_survey_reslts_s **ppstrSurveyResults,WILC_Uint32 *pu32SurveyResultsCount); +wid_site_survey_reslts_s **ppstrSurveyResults,u32 *pu32SurveyResultsCount);extern WILC_Sint32 DeallocateSurveyResults (wid_site_survey_reslts_s *pstrSurveyResults);#endif extern WILC_Sint32 SendRawPacket (WILC_Sint8 *pspacket,WILC_Sint32 s32PacketLen); -extern void NetworkInfoReceived (u8 *pu8Buffer,WILC_Uint32 u32Length); -void GnrlAsyncInfoReceived (u8 *pu8Buffer,WILC_Uint32 u32Length); -void host_int_ScanCompleteReceived (u8 *pu8Buffer,WILC_Uint32 u32Length); +extern void NetworkInfoReceived (u8 *pu8Buffer,u32 u32Length); +void GnrlAsyncInfoReceived (u8 *pu8Buffer,u32 u32Length); +void host_int_ScanCompleteReceived (u8 *pu8Buffer,u32 u32Length);#endif
drivers/staging/wilc1000/fifo_buffer.c +8 -10
@@ -5,9 +5,9 @@ -WILC_Uint32 FIFO_InitBuffer (tHANDLE *hBuffer,WILC_Uint32 u32BufferLength) +u32 FIFO_InitBuffer (tHANDLE *hBuffer,u32 u32BufferLength) { -WILC_Uint32 u32Error =0 ; +u32 u32Error =0 ;tstrFifoHandler *pstrFifoHandler =WILC_MALLOC (sizeof (tstrFifoHandler));if (pstrFifoHandler) {WILC_memset (pstrFifoHandler,0 ,sizeof (tstrFifoHandler));
@@ -27,9 +27,9 @@ WILC_Uint32 FIFO_InitBuffer(tHANDLE *hBuffer, WILC_Uint32 u32BufferLength) }return u32Error; } -WILC_Uint32 FIFO_DeInit (tHANDLE hFifo) +u32 FIFO_DeInit (tHANDLE hFifo) { -WILC_Uint32 u32Error =0 ; +u32 u32Error =0 ;tstrFifoHandler *pstrFifoHandler = (tstrFifoHandler *) hFifo;if (pstrFifoHandler) {if (pstrFifoHandler->pu8Buffer) {
@@ -45,9 +45,9 @@ WILC_Uint32 FIFO_DeInit(tHANDLE hFifo)return u32Error; } -WILC_Uint32 FIFO_ReadBytes (tHANDLE hFifo,u8 *pu8Buffer,WILC_Uint32 u32BytesToRead,WILC_Uint32 *pu32BytesRead) +u32 FIFO_ReadBytes (tHANDLE hFifo,u8 *pu8Buffer,u32 u32BytesToRead,u32 *pu32BytesRead) { -WILC_Uint32 u32Error =0 ; +u32 u32Error =0 ;tstrFifoHandler *pstrFifoHandler = (tstrFifoHandler *) hFifo;if (pstrFifoHandler && pu32BytesRead) {if (pstrFifoHandler->u32TotalBytes) {
@@ -66,7 +66,7 @@ WILC_Uint32 FIFO_ReadBytes(tHANDLE hFifo, u8 *pu8Buffer, WILC_Uint32 u32BytesToR pstrFifoHandler->u32TotalBytes -= u32BytesToRead; }else { - WILC_Uint32 u32FirstPart + u32 u32FirstPart pstrFifoHandler->u32BufferLength - pstrFifoHandler->u32ReadOffset;WILC_memcpy (pu8Buffer, pstrFifoHandler->pu8Buffer + pstrFifoHandler->u32ReadOffset, u32FirstPart);
@@ -86,9 +86,9 @@ WILC_Uint32 FIFO_ReadBytes(tHANDLE hFifo, u8 *pu8Buffer, WILC_Uint32 u32BytesToRreturn u32Error; } -WILC_Uint32 FIFO_WriteBytes (tHANDLE hFifo,u8 *pu8Buffer,WILC_Uint32 u32BytesToWrite,WILC_Bool bForceOverWrite) +u32 FIFO_WriteBytes (tHANDLE hFifo,u8 *pu8Buffer,u32 u32BytesToWrite,WILC_Bool bForceOverWrite) { -WILC_Uint32 u32Error =0 ; +u32 u32Error =0 ;tstrFifoHandler *pstrFifoHandler = (tstrFifoHandler *) hFifo;if (pstrFifoHandler) {if (u32BytesToWrite < pstrFifoHandler->u32BufferLength) {
@@ -103,7 +103,7 @@ WILC_Uint32 FIFO_WriteBytes(tHANDLE hFifo, u8 *pu8Buffer, WILC_Uint32 u32BytesTo pstrFifoHandler->u32TotalBytes += u32BytesToWrite; }else { - WILC_Uint32 u32FirstPart + u32 u32FirstPart pstrFifoHandler->u32BufferLength - pstrFifoHandler->u32WriteOffset;WILC_memcpy (pstrFifoHandler->pu8Buffer + pstrFifoHandler->u32WriteOffset, pu8Buffer, u32FirstPart);
drivers/staging/wilc1000/fifo_buffer.h +11 -11
@@ -6,18 +6,18 @@typedef struct {u8 *pu8Buffer; -WILC_Uint32 u32BufferLength; -WILC_Uint32 u32WriteOffset; -WILC_Uint32 u32ReadOffset; -WILC_Uint32 u32TotalBytes; +u32 u32BufferLength; +u32 u32WriteOffset; +u32 u32ReadOffset; +u32 u32TotalBytes;struct semaphore SemBuffer; }tstrFifoHandler ; -extern WILC_Uint32 FIFO_InitBuffer (tHANDLE *hBuffer, -WILC_Uint32 u32BufferLength); -extern WILC_Uint32 FIFO_DeInit (tHANDLE hFifo); -extern WILC_Uint32 FIFO_ReadBytes (tHANDLE hFifo,u8 *pu8Buffer, -WILC_Uint32 u32BytesToRead,WILC_Uint32 *pu32BytesRead); -extern WILC_Uint32 FIFO_WriteBytes (tHANDLE hFifo,u8 *pu8Buffer, -WILC_Uint32 u32BytesToWrite,WILC_Bool bForceOverWrite); +extern u32 FIFO_InitBuffer (tHANDLE *hBuffer, +u32 u32BufferLength); +extern u32 FIFO_DeInit (tHANDLE hFifo); +extern u32 FIFO_ReadBytes (tHANDLE hFifo,u8 *pu8Buffer, +u32 u32BytesToRead,u32 *pu32BytesRead); +extern u32 FIFO_WriteBytes (tHANDLE hFifo,u8 *pu8Buffer, +u32 u32BytesToWrite,WILC_Bool bForceOverWrite);
drivers/staging/wilc1000/host_interface.c +133 -133
930 lines not on this page · raw message
drivers/staging/wilc1000/host_interface.h +35 -35
223 lines not on this page · raw message
drivers/staging/wilc1000/linux_mon.c +2 -2
@@ -299,7 +299,7 @@ static netdev_tx_t WILC_WFI_mon_xmit(struct sk_buff *skb, struct net_device *dev) {struct ieee80211_radiotap_header *rtap_hdr; -WILC_Uint32 rtap_len, i, ret =0 ; +u32 rtap_len, i, ret =0 ;struct WILC_WFI_mon_priv *mon_priv;struct sk_buff *skb2;
@@ -526,7 +526,7 @@ struct net_device *WILC_WFI_init_mon_interface(const char *name, struct net_devi { -WILC_Uint32 ret =WILC_SUCCESS ; +u32 ret =WILC_SUCCESS ;struct WILC_WFI_mon_priv *priv;/*If monitor interface is already initialized, return it*/
drivers/staging/wilc1000/linux_wlan.c +6 -6
@@ -561,7 +561,7 @@ static void deinit_irq(linux_wlan_t *nic)static void linux_wlan_msleep (uint32_t msc) {if (msc <=4000000 ) { -WILC_Uint32 u32Temp = msc *1000 ; +u32 u32Temp = msc *1000 ;usleep_range (u32Temp, u32Temp); }else {msleep (msc);
@@ -634,7 +634,7 @@ static void linux_wlan_lock(void *vp) } } -static int linux_wlan_lock_timeout (void *vp,WILC_Uint32 timeout) +static int linux_wlan_lock_timeout (void *vp,u32 timeout) {int error =-1 ;PRINT_D (LOCK_DBG ,"Locking %p\n" , vp);
@@ -1124,7 +1124,7 @@ static int linux_wlan_init_test_config(struct net_device *dev, linux_wlan_t *p_n goto _fail_; } - *(int *)c_val = (WILC_Uint32 )pstrWFIDrv; + *(int *)c_val = (u32 )pstrWFIDrv;if (!g_linux_wlan->oup.wlan_cfg_set (1 ,WID_SET_DRV_HANDLER , c_val,4 ,0 ,0 )) goto _fail_;
@@ -1364,7 +1364,7 @@ static int linux_wlan_init_test_config(struct net_device *dev, linux_wlan_t *p_n goto _fail_; c_val[0 ] =1 ;/* Enable N with immediate block ack. */ -if (!g_linux_wlan->oup.wlan_cfg_set (0 ,WID_11N_IMMEDIATE_BA_ENABLED , c_val,1 ,1 , (WILC_Uint32 )pstrWFIDrv)) +if (!g_linux_wlan->oup.wlan_cfg_set (0 ,WID_11N_IMMEDIATE_BA_ENABLED , c_val,1 ,1 , (u32 )pstrWFIDrv)) goto _fail_;return 0 ;
@@ -2100,7 +2100,7 @@ int mac_open(struct net_device *ndev)for (i =0 ; i < g_linux_wlan->u8NoIfcs; i++) {if (ndev = g_linux_wlan->strInterfaceInfo[i].wilc_netdev) {memcpy (g_linux_wlan->strInterfaceInfo[i].aSrcAddress, mac_add,ETH_ALEN ); - g_linux_wlan->strInterfaceInfo[i].drvHandler = (WILC_Uint32 )priv->hWILCWFIDrv; + g_linux_wlan->strInterfaceInfo[i].drvHandler = (u32 )priv->hWILCWFIDrv;break ; } }
@@ -2376,7 +2376,7 @@ int mac_ioctl(struct net_device *ndev, struct ifreq *req, int cmd)u8 *buff =NULL ;WILC_Sint8 rssi; -WILC_Uint32 size =0 , length =0 ; +u32 size =0 , length =0 ;perInterface_wlan_t *nic;struct WILC_WFI_priv *priv;WILC_Sint32 s32Error =WILC_SUCCESS ;
drivers/staging/wilc1000/wilc_memory.c +7 -7
@@ -6,8 +6,8 @@* @date 18 Aug 2010 * @version 1.0 */ -void *WILC_MemoryAlloc (WILC_Uint32 u32Size,tstrWILC_MemoryAttrs *strAttrs, -WILC_Char *pcFileName,WILC_Uint32 u32LineNo) +void *WILC_MemoryAlloc (u32 u32Size,tstrWILC_MemoryAttrs *strAttrs, +WILC_Char *pcFileName,u32 u32LineNo) {if (u32Size >0 ) {return kmalloc (u32Size,GFP_ATOMIC );
@@ -21,8 +21,8 @@ void *WILC_MemoryAlloc(WILC_Uint32 u32Size, tstrWILC_MemoryAttrs *strAttrs,* @date 18 Aug 2010 * @version 1.0 */ -void *WILC_MemoryCalloc (WILC_Uint32 u32Size,tstrWILC_MemoryAttrs *strAttrs, -WILC_Char *pcFileName,WILC_Uint32 u32LineNo) +void *WILC_MemoryCalloc (u32 u32Size,tstrWILC_MemoryAttrs *strAttrs, +WILC_Char *pcFileName,u32 u32LineNo) {return kcalloc (u32Size,1 ,GFP_KERNEL ); }
@@ -32,8 +32,8 @@ void *WILC_MemoryCalloc(WILC_Uint32 u32Size, tstrWILC_MemoryAttrs *strAttrs,* @date 18 Aug 2010 * @version 1.0 */ -void *WILC_MemoryRealloc (void *pvOldBlock,WILC_Uint32 u32NewSize, -tstrWILC_MemoryAttrs *strAttrs,WILC_Char *pcFileName,WILC_Uint32 u32LineNo) +void *WILC_MemoryRealloc (void *pvOldBlock,u32 u32NewSize, +tstrWILC_MemoryAttrs *strAttrs,WILC_Char *pcFileName,u32 u32LineNo) {if (u32NewSize =0 ) {kfree (pvOldBlock);
@@ -52,7 +52,7 @@ void *WILC_MemoryRealloc(void *pvOldBlock, WILC_Uint32 u32NewSize,* @version 1.0 */ void WILC_MemoryFree (const void *pvBlock,tstrWILC_MemoryAttrs *strAttrs, -WILC_Char *pcFileName,WILC_Uint32 u32LineNo) +WILC_Char *pcFileName,u32 u32LineNo) {kfree (pvBlock); }
drivers/staging/wilc1000/wilc_memory.h +9 -9
@@ -41,8 +41,8 @@ typedef struct {* @date 16 Aug 2010 * @version 1.0 */ -void *WILC_MemoryAlloc (WILC_Uint32 u32Size,tstrWILC_MemoryAttrs *strAttrs, -WILC_Char *pcFileName,WILC_Uint32 u32LineNo); +void *WILC_MemoryAlloc (u32 u32Size,tstrWILC_MemoryAttrs *strAttrs, +WILC_Char *pcFileName,u32 u32LineNo);/*! * @brief Allocates a given size of bytes and zero filling it
@@ -65,8 +65,8 @@ void *WILC_MemoryAlloc(WILC_Uint32 u32Size, tstrWILC_MemoryAttrs *strAttrs,* @date 16 Aug 2010 * @version 1.0 */ -void *WILC_MemoryCalloc (WILC_Uint32 u32Size,tstrWILC_MemoryAttrs *strAttrs, -WILC_Char *pcFileName,WILC_Uint32 u32LineNo); +void *WILC_MemoryCalloc (u32 u32Size,tstrWILC_MemoryAttrs *strAttrs, +WILC_Char *pcFileName,u32 u32LineNo);/*! * @brief Reallocates a given block to a new size
@@ -93,8 +93,8 @@ void *WILC_MemoryCalloc(WILC_Uint32 u32Size, tstrWILC_MemoryAttrs *strAttrs,* @date 16 Aug 2010 * @version 1.0 */ -void *WILC_MemoryRealloc (void *pvOldBlock,WILC_Uint32 u32NewSize, -tstrWILC_MemoryAttrs *strAttrs,WILC_Char *pcFileName,WILC_Uint32 u32LineNo); +void *WILC_MemoryRealloc (void *pvOldBlock,u32 u32NewSize, +tstrWILC_MemoryAttrs *strAttrs,WILC_Char *pcFileName,u32 u32LineNo);/*! * @brief Frees given block
@@ -114,7 +114,7 @@ void *WILC_MemoryRealloc(void *pvOldBlock, WILC_Uint32 u32NewSize,* @version 1.0 */ void WILC_MemoryFree (const void *pvBlock,tstrWILC_MemoryAttrs *strAttrs, -WILC_Char *pcFileName,WILC_Uint32 u32LineNo); +WILC_Char *pcFileName,u32 u32LineNo);/*! * @brief standrad malloc wrapper with custom attributes
@@ -149,7 +149,7 @@ void WILC_MemoryFree(const void *pvBlock, tstrWILC_MemoryAttrs *strAttrs,*/ #define WILC_NEW_EX (__struct_type__, __n_structs__, __attrs__) \ ((__struct_type__ *)WILC_MALLOC_EX( \ - sizeof(__struct_type__) * (WILC_Uint32)(__n_structs__), __attrs__)) + sizeof(__struct_type__) * (u32)(__n_structs__), __attrs__))/*! * @brief Allocates a block (with custom attributes) of given type and number of
@@ -157,7 +157,7 @@ void WILC_MemoryFree(const void *pvBlock, tstrWILC_MemoryAttrs *strAttrs,*/ #define WILC_NEW_0_EX (__struct_type__, __n_structs__, __attrs__) \ ((__struct_type__ *)WILC_CALLOC_EX( \ - sizeof(__struct_type__) * (WILC_Uint32)(__n_structs__), __attrs__)) + sizeof(__struct_type__) * (u32)(__n_structs__), __attrs__))/*! * @brief Frees a block (with custom attributes), also setting the original pointer
drivers/staging/wilc1000/wilc_msgqueue.c +3 -3
@@ -53,7 +53,7 @@ WILC_ErrNo WILC_MsgQueueDestroy(WILC_MsgQueueHandle *pHandle,* @version 1.0 */ WILC_ErrNo WILC_MsgQueueSend (WILC_MsgQueueHandle *pHandle, -const void *pvSendBuffer,WILC_Uint32 u32SendBufferSize, +const void *pvSendBuffer,u32 u32SendBufferSize,tstrWILC_MsgQueueAttrs *pstrAttrs) {WILC_ErrNo s32RetStatus =WILC_SUCCESS ;
@@ -118,8 +118,8 @@ WILC_ErrNo WILC_MsgQueueSend(WILC_MsgQueueHandle *pHandle,* @version 1.0 */ WILC_ErrNo WILC_MsgQueueRecv (WILC_MsgQueueHandle *pHandle, -void *pvRecvBuffer,WILC_Uint32 u32RecvBufferSize, -WILC_Uint32 *pu32ReceivedLength, +void *pvRecvBuffer,u32 u32RecvBufferSize, +u32 *pu32ReceivedLength,tstrWILC_MsgQueueAttrs *pstrAttrs) {
drivers/staging/wilc1000/wilc_msgqueue.h +3 -3
@@ -58,7 +58,7 @@ WILC_ErrNo WILC_MsgQueueCreate(WILC_MsgQueueHandle *pHandle,* @version 1.0 */ WILC_ErrNo WILC_MsgQueueSend (WILC_MsgQueueHandle *pHandle, -const void *pvSendBuffer,WILC_Uint32 u32SendBufferSize, +const void *pvSendBuffer,u32 u32SendBufferSize,tstrWILC_MsgQueueAttrs *pstrAttrs);
@@ -80,8 +80,8 @@ WILC_ErrNo WILC_MsgQueueSend(WILC_MsgQueueHandle *pHandle,* @version 1.0 */ WILC_ErrNo WILC_MsgQueueRecv (WILC_MsgQueueHandle *pHandle, -void *pvRecvBuffer,WILC_Uint32 u32RecvBufferSize, -WILC_Uint32 *pu32ReceivedLength, +void *pvRecvBuffer,u32 u32RecvBufferSize, +u32 *pu32ReceivedLength,tstrWILC_MsgQueueAttrs *pstrAttrs);
drivers/staging/wilc1000/wilc_oswrapper.h +0 -1
@@ -14,7 +14,6 @@#define WILC_OSW_INTERFACE_VER 2/* Integer Types */ -typedef unsigned int WILC_Uint32 ;typedef unsigned long long WILC_Uint64 ;typedef signed char WILC_Sint8 ;typedef signed short WILC_Sint16 ;
drivers/staging/wilc1000/wilc_platform.h +2 -2
@@ -23,7 +23,7 @@ typedef struct timer_list WILC_TimerHandle;/* Message Queue type is a structure */ typedef struct __Message_struct {void *pvBuffer; -WILC_Uint32 u32Length; +u32 u32Length;struct __Message_struct *pstrNext; }Message ;
@@ -31,7 +31,7 @@ typedef struct __MessageQueue_struct {struct semaphore hSem;spinlock_t strCriticalSection;WILC_Bool bExiting; -WILC_Uint32 u32ReceiversCount; +u32 u32ReceiversCount;Message *pstrMessageList; } WILC_MsgQueueHandle;
drivers/staging/wilc1000/wilc_sleep.c +2 -2
@@ -6,10 +6,10 @@* @date 10 Aug 2010 * @version 1.0 */ -void WILC_Sleep (WILC_Uint32 u32TimeMilliSec) +void WILC_Sleep (u32 u32TimeMilliSec) {if (u32TimeMilliSec <=4000000 ) { -WILC_Uint32 u32Temp = u32TimeMilliSec *1000 ; +u32 u32Temp = u32TimeMilliSec *1000 ;usleep_range (u32Temp, u32Temp); }else {msleep (u32TimeMilliSec);
drivers/staging/wilc1000/wilc_sleep.h +1 -1
@@ -12,6 +12,6 @@* sleep, for accurate high resolution sleep use u32TimeMicoSec */ /* TODO: remove and open-code in callers */ -void WILC_Sleep (WILC_Uint32 u32TimeMilliSec); +void WILC_Sleep (u32 u32TimeMilliSec);#endif
drivers/staging/wilc1000/wilc_strutils.c +7 -7
@@ -9,7 +9,7 @@* @date 18 Aug 2010 * @version 1.0 */ -WILC_Sint32 WILC_memcmp (const void *pvArg1,const void *pvArg2,WILC_Uint32 u32Count) +WILC_Sint32 WILC_memcmp (const void *pvArg1,const void *pvArg2,u32 u32Count) {return memcmp (pvArg1, pvArg2, u32Count); }
@@ -20,7 +20,7 @@ WILC_Sint32 WILC_memcmp(const void *pvArg1, const void *pvArg2, WILC_Uint32 u32C* @date 18 Aug 2010 * @version 1.0 */ -void WILC_memcpy_INTERNAL (void *pvTarget,const void *pvSource,WILC_Uint32 u32Count) +void WILC_memcpy_INTERNAL (void *pvTarget,const void *pvSource,u32 u32Count) {memcpy (pvTarget, pvSource, u32Count); }
@@ -30,7 +30,7 @@ void WILC_memcpy_INTERNAL(void *pvTarget, const void *pvSource, WILC_Uint32 u32C* @date 18 Aug 2010 * @version 1.0 */ -void *WILC_memset (void *pvTarget,u8 u8SetValue,WILC_Uint32 u32Count) +void *WILC_memset (void *pvTarget,u8 u8SetValue,u32 u32Count) {return memset (pvTarget, u8SetValue, u32Count); }
@@ -41,13 +41,13 @@ void *WILC_memset(void *pvTarget, u8 u8SetValue, WILC_Uint32 u32Count)* @version 1.0 */ WILC_Char *WILC_strncpy (WILC_Char *pcTarget,const WILC_Char *pcSource, -WILC_Uint32 u32Count) +u32 u32Count) {return strncpy (pcTarget, pcSource, u32Count); }WILC_Sint32 WILC_strncmp (const WILC_Char *pcStr1,const WILC_Char *pcStr2, -WILC_Uint32 u32Count) +u32 u32Count) {WILC_Sint32 s32Result;
@@ -74,7 +74,7 @@ WILC_Sint32 WILC_strncmp(const WILC_Char *pcStr1, const WILC_Char *pcStr2,* @date 18 Aug 2010 * @version 1.0 */ -WILC_Uint32 WILC_strlen (const WILC_Char *pcStr) +u32 WILC_strlen (const WILC_Char *pcStr) { -return (WILC_Uint32 )strlen (pcStr); +return (u32 )strlen (pcStr); }
drivers/staging/wilc1000/wilc_strutils.h +7 -7
@@ -22,7 +22,7 @@* @date 18 Aug 2010 * @version 1.0 */ -WILC_Sint32 WILC_memcmp (const void *pvArg1,const void *pvArg2,WILC_Uint32 u32Count); +WILC_Sint32 WILC_memcmp (const void *pvArg1,const void *pvArg2,u32 u32Count);/*! * @brief Internal implementation for memory copy
@@ -34,7 +34,7 @@ WILC_Sint32 WILC_memcmp(const void *pvArg1, const void *pvArg2, WILC_Uint32 u32C* @date 18 Aug 2010 * @version 1.0 */ -void WILC_memcpy_INTERNAL (void *pvTarget,const void *pvSource,WILC_Uint32 u32Count); +void WILC_memcpy_INTERNAL (void *pvTarget,const void *pvSource,u32 u32Count);/*! * @brief Copies the contents of a memory buffer into another
@@ -50,7 +50,7 @@ void WILC_memcpy_INTERNAL(void *pvTarget, const void *pvSource, WILC_Uint32 u32C* @date 18 Aug 2010 * @version 1.0 */ -static WILC_ErrNo WILC_memcpy (void *pvTarget,const void *pvSource,WILC_Uint32 u32Count) +static WILC_ErrNo WILC_memcpy (void *pvTarget,const void *pvSource,u32 u32Count) { if ( (((u8 *)pvTarget <= (u8 *)pvSource)
@@ -78,7 +78,7 @@ static WILC_ErrNo WILC_memcpy(void *pvTarget, const void *pvSource, WILC_Uint32* @date 18 Aug 2010 * @version 1.0 */ -void *WILC_memset (void *pvTarget,u8 u8SetValue,WILC_Uint32 u32Count); +void *WILC_memset (void *pvTarget,u8 u8SetValue,u32 u32Count);/*! * @brief copies the contents of source string into the target string
@@ -93,7 +93,7 @@ void *WILC_memset(void *pvTarget, u8 u8SetValue, WILC_Uint32 u32Count);* @version 1.0 */ WILC_Char *WILC_strncpy (WILC_Char *pcTarget,const WILC_Char *pcSource, -WILC_Uint32 u32Count); +u32 u32Count);/*! * @brief Compares two strings up to u32Count characters
@@ -114,7 +114,7 @@ WILC_Char *WILC_strncpy(WILC_Char *pcTarget, const WILC_Char *pcSource,* @version 1.0 */ WILC_Sint32 WILC_strncmp (const WILC_Char *pcStr1,const WILC_Char *pcStr2, -WILC_Uint32 u32Count); +u32 u32Count);/*! * @brief gets the length of a string
@@ -125,6 +125,6 @@ WILC_Sint32 WILC_strncmp(const WILC_Char *pcStr1, const WILC_Char *pcStr2,* @date 18 Aug 2010 * @version 1.0 */ -WILC_Uint32 WILC_strlen (const WILC_Char *pcStr); +u32 WILC_strlen (const WILC_Char *pcStr);#endif
drivers/staging/wilc1000/wilc_timer.c +1 -1
@@ -23,7 +23,7 @@ WILC_ErrNo WILC_TimerDestroy(WILC_TimerHandle *pHandle, } -WILC_ErrNo WILC_TimerStart (WILC_TimerHandle *pHandle,WILC_Uint32 u32Timeout, +WILC_ErrNo WILC_TimerStart (WILC_TimerHandle *pHandle,u32 u32Timeout,void *pvArg,tstrWILC_TimerAttrs *pstrAttrs) {WILC_ErrNo s32RetStatus =WILC_FAIL ;
drivers/staging/wilc1000/wilc_timer.h +1 -1
@@ -96,7 +96,7 @@ WILC_ErrNo WILC_TimerDestroy(WILC_TimerHandle *pHandle,* @date 16 Aug 2010 * @version 1.0 */ -WILC_ErrNo WILC_TimerStart (WILC_TimerHandle *pHandle,WILC_Uint32 u32Timeout,void *pvArg, +WILC_ErrNo WILC_TimerStart (WILC_TimerHandle *pHandle,u32 u32Timeout,void *pvArg,tstrWILC_TimerAttrs *pstrAttrs);
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c +27 -27
172 lines not on this page · raw message
drivers/staging/wilc1000/wilc_wfi_netdevice.h +3 -3
@@ -117,9 +117,9 @@ struct sta_info {struct wilc_wfi_p2pListenParams {struct ieee80211_channel *pstrListenChan;enum nl80211_channel_type tenuChannelType; -WILC_Uint32 u32ListenDuration; +u32 u32ListenDuration;WILC_Uint64 u64ListenCookie; -WILC_Uint32 u32ListenSessionID; +u32 u32ListenSessionID; };#endif /*WILC_P2P*/
@@ -135,7 +135,7 @@ struct WILC_WFI_priv {#endif WILC_Bool bCfgScanning; -WILC_Uint32 u32RcvdChCount; +u32 u32RcvdChCount;
drivers/staging/wilc1000/wilc_wlan.c +3 -3
@@ -852,7 +852,7 @@ INLINE void chip_wakeup(void) genuChipPSstate = CHIP_WAKEDUP; }#endif -void chip_sleep_manually (WILC_Uint32 u32SleepTime) +void chip_sleep_manually (u32 u32SleepTime) {if (genuChipPSstate !=CHIP_WAKEDUP ) {/* chip is already sleeping. Do nothing */
@@ -1869,7 +1869,7 @@ static int wilc_wlan_cfg_commit(int type, uint32_t drvHandler)wilc_cfg_frame_t *cfg = &p->cfg_frame;int total_len = p->cfg_frame_offset +4 +DRIVER_HANDLER_SIZE ;int seq_no = p->cfg_seq_no %256 ; -int driver_handler = (WILC_Uint32 )drvHandler; +int driver_handler = (u32 )drvHandler;/**
@@ -2328,7 +2328,7 @@ _fail_:u16 Set_machw_change_vir_if (WILC_Bool bValue) {u16 ret; -WILC_Uint32 reg; +u32 reg;/*Reset WILC_CHANGING_VIR_IF register to allow adding futrue keys to CE H/W*/ (&g_wlan)->os_func.os_enter_cs ((&g_wlan)->hif_lock);
drivers/staging/wilc1000/wilc_wlan_cfg.c +1 -1
@@ -541,7 +541,7 @@ static int wilc_wlan_cfg_indicate_rx(uint8_t *frame, int size, wilc_cfg_rsp_t *ruint8_t msg_id;uint16_t msg_len;#ifdef WILC_FULLY_HOSTING_AP -WILC_Uint32 *ptru32Frame; +u32 *ptru32Frame;WILC_Bool bStatus = frame[2 ];#ifdef BIG_ENDIAN
drivers/staging/wilc1000/wilc_wlan_if.h +2 -2
@@ -92,7 +92,7 @@ typedef struct {void (*os_free)(void *);void (*os_lock)(void *);void (*os_unlock)(void *); -int (*os_wait)(void *,WILC_Uint32 ); +int (*os_wait)(void *,u32 );void (*os_signal)(void *);void (*os_enter_cs)(void *);void (*os_leave_cs)(void *);
@@ -238,7 +238,7 @@ typedef struct {#define MAX_SSID_LEN 33#define MAX_RATES_SUPPORTED 12 -#define INFINITE_SLEEP_TIME ((WILC_Uint32)0xFFFFFFFF) +#define INFINITE_SLEEP_TIME ((u32)0xFFFFFFFF) #ifdef WILC_PARSE_SCAN_IN_HOST typedef enum {
Signature · 1 line
1.9.1