/device/soc/esp/esp32/components/bt/host/bluedroid/stack/gatt/ |
D | gatt_db.c | 43 static void *allocate_attr_in_db(tGATT_SVC_DB *p_db, tBT_UUID *p_uuid, tGATT_PERM perm); 125 tGATT_PERM perm = p_attr->permission; in gatts_check_attr_readability() local 131 min_key_size = (((perm & GATT_ENCRYPT_KEY_SIZE_MASK) >> 12)); in gatts_check_attr_readability() 137 if (!(perm & GATT_READ_ALLOWED)) { in gatts_check_attr_readability() 142 if ((perm & GATT_READ_AUTH_REQUIRED ) && !(sec_flag & GATT_SEC_FLAG_LKEY_UNAUTHED) && in gatts_check_attr_readability() 148 if ((perm & GATT_READ_MITM_REQUIRED ) && !(sec_flag & GATT_SEC_FLAG_LKEY_AUTHED)) { in gatts_check_attr_readability() 153 if ((perm & GATT_READ_ENCRYPTED_REQUIRED ) && !(sec_flag & GATT_SEC_FLAG_ENCRYPTED)) { in gatts_check_attr_readability() 158 …if ( (perm & GATT_READ_ENCRYPTED_REQUIRED) && (sec_flag & GATT_SEC_FLAG_ENCRYPTED) && (key_size < … in gatts_check_attr_readability() 163 …if ((perm & GATT_READ_AUTHORIZATION) && (!(sec_flag & GATT_SEC_FLAG_LKEY_AUTHED) || !(sec_flag & G… in gatts_check_attr_readability() 512 UINT16 gatts_add_characteristic (tGATT_SVC_DB *p_db, tGATT_PERM perm, in gatts_add_characteristic() argument [all …]
|
D | gatt_api.c | 295 tGATT_PERM perm, tGATT_CHAR_PROP property, in GATTS_AddCharacteristic() argument 305 if ( ((property & GATT_CHAR_PROP_BIT_AUTH) && !(perm & GATT_WRITE_SIGNED_PERM)) || in GATTS_AddCharacteristic() 306 ((perm & GATT_WRITE_SIGNED_PERM) && !(property & GATT_CHAR_PROP_BIT_AUTH)) ) { in GATTS_AddCharacteristic() 307 GATT_TRACE_DEBUG("Invalid configuration property=0x%x perm=0x%x\n ", property, perm); in GATTS_AddCharacteristic() 312 perm, in GATTS_AddCharacteristic() 337 tGATT_PERM perm, in GATTS_AddCharDescriptor() argument 354 perm, in GATTS_AddCharDescriptor()
|
/device/soc/chipsea/cst85/liteos_m/sdk/modules/btdm/ble/ble_stack/hl/inc/ |
D | hal_attm.h | 45 uint16_t perm; member 61 uint16_t perm; member 327 uint8_t attm_att_set_permission(uint16_t handle, uint16_t perm, uint16_t ext_perm); 345 uint8_t attm_att_update_perm(uint16_t handle, uint16_t access_mask, uint16_t perm); 359 uint8_t attm_svc_set_permission(uint16_t handle, uint8_t perm); 374 uint8_t attm_svc_get_permission(uint16_t handle, uint8_t* perm);
|
/device/soc/beken/bk7235/hals/communication/bluetooth/services/src/ |
D | ohos_bt_hal.c | 570 ohos_server_uuid_para[serverId]->ohos_att_db[0].perm=BK_BLE_PERM_SET(RD, ENABLE); in BleGattsAddService() 610 ohos_server_uuid_para[serverId]->ohos_att_db[index].perm=BK_BLE_PERM_SET(RD, ENABLE); in BleGattsAddCharacteristic() 639 ohos_server_uuid_para[serverId]->ohos_att_db[index].perm=mode; in BleGattsAddCharacteristic() 680 ohos_server_uuid_para[serverId]->ohos_att_db[index].perm|=BK_BLE_PERM_SET(RD, ENABLE); in BleGattsAddDescriptor() 684 ohos_server_uuid_para[serverId]->ohos_att_db[index].perm|=BK_BLE_PERM_SET(WRITE_REQ, ENABLE); in BleGattsAddDescriptor() 731 …rm:%x max_size:%d\r\n",i,ohos_server_uuid_para[serverId]->ohos_att_db[i].perm,ohos_server_uuid_pa… in BleGattsStartService() 810 bk_attr->perm = bk_attr->ext_perm = 0; in BleConvertAttr2BK() 839 bk_attr->perm|=BK_BLE_PERM_SET(RD, ENABLE); in BleConvertAttr2BK() 842 bk_attr->perm|=BK_BLE_PERM_SET(WRITE_REQ,ENABLE); in BleConvertAttr2BK() 851 bk_attr->perm|=BK_BLE_PERM_SET(RD, ENABLE); in BleConvertAttr2BK() [all …]
|
/device/soc/chipsea/cst85/liteos_m/sdk/modules/btdm/ble/ble_stack/hl/api/ |
D | hal_att.h | 921 #define PERM_GET(perm, access)\ argument 922 (((perm) & (PERM_MASK_ ## access)) >> (PERM_POS_ ## access)) 925 #define PERM_SET(perm, access, value)\ argument 926 …perm = ((perm & ~(PERM_MASK_ ## access)) | ((value << (PERM_POS_ ## access)) & (PERM_MASK_ ## acce… 933 #define PERM_IS_SET(perm, access, right) \ argument 934 (((perm) & (((PERM_RIGHT_ ## right) << (PERM_POS_ ## access))) \ 938 #define PERM_VAL(access, perm) \ argument 939 ((((perm) << (PERM_POS_ ## access))) & (PERM_MASK_ ## access))
|
/device/soc/amlogic/a311d/soc/amlogic/unifykey/ |
D | unifykey_dts.c | 63 tmp_item->perm = 0; in uk_item_parse_dt() 65 tmp_item->perm |= KEY_PERM_READ; in uk_item_parse_dt() 68 tmp_item->perm |= KEY_PERM_WRITE; in uk_item_parse_dt()
|
D | unifykey.c | 239 if ((key->perm & KEY_PERM_WRITE) != KEY_PERM_WRITE) { in key_unify_write() 284 if ((key->perm & KEY_PERM_READ) != KEY_PERM_READ) { in key_unify_read() 323 if ((key->perm & KEY_PERM_READ) != KEY_PERM_READ) { in key_unify_size() 357 int key_unify_query(struct aml_uk_dev *ukdev, char *name, unsigned int *state, unsigned int *perm) in key_unify_query() argument 368 if ((key->perm & KEY_PERM_READ) != KEY_PERM_READ) { in key_unify_query() 376 *perm = key->perm; in key_unify_query() 383 if (perm) { in key_unify_query() 384 *perm = key->perm; in key_unify_query() 526 unsigned int perm, state; in unifykey_unlocked_ioctl() local 574 ret = key_unify_query(ukdev, key->name, &state, &perm); in unifykey_unlocked_ioctl() [all …]
|
D | unifykey.h | 35 unsigned int perm; member 48 unsigned int perm; member
|
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/sdk/ |
D | ble_gatts.h | 271 uint16_t perm; /**< Attribute permissions, see @ref BLE_GATTS_ATTR_PERM. \n member 300 uint16_t perm; /**< Attribute permissions, see @ref BLE_GATTS_ATTR_PERM. \n member 465 uint16_t ble_gatts_attr_permission_set(uint16_t handle, uint16_t perm, uint16_t ext_perm);
|
/device/soc/esp/esp32/components/bt/host/bluedroid/bta/gatt/ |
D | bta_gatts_api.c | 219 … tBTA_GATT_PERM perm, tBTA_GATT_CHAR_PROP property, tGATT_ATTR_VAL *attr_val, in BTA_GATTS_AddCharacteristic() argument 232 p_buf->perm = perm; in BTA_GATTS_AddCharacteristic() 273 tBTA_GATT_PERM perm, in BTA_GATTS_AddCharDescriptor() argument 285 p_buf->perm = perm; in BTA_GATTS_AddCharDescriptor()
|
/device/soc/asrmicro/asr582x/liteos_m/sdk/drivers/ble_inc/ |
D | sonata_att.h | 943 #define SONATA_PERM_GET(perm, access) \ argument 944 (((perm) & (SONATA_PERM_MASK_ ## access)) >> (SONATA_PERM_POS_ ## access)) 947 #define SONATA_PERM_SET(perm, access, value) \ argument 948 …perm = (((perm) & ~(SONATA_PERM_MASK_ ## access)) | (((value) << (SONATA_PERM_POS_ ## access)) & (… 955 #define SONATA_PERM_IS_SET(perm, access, right) \ argument 956 (((perm) & (((SONATA_PERM_RIGHT_ ## right) << (SONATA_PERM_POS_ ## access))) \
|
D | sonata_gatt_api.h | 222 uint16_t perm; member 266 uint8_t perm; member 605 uint16_t sonata_ble_gatt_add_service(uint16_t start_hdl, uint8_t perm, uint8_t *uuid, 609 uint16_t sonata_ble_gatt_add_service_request(uint16_t start_hdl, uint8_t perm, uint8_t *uuid,
|
/device/soc/esp/esp32/components/bt/host/bluedroid/api/ |
D | esp_gatts_api.c | 136 … esp_gatt_perm_t perm, esp_gatt_char_prop_t property, esp_attr_value_t *char_val, in esp_ble_gatts_add_char() argument 156 arg.add_char.perm = perm; in esp_ble_gatts_add_char() 175 esp_gatt_perm_t perm, esp_attr_value_t *char_descr_val, in esp_ble_gatts_add_char_descr() argument 195 arg.add_descr.perm = perm; in esp_ble_gatts_add_char_descr()
|
/device/soc/asrmicro/asr582x/liteos_m/sdk/drivers/ble_src/ |
D | app.c | 84 uint8_t perm; member 1043 uint8_t perm = service_reg_env.reg_list[service_reg_env.reg_nb]->perm; in app_ble_gatt_add_srv_rsp_hand() local 1047 …dd_service_request(service_reg_env.reg_list[service_reg_env.reg_nb]->start_hdl, perm, uuid, nb_att, in app_ble_gatt_add_srv_rsp_hand() 1053 status_ind.len = SONATA_PERM_GET(service_reg_env.reg_list[reg_nb]->perm, SVC_UUID_LEN); in app_ble_gatt_add_srv_rsp_hand() 1061 …uint16_t app_ble_rsp_event_handler(uint16_t opt_id, uint8_t status, uint16_t handle, uint16_t perm, in app_ble_rsp_event_handler() argument 1064 …APP_TRC("APP_RESPONSE: %s opt_id=%04X, %d %d %d \r\n", __FUNCTION__, opt_id, perm, ext_perm, leng… in app_ble_rsp_event_handler() 1325 uint8_t perm = service_reg_env.reg_list[service_reg_env.reg_nb]->perm; in app_ble_gatt_add_srv_rsp() local 1329 …dd_service_request(service_reg_env.reg_list[service_reg_env.reg_nb]->start_hdl, perm, uuid, nb_att, in app_ble_gatt_add_srv_rsp() 1542 static void app_ble_enable_service(uint16_t start_hdl, uint8_t perm) in app_ble_enable_service() argument 1544 APP_TRC("app_ble_enable_service,handle =%02X(X) %d", start_hdl, perm); in app_ble_enable_service() [all …]
|
D | harmony_ble_adpter.c | 272 SONATA_PERM_SET(dst_attr->att_desc.perm, SVC_UUID_LEN, 2); in ble_ohos_add_service() 291 dst_attr->att_desc.perm = PRD_NA; in ble_ohos_add_char() 306 perm_2_perm(char_attr->permission, char_attr->properties, &dst_attr->att_desc.perm); in ble_ohos_add_char() 318 dst_attr->att_desc.perm = PRD_NA | PWR_NA; in ble_ohos_add_char() 512 …print_log("att %d %d %d\r\n", att_list[i].att_desc.perm, att_list[i].att_desc.ext_perm, att_list[i… in BleGattsStartServiceEx()
|
/device/soc/esp/esp32/components/bt/host/bluedroid/btc/profile/std/include/ |
D | btc_gatts.h | 95 esp_gatt_perm_t perm; member 105 esp_gatt_perm_t perm; member
|
/device/soc/beken/bk7235/liteos_m/bk_sdk_armino/include/modules/ |
D | ble_types.h | 96 #define BK_BLE_PERM_GET(perm, access)\ argument 97 (((perm) & (BK_BLE_ ## access ## _MASK)) >> (BK_BLE_ ## access ## _POS)) 608 uint16_t perm; member
|
/device/soc/esp/esp32/components/bt/host/bluedroid/btc/profile/std/gatt/ |
D | btc_gatts.c | 346 tBTA_GATT_PERM perm; in btc_gatts_act_create_attr_tab() local 357 perm = gatts_attr_db[i+1].att_desc.perm; in btc_gatts_act_create_attr_tab() 365 perm, char_property, &attr_val, &control); in btc_gatts_act_create_attr_tab() 395 tBTA_GATT_PERM perm = gatts_attr_db[i].att_desc.perm; in btc_gatts_act_create_attr_tab() local 406 BTA_GATTS_AddCharDescriptor(svc_hal, perm, &bta_char_uuid, &attr_val, &control); in btc_gatts_act_create_attr_tab() 664 arg->add_char.perm, arg->add_char.property, in btc_gatts_call_handler() 672 BTA_GATTS_AddCharDescriptor(arg->add_descr.service_handle, arg->add_descr.perm, &uuid, in btc_gatts_call_handler()
|
/device/soc/esp/esp32/components/bt/host/bluedroid/bta/gatt/include/ |
D | bta_gatts_int.h | 93 tBTA_GATT_PERM perm; member 107 tBTA_GATT_PERM perm; member
|
/device/soc/beken/bk7235/liteos_m/bk_sdk_armino/components/bk_ble/legacy_include/ |
D | bluetooth_legacy_include.h | 143 /* IN */ uint16_t perm, 155 /* IN */ uint16_t perm,
|
/device/soc/esp/esp32/components/bt/host/bluedroid/api/include/api/ |
D | esp_gatts_api.h | 400 … esp_gatt_perm_t perm, esp_gatt_char_prop_t property, esp_attr_value_t *char_val, 422 esp_gatt_perm_t perm, esp_attr_value_t *char_descr_val,
|
D | esp_gatt_defs.h | 318 uint16_t perm; /*!< Attribute permission */ member
|
/device/soc/rockchip/common/sdk_linux/ipc/ |
D | util.c | 696 struct ipc64_perm *perm, int extra_perm) in ipcctl_obtain_check() argument 710 audit_ipc_set_perm(extra_perm, perm->uid, perm->gid, perm->mode); in ipcctl_obtain_check()
|
/device/soc/telink/b91/b91_ble_sdk/stack/ble/host/attr/ |
D | att.h | 88 u8 perm; member
|
/device/soc/esp/esp32/components/bt/host/bluedroid/stack/include/stack/ |
D | gatt_api.h | 775 tGATT_PERM perm, tGATT_CHAR_PROP property, 797 extern UINT16 GATTS_AddCharDescriptor (UINT16 service_handle, tGATT_PERM perm,
|