Lines Matching defs:p_gate
57 static void nfa_hci_handle_generic_gate_cmd (UINT8 *p_data, UINT8 data_len, tNFA_HCI_DYN_GATE *p_gate, tNFA_HCI_DYN_PIPE *p_pipe);
58 static void nfa_hci_handle_generic_gate_rsp (UINT8 *p_data, UINT8 data_len, tNFA_HCI_DYN_GATE *p_gate, tNFA_HCI_DYN_PIPE *p_pipe);
59 static void nfa_hci_handle_generic_gate_evt (UINT8 *p_data, UINT16 data_len, tNFA_HCI_DYN_GATE *p_gate, tNFA_HCI_DYN_PIPE *p_pipe);
324 tNFA_HCI_DYN_GATE *p_gate;
358 while ((p_gate = nfa_hciu_find_gate_by_owner (nfa_hci_cb.app_in_use)) != NULL)
359 nfa_hciu_release_gate (p_gate->gate_id);
378 while ((p_gate = nfa_hciu_find_gate_with_nopipes_by_owner (nfa_hci_cb.app_in_use)) != NULL)
379 nfa_hciu_release_gate (p_gate->gate_id);
486 tNFA_HCI_DYN_GATE *p_gate;
488 p_gate = nfa_hciu_alloc_gate (p_evt_data->gate_info.gate, app_handle);
490 if (p_gate)
492 if (!p_gate->gate_owner)
495 p_gate->gate_owner = app_handle;
497 else if (p_gate->gate_owner != app_handle)
500 p_gate = NULL;
505 evt_data.allocated.gate = p_gate ? p_gate->gate_id : 0;
506 evt_data.allocated.status = p_gate ? NFA_STATUS_OK : NFA_STATUS_FAILED;
525 tNFA_HCI_DYN_GATE *p_gate;
545 p_gate = nfa_hciu_find_gate_by_gid (gate_id);
547 if (p_gate == NULL)
551 else if (p_gate->gate_owner != app_handle)
558 if (nfa_hciu_find_pipe_on_gate (p_gate->gate_id) == NULL)
560 nfa_hciu_release_gate (p_gate->gate_id);
568 else if ((p_pipe = nfa_hciu_find_active_pipe_on_gate (p_gate->gate_id)) == NULL)
627 tNFA_HCI_DYN_GATE *p_gate = nfa_hciu_find_gate_by_gid (p_evt_data->create_pipe.source_gate);
632 if ( (p_gate == NULL)
633 ||(p_gate->gate_owner != p_evt_data->create_pipe.hci_handle) )
682 tNFA_HCI_DYN_GATE *p_gate = NULL;
685 p_gate = nfa_hciu_find_gate_by_gid (p_pipe->local_gate);
688 &&(p_gate != NULL)
690 &&(p_gate->gate_owner == p_evt_data->open_pipe.hci_handle))
726 tNFA_HCI_DYN_GATE *p_gate;
732 p_gate = nfa_hciu_find_gate_by_gid (p_pipe->local_gate);
734 if ((p_gate != NULL) && (nfa_hciu_is_active_host (p_pipe->dest_host)) && (p_gate->gate_owner == p_evt_data->get_registry.hci_handle))
776 tNFA_HCI_DYN_GATE *p_gate;
782 p_gate = nfa_hciu_find_gate_by_gid (p_pipe->local_gate);
784 if ((p_gate != NULL) && (nfa_hciu_is_active_host (p_pipe->dest_host)) && (p_gate->gate_owner == p_evt_data->set_registry.hci_handle))
826 tNFA_HCI_DYN_GATE *p_gate = NULL;
829 p_gate = nfa_hciu_find_gate_by_gid (p_pipe->local_gate);
832 &&(p_gate != NULL)
834 &&(p_gate->gate_owner == p_evt_data->close_pipe.hci_handle) )
870 tNFA_HCI_DYN_GATE *p_gate = NULL;
874 p_gate = nfa_hciu_find_gate_by_gid (p_pipe->local_gate);
875 if ( (p_gate != NULL)
876 &&(p_gate->gate_owner == p_evt_data->delete_pipe.hci_handle)
1223 tNFA_HCI_DYN_GATE *p_gate;
1227 if ((p_gate = nfa_hciu_find_gate_by_gid(p_pipe->local_gate)) != NULL)
1228 data[0] = nfa_hciu_count_open_pipes_on_gate (p_gate);
1743 tNFA_HCI_DYN_GATE *p_gate;
1768 p_gate = nfa_hciu_find_gate_by_gid (p_pipe->local_gate);
1769 if (p_gate == NULL)
1781 nfa_hci_handle_generic_gate_cmd (p_data, (UINT8) data_len, p_gate, p_pipe);
1785 nfa_hci_handle_generic_gate_rsp (p_data, (UINT8) data_len, p_gate, p_pipe);
1789 nfa_hci_handle_generic_gate_evt (p_data, data_len, p_gate, p_pipe);
1905 static void nfa_hci_handle_generic_gate_cmd (UINT8 *p_data, UINT8 data_len, tNFA_HCI_DYN_GATE *p_gate, tNFA_HCI_DYN_PIPE *p_pipe)
1975 static void nfa_hci_handle_generic_gate_rsp (UINT8 *p_data, UINT8 data_len, tNFA_HCI_DYN_GATE *p_gate, tNFA_HCI_DYN_PIPE *p_pipe)
2185 static void nfa_hci_handle_generic_gate_evt (UINT8 *p_data, UINT16 data_len, tNFA_HCI_DYN_GATE *p_gate, tNFA_HCI_DYN_PIPE *p_pipe)
2203 nfa_hciu_send_to_app (NFA_HCI_EVENT_RCVD_EVT, &evt_data, p_gate->gate_owner);