Home | History | Annotate | Download | only in hci

Lines Matching refs: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);
474 tNFA_HCI_DYN_GATE *p_gate;
476 p_gate = nfa_hciu_alloc_gate (0, app_handle);
478 evt_data.allocated.gate = p_gate ? p_gate->gate_id : 0;
479 evt_data.allocated.status = p_gate ? NFA_STATUS_OK : NFA_STATUS_FAILED;
498 tNFA_HCI_DYN_GATE *p_gate;
518 p_gate = nfa_hciu_find_gate_by_gid (gate_id);
520 if (p_gate == NULL)
524 else if (p_gate->gate_owner != app_handle)
531 if (nfa_hciu_find_pipe_on_gate (p_gate->gate_id) == NULL)
533 nfa_hciu_release_gate (p_gate->gate_id);
541 else if ((p_pipe = nfa_hciu_find_active_pipe_on_gate (p_gate->gate_id)) == NULL)
600 tNFA_HCI_DYN_GATE *p_gate = nfa_hciu_find_gate_by_gid (p_evt_data->create_pipe.source_gate);
604 if ((p_gate == NULL) || (p_gate->gate_owner != p_evt_data->create_pipe.hci_handle))
643 tNFA_HCI_DYN_GATE *p_gate = NULL;
646 p_gate = nfa_hciu_find_gate_by_gid (p_pipe->local_gate);
649 &&(p_gate != NULL)
651 &&(p_gate->gate_owner == p_evt_data->open_pipe.hci_handle))
687 tNFA_HCI_DYN_GATE *p_gate;
693 p_gate = nfa_hciu_find_gate_by_gid (p_pipe->local_gate);
695 if ((p_gate != NULL) && (nfa_hciu_is_active_host (p_pipe->dest_host)) && (p_gate->gate_owner == p_evt_data->get_registry.hci_handle))
737 tNFA_HCI_DYN_GATE *p_gate;
743 p_gate = nfa_hciu_find_gate_by_gid (p_pipe->local_gate);
745 if ((p_gate != NULL) && (nfa_hciu_is_active_host (p_pipe->dest_host)) && (p_gate->gate_owner == p_evt_data->set_registry.hci_handle))
787 tNFA_HCI_DYN_GATE *p_gate = NULL;
790 p_gate = nfa_hciu_find_gate_by_gid (p_pipe->local_gate);
793 &&(p_gate != NULL)
795 &&(p_gate->gate_owner == p_evt_data->close_pipe.hci_handle) )
831 tNFA_HCI_DYN_GATE *p_gate = NULL;
835 p_gate = nfa_hciu_find_gate_by_gid (p_pipe->local_gate);
836 if ( (p_gate != NULL)
837 &&(p_gate->gate_owner == p_evt_data->delete_pipe.hci_handle)
1184 tNFA_HCI_DYN_GATE *p_gate;
1188 if ((p_gate = nfa_hciu_find_gate_by_gid(p_pipe->local_gate)) != NULL)
1189 data[0] = nfa_hciu_count_open_pipes_on_gate (p_gate);
1693 tNFA_HCI_DYN_GATE *p_gate;
1718 p_gate = nfa_hciu_find_gate_by_gid (p_pipe->local_gate);
1719 if (p_gate == NULL)
1731 nfa_hci_handle_generic_gate_cmd (p_data, (UINT8) data_len, p_gate, p_pipe);
1735 nfa_hci_handle_generic_gate_rsp (p_data, (UINT8) data_len, p_gate, p_pipe);
1739 nfa_hci_handle_generic_gate_evt (p_data, data_len, p_gate, p_pipe);
1855 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)
1925 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)
2135 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)
2153 nfa_hciu_send_to_app (NFA_HCI_EVENT_RCVD_EVT, &evt_data, p_gate->gate_owner);