Lines Matching refs:pipe
20 u8 pipe; member
37 u8 pipe; member
41 u8 pipe; member
141 static int nci_hci_send_data(struct nci_dev *ndev, u8 pipe, in nci_hci_send_data() argument
148 u8 cb = pipe; in nci_hci_send_data()
202 nci_hci_send_data(ndev, data->pipe, data->cmd, in nci_hci_send_data_req()
209 u8 pipe = ndev->hci_dev->gate2pipe[gate]; in nci_hci_send_event() local
211 if (pipe == NCI_HCI_INVALID_PIPE) in nci_hci_send_event()
214 return nci_hci_send_data(ndev, pipe, in nci_hci_send_event()
228 u8 pipe = ndev->hci_dev->gate2pipe[gate]; in nci_hci_send_cmd() local
230 if (pipe == NCI_HCI_INVALID_PIPE) in nci_hci_send_cmd()
238 data.pipe = pipe; in nci_hci_send_cmd()
273 static void nci_hci_event_received(struct nci_dev *ndev, u8 pipe, in nci_hci_event_received() argument
277 ndev->ops->hci_event_received(ndev, pipe, event, skb); in nci_hci_event_received()
280 static void nci_hci_cmd_received(struct nci_dev *ndev, u8 pipe, in nci_hci_cmd_received() argument
283 u8 gate = ndev->hci_dev->pipes[pipe].gate; in nci_hci_cmd_received()
290 pr_debug("from gate %x pipe %x cmd %x\n", gate, pipe, cmd); in nci_hci_cmd_received()
300 new_pipe = create_info->pipe; in nci_hci_cmd_received()
329 if (delete_info->pipe >= NCI_HCI_MAX_PIPES) { in nci_hci_cmd_received()
334 ndev->hci_dev->pipes[delete_info->pipe].gate = in nci_hci_cmd_received()
336 ndev->hci_dev->pipes[delete_info->pipe].host = in nci_hci_cmd_received()
355 ndev->ops->hci_cmd_received(ndev, pipe, cmd, skb); in nci_hci_cmd_received()
358 nci_hci_send_data(ndev, pipe, status, NULL, 0); in nci_hci_cmd_received()
363 static void nci_hci_resp_received(struct nci_dev *ndev, u8 pipe, in nci_hci_resp_received() argument
381 static void nci_hci_hcp_message_rx(struct nci_dev *ndev, u8 pipe, in nci_hci_hcp_message_rx() argument
386 nci_hci_resp_received(ndev, pipe, skb); in nci_hci_hcp_message_rx()
389 nci_hci_cmd_received(ndev, pipe, instruction, skb); in nci_hci_hcp_message_rx()
392 nci_hci_event_received(ndev, pipe, instruction, skb); in nci_hci_hcp_message_rx()
410 u8 pipe, type, instruction; in nci_hci_msg_rx_work() local
413 pipe = NCI_HCP_MSG_GET_PIPE(skb->data[0]); in nci_hci_msg_rx_work()
420 nci_hci_hcp_message_rx(hdev->ndev, pipe, in nci_hci_msg_rx_work()
430 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
553 NCI_HCI_ADM_DELETE_PIPE, &pipe, 1, NULL); in nci_hci_delete_pipe()
564 u8 pipe = ndev->hci_dev->gate2pipe[gate]; in nci_hci_set_param() local
568 if (pipe == NCI_HCI_INVALID_PIPE) in nci_hci_set_param()
583 data.pipe = pipe; in nci_hci_set_param()
610 u8 pipe = ndev->hci_dev->gate2pipe[gate]; in nci_hci_get_param() local
614 if (pipe == NCI_HCI_INVALID_PIPE) in nci_hci_get_param()
622 data.pipe = pipe; in nci_hci_get_param()
646 u8 dest_host, u8 dest_gate, u8 pipe) in nci_hci_connect_gate() argument
651 if (pipe == NCI_HCI_DO_NOT_OPEN_PIPE) in nci_hci_connect_gate()
657 if (pipe != NCI_HCI_INVALID_PIPE) in nci_hci_connect_gate()
662 pipe = NCI_HCI_LINK_MGMT_PIPE; in nci_hci_connect_gate()
665 pipe = NCI_HCI_ADMIN_PIPE; in nci_hci_connect_gate()
668 pipe = nci_hci_create_pipe(ndev, dest_host, dest_gate, &r); in nci_hci_connect_gate()
669 if (pipe == NCI_HCI_INVALID_PIPE) in nci_hci_connect_gate()
676 r = nci_hci_open_pipe(ndev, pipe); in nci_hci_connect_gate()
679 if (nci_hci_delete_pipe(ndev, pipe) < 0) { in nci_hci_connect_gate()
688 ndev->hci_dev->pipes[pipe].gate = dest_gate; in nci_hci_connect_gate()
689 ndev->hci_dev->pipes[pipe].host = dest_host; in nci_hci_connect_gate()
690 ndev->hci_dev->gate2pipe[dest_gate] = pipe; in nci_hci_connect_gate()
704 gates->gate, gates->pipe); in nci_hci_dev_connect_gates()
737 ndev->hci_dev->init_data.gates[0].pipe); in nci_hci_dev_session_init()