Lines Matching refs:pipe
32 u8 pipe; member
49 u8 pipe; member
53 u8 pipe; member
153 static int nci_hci_send_data(struct nci_dev *ndev, u8 pipe, in nci_hci_send_data() argument
160 u8 cb = pipe; in nci_hci_send_data()
216 nci_hci_send_data(ndev, data->pipe, data->cmd, in nci_hci_send_data_req()
223 u8 pipe = ndev->hci_dev->gate2pipe[gate]; in nci_hci_send_event() local
225 if (pipe == NCI_HCI_INVALID_PIPE) in nci_hci_send_event()
228 return nci_hci_send_data(ndev, pipe, in nci_hci_send_event()
242 u8 pipe = ndev->hci_dev->gate2pipe[gate]; in nci_hci_send_cmd() local
244 if (pipe == NCI_HCI_INVALID_PIPE) in nci_hci_send_cmd()
252 data.pipe = pipe; in nci_hci_send_cmd()
287 static void nci_hci_event_received(struct nci_dev *ndev, u8 pipe, in nci_hci_event_received() argument
291 ndev->ops->hci_event_received(ndev, pipe, event, skb); in nci_hci_event_received()
294 static void nci_hci_cmd_received(struct nci_dev *ndev, u8 pipe, in nci_hci_cmd_received() argument
297 u8 gate = ndev->hci_dev->pipes[pipe].gate; in nci_hci_cmd_received()
304 pr_debug("from gate %x pipe %x cmd %x\n", gate, pipe, cmd); in nci_hci_cmd_received()
314 new_pipe = create_info->pipe; in nci_hci_cmd_received()
340 ndev->hci_dev->pipes[delete_info->pipe].gate = in nci_hci_cmd_received()
342 ndev->hci_dev->pipes[delete_info->pipe].host = in nci_hci_cmd_received()
361 ndev->ops->hci_cmd_received(ndev, pipe, cmd, skb); in nci_hci_cmd_received()
364 nci_hci_send_data(ndev, pipe, status, NULL, 0); in nci_hci_cmd_received()
369 static void nci_hci_resp_received(struct nci_dev *ndev, u8 pipe, in nci_hci_resp_received() argument
390 static void nci_hci_hcp_message_rx(struct nci_dev *ndev, u8 pipe, in nci_hci_hcp_message_rx() argument
395 nci_hci_resp_received(ndev, pipe, instruction, skb); in nci_hci_hcp_message_rx()
398 nci_hci_cmd_received(ndev, pipe, instruction, skb); in nci_hci_hcp_message_rx()
401 nci_hci_event_received(ndev, pipe, instruction, skb); in nci_hci_hcp_message_rx()
419 u8 pipe, type, instruction; in nci_hci_msg_rx_work() local
422 pipe = NCI_HCP_MSG_GET_PIPE(skb->data[0]); in nci_hci_msg_rx_work()
429 nci_hci_hcp_message_rx(hdev->ndev, pipe, in nci_hci_msg_rx_work()
439 u8 pipe, type; in nci_hci_data_received_cb() local
459 pipe = NCI_HCP_MSG_GET_PIPE(packet->header); in nci_hci_data_received_cb()
475 *skb_put(hcp_skb, NCI_HCI_HCP_PACKET_HEADER_LEN) = pipe; in nci_hci_data_received_cb()
496 pipe = NCI_HCP_MSG_GET_PIPE(packet->header); in nci_hci_data_received_cb()
498 nci_hci_hcp_message_rx(ndev, pipe, type, in nci_hci_data_received_cb()
506 int nci_hci_open_pipe(struct nci_dev *ndev, u8 pipe) in nci_hci_open_pipe() argument
516 data.pipe = pipe; in nci_hci_open_pipe()
531 u8 pipe; in nci_hci_create_pipe() local
549 pipe = resp->pipe; in nci_hci_create_pipe()
552 pr_debug("pipe created=%d\n", pipe); in nci_hci_create_pipe()
554 return pipe; in nci_hci_create_pipe()
557 static int nci_hci_delete_pipe(struct nci_dev *ndev, u8 pipe) in nci_hci_delete_pipe() argument
562 NCI_HCI_ADM_DELETE_PIPE, &pipe, 1, NULL); in nci_hci_delete_pipe()
573 u8 pipe = ndev->hci_dev->gate2pipe[gate]; in nci_hci_set_param() local
577 if (pipe == NCI_HCI_INVALID_PIPE) in nci_hci_set_param()
592 data.pipe = pipe; in nci_hci_set_param()
620 u8 pipe = ndev->hci_dev->gate2pipe[gate]; in nci_hci_get_param() local
624 if (pipe == NCI_HCI_INVALID_PIPE) in nci_hci_get_param()
632 data.pipe = pipe; in nci_hci_get_param()
656 u8 dest_host, u8 dest_gate, u8 pipe) in nci_hci_connect_gate() argument
661 if (pipe == NCI_HCI_DO_NOT_OPEN_PIPE) in nci_hci_connect_gate()
667 if (pipe != NCI_HCI_INVALID_PIPE) in nci_hci_connect_gate()
672 pipe = NCI_HCI_LINK_MGMT_PIPE; in nci_hci_connect_gate()
675 pipe = NCI_HCI_ADMIN_PIPE; in nci_hci_connect_gate()
678 pipe = nci_hci_create_pipe(ndev, dest_host, dest_gate, &r); in nci_hci_connect_gate()
679 if (pipe < 0) in nci_hci_connect_gate()
686 r = nci_hci_open_pipe(ndev, pipe); in nci_hci_connect_gate()
689 if (nci_hci_delete_pipe(ndev, pipe) < 0) { in nci_hci_connect_gate()
698 ndev->hci_dev->pipes[pipe].gate = dest_gate; in nci_hci_connect_gate()
699 ndev->hci_dev->pipes[pipe].host = dest_host; in nci_hci_connect_gate()
700 ndev->hci_dev->gate2pipe[dest_gate] = pipe; in nci_hci_connect_gate()
714 gates->gate, gates->pipe); in nci_hci_dev_connect_gates()
747 ndev->hci_dev->init_data.gates[0].pipe); in nci_hci_dev_session_init()