Lines Matching refs:p_attr
446 tGATT_ATTR* p_attr = find_attr_by_handle(p_db, handle); in gatts_read_attr_value_by_handle() local
447 if (!p_attr) return GATT_NOT_FOUND; in gatts_read_attr_value_by_handle()
450 tGATT_STATUS status = read_attr_value(*p_attr, offset, &pp, in gatts_read_attr_value_by_handle()
455 status = gatts_send_app_read_request(tcb, op_code, p_attr->handle, offset, in gatts_read_attr_value_by_handle()
456 trans_id, p_attr->gatt_type); in gatts_read_attr_value_by_handle()
484 tGATT_ATTR* p_attr = find_attr_by_handle(p_db, handle); in gatts_read_attr_perm_check() local
485 if (!p_attr) return GATT_NOT_FOUND; in gatts_read_attr_perm_check()
487 return gatts_check_attr_readability(*p_attr, 0, is_long, sec_flag, key_size); in gatts_read_attr_perm_check()
518 tGATT_ATTR* p_attr = find_attr_by_handle(p_db, handle); in gatts_write_attr_perm_check() local
519 if (!p_attr) return GATT_NOT_FOUND; in gatts_write_attr_perm_check()
521 tGATT_PERM perm = p_attr->permission; in gatts_write_attr_perm_check()
527 __func__, p_attr->permission, min_key_size); in gatts_write_attr_perm_check()
592 if (p_attr->uuid.IsEmpty()) { in gatts_write_attr_perm_check()
594 } else if (p_attr->uuid.Is16Bit()) { in gatts_write_attr_perm_check()
595 switch (p_attr->uuid.As16Bit()) { in gatts_write_attr_perm_check()
622 if (p_attr->uuid.Is16Bit() && in gatts_write_attr_perm_check()
623 (p_attr->uuid.As16Bit() == GATT_UUID_CHAR_CLIENT_CONFIG || in gatts_write_attr_perm_check()
624 p_attr->uuid.As16Bit() == GATT_UUID_CHAR_SRVR_CONFIG)) { in gatts_write_attr_perm_check()