Lines Matching defs:qos

70 	struct bt_iso_qos	qos;
79 static bool check_ucast_qos(struct bt_iso_qos *qos);
80 static bool check_bcast_qos(struct bt_iso_qos *qos);
296 if (iso_pi(sk)->qos_user_set && !check_bcast_qos(&iso_pi(sk)->qos)) {
297 iso_pi(sk)->qos = default_qos;
303 if (!iso_pi(sk)->qos.bcast.out.phy) {
311 &iso_pi(sk)->qos, iso_pi(sk)->base_len,
320 &iso_pi(sk)->qos, iso_pi(sk)->base_len,
387 if (iso_pi(sk)->qos_user_set && !check_ucast_qos(&iso_pi(sk)->qos)) {
388 iso_pi(sk)->qos = default_qos;
394 if (!iso_pi(sk)->qos.ucast.in.phy && !iso_pi(sk)->qos.ucast.out.phy) {
403 &iso_pi(sk)->qos);
411 &iso_pi(sk)->qos);
460 return &iso_pi(sk)->qos;
466 struct bt_iso_qos *qos = iso_sock_get_qos(sk);
472 if (skb->len > qos->ucast.out.sdu)
629 if (iso_pi(sk)->qos.bcast.big != big)
700 iso_pi(sk)->qos.bcast.big);
831 iso_pi(sk)->qos = default_qos;
1074 if (iso_pi(sk)->qos_user_set && !check_bcast_qos(&iso_pi(sk)->qos)) {
1075 iso_pi(sk)->qos = default_qos;
1082 iso_pi(sk)->bc_sid, &iso_pi(sk)->qos);
1337 &iso_pi(sk)->qos,
1391 static bool check_io_qos(struct bt_iso_io_qos *qos)
1394 if (!qos->phy && qos->sdu)
1397 if (qos->interval && (qos->interval < 0xff || qos->interval > 0xfffff))
1400 if (qos->latency && (qos->latency < 0x05 || qos->latency > 0xfa0))
1403 if (qos->phy > BT_ISO_PHY_ANY)
1409 static bool check_ucast_qos(struct bt_iso_qos *qos)
1411 if (qos->ucast.cig > 0xef && qos->ucast.cig != BT_ISO_QOS_CIG_UNSET)
1414 if (qos->ucast.cis > 0xef && qos->ucast.cis != BT_ISO_QOS_CIS_UNSET)
1417 if (qos->ucast.sca > 0x07)
1420 if (qos->ucast.packing > 0x01)
1423 if (qos->ucast.framing > 0x01)
1426 if (!check_io_qos(&qos->ucast.in))
1429 if (!check_io_qos(&qos->ucast.out))
1435 static bool check_bcast_qos(struct bt_iso_qos *qos)
1437 if (!qos->bcast.sync_factor)
1438 qos->bcast.sync_factor = 0x01;
1440 if (qos->bcast.packing > 0x01)
1443 if (qos->bcast.framing > 0x01)
1446 if (!check_io_qos(&qos->bcast.in))
1449 if (!check_io_qos(&qos->bcast.out))
1452 if (qos->bcast.encryption > 0x01)
1455 if (qos->bcast.options > 0x07)
1458 if (qos->bcast.skip > 0x01f3)
1461 if (!qos->bcast.sync_timeout)
1462 qos->bcast.sync_timeout = BT_ISO_SYNC_TIMEOUT;
1464 if (qos->bcast.sync_timeout < 0x000a || qos->bcast.sync_timeout > 0x4000)
1467 if (qos->bcast.sync_cte_type > 0x1f)
1470 if (qos->bcast.mse > 0x1f)
1473 if (!qos->bcast.timeout)
1474 qos->bcast.sync_timeout = BT_ISO_SYNC_TIMEOUT;
1476 if (qos->bcast.timeout < 0x000a || qos->bcast.timeout > 0x4000)
1487 struct bt_iso_qos qos = default_qos;
1531 err = bt_copy_from_sockptr(&qos, sizeof(qos), optval, optlen);
1535 iso_pi(sk)->qos = qos;
1575 struct bt_iso_qos *qos;
1606 qos = iso_sock_get_qos(sk);
1608 len = min_t(unsigned int, len, sizeof(*qos));
1609 if (copy_to_user(optval, qos, len))
1733 return ev->handle == iso_pi(sk)->qos.bcast.big;
1831 iso_pi(sk)->qos = iso_pi(parent)->qos;
1832 hcon->iso_qos = iso_pi(sk)->qos;
1946 iso_pi(sk)->qos.bcast.encryption = ev2->encryption;
1954 &iso_pi(sk)->qos,