software/drivers/sd8887/src/bluetooth/bt/bt_main.c
/**
 *  @brief This function initializes the adapter structure
 *  and set default value to the member of adapter.
 *
 *  @param priv    A pointer to bt_private structure
 *  @return    N/A
 */
@brief This function initializes the adapter structure
and set default value to the member of adapter.

@param priv    A pointer to bt_private structure
@return    N/A
@brief This function initializes the adapter structure and set default value to the member of adapter . @param priv A pointer to bt_private structure @return N / A
static void
bt_init_adapter(bt_private *priv)
{
	ENTER();
#ifdef CONFIG_OF
	bt_init_from_dev_tree();
#endif
	skb_queue_head_init(&priv->adapter->tx_queue);
	skb_queue_head_init(&priv->adapter->pending_queue);
	priv->adapter->tx_lock = FALSE;
	priv->adapter->ps_state = PS_AWAKE;
	priv->adapter->suspend_fail = FALSE;
	priv->adapter->is_suspended = FALSE;
	priv->adapter->hs_skip = 0;
	priv->adapter->num_cmd_timeout = 0;
	priv->adapter->fwdump_fname = NULL;
	init_waitqueue_head(&priv->adapter->cmd_wait_q);
	LEAVE();
}
static void bt_init_adapter ( bt_private * priv ) { ENTER ( ) ; #ifdef CONFIG_OF bt_init_from_dev_tree ( ) ; #endif skb_queue_head_init ( & priv -> adapter -> tx_queue ) ; skb_queue_head_init ( & priv -> adapter -> pending_queue ) ; priv -> adapter -> tx_lock = FALSE ; priv -> adapter -> ps_state = PS_AWAKE ; priv -> adapter -> suspend_fail = FALSE ; priv -> adapter -> is_suspended = FALSE ; priv -> adapter -> hs_skip = 0 ; priv -> adapter -> num_cmd_timeout = 0 ; priv -> adapter -> fwdump_fname = NULL ; init_waitqueue_head ( & priv -> adapter -> cmd_wait_q ) ; LEAVE ( ) ; }
@brief This function initializes the adapter structure
  and set default value to the member of adapter.
@brief This function initializes the adapter structure and set default value to the member of adapter .