Lines Matching refs:pipe
21 u8 pipe; member
38 u8 pipe; member
42 u8 pipe; member
142 static int nci_hci_send_data(struct nci_dev *ndev, u8 pipe, in nci_hci_send_data() argument
149 u8 cb = pipe; in nci_hci_send_data()
203 nci_hci_send_data(ndev, data->pipe, data->cmd, in nci_hci_send_data_req()
210 u8 pipe = ndev->hci_dev->gate2pipe[gate]; in nci_hci_send_event() local
212 if (pipe == NCI_HCI_INVALID_PIPE) in nci_hci_send_event()
215 return nci_hci_send_data(ndev, pipe, in nci_hci_send_event()
229 u8 pipe = ndev->hci_dev->gate2pipe[gate]; in nci_hci_send_cmd() local
231 if (pipe == NCI_HCI_INVALID_PIPE) in nci_hci_send_cmd()
239 data.pipe = pipe; in nci_hci_send_cmd()
274 static void nci_hci_event_received(struct nci_dev *ndev, u8 pipe, in nci_hci_event_received() argument
278 ndev->ops->hci_event_received(ndev, pipe, event, skb); in nci_hci_event_received()
281 static void nci_hci_cmd_received(struct nci_dev *ndev, u8 pipe, in nci_hci_cmd_received() argument
284 u8 gate = ndev->hci_dev->pipes[pipe].gate; in nci_hci_cmd_received()
291 pr_debug("from gate %x pipe %x cmd %x\n", gate, pipe, cmd); in nci_hci_cmd_received()
301 new_pipe = create_info->pipe; in nci_hci_cmd_received()
330 if (delete_info->pipe >= NCI_HCI_MAX_PIPES) { in nci_hci_cmd_received()
335 ndev->hci_dev->pipes[delete_info->pipe].gate = in nci_hci_cmd_received()
337 ndev->hci_dev->pipes[delete_info->pipe].host = in nci_hci_cmd_received()
356 ndev->ops->hci_cmd_received(ndev, pipe, cmd, skb); in nci_hci_cmd_received()
359 nci_hci_send_data(ndev, pipe, status, NULL, 0); in nci_hci_cmd_received()
364 static void nci_hci_resp_received(struct nci_dev *ndev, u8 pipe, in nci_hci_resp_received() argument
382 static void nci_hci_hcp_message_rx(struct nci_dev *ndev, u8 pipe, in nci_hci_hcp_message_rx() argument
387 nci_hci_resp_received(ndev, pipe, skb); in nci_hci_hcp_message_rx()
390 nci_hci_cmd_received(ndev, pipe, instruction, skb); in nci_hci_hcp_message_rx()
393 nci_hci_event_received(ndev, pipe, instruction, skb); in nci_hci_hcp_message_rx()
411 u8 pipe, type, instruction; in nci_hci_msg_rx_work() local
415 pipe = NCI_HCP_MSG_GET_PIPE(skb->data[0]); in nci_hci_msg_rx_work()
422 nci_hci_hcp_message_rx(hdev->ndev, pipe, in nci_hci_msg_rx_work()
432 u8 pipe, type; in nci_hci_data_received_cb() local
450 pipe = NCI_HCP_MSG_GET_PIPE(packet->header); in nci_hci_data_received_cb()
466 skb_put_u8(hcp_skb, pipe); in nci_hci_data_received_cb()
488 pipe = NCI_HCP_MSG_GET_PIPE(packet->header); in nci_hci_data_received_cb()
490 nci_hci_hcp_message_rx(ndev, pipe, type, in nci_hci_data_received_cb()
498 int nci_hci_open_pipe(struct nci_dev *ndev, u8 pipe) in nci_hci_open_pipe() argument
508 data.pipe = pipe; in nci_hci_open_pipe()
522 u8 pipe; in nci_hci_create_pipe() local
540 pipe = resp->pipe; in nci_hci_create_pipe()
543 pr_debug("pipe created=%d\n", pipe); in nci_hci_create_pipe()
545 return pipe; in nci_hci_create_pipe()
548 static int nci_hci_delete_pipe(struct nci_dev *ndev, u8 pipe) in nci_hci_delete_pipe() argument
551 NCI_HCI_ADM_DELETE_PIPE, &pipe, 1, NULL); in nci_hci_delete_pipe()
562 u8 pipe = ndev->hci_dev->gate2pipe[gate]; in nci_hci_set_param() local
566 if (pipe == NCI_HCI_INVALID_PIPE) in nci_hci_set_param()
581 data.pipe = pipe; in nci_hci_set_param()
608 u8 pipe = ndev->hci_dev->gate2pipe[gate]; in nci_hci_get_param() local
612 if (pipe == NCI_HCI_INVALID_PIPE) in nci_hci_get_param()
620 data.pipe = pipe; in nci_hci_get_param()
644 u8 dest_host, u8 dest_gate, u8 pipe) in nci_hci_connect_gate() argument
649 if (pipe == NCI_HCI_DO_NOT_OPEN_PIPE) in nci_hci_connect_gate()
655 if (pipe != NCI_HCI_INVALID_PIPE) in nci_hci_connect_gate()
660 pipe = NCI_HCI_LINK_MGMT_PIPE; in nci_hci_connect_gate()
663 pipe = NCI_HCI_ADMIN_PIPE; in nci_hci_connect_gate()
666 pipe = nci_hci_create_pipe(ndev, dest_host, dest_gate, &r); in nci_hci_connect_gate()
667 if (pipe == NCI_HCI_INVALID_PIPE) in nci_hci_connect_gate()
674 r = nci_hci_open_pipe(ndev, pipe); in nci_hci_connect_gate()
677 if (nci_hci_delete_pipe(ndev, pipe) < 0) { in nci_hci_connect_gate()
686 ndev->hci_dev->pipes[pipe].gate = dest_gate; in nci_hci_connect_gate()
687 ndev->hci_dev->pipes[pipe].host = dest_host; in nci_hci_connect_gate()
688 ndev->hci_dev->gate2pipe[dest_gate] = pipe; in nci_hci_connect_gate()
702 gates->gate, gates->pipe); in nci_hci_dev_connect_gates()
735 ndev->hci_dev->init_data.gates[0].pipe); in nci_hci_dev_session_init()