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