Lines Matching refs:pp
53 tNFA_HCI_DYN_PIPE* pp = nfa_hci_cb.cfg.dyn_pipes; in nfa_hciu_find_pipe_by_pid() local
57 for (; xx < NFA_HCI_MAX_PIPE_CB; xx++, pp++) { in nfa_hciu_find_pipe_by_pid()
58 if (pp->pipe_id == pipe_id) return (pp); in nfa_hciu_find_pipe_by_pid()
160 tNFA_HCI_DYN_PIPE* pp = nfa_hci_cb.cfg.dyn_pipes; in nfa_hciu_count_open_pipes_on_gate() local
165 for (; xx < NFA_HCI_MAX_PIPE_CB; xx++, pp++) { in nfa_hciu_count_open_pipes_on_gate()
168 (pp->pipe_state == NFA_HCI_PIPE_OPENED)) in nfa_hciu_count_open_pipes_on_gate()
205 tNFA_HCI_DYN_PIPE* pp; in nfa_hciu_get_pipe_owner() local
208 pp = nfa_hciu_find_pipe_by_pid(pipe_id); in nfa_hciu_get_pipe_owner()
209 if (pp == nullptr) return (NFA_HANDLE_INVALID); in nfa_hciu_get_pipe_owner()
211 pg = nfa_hciu_find_gate_by_gid(pp->local_gate); in nfa_hciu_get_pipe_owner()
433 tNFA_HCI_DYN_PIPE* pp; in nfa_hciu_alloc_pipe() local
436 pp = nfa_hciu_find_pipe_by_pid(pipe_id); in nfa_hciu_alloc_pipe()
437 if (pp != nullptr) { in nfa_hciu_alloc_pipe()
438 if (pipe_id > NFA_HCI_LAST_DYNAMIC_PIPE) return pp; in nfa_hciu_alloc_pipe()
443 for (xx = 0, pp = nfa_hci_cb.cfg.dyn_pipes; xx < NFA_HCI_MAX_PIPE_CB; in nfa_hciu_alloc_pipe()
444 xx++, pp++) { in nfa_hciu_alloc_pipe()
445 if (pp->pipe_id == 0) { in nfa_hciu_alloc_pipe()
448 pp->pipe_id = pipe_id; in nfa_hciu_alloc_pipe()
451 return (pp); in nfa_hciu_alloc_pipe()
588 tNFA_HCI_DYN_PIPE* pp; in nfa_hciu_find_active_pipe_by_owner() local
595 for (xx = 0, pp = nfa_hci_cb.cfg.dyn_pipes; xx < NFA_HCI_MAX_PIPE_CB; in nfa_hciu_find_active_pipe_by_owner()
596 xx++, pp++) { in nfa_hciu_find_active_pipe_by_owner()
597 if ((pp->pipe_id != 0) && (pp->pipe_id >= NFA_HCI_FIRST_DYNAMIC_PIPE) && in nfa_hciu_find_active_pipe_by_owner()
598 (pp->pipe_id <= NFA_HCI_LAST_DYNAMIC_PIPE) && in nfa_hciu_find_active_pipe_by_owner()
599 (nfa_hciu_is_active_host(pp->dest_host))) { in nfa_hciu_find_active_pipe_by_owner()
600 if (((pg = nfa_hciu_find_gate_by_gid(pp->local_gate)) != nullptr) && in nfa_hciu_find_active_pipe_by_owner()
602 return (pp); in nfa_hciu_find_active_pipe_by_owner()
623 tNFA_HCI_DYN_PIPE* pp; in nfa_hciu_check_pipe_between_gates() local
632 for (xx = 0, pp = nfa_hci_cb.cfg.dyn_pipes; xx < NFA_HCI_MAX_PIPE_CB; in nfa_hciu_check_pipe_between_gates()
633 xx++, pp++) { in nfa_hciu_check_pipe_between_gates()
634 if ((pp->pipe_id != 0) && (pp->pipe_id >= NFA_HCI_FIRST_DYNAMIC_PIPE) && in nfa_hciu_check_pipe_between_gates()
635 (pp->pipe_id <= NFA_HCI_LAST_DYNAMIC_PIPE) && in nfa_hciu_check_pipe_between_gates()
636 (pp->local_gate == local_gate) && (pp->dest_host == dest_host) && in nfa_hciu_check_pipe_between_gates()
637 (pp->dest_gate == dest_gate)) { in nfa_hciu_check_pipe_between_gates()
657 tNFA_HCI_DYN_PIPE* pp; in nfa_hciu_find_pipe_by_owner() local
664 for (xx = 0, pp = nfa_hci_cb.cfg.dyn_pipes; xx < NFA_HCI_MAX_PIPE_CB; in nfa_hciu_find_pipe_by_owner()
665 xx++, pp++) { in nfa_hciu_find_pipe_by_owner()
666 if (pp->pipe_id != 0) { in nfa_hciu_find_pipe_by_owner()
667 if (((pg = nfa_hciu_find_gate_by_gid(pp->local_gate)) != nullptr) && in nfa_hciu_find_pipe_by_owner()
669 return (pp); in nfa_hciu_find_pipe_by_owner()
688 tNFA_HCI_DYN_PIPE* pp; in nfa_hciu_find_pipe_on_gate() local
694 for (xx = 0, pp = nfa_hci_cb.cfg.dyn_pipes; xx < NFA_HCI_MAX_PIPE_CB; in nfa_hciu_find_pipe_on_gate()
695 xx++, pp++) { in nfa_hciu_find_pipe_on_gate()
696 if (pp->pipe_id != 0) { in nfa_hciu_find_pipe_on_gate()
697 if (((pg = nfa_hciu_find_gate_by_gid(pp->local_gate)) != nullptr) && in nfa_hciu_find_pipe_on_gate()
699 return (pp); in nfa_hciu_find_pipe_on_gate()
784 tNFA_HCI_DYN_PIPE* pp; in nfa_hciu_find_active_pipe_on_gate() local
790 for (xx = 0, pp = nfa_hci_cb.cfg.dyn_pipes; xx < NFA_HCI_MAX_PIPE_CB; in nfa_hciu_find_active_pipe_on_gate()
791 xx++, pp++) { in nfa_hciu_find_active_pipe_on_gate()
792 if ((pp->pipe_id != 0) && (pp->pipe_id >= NFA_HCI_FIRST_DYNAMIC_PIPE) && in nfa_hciu_find_active_pipe_on_gate()
793 (pp->pipe_id <= NFA_HCI_LAST_DYNAMIC_PIPE) && in nfa_hciu_find_active_pipe_on_gate()
794 (nfa_hciu_is_active_host(pp->dest_host))) { in nfa_hciu_find_active_pipe_on_gate()
795 if (((pg = nfa_hciu_find_gate_by_gid(pp->local_gate)) != nullptr) && in nfa_hciu_find_active_pipe_on_gate()
797 return (pp); in nfa_hciu_find_active_pipe_on_gate()
866 tNFA_HCI_DYN_PIPE* pp; in nfa_hciu_remove_all_pipes_from_host() local
874 for (xx = 0, pp = nfa_hci_cb.cfg.dyn_pipes; xx < NFA_HCI_MAX_PIPE_CB; in nfa_hciu_remove_all_pipes_from_host()
875 xx++, pp++) { in nfa_hciu_remove_all_pipes_from_host()
876 if ((pp->pipe_id == 0) || in nfa_hciu_remove_all_pipes_from_host()
877 ((host != 0) && ((pp->dest_host != host) || in nfa_hciu_remove_all_pipes_from_host()
878 (pp->pipe_id > NFA_HCI_LAST_DYNAMIC_PIPE)))) in nfa_hciu_remove_all_pipes_from_host()
881 pg = nfa_hciu_find_gate_by_gid(pp->local_gate); in nfa_hciu_remove_all_pipes_from_host()
884 evt_data.deleted.pipe = pp->pipe_id; in nfa_hciu_remove_all_pipes_from_host()
888 nfa_hciu_release_pipe(pp->pipe_id); in nfa_hciu_remove_all_pipes_from_host()