Lines Matching refs:perm

44                                        tGATT_PERM perm);
87 tGATT_PERM perm = attr.permission; in gatts_check_attr_readability() local
89 min_key_size = (((perm & GATT_ENCRYPT_KEY_SIZE_MASK) >> 12)); in gatts_check_attr_readability()
94 if (!(perm & GATT_READ_ALLOWED)) { in gatts_check_attr_readability()
99 if ((perm & GATT_READ_AUTH_REQUIRED) && in gatts_check_attr_readability()
106 if ((perm & GATT_READ_MITM_REQUIRED) && in gatts_check_attr_readability()
112 if ((perm & GATT_READ_ENCRYPTED_REQUIRED) && in gatts_check_attr_readability()
118 if ((perm & GATT_READ_ENCRYPTED_REQUIRED) && in gatts_check_attr_readability()
366 uint16_t gatts_add_characteristic(tGATT_SVC_DB& db, tGATT_PERM perm, in gatts_add_characteristic() argument
371 VLOG(1) << StringPrintf("%s: perm=0x%0x property=0x%0x", __func__, perm, in gatts_add_characteristic()
375 tGATT_ATTR& char_val = allocate_attr_in_db(db, char_uuid, perm); in gatts_add_characteristic()
398 uint16_t gatts_add_char_descr(tGATT_SVC_DB& db, tGATT_PERM perm, in gatts_add_char_descr() argument
404 tGATT_ATTR& char_dscptr = allocate_attr_in_db(db, descr_uuid, perm); in gatts_add_char_descr()
521 tGATT_PERM perm = p_attr->permission; in gatts_write_attr_perm_check() local
522 uint16_t min_key_size = (((perm & GATT_ENCRYPT_KEY_SIZE_MASK) >> 12)); in gatts_write_attr_perm_check()
530 (perm & GATT_WRITE_SIGNED_PERM)) { in gatts_write_attr_perm_check()
534 if ((perm & GATT_PERM_WRITE_SIGNED) && (perm & GATT_PERM_WRITE_ENCRYPTED)) { in gatts_write_attr_perm_check()
535 perm = GATT_PERM_WRITE_ENCRYPTED; in gatts_write_attr_perm_check()
539 else if (((perm & GATT_PERM_WRITE_SIGNED_MITM) && in gatts_write_attr_perm_check()
540 (perm & GATT_PERM_WRITE_ENCRYPTED)) || in gatts_write_attr_perm_check()
542 ((perm & GATT_WRITE_SIGNED_PERM) && in gatts_write_attr_perm_check()
543 (perm & GATT_PERM_WRITE_ENC_MITM))) { in gatts_write_attr_perm_check()
544 perm = GATT_PERM_WRITE_ENC_MITM; in gatts_write_attr_perm_check()
549 if ((op_code == GATT_SIGN_CMD_WRITE) && !(perm & GATT_WRITE_SIGNED_PERM)) { in gatts_write_attr_perm_check()
558 } else if (!(perm & GATT_WRITE_ALLOWED)) { in gatts_write_attr_perm_check()
563 else if ((perm & GATT_WRITE_AUTH_REQUIRED) && in gatts_write_attr_perm_check()
567 } else if ((perm & GATT_WRITE_MITM_REQUIRED) && in gatts_write_attr_perm_check()
571 } else if ((perm & GATT_WRITE_ENCRYPTED_PERM) && in gatts_write_attr_perm_check()
575 } else if ((perm & GATT_WRITE_ENCRYPTED_PERM) && in gatts_write_attr_perm_check()
582 else if (perm & GATT_WRITE_SIGNED_PERM && op_code != GATT_SIGN_CMD_WRITE && in gatts_write_attr_perm_check()
584 (perm & GATT_WRITE_ALLOWED) == 0) { in gatts_write_attr_perm_check()
654 tGATT_PERM perm) { in allocate_attr_in_db() argument
665 attr.permission = perm; in allocate_attr_in_db()