Lines Matching refs:chan
2743 static void hci_queue_acl(struct hci_chan *chan, struct sk_buff_head *queue, in hci_queue_acl() argument
2746 struct hci_conn *conn = chan->conn; in hci_queue_acl()
2760 hci_add_acl_hdr(skb, chan->handle, flags); in hci_queue_acl()
2802 void hci_send_acl(struct hci_chan *chan, struct sk_buff *skb, __u16 flags) in hci_send_acl() argument
2804 struct hci_dev *hdev = chan->conn->hdev; in hci_send_acl()
2806 BT_DBG("%s chan %p flags 0x%4.4x", hdev->name, chan, flags); in hci_send_acl()
2810 hci_queue_acl(chan, &chan->data_q, skb, flags); in hci_send_acl()
2925 struct hci_chan *chan = NULL; in hci_chan_sent() local
2965 chan = tmp; in hci_chan_sent()
2975 if (!chan) in hci_chan_sent()
2978 switch (chan->conn->type) { in hci_chan_sent()
2999 BT_DBG("chan %p quote %d", chan, *quote); in hci_chan_sent()
3000 return chan; in hci_chan_sent()
3014 struct hci_chan *chan; in hci_prio_recalculate() local
3024 list_for_each_entry_rcu(chan, &conn->chan_list, list) { in hci_prio_recalculate()
3027 if (chan->sent) { in hci_prio_recalculate()
3028 chan->sent = 0; in hci_prio_recalculate()
3032 if (skb_queue_empty(&chan->data_q)) in hci_prio_recalculate()
3035 skb = skb_peek(&chan->data_q); in hci_prio_recalculate()
3041 BT_DBG("chan %p skb %p promoted to %d", chan, skb, in hci_prio_recalculate()
3073 struct hci_chan *chan; in hci_sched_acl_pkt() local
3080 (chan = hci_chan_sent(hdev, ACL_LINK, "e))) { in hci_sched_acl_pkt()
3081 u32 priority = (skb_peek(&chan->data_q))->priority; in hci_sched_acl_pkt()
3082 while (quote-- && (skb = skb_peek(&chan->data_q))) { in hci_sched_acl_pkt()
3083 BT_DBG("chan %p skb %p len %d priority %u", chan, skb, in hci_sched_acl_pkt()
3090 skb = skb_dequeue(&chan->data_q); in hci_sched_acl_pkt()
3092 hci_conn_enter_active_mode(chan->conn, in hci_sched_acl_pkt()
3099 chan->sent++; in hci_sched_acl_pkt()
3100 chan->conn->sent++; in hci_sched_acl_pkt()
3111 struct hci_chan *chan; in hci_sched_acl_blk() local
3126 (chan = hci_chan_sent(hdev, type, "e))) { in hci_sched_acl_blk()
3127 u32 priority = (skb_peek(&chan->data_q))->priority; in hci_sched_acl_blk()
3128 while (quote > 0 && (skb = skb_peek(&chan->data_q))) { in hci_sched_acl_blk()
3131 BT_DBG("chan %p skb %p len %d priority %u", chan, skb, in hci_sched_acl_blk()
3138 skb = skb_dequeue(&chan->data_q); in hci_sched_acl_blk()
3144 hci_conn_enter_active_mode(chan->conn, in hci_sched_acl_blk()
3153 chan->sent += blocks; in hci_sched_acl_blk()
3154 chan->conn->sent += blocks; in hci_sched_acl_blk()
3235 struct hci_chan *chan; in hci_sched_le() local
3254 while (cnt && (chan = hci_chan_sent(hdev, LE_LINK, "e))) { in hci_sched_le()
3255 u32 priority = (skb_peek(&chan->data_q))->priority; in hci_sched_le()
3256 while (quote-- && (skb = skb_peek(&chan->data_q))) { in hci_sched_le()
3257 BT_DBG("chan %p skb %p len %d priority %u", chan, skb, in hci_sched_le()
3264 skb = skb_dequeue(&chan->data_q); in hci_sched_le()
3270 chan->sent++; in hci_sched_le()
3271 chan->conn->sent++; in hci_sched_le()