software/drivers/sd8887/src/wlan/mlinux/moal_ioctl.c
/**
 *  @brief Fill in wait queue
 *
 *  @param priv         A pointer to moal_private structure
 *  @param wait         A pointer to wait_queue structure
 *  @param wait_option  Wait option
 *
 *  @return             N/A
 */
@brief Fill in wait queue
@param priv         A pointer to moal_private structure
@param wait         A pointer to wait_queue structure
@param wait_option  Wait option

@return             N/A
@brief Fill in wait queue @param priv A pointer to moal_private structure @param wait A pointer to wait_queue structure @param wait_option Wait option @return N / A
static inline void
woal_fill_wait_queue(moal_private *priv, wait_queue *wait, t_u8 wait_option)
{
	ENTER();
	wait->start_time = jiffies;
	wait->condition = MFALSE;
	wait->wait_timeout = MFALSE;
	switch (wait_option) {
	case MOAL_NO_WAIT:
		break;
	case MOAL_IOCTL_WAIT:
		init_waitqueue_head(&wait->wait);
		break;
	case MOAL_IOCTL_WAIT_TIMEOUT:
		init_waitqueue_head(&wait->wait);
		wait->wait_timeout = MTRUE;
		break;
	}
	LEAVE();
	return;
}
static inline void woal_fill_wait_queue ( moal_private * priv , wait_queue * wait , t_u8 wait_option ) { ENTER ( ) ; wait -> start_time = jiffies ; wait -> condition = MFALSE ; wait -> wait_timeout = MFALSE ; switch ( wait_option ) { case MOAL_NO_WAIT : break ; case MOAL_IOCTL_WAIT : init_waitqueue_head ( & wait -> wait ) ; break ; case MOAL_IOCTL_WAIT_TIMEOUT : init_waitqueue_head ( & wait -> wait ) ; wait -> wait_timeout = MTRUE ; break ; } LEAVE ( ) ; return ; }
@brief Fill in wait queue
  @param priv         A pointer to moal_private structure
  @param wait         A pointer to wait_queue structure
  @param wait_option  Wait option
@brief Fill in wait queue @param priv A pointer to moal_private structure @param wait A pointer to wait_queue structure @param wait_option Wait option