Home
last modified time | relevance | path

Searched refs:attr_val (Results 1 – 13 of 13) sorted by relevance

/device/soc/esp/esp32/components/bt/host/bluedroid/stack/gatt/
Dgatt_db.c50 static BOOLEAN gatts_add_char_desc_value_check (tGATT_ATTR_VAL *attr_val, tGATTS_ATTR_CONTROL *cont…
284 if (p_attr16->p_value == NULL || p_attr16->p_value->attr_val.attr_val == NULL) { in read_attr_value()
287 else if (offset > p_attr16->p_value->attr_val.attr_len){ in read_attr_value()
292 UINT8 *value = (UINT8 *)(p_attr16->p_value->attr_val.attr_val) + offset; in read_attr_value()
293 UINT16 len_left = p_attr16->p_value->attr_val.attr_len - offset; in read_attr_value()
514 … tBT_UUID *p_char_uuid, tGATT_ATTR_VAL *attr_val, tGATTS_ATTR_CONTROL *control) in gatts_add_characteristic() argument
522 status = gatts_add_char_desc_value_check(attr_val, control); in gatts_add_characteristic()
549 if (attr_val != NULL) { in gatts_add_characteristic()
554 …BUG("attr_val->attr_len = %x, attr_val->attr_max_len = %x\n", attr_val->attr_len, attr_val->attr_m… in gatts_add_characteristic()
556 p_char_val->p_value->attr_val.attr_len = attr_val->attr_len; in gatts_add_characteristic()
[all …]
Dgatt_attr.c366 tGATT_ATTR_VAL attr_val = { in gatt_profile_db_init() local
369 .attr_val = ccc_value, in gatt_profile_db_init()
372 …ddCharDescriptor (service_handle, GATT_PERM_READ | GATT_PERM_WRITE , &descr_uuid, &attr_val, NULL); in gatt_profile_db_init()
Dgatt_sr.c423 …(queue_data->p_attr->p_value != NULL) && (queue_data->p_attr->p_value->attr_val.attr_val != NULL)){ in gatt_process_exec_write_req()
426 queue_data->p_attr->p_value->attr_val.attr_len = 0; in gatt_process_exec_write_req()
429 …memcpy(queue_data->p_attr->p_value->attr_val.attr_val+queue_data->offset, queue_data->value, queue… in gatt_process_exec_write_req()
431 queue_data->p_attr->p_value->attr_val.attr_len += queue_data->len; in gatt_process_exec_write_req()
1254 offset > p_attr->p_value->attr_val.attr_max_len) { in gatt_attr_process_prepare_write()
1259 ((offset + len) > p_attr->p_value->attr_val.attr_max_len)){ in gatt_attr_process_prepare_write()
Dgatt_api.c296 tGATT_ATTR_VAL *attr_val, tGATTS_ATTR_CONTROL *control) in GATTS_AddCharacteristic() argument
315 attr_val, control); in GATTS_AddCharacteristic()
338 … tBT_UUID *p_descr_uuid, tGATT_ATTR_VAL *attr_val, tGATTS_ATTR_CONTROL *control) in GATTS_AddCharDescriptor() argument
356 attr_val, control); in GATTS_AddCharDescriptor()
Dgatt_utils.c451 if ((p_value != NULL) && (p_value->attr_val.attr_val != NULL)){ in gatt_free_attr_value_buffer()
452 osi_free(p_value->attr_val.attr_val); in gatt_free_attr_value_buffer()
/device/soc/esp/esp32/components/bt/host/bluedroid/bta/gatt/
Dbta_gatts_api.c219 … tBTA_GATT_PERM perm, tBTA_GATT_CHAR_PROP property, tGATT_ATTR_VAL *attr_val, in BTA_GATTS_AddCharacteristic() argument
224 if(attr_val != NULL){ in BTA_GATTS_AddCharacteristic()
225 len = attr_val->attr_len; in BTA_GATTS_AddCharacteristic()
237 if(attr_val != NULL){ in BTA_GATTS_AddCharacteristic()
238 APPL_TRACE_DEBUG("!!!!!!attr_val->attr_len = %x\n",attr_val->attr_len); in BTA_GATTS_AddCharacteristic()
239 APPL_TRACE_DEBUG("!!!!!!!attr_val->attr_max_len = %x\n",attr_val->attr_max_len); in BTA_GATTS_AddCharacteristic()
240 p_buf->attr_val.attr_len = attr_val->attr_len; in BTA_GATTS_AddCharacteristic()
241 p_buf->attr_val.attr_max_len = attr_val->attr_max_len; in BTA_GATTS_AddCharacteristic()
242 p_buf->attr_val.attr_val = (uint8_t *)osi_malloc(len); in BTA_GATTS_AddCharacteristic()
243 if(p_buf->attr_val.attr_val != NULL){ in BTA_GATTS_AddCharacteristic()
[all …]
Dbta_gatts_act.c411 if(p_msg->api_add_char.attr_val.attr_max_len != 0){ in bta_gatts_add_char()
412 p_attr_val = &p_msg->api_add_char.attr_val; in bta_gatts_add_char()
436 if((p_attr_val != NULL) && (p_attr_val->attr_val != NULL)){ in bta_gatts_add_char()
437 osi_free(p_attr_val->attr_val); in bta_gatts_add_char()
462 if (p_msg->api_add_char_descr.attr_val.attr_max_len != 0) { in bta_gatts_add_char_descr()
463 p_attr_val = &p_msg->api_add_char_descr.attr_val; in bta_gatts_add_char_descr()
486 if((p_attr_val != NULL) && (p_attr_val->attr_val != NULL)){ in bta_gatts_add_char_descr()
487 osi_free(p_attr_val->attr_val); in bta_gatts_add_char_descr()
515 cb_data.attr_val.server_if = p_rcb->gatt_if; in bta_gatts_set_attr_value()
516 cb_data.attr_val.service_id = service_id; in bta_gatts_set_attr_value()
[all …]
/device/soc/esp/esp32/components/bt/host/bluedroid/btc/profile/std/gatt/
Dbtc_gatts.c344 tGATT_ATTR_VAL attr_val; in btc_gatts_act_create_attr_tab() local
358 attr_val.attr_len = gatts_attr_db[i+1].att_desc.length; in btc_gatts_act_create_attr_tab()
359 attr_val.attr_max_len = gatts_attr_db[i+1].att_desc.max_length; in btc_gatts_act_create_attr_tab()
362 attr_val.attr_val = gatts_attr_db[i+1].att_desc.value; in btc_gatts_act_create_attr_tab()
365 perm, char_property, &attr_val, &control); in btc_gatts_act_create_attr_tab()
394 tGATT_ATTR_VAL attr_val; in btc_gatts_act_create_attr_tab() local
399 attr_val.attr_len = gatts_attr_db[i].att_desc.length; in btc_gatts_act_create_attr_tab()
400 attr_val.attr_max_len = gatts_attr_db[i].att_desc.max_length; in btc_gatts_act_create_attr_tab()
401 attr_val.attr_val = gatts_attr_db[i].att_desc.value; in btc_gatts_act_create_attr_tab()
406 BTA_GATTS_AddCharDescriptor(svc_hal, perm, &bta_char_uuid, &attr_val, &control); in btc_gatts_act_create_attr_tab()
[all …]
/device/soc/esp/esp32/components/bt/host/bluedroid/bta/gatt/include/
Dbta_gatts_int.h96 tBTA_GATT_ATTR_VAL attr_val; member
109 tBTA_GATT_ATTR_VAL attr_val; member
/device/soc/esp/esp32/components/bt/host/bluedroid/stack/include/stack/
Dgatt_api.h334 UINT8 *attr_val; member
776 tGATT_ATTR_VAL *attr_val, tGATTS_ATTR_CONTROL *control);
798 … tBT_UUID *p_descr_uuid, tGATT_ATTR_VAL *attr_val,
/device/soc/esp/esp32/components/bt/host/bluedroid/bta/include/bta/
Dbta_gatt_api.h664 tBAT_GATTS_ATTR_VAL_RESULT attr_val; member
1327 … tBTA_GATT_PERM perm, tBTA_GATT_CHAR_PROP property, tGATT_ATTR_VAL *attr_val,
1349 const tBT_UUID * p_descr_uuid, tBTA_GATT_ATTR_VAL *attr_val,
/device/soc/esp/esp32/components/bt/host/bluedroid/stack/gatt/include/
Dgatt_int.h174 tGATT_ATTR_VAL attr_val; member
732 … tBT_UUID *p_char_uuid, tGATT_ATTR_VAL *attr_val,
735 tBT_UUID *p_dscp_uuid, tGATT_ATTR_VAL *attr_val,
/device/soc/winnermicro/wm800/board/include/bt/
Dwm_bt_def.h1031 uint8_t attr_val[WM_BTRC_MAX_APP_ATTR_SIZE]; member