Lines Matching full:qos

71 	struct bt_iso_qos	qos;
80 static bool check_ucast_qos(struct bt_iso_qos *qos);
81 static bool check_bcast_qos(struct bt_iso_qos *qos);
355 /* Fail if user set invalid QoS */
356 if (iso_pi(sk)->qos_user_set && !check_bcast_qos(&iso_pi(sk)->qos)) {
357 iso_pi(sk)->qos = default_qos;
363 if (!iso_pi(sk)->qos.bcast.out.phy) {
371 &iso_pi(sk)->qos, iso_pi(sk)->base_len,
381 iso_pi(sk)->bc_sid, &iso_pi(sk)->qos,
452 /* Fail if user set invalid QoS */
453 if (iso_pi(sk)->qos_user_set && !check_ucast_qos(&iso_pi(sk)->qos)) {
454 iso_pi(sk)->qos = default_qos;
460 if (!iso_pi(sk)->qos.ucast.in.phy && !iso_pi(sk)->qos.ucast.out.phy) {
466 if (iso_pi(sk)->qos.ucast.out.sdu && !hci_iso_count(hdev) &&
476 &iso_pi(sk)->qos,
485 &iso_pi(sk)->qos,
535 return &iso_pi(sk)->qos;
542 struct bt_iso_qos *qos = iso_sock_get_qos(sk);
548 if (skb->len > qos->ucast.out.sdu)
707 if (iso_pi(sk)->qos.bcast.big != big)
787 iso_pi(sk)->qos.bcast.big);
918 iso_pi(sk)->qos = default_qos;
1161 /* Fail if user set invalid QoS */
1162 if (iso_pi(sk)->qos_user_set && !check_bcast_qos(&iso_pi(sk)->qos)) {
1163 iso_pi(sk)->qos = default_qos;
1170 iso_pi(sk)->bc_sid, &iso_pi(sk)->qos);
1502 &iso_pi(sk)->qos,
1579 static bool check_io_qos(struct bt_iso_io_qos *qos)
1582 if (!qos->phy && qos->sdu)
1585 if (qos->interval && (qos->interval < 0xff || qos->interval > 0xfffff))
1588 if (qos->latency && (qos->latency < 0x05 || qos->latency > 0xfa0))
1591 if (qos->phy > BT_ISO_PHY_ANY)
1597 static bool check_ucast_qos(struct bt_iso_qos *qos)
1599 if (qos->ucast.cig > 0xef && qos->ucast.cig != BT_ISO_QOS_CIG_UNSET)
1602 if (qos->ucast.cis > 0xef && qos->ucast.cis != BT_ISO_QOS_CIS_UNSET)
1605 if (qos->ucast.sca > 0x07)
1608 if (qos->ucast.packing > 0x01)
1611 if (qos->ucast.framing > 0x01)
1614 if (!check_io_qos(&qos->ucast.in))
1617 if (!check_io_qos(&qos->ucast.out))
1623 static bool check_bcast_qos(struct bt_iso_qos *qos)
1625 if (!qos->bcast.sync_factor)
1626 qos->bcast.sync_factor = 0x01;
1628 if (qos->bcast.packing > 0x01)
1631 if (qos->bcast.framing > 0x01)
1634 if (!check_io_qos(&qos->bcast.in))
1637 if (!check_io_qos(&qos->bcast.out))
1640 if (qos->bcast.encryption > 0x01)
1643 if (qos->bcast.options > 0x07)
1646 if (qos->bcast.skip > 0x01f3)
1649 if (!qos->bcast.sync_timeout)
1650 qos->bcast.sync_timeout = BT_ISO_SYNC_TIMEOUT;
1652 if (qos->bcast.sync_timeout < 0x000a || qos->bcast.sync_timeout > 0x4000)
1655 if (qos->bcast.sync_cte_type > 0x1f)
1658 if (qos->bcast.mse > 0x1f)
1661 if (!qos->bcast.timeout)
1662 qos->bcast.sync_timeout = BT_ISO_SYNC_TIMEOUT;
1664 if (qos->bcast.timeout < 0x000a || qos->bcast.timeout > 0x4000)
1675 struct bt_iso_qos qos = default_qos;
1730 err = copy_safe_from_sockptr(&qos, sizeof(qos), optval, optlen);
1734 iso_pi(sk)->qos = qos;
1774 struct bt_iso_qos *qos;
1805 qos = iso_sock_get_qos(sk);
1807 len = min_t(unsigned int, len, sizeof(*qos));
1808 if (copy_to_user(optval, qos, len))
1927 return ev->handle == iso_pi(sk)->qos.bcast.big;
1934 return hcon->iso_qos.bcast.big == iso_pi(sk)->qos.bcast.big;
2039 iso_pi(sk)->qos = iso_pi(parent)->qos;
2040 hcon->iso_qos = iso_pi(sk)->qos;
2162 iso_pi(sk)->qos.bcast.encryption = ev2->encryption;
2170 &iso_pi(sk)->qos,