Lines Matching defs:val
917 if (cp->val == 0x01)
919 else if (cp->val == 0x02)
942 return cp->val;
1208 if (cp->val != 0x00 && cp->val != 0x01)
1220 if (!!cp->val == hdev_is_powered(hdev)) {
1231 if (cp->val) {
1393 if (cp->val != 0x00 && cp->val != 0x01 && cp->val != 0x02)
1402 if ((cp->val == 0x00 && timeout > 0) ||
1403 (cp->val == 0x02 && timeout == 0))
1441 if (!!cp->val != hci_dev_test_flag(hdev, HCI_DISCOVERABLE)) {
1460 if (!!cp->val == hci_dev_test_flag(hdev, HCI_DISCOVERABLE) &&
1461 (cp->val == 0x02) == hci_dev_test_flag(hdev,
1466 if (cp->val && hdev->discov_timeout > 0) {
1489 if (cp->val)
1495 if (cp->val == 0x02)
1537 struct sock *sk, u8 val)
1542 if (!!val != hci_dev_test_flag(hdev, HCI_CONNECTABLE))
1545 if (val) {
1579 if (cp->val != 0x00 && cp->val != 0x01)
1586 err = set_connectable_update_settings(hdev, sk, cp->val);
1603 if (cp->val) {
1631 if (cp->val != 0x00 && cp->val != 0x01)
1637 if (cp->val)
1670 u8 val, status;
1680 if (cp->val != 0x00 && cp->val != 0x01)
1689 if (!!cp->val != hci_dev_test_flag(hdev, HCI_LINK_SECURITY)) {
1710 val = !!cp->val;
1712 if (test_bit(HCI_AUTH, &hdev->flags) == val) {
1723 err = hci_send_cmd(hdev, HCI_OP_WRITE_AUTH_ENABLE, sizeof(val), &val);
1751 if (cp->val != 0x00 && cp->val != 0x01)
1760 if (cp->val) {
1789 if (!!cp->val == hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) {
1800 if (!cp->val && hci_dev_test_flag(hdev, HCI_USE_DEBUG_KEYS))
1802 sizeof(cp->val), &cp->val);
1804 err = hci_send_cmd(hdev, HCI_OP_WRITE_SSP_MODE, 1, &cp->val);
1840 if (cp->val != 0x00 && cp->val != 0x01)
1852 if (cp->val) {
1930 u8 val, enabled;
1938 if (cp->val != 0x00 && cp->val != 0x01)
1952 if (cp->val == 0x01)
1961 val = !!cp->val;
1964 if (!val)
1967 if (!hdev_is_powered(hdev) || val == enabled) {
1970 if (val != hci_dev_test_flag(hdev, HCI_LE_ENABLED)) {
1975 if (!val && hci_dev_test_flag(hdev, HCI_ADVERTISING)) {
2007 if (val) {
2008 hci_cp.le = val;
2060 u32 val;
2065 val = get_unaligned_le32(&uuid[12]);
2066 if (val > 0xffff)
2401 key->val)) {
2413 hci_add_link_key(hdev, NULL, &key->addr.bdaddr, key->val,
3654 memcpy(b->val, keys->keys[i].val, sizeof(b->val));
3677 if (cp->val != 0x00 && cp->val != 0x01)
3692 !!cp->val != hci_dev_test_flag(hdev,
3700 if (cp->val)
3919 bool val, changed;
3940 val = !!cp->param[0];
3941 changed = val ? !bt_dbg_get() : bt_dbg_get();
3942 bt_dbg_set(val);
3945 rp.flags = cpu_to_le32(val ? BIT(0) : 0);
3954 exp_debug_feature_changed(val, sk);
3961 bool val, changed;
3989 val = !!cp->param[0];
3991 if (val) {
4018 exp_ll_privacy_feature_changed(val, hdev, sk);
5164 u8 val, status;
5181 if (cp->val != 0x00 && cp->val != 0x01 && cp->val != 0x02)
5191 val = !!cp->val;
5199 (val == hci_dev_test_flag(hdev, HCI_ADVERTISING) &&
5200 (cp->val == 0x02) == hci_dev_test_flag(hdev, HCI_ADVERTISING_CONNECTABLE)) ||
5206 if (cp->val) {
5209 if (cp->val == 0x02)
5243 if (cp->val == 0x02)
5250 if (val) {
5397 if (cp->val)
5427 if (cp->val != 0x00 && cp->val != 0x01)
5439 if (!!cp->val == hci_dev_test_flag(hdev, HCI_FAST_CONNECTABLE)) {
5462 __hci_req_write_fast_connectable(&req, cp->val);
5526 if (cp->val != 0x00 && cp->val != 0x01)
5532 if (cp->val == hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) {
5538 if (!cp->val) {
5557 if (!cp->val) {
5642 switch (cp->val) {
5672 u8 val;
5688 if (cp->val != 0x00 && cp->val != 0x01 && cp->val != 0x02)
5698 if (cp->val) {
5701 if (cp->val == 0x02)
5727 val = !!cp->val;
5729 if (val == hci_dev_test_flag(hdev, HCI_SC_ENABLED) &&
5730 (cp->val == 0x02) == hci_dev_test_flag(hdev, HCI_SC_ONLY)) {
5742 hci_req_add(&req, HCI_OP_WRITE_SC_SUPPORT, 1, &val);
5763 if (cp->val != 0x00 && cp->val != 0x01 && cp->val != 0x02)
5769 if (cp->val)
5775 if (cp->val == 0x02)
5784 u8 mode = (cp->val == 0x02) ? 0x01 : 0x00;
5926 irk->val)) {
5937 addr_type, irk->val,
6022 key->val)) {
6059 key->val, key->enc_size, key->ediv, key->rand);
8063 memcpy(ev.key.val, key->val, HCI_LINK_KEY_SIZE);
8124 memcpy(ev.key.val, key->val, key->enc_size);
8125 memset(ev.key.val + key->enc_size, 0,
8126 sizeof(ev.key.val) - key->enc_size);
8142 memcpy(ev.irk.val, irk->val, sizeof(irk->val));
8172 memcpy(ev.key.val, csrk->val, sizeof(csrk->val));
8268 if (!cp->val)