Lines Matching refs:oacp
87 static bool ots_obj_validate_prop_against_oacp(uint32_t prop, uint32_t oacp) in ots_obj_validate_prop_against_oacp() argument
89 if (BT_OTS_OBJ_GET_PROP_DELETE(prop) > 0 && BT_OTS_OACP_GET_FEAT_DELETE(oacp) == 0) { in ots_obj_validate_prop_against_oacp()
93 if (BT_OTS_OBJ_GET_PROP_EXECUTE(prop) > 0 && BT_OTS_OACP_GET_FEAT_EXECUTE(oacp) == 0) { in ots_obj_validate_prop_against_oacp()
97 if (BT_OTS_OBJ_GET_PROP_READ(prop) > 0 && BT_OTS_OACP_GET_FEAT_READ(oacp) == 0) { in ots_obj_validate_prop_against_oacp()
101 if (BT_OTS_OBJ_GET_PROP_WRITE(prop) > 0 && BT_OTS_OACP_GET_FEAT_WRITE(oacp) == 0) { in ots_obj_validate_prop_against_oacp()
105 if (BT_OTS_OBJ_GET_PROP_APPEND(prop) > 0 && BT_OTS_OACP_GET_FEAT_APPEND(oacp) == 0) { in ots_obj_validate_prop_against_oacp()
109 if (BT_OTS_OBJ_GET_PROP_TRUNCATE(prop) > 0 && BT_OTS_OACP_GET_FEAT_TRUNCATE(oacp) == 0) { in ots_obj_validate_prop_against_oacp()
113 if (BT_OTS_OBJ_GET_PROP_PATCH(prop) > 0 && BT_OTS_OACP_GET_FEAT_PATCH(oacp) == 0) { in ots_obj_validate_prop_against_oacp()
329 if (!ots_obj_validate_prop_against_oacp(created_desc.props, ots->features.oacp)) { in bt_ots_obj_add_internal()
331 created_desc.props, ots->features.oacp); in bt_ots_obj_add_internal()
470 __ASSERT(ots_init->cb->obj_created || !BT_OTS_OACP_GET_FEAT_CREATE(ots_init->features.oacp), in bt_ots_init()
472 __ASSERT(ots_init->cb->obj_deleted || !BT_OTS_OACP_GET_FEAT_DELETE(ots_init->features.oacp), in bt_ots_init()
476 !BT_OTS_OACP_GET_FEAT_CHECKSUM(ots_init->features.oacp), in bt_ots_init()
479 __ASSERT(ots_init->cb->obj_read || !BT_OTS_OACP_GET_FEAT_READ(ots_init->features.oacp), in bt_ots_init()
481 __ASSERT(ots_init->cb->obj_write || !BT_OTS_OACP_GET_FEAT_WRITE(ots_init->features.oacp), in bt_ots_init()
488 if (ots_init->features.oacp & (~((uint32_t) OACP_FEAT))) { in bt_ots_init()
492 __ASSERT(!BT_OTS_OACP_GET_FEAT_CREATE(ots_init->features.oacp) || in bt_ots_init()
493 BT_OTS_OACP_GET_FEAT_WRITE(ots_init->features.oacp), in bt_ots_init()
496 ots->features.oacp = ots_init->features.oacp; in bt_ots_init()
497 LOG_DBG("OACP features: 0x%04X", ots->features.oacp); in bt_ots_init()