Lines Matching refs:pg
73 tNFA_HCI_DYN_GATE* pg = nfa_hci_cb.cfg.dyn_gates; in nfa_hciu_find_gate_by_gid() local
76 for (; xx < NFA_HCI_MAX_GATE_CB; xx++, pg++) { in nfa_hciu_find_gate_by_gid()
77 if (pg->gate_id == gate_id) return (pg); in nfa_hciu_find_gate_by_gid()
93 tNFA_HCI_DYN_GATE* pg = nfa_hci_cb.cfg.dyn_gates; in nfa_hciu_find_gate_by_owner() local
96 for (; xx < NFA_HCI_MAX_GATE_CB; xx++, pg++) { in nfa_hciu_find_gate_by_owner()
97 if (pg->gate_owner == app_handle) return (pg); in nfa_hciu_find_gate_by_owner()
115 tNFA_HCI_DYN_GATE* pg = nfa_hci_cb.cfg.dyn_gates; in nfa_hciu_find_gate_with_nopipes_by_owner() local
118 for (; xx < NFA_HCI_MAX_GATE_CB; xx++, pg++) { in nfa_hciu_find_gate_with_nopipes_by_owner()
119 if ((pg->gate_owner == app_handle) && (pg->pipe_inx_mask == 0)) return (pg); in nfa_hciu_find_gate_with_nopipes_by_owner()
185 tNFA_HCI_DYN_GATE* pg; in nfa_hciu_get_gate_owner() local
187 pg = nfa_hciu_find_gate_by_gid(gate_id); in nfa_hciu_get_gate_owner()
188 if (pg == nullptr) return (NFA_HANDLE_INVALID); in nfa_hciu_get_gate_owner()
190 return (pg->gate_owner); in nfa_hciu_get_gate_owner()
204 tNFA_HCI_DYN_GATE* pg; in nfa_hciu_get_pipe_owner() local
209 pg = nfa_hciu_find_gate_by_gid(pp->local_gate); in nfa_hciu_get_pipe_owner()
210 if (pg == nullptr) return (NFA_HANDLE_INVALID); in nfa_hciu_get_pipe_owner()
212 return (pg->gate_owner); in nfa_hciu_get_pipe_owner()
226 tNFA_HCI_DYN_GATE* pg; in nfa_hciu_alloc_gate() local
240 pg = nfa_hciu_find_gate_by_gid(gate_id); in nfa_hciu_alloc_gate()
241 if (pg != nullptr) return (pg); in nfa_hciu_alloc_gate()
266 for (xx = 0, pg = nfa_hci_cb.cfg.dyn_gates; xx < NFA_HCI_MAX_GATE_CB; in nfa_hciu_alloc_gate()
267 xx++, pg++) { in nfa_hciu_alloc_gate()
268 if (pg->gate_id == 0) { in nfa_hciu_alloc_gate()
270 pg->gate_id = gate_id; in nfa_hciu_alloc_gate()
271 pg->gate_owner = app_handle; in nfa_hciu_alloc_gate()
272 pg->pipe_inx_mask = 0; in nfa_hciu_alloc_gate()
278 return (pg); in nfa_hciu_alloc_gate()
585 tNFA_HCI_DYN_GATE* pg; in nfa_hciu_find_active_pipe_by_owner() local
597 if (((pg = nfa_hciu_find_gate_by_gid(pp->local_gate)) != nullptr) && in nfa_hciu_find_active_pipe_by_owner()
598 (pg->gate_owner == app_handle)) in nfa_hciu_find_active_pipe_by_owner()
653 tNFA_HCI_DYN_GATE* pg; in nfa_hciu_find_pipe_by_owner() local
663 if (((pg = nfa_hciu_find_gate_by_gid(pp->local_gate)) != nullptr) && in nfa_hciu_find_pipe_by_owner()
664 (pg->gate_owner == app_handle)) in nfa_hciu_find_pipe_by_owner()
683 tNFA_HCI_DYN_GATE* pg; in nfa_hciu_find_pipe_on_gate() local
693 if (((pg = nfa_hciu_find_gate_by_gid(pp->local_gate)) != nullptr) && in nfa_hciu_find_pipe_on_gate()
694 (pg->gate_id == gate_id)) in nfa_hciu_find_pipe_on_gate()
779 tNFA_HCI_DYN_GATE* pg; in nfa_hciu_find_active_pipe_on_gate() local
791 if (((pg = nfa_hciu_find_gate_by_gid(pp->local_gate)) != nullptr) && in nfa_hciu_find_active_pipe_on_gate()
792 (pg->gate_id == gate_id)) in nfa_hciu_find_active_pipe_on_gate()
859 tNFA_HCI_DYN_GATE* pg; in nfa_hciu_remove_all_pipes_from_host() local
875 pg = nfa_hciu_find_gate_by_gid(pp->local_gate); in nfa_hciu_remove_all_pipes_from_host()
876 if (pg != nullptr) { in nfa_hciu_remove_all_pipes_from_host()
880 nfa_hciu_send_to_app(NFA_HCI_DELETE_PIPE_EVT, &evt_data, pg->gate_owner); in nfa_hciu_remove_all_pipes_from_host()