Lines Matching refs:cnt
3379 int cnt, q; in hci_quote_sent() local
3390 cnt = hdev->acl_cnt; in hci_quote_sent()
3394 cnt = hdev->sco_cnt; in hci_quote_sent()
3397 cnt = hdev->le_mtu ? hdev->le_cnt : hdev->acl_cnt; in hci_quote_sent()
3402 cnt = hdev->iso_mtu ? hdev->iso_cnt : in hci_quote_sent()
3406 cnt = 0; in hci_quote_sent()
3410 q = cnt / num; in hci_quote_sent()
3587 static void __check_timeout(struct hci_dev *hdev, unsigned int cnt, u8 type) in __check_timeout() argument
3606 if (!cnt && time_after(jiffies, last_tx + HCI_ACL_TX_TIMEOUT)) in __check_timeout()
3615 int quote, *cnt; in hci_sched_sco() local
3627 cnt = &pkts; in hci_sched_sco()
3629 cnt = &hdev->sco_cnt; in hci_sched_sco()
3631 while (*cnt && (conn = hci_low_sent(hdev, type, "e))) { in hci_sched_sco()
3639 (*cnt)--; in hci_sched_sco()
3654 unsigned int cnt = hdev->acl_cnt; in hci_sched_acl_pkt() local
3659 __check_timeout(hdev, cnt, ACL_LINK); in hci_sched_acl_pkt()
3690 if (cnt != hdev->acl_cnt) in hci_sched_acl_pkt()
3709 int quote, *cnt, tmp; in hci_sched_le() local
3716 cnt = hdev->le_pkts ? &hdev->le_cnt : &hdev->acl_cnt; in hci_sched_le()
3718 __check_timeout(hdev, *cnt, LE_LINK); in hci_sched_le()
3720 tmp = *cnt; in hci_sched_le()
3721 while (*cnt && (chan = hci_chan_sent(hdev, LE_LINK, "e))) { in hci_sched_le()
3736 (*cnt)--; in hci_sched_le()
3746 if (*cnt != tmp) in hci_sched_le()
3755 int quote, *cnt; in hci_sched_iso() local
3762 cnt = hdev->iso_pkts ? &hdev->iso_cnt : in hci_sched_iso()
3764 while (*cnt && (conn = hci_low_sent(hdev, type, "e))) { in hci_sched_iso()
3772 (*cnt)--; in hci_sched_iso()