Lines Matching refs:pipe
32 u8 pipe; member
49 u8 pipe; member
53 u8 pipe; member
150 static int nci_hci_send_data(struct nci_dev *ndev, u8 pipe, in nci_hci_send_data() argument
157 u8 cb = pipe; in nci_hci_send_data()
213 nci_hci_send_data(ndev, data->pipe, data->cmd, in nci_hci_send_data_req()
220 u8 pipe = ndev->hci_dev->gate2pipe[gate]; in nci_hci_send_event() local
222 if (pipe == NCI_HCI_INVALID_PIPE) in nci_hci_send_event()
225 return nci_hci_send_data(ndev, pipe, in nci_hci_send_event()
239 u8 pipe = ndev->hci_dev->gate2pipe[gate]; in nci_hci_send_cmd() local
241 if (pipe == NCI_HCI_INVALID_PIPE) in nci_hci_send_cmd()
249 data.pipe = pipe; in nci_hci_send_cmd()
270 static void nci_hci_event_received(struct nci_dev *ndev, u8 pipe, in nci_hci_event_received() argument
274 ndev->ops->hci_event_received(ndev, pipe, event, skb); in nci_hci_event_received()
277 static void nci_hci_cmd_received(struct nci_dev *ndev, u8 pipe, in nci_hci_cmd_received() argument
280 u8 gate = ndev->hci_dev->pipes[pipe].gate; in nci_hci_cmd_received()
287 pr_debug("from gate %x pipe %x cmd %x\n", gate, pipe, cmd); in nci_hci_cmd_received()
297 new_pipe = create_info->pipe; in nci_hci_cmd_received()
323 ndev->hci_dev->pipes[delete_info->pipe].gate = in nci_hci_cmd_received()
325 ndev->hci_dev->pipes[delete_info->pipe].host = in nci_hci_cmd_received()
344 ndev->ops->hci_cmd_received(ndev, pipe, cmd, skb); in nci_hci_cmd_received()
347 nci_hci_send_data(ndev, pipe, status, NULL, 0); in nci_hci_cmd_received()
352 static void nci_hci_resp_received(struct nci_dev *ndev, u8 pipe, in nci_hci_resp_received() argument
373 static void nci_hci_hcp_message_rx(struct nci_dev *ndev, u8 pipe, in nci_hci_hcp_message_rx() argument
378 nci_hci_resp_received(ndev, pipe, instruction, skb); in nci_hci_hcp_message_rx()
381 nci_hci_cmd_received(ndev, pipe, instruction, skb); in nci_hci_hcp_message_rx()
384 nci_hci_event_received(ndev, pipe, instruction, skb); in nci_hci_hcp_message_rx()
402 u8 pipe, type, instruction; in nci_hci_msg_rx_work() local
405 pipe = NCI_HCP_MSG_GET_PIPE(skb->data[0]); in nci_hci_msg_rx_work()
412 nci_hci_hcp_message_rx(hdev->ndev, pipe, in nci_hci_msg_rx_work()
422 u8 pipe, type; in nci_hci_data_received_cb() local
442 pipe = NCI_HCP_MSG_GET_PIPE(packet->header); in nci_hci_data_received_cb()
458 *skb_put(hcp_skb, NCI_HCI_HCP_PACKET_HEADER_LEN) = pipe; in nci_hci_data_received_cb()
479 pipe = NCI_HCP_MSG_GET_PIPE(packet->header); in nci_hci_data_received_cb()
481 nci_hci_hcp_message_rx(ndev, pipe, type, in nci_hci_data_received_cb()
489 int nci_hci_open_pipe(struct nci_dev *ndev, u8 pipe) in nci_hci_open_pipe() argument
499 data.pipe = pipe; in nci_hci_open_pipe()
519 u8 pipe = ndev->hci_dev->gate2pipe[gate]; in nci_hci_set_param() local
523 if (pipe == NCI_HCI_INVALID_PIPE) in nci_hci_set_param()
538 data.pipe = pipe; in nci_hci_set_param()
566 u8 pipe = ndev->hci_dev->gate2pipe[gate]; in nci_hci_get_param() local
570 if (pipe == NCI_HCI_INVALID_PIPE) in nci_hci_get_param()
578 data.pipe = pipe; in nci_hci_get_param()
602 u8 dest_host, u8 dest_gate, u8 pipe) in nci_hci_connect_gate() argument
606 if (pipe == NCI_HCI_DO_NOT_OPEN_PIPE) in nci_hci_connect_gate()
612 if (pipe != NCI_HCI_INVALID_PIPE) in nci_hci_connect_gate()
617 pipe = NCI_HCI_LINK_MGMT_PIPE; in nci_hci_connect_gate()
620 pipe = NCI_HCI_ADMIN_PIPE; in nci_hci_connect_gate()
625 r = nci_hci_open_pipe(ndev, pipe); in nci_hci_connect_gate()
629 ndev->hci_dev->pipes[pipe].gate = dest_gate; in nci_hci_connect_gate()
630 ndev->hci_dev->pipes[pipe].host = dest_host; in nci_hci_connect_gate()
631 ndev->hci_dev->gate2pipe[dest_gate] = pipe; in nci_hci_connect_gate()
645 gates->gate, gates->pipe); in nci_hci_dev_connect_gates()
678 ndev->hci_dev->init_data.gates[0].pipe); in nci_hci_dev_session_init()