Lines Matching refs:p_cb
78 btif_sm_cb_t *p_cb; in btif_sm_init() local
86 p_cb = (btif_sm_cb_t*) GKI_os_malloc(sizeof(btif_sm_cb_t)); in btif_sm_init()
87 p_cb->state = initial_state; in btif_sm_init()
88 p_cb->p_handlers = (btif_sm_handler_t*)p_handlers; in btif_sm_init()
91 p_cb->p_handlers[initial_state](BTIF_SM_ENTER_EVT, NULL); in btif_sm_init()
93 return (btif_sm_handle_t)p_cb; in btif_sm_init()
107 btif_sm_cb_t *p_cb = (btif_sm_cb_t*)handle; in btif_sm_shutdown() local
109 if (p_cb == NULL) in btif_sm_shutdown()
114 GKI_os_free((void*)p_cb); in btif_sm_shutdown()
128 btif_sm_cb_t *p_cb = (btif_sm_cb_t*)handle; in btif_sm_get_state() local
130 if (p_cb == NULL) in btif_sm_get_state()
136 return p_cb->state; in btif_sm_get_state()
155 btif_sm_cb_t *p_cb = (btif_sm_cb_t*)handle; in btif_sm_dispatch() local
157 if (p_cb == NULL) in btif_sm_dispatch()
163 if (p_cb->p_handlers[p_cb->state](event, data) == FALSE) in btif_sm_dispatch()
185 btif_sm_cb_t *p_cb = (btif_sm_cb_t*)handle; in btif_sm_change_state() local
187 if (p_cb == NULL) in btif_sm_change_state()
194 if (p_cb->p_handlers[p_cb->state](BTIF_SM_EXIT_EVT, NULL) == FALSE) in btif_sm_change_state()
198 p_cb->state = state; in btif_sm_change_state()
201 if (p_cb->p_handlers[p_cb->state](BTIF_SM_ENTER_EVT, NULL) == FALSE) in btif_sm_change_state()