_func_enter_;
/* allocate DMA-able/Non-Page memory for cmd_buf and rsp_buf */
- ATOMIC_SET(&pevtpriv->event_seq, 0);
+ atomic_set(&pevtpriv->event_seq, 0);
pevtpriv->evt_done_cnt = 0;
_init_workitem(&pevtpriv->c2h_wk, c2h_wk_callback, NULL);
_12M_RATE_, _24M_RATE_, 0xff,
};
- ATOMIC_SET(&pmlmeext->event_seq, 0);
+ atomic_set(&pmlmeext->event_seq, 0);
pmlmeext->mgnt_seq = 0;/* reset to zero when disconnect at client mode */
pmlmeext->cur_channel = padapter->registrypriv.channel;
#define PATH_LENGTH_MAX PATH_MAX
/* Atomic integer operations */
-void ATOMIC_SET(atomic_t *v, int i);
int ATOMIC_READ(atomic_t *v);
void ATOMIC_ADD(atomic_t *v, int i);
void ATOMIC_SUB(atomic_t *v, int i);
*/
static inline void rtw_reset_continual_urb_error(struct dvobj_priv *dvobj)
{
- ATOMIC_SET(&dvobj->continual_urb_error, 0);
+ atomic_set(&dvobj->continual_urb_error, 0);
}
#define USB_HIGH_SPEED_BULK_SIZE 512
#define RTW_SUSPEND_LOCK_NAME "rtw_wifi"
-inline void ATOMIC_SET(atomic_t *v, int i)
-{
- atomic_set(v, i);
-}
-
inline int ATOMIC_READ(atomic_t *v)
{
return atomic_read(v);