Lines Matching refs:qos
69 struct bt_iso_qos qos;
78 static bool check_ucast_qos(struct bt_iso_qos *qos);
79 static bool check_bcast_qos(struct bt_iso_qos *qos);
323 if (iso_pi(sk)->qos_user_set && !check_bcast_qos(&iso_pi(sk)->qos)) {
324 iso_pi(sk)->qos = default_qos;
330 if (!iso_pi(sk)->qos.bcast.out.phy) {
338 &iso_pi(sk)->qos, iso_pi(sk)->base_len,
347 &iso_pi(sk)->qos, iso_pi(sk)->base_len,
414 if (iso_pi(sk)->qos_user_set && !check_ucast_qos(&iso_pi(sk)->qos)) {
415 iso_pi(sk)->qos = default_qos;
421 if (!iso_pi(sk)->qos.ucast.in.phy && !iso_pi(sk)->qos.ucast.out.phy) {
430 &iso_pi(sk)->qos);
438 &iso_pi(sk)->qos);
487 return &iso_pi(sk)->qos;
493 struct bt_iso_qos *qos = iso_sock_get_qos(sk);
499 if (skb->len > qos->ucast.out.sdu)
789 iso_pi(sk)->qos = default_qos;
971 if (iso_pi(sk)->qos_user_set && !check_bcast_qos(&iso_pi(sk)->qos)) {
972 iso_pi(sk)->qos = default_qos;
978 iso_pi(sk)->bc_sid, &iso_pi(sk)->qos);
1214 &iso_pi(sk)->qos,
1258 static bool check_io_qos(struct bt_iso_io_qos *qos)
1261 if (!qos->phy && qos->sdu)
1264 if (qos->interval && (qos->interval < 0xff || qos->interval > 0xfffff))
1267 if (qos->latency && (qos->latency < 0x05 || qos->latency > 0xfa0))
1270 if (qos->phy > BT_ISO_PHY_ANY)
1276 static bool check_ucast_qos(struct bt_iso_qos *qos)
1278 if (qos->ucast.cig > 0xef && qos->ucast.cig != BT_ISO_QOS_CIG_UNSET)
1281 if (qos->ucast.cis > 0xef && qos->ucast.cis != BT_ISO_QOS_CIS_UNSET)
1284 if (qos->ucast.sca > 0x07)
1287 if (qos->ucast.packing > 0x01)
1290 if (qos->ucast.framing > 0x01)
1293 if (!check_io_qos(&qos->ucast.in))
1296 if (!check_io_qos(&qos->ucast.out))
1302 static bool check_bcast_qos(struct bt_iso_qos *qos)
1304 if (qos->bcast.sync_factor == 0x00)
1307 if (qos->bcast.packing > 0x01)
1310 if (qos->bcast.framing > 0x01)
1313 if (!check_io_qos(&qos->bcast.in))
1316 if (!check_io_qos(&qos->bcast.out))
1319 if (qos->bcast.encryption > 0x01)
1322 if (qos->bcast.options > 0x07)
1325 if (qos->bcast.skip > 0x01f3)
1328 if (qos->bcast.sync_timeout < 0x000a || qos->bcast.sync_timeout > 0x4000)
1331 if (qos->bcast.sync_cte_type > 0x1f)
1334 if (qos->bcast.mse > 0x1f)
1337 if (qos->bcast.timeout < 0x000a || qos->bcast.timeout > 0x4000)
1348 struct bt_iso_qos qos = default_qos;
1392 len = min_t(unsigned int, sizeof(qos), optlen);
1394 if (copy_from_sockptr(&qos, optval, len)) {
1399 if (len == sizeof(qos.ucast) && !check_ucast_qos(&qos)) {
1404 iso_pi(sk)->qos = qos;
1446 struct bt_iso_qos *qos;
1477 qos = iso_sock_get_qos(sk);
1479 len = min_t(unsigned int, len, sizeof(*qos));
1480 if (copy_to_user(optval, qos, len))
1602 return ev->handle == iso_pi(sk)->qos.bcast.big;
1695 iso_pi(sk)->qos = iso_pi(parent)->qos;
1696 iso_pi(sk)->qos.bcast.encryption = ev3->encryption;
1697 hcon->iso_qos = iso_pi(sk)->qos;
1816 &iso_pi(sk)->qos,