Lines Matching refs:pipe

340   /* See if any pipe is owned by this app */
416 evt_data.gates_pipes.pipe[evt_data.gates_pipes.num_pipes++] =
530 /* See if any pipe is owned by this app */
541 /* UICC is not active at the moment and cannot delete the pipe */
588 ** Description action function to create a pipe
600 /* Verify that the app owns the gate that the pipe is being created on */
605 "nfa_hci_api_create_pipe Cannot create pipe! APP: 0x%02x does not own "
615 "nfa_hci_api_create_pipe : Cannot create multiple pipe between the "
647 ** Description action function to open a pipe
655 nfa_hciu_find_pipe_by_pid(p_evt_data->open_pipe.pipe);
664 nfa_hciu_send_open_pipe_cmd(p_evt_data->open_pipe.pipe);
666 evt_data.opened.pipe = p_evt_data->open_pipe.pipe;
673 evt_data.opened.pipe = p_evt_data->open_pipe.pipe;
693 nfa_hciu_find_pipe_by_pid(p_evt_data->get_registry.pipe);
712 "nfa_hci_api_get_reg_value pipe:%d not open",
713 p_evt_data->get_registry.pipe);
715 status = nfa_hciu_send_get_param_cmd(p_evt_data->get_registry.pipe,
742 nfa_hciu_find_pipe_by_pid(p_evt_data->set_registry.pipe);
761 "nfa_hci_api_set_reg_value pipe:%d not open",
762 p_evt_data->set_registry.pipe);
765 p_evt_data->set_registry.pipe, p_evt_data->set_registry.reg_inx,
783 ** Description action function to close a pipe
791 nfa_hciu_find_pipe_by_pid(p_evt_data->close_pipe.pipe);
800 nfa_hciu_send_close_pipe_cmd(p_evt_data->close_pipe.pipe);
803 evt_data.closed.pipe = p_evt_data->close_pipe.pipe;
810 evt_data.closed.pipe = 0x00;
821 ** Description action function to delete a pipe
829 nfa_hciu_find_pipe_by_pid(p_evt_data->delete_pipe.pipe);
837 nfa_hciu_send_delete_pipe_cmd(p_evt_data->delete_pipe.pipe);
843 evt_data.deleted.pipe = 0x00;
852 ** Description action function to send command on the given pipe
864 if ((p_pipe = nfa_hciu_find_pipe_by_pid(p_evt_data->send_cmd.pipe)) != NULL) {
865 app_handle = nfa_hciu_get_pipe_owner(p_evt_data->send_cmd.pipe);
876 nfa_hci_cb.pipe_in_use = p_evt_data->send_cmd.pipe;
883 LOG(WARNING) << StringPrintf("nfa_hci_api_send_cmd pipe:%d not open",
888 "nfa_hci_api_send_cmd pipe:%d Owned by different application or "
893 LOG(WARNING) << StringPrintf("nfa_hci_api_send_cmd pipe:%d not found",
894 p_evt_data->send_cmd.pipe);
909 ** Description action function to send response on the given pipe
920 if ((p_pipe = nfa_hciu_find_pipe_by_pid(p_evt_data->send_rsp.pipe)) != NULL) {
921 app_handle = nfa_hciu_get_pipe_owner(p_evt_data->send_rsp.pipe);
933 LOG(WARNING) << StringPrintf("nfa_hci_api_send_rsp pipe:%d not open",
938 "nfa_hci_api_send_rsp pipe:%d Owned by different application or "
943 LOG(WARNING) << StringPrintf("nfa_hci_api_send_rsp pipe:%d not found",
944 p_evt_data->send_rsp.pipe);
958 ** Description action function to send an event to the given pipe
970 if ((p_pipe = nfa_hciu_find_pipe_by_pid(p_evt_data->send_evt.pipe)) != NULL) {
971 app_handle = nfa_hciu_get_pipe_owner(p_evt_data->send_evt.pipe);
993 nfa_hci_cb.pipe_in_use = p_evt_data->send_evt.pipe;
1007 nfa_hci_cb.pipe_in_use = p_evt_data->send_evt.pipe;
1016 LOG(WARNING) << StringPrintf("nfa_hci_api_send_event pipe:%d not open",
1021 "nfa_hci_api_send_event pipe:%d Owned by different application or "
1026 LOG(WARNING) << StringPrintf("nfa_hci_api_send_event pipe:%d not found",
1027 p_evt_data->send_evt.pipe);
1042 ** Description action function to add static pipe
1059 /* Add the dynamic pipe to the proprietary gate */
1060 if (nfa_hciu_add_pipe_to_gate(p_evt_data->add_static_pipe.pipe, pg->gate_id,
1064 /* Unable to add the dynamic pipe, so release the gate */
1071 pp = nfa_hciu_find_pipe_by_pid(p_evt_data->add_static_pipe.pipe);
1073 /* This pipe is always opened */
1081 /* Unable to add static pipe */
1192 uint8_t source_host, source_gate, dest_host, dest_gate, pipe;
1208 /* Reopen the pipe immediately */
1221 STREAM_TO_UINT8(pipe, p_data);
1225 response = nfa_hciu_add_pipe_to_static_gate(dest_gate, pipe,
1229 /* If the gate is valid, add the pipe to it */
1232 /* Already, there is a pipe between these two gates, so will reject
1236 response = nfa_hciu_add_pipe_to_gate(pipe, dest_gate, source_host,
1239 /* Tell the application a pipe was created with its gate */
1242 evt_data.created.pipe = pipe;
1256 response = nfa_hciu_add_pipe_to_gate(pipe, dest_gate, source_host,
1264 STREAM_TO_UINT8(pipe, p_data);
1265 response = nfa_hciu_release_pipe(pipe);
1277 /* Reopen the admin pipe immediately */
1314 uint8_t pipe = 0;
1513 STREAM_TO_UINT8(pipe, p_data);
1518 "nfa_hci_handle_admin_gate_rsp sent create pipe with gate: %u "
1524 nfa_hciu_add_pipe_to_gate(pipe, source_gate, dest_host, dest_gate);
1527 /* Tell the application his pipe was created or not */
1529 evt_data.created.pipe = pipe;
1542 /* If only deleting one pipe, tell the app we are done */
1545 evt_data.deleted.pipe = nfa_hci_cb.pipe_in_use;
1554 /* If only deleting one pipe, tell the app we are done */
1557 evt_data.deleted.pipe = nfa_hci_cb.pipe_in_use;
1666 ** Description This function handles data received via dynamic pipe
1677 /* Invalid pipe ID */
1678 LOG(ERROR) << StringPrintf("nfa_hci_handle_dyn_pipe_pkt - Unknown pipe %d",
1740 /* We never send commands on a pipe where the local gate is the identity
1834 evt_data.registry.pipe = p_pipe->pipe_id;
1845 evt_data.registry.pipe = p_pipe->pipe_id;
1855 evt_data.opened.pipe = p_pipe->pipe_id;
1864 evt_data.closed.pipe = p_pipe->pipe_id;
1873 evt_data.cmd_rcvd.pipe = p_pipe->pipe_id;
1909 evt_data.opened.pipe = p_pipe->pipe_id;
1920 evt_data.opened.pipe = p_pipe->pipe_id;
1927 evt_data.registry.pipe = p_pipe->pipe_id;
1939 evt_data.registry.pipe = p_pipe->pipe_id;
1946 evt_data.rsp_rcvd.pipe = p_pipe->pipe_id;
2003 evt_data.rsp_rcvd.pipe = p_pipe->pipe_id;
2014 evt_data.rcvd_evt.pipe = p_pipe->pipe_id;
2063 evt_data.rsp_rcvd.pipe = p_pipe->pipe_id;
2075 evt_data.rcvd_evt.pipe = p_pipe->pipe_id;
2104 evt_data.rcvd_evt.pipe = p_pipe->pipe_id;