Lines Matching refs:skb
291 static int sco_send_frame(struct sock *sk, struct sk_buff *skb)
294 int len = skb->len;
303 hci_send_sco(conn->hcon, skb);
308 static void sco_recv_frame(struct sco_conn *conn, struct sk_buff *skb)
320 BT_DBG("sk %p len %d", sk, skb->len);
326 if (!sock_queue_rcv_skb(sk, skb)) {
331 kfree_skb(skb);
469 static void sco_skb_put_cmsg(struct sk_buff *skb, struct msghdr *msg, struct sock *sk)
472 put_cmsg(msg, SOL_BLUETOOTH, BT_SCM_PKT_STATUS, sizeof(bt_cb(skb)->sco.pkt_status),
473 &bt_cb(skb)->sco.pkt_status);
738 struct sk_buff *skb;
752 skb = bt_skb_sendmsg(sk, msg, len, len, 0, 0);
753 if (IS_ERR(skb)) {
754 return PTR_ERR(skb);
760 err = sco_send_frame(sk, skb);
767 kfree_skb(skb);
1237 void sco_recv_scodata(struct hci_conn *hcon, struct sk_buff *skb)
1245 BT_DBG("conn %p len %d", conn, skb->len);
1247 if (skb->len) {
1248 sco_recv_frame(conn, skb);
1253 kfree_skb(skb);