Lines Matching refs:skb
25 struct sk_buff *skb)
39 if (skb) {
40 struct sock *sk = hci_skb_sk(skb);
46 hdev->req_rsp = skb_get(skb);
58 struct sk_buff *skb;
60 skb = bt_skb_alloc(len, GFP_ATOMIC);
61 if (!skb)
64 hdr = skb_put(skb, HCI_COMMAND_HDR_SIZE);
69 skb_put_data(skb, param, plen);
71 bt_dev_dbg(hdev, "skb len %d", skb->len);
73 hci_skb_pkt_type(skb) = HCI_COMMAND_PKT;
74 hci_skb_opcode(skb) = opcode;
80 hci_skb_sk(skb) = sk;
84 return skb;
91 struct sk_buff *skb;
101 skb = hci_cmd_sync_alloc(hdev, opcode, plen, param, sk);
102 if (!skb) {
110 bt_cb(skb)->hci.req_flags |= HCI_REQ_START;
112 hci_skb_event(skb) = event;
114 skb_queue_tail(&req->cmd_q, skb);
120 struct sk_buff *skb;
137 skb = skb_peek_tail(&req->cmd_q);
138 bt_cb(skb)->hci.req_complete_skb = hci_cmd_sync_complete;
139 bt_cb(skb)->hci.req_flags |= HCI_REQ_SKB;
156 struct sk_buff *skb;
194 skb = hdev->req_rsp;
200 kfree_skb(skb);
204 return skb;
220 struct sk_buff *skb;
228 skb = __hci_cmd_sync(hdev, opcode, plen, param, timeout);
231 return skb;
249 struct sk_buff *skb;
252 skb = __hci_cmd_sync_sk(hdev, opcode, plen, param, event, timeout, sk);
253 if (IS_ERR(skb)) {
256 PTR_ERR(skb));
257 return PTR_ERR(skb);
260 /* If command return a status event skb will be set to NULL as there are
261 * no parameters, in case of failure IS_ERR(skb) would have be set to
262 * the actual error would be found with PTR_ERR(skb).
264 if (!skb)
267 status = skb->data[0];
269 kfree_skb(skb);