Lines Matching refs:plen
51 struct sk_buff *hci_cmd_sync_alloc(struct hci_dev *hdev, u16 opcode, u32 plen, in hci_cmd_sync_alloc() argument
54 int len = HCI_COMMAND_HDR_SIZE + plen; in hci_cmd_sync_alloc()
64 hdr->plen = plen; in hci_cmd_sync_alloc()
66 if (plen) in hci_cmd_sync_alloc()
67 skb_put_data(skb, param, plen); in hci_cmd_sync_alloc()
85 static void hci_cmd_sync_add(struct hci_request *req, u16 opcode, u32 plen, in hci_cmd_sync_add() argument
91 bt_dev_dbg(hdev, "opcode 0x%4.4x plen %d", opcode, plen); in hci_cmd_sync_add()
99 skb = hci_cmd_sync_alloc(hdev, opcode, plen, param, sk); in hci_cmd_sync_add()
156 struct sk_buff *__hci_cmd_sync_sk(struct hci_dev *hdev, u16 opcode, u32 plen, in __hci_cmd_sync_sk() argument
168 hci_cmd_sync_add(&req, opcode, plen, param, event, sk); in __hci_cmd_sync_sk()
220 struct sk_buff *__hci_cmd_sync(struct hci_dev *hdev, u16 opcode, u32 plen, in __hci_cmd_sync() argument
223 return __hci_cmd_sync_sk(hdev, opcode, plen, param, 0, timeout, NULL); in __hci_cmd_sync()
228 struct sk_buff *hci_cmd_sync(struct hci_dev *hdev, u16 opcode, u32 plen, in hci_cmd_sync() argument
236 bt_dev_dbg(hdev, "opcode 0x%4.4x plen %d", opcode, plen); in hci_cmd_sync()
239 skb = __hci_cmd_sync(hdev, opcode, plen, param, timeout); in hci_cmd_sync()
247 struct sk_buff *__hci_cmd_sync_ev(struct hci_dev *hdev, u16 opcode, u32 plen, in __hci_cmd_sync_ev() argument
250 return __hci_cmd_sync_sk(hdev, opcode, plen, param, event, timeout, in __hci_cmd_sync_ev()
256 int __hci_cmd_sync_status_sk(struct hci_dev *hdev, u16 opcode, u32 plen, in __hci_cmd_sync_status_sk() argument
263 skb = __hci_cmd_sync_sk(hdev, opcode, plen, param, event, timeout, sk); in __hci_cmd_sync_status_sk()
284 int __hci_cmd_sync_status(struct hci_dev *hdev, u16 opcode, u32 plen, in __hci_cmd_sync_status() argument
287 return __hci_cmd_sync_status_sk(hdev, opcode, plen, param, 0, timeout, in __hci_cmd_sync_status()
292 int hci_cmd_sync_status(struct hci_dev *hdev, u16 opcode, u32 plen, in hci_cmd_sync_status() argument
298 err = __hci_cmd_sync_status(hdev, opcode, plen, param, timeout); in hci_cmd_sync_status()
6462 u32 plen; in hci_le_ext_create_conn_sync() local
6473 plen = sizeof(*cp); in hci_le_ext_create_conn_sync()
6481 plen += sizeof(*p); in hci_le_ext_create_conn_sync()
6490 plen += sizeof(*p); in hci_le_ext_create_conn_sync()
6498 plen += sizeof(*p); in hci_le_ext_create_conn_sync()
6502 plen, data, in hci_le_ext_create_conn_sync()