Lines Matching refs:p_value
117 tGATT_STATUS read_attr_value(uint16_t handle, tGATT_VALUE* p_value, in read_attr_value() argument
119 uint8_t* p = p_value->value; in read_attr_value()
120 uint16_t offset = p_value->offset; in read_attr_value()
133 p_value->len = GATT_MAX_ATTR_LEN; in read_attr_value()
135 p_value->len = (uint16_t)strlen((char*)p_dev_name); in read_attr_value()
137 if (offset > p_value->len) in read_attr_value()
140 p_value->len -= offset; in read_attr_value()
142 ARRAY_TO_STREAM(p, p_dev_name, p_value->len); in read_attr_value()
143 DVLOG(1) << "GATT_UUID_GAP_DEVICE_NAME len=" << +p_value->len; in read_attr_value()
149 p_value->len = 2; in read_attr_value()
157 p_value->len = 8; in read_attr_value()
163 p_value->len = 1; in read_attr_value()
472 void GAP_BleAttrDBUpdate(uint16_t attr_uuid, tGAP_BLE_ATTR_VALUE* p_value) { in GAP_BleAttrDBUpdate() argument
481 db_attr.attr_value.icon = p_value->icon; in GAP_BleAttrDBUpdate()
486 (const void*)&p_value->conn_param, in GAP_BleAttrDBUpdate()
491 BTM_SetLocalDeviceName((char*)p_value->p_dev_name); in GAP_BleAttrDBUpdate()
495 db_attr.attr_value.addr_resolution = p_value->addr_resolution; in GAP_BleAttrDBUpdate()