Lines Matching refs:tGATT_ATTR16
105 return &((tGATT_ATTR16 *)p_db->p_attr_list)->p_value->uuid; in gatts_get_service_uuid()
118 static tGATT_STATUS gatts_check_attr_readability(tGATT_ATTR16 *p_attr, in gatts_check_attr_readability()
219 tGATT_ATTR16 *p_attr16 = (tGATT_ATTR16 *)p_attr; in read_attr_value()
228 …status = gatts_check_attr_readability((tGATT_ATTR16 *)p_attr, offset, read_long, sec_flag, key_siz… in read_attr_value()
249 len = (((tGATT_ATTR16 *)(p_attr16->p_next))->uuid_type == GATT_ATTR_UUID_TYPE_16) ? 5 :19; in read_attr_value()
256 if (((tGATT_ATTR16 *)(p_attr16->p_next))->uuid_type == GATT_ATTR_UUID_TYPE_16) in read_attr_value()
258 UINT16_TO_STREAM(p, ((tGATT_ATTR16 *)(p_attr16->p_next))->uuid); in read_attr_value()
335 tGATT_ATTR16 *p_attr; in gatts_db_read_attr_value_by_type()
342 p_attr = (tGATT_ATTR16 *)p_db->p_attr_list; in gatts_db_read_attr_value_by_type()
404 p_attr = (tGATT_ATTR16 *)p_attr->p_next; in gatts_db_read_attr_value_by_type()
443 tGATT_ATTR16 *p_attr; in gatts_add_included_service()
455 if ((p_attr = (tGATT_ATTR16 *) allocate_attr_in_db(p_db, &uuid, GATT_PERM_READ)) != NULL) in gatts_add_included_service()
493 tGATT_ATTR16 *p_char_decl, *p_char_val; in gatts_add_characteristic()
498 if ((p_char_decl = (tGATT_ATTR16 *)allocate_attr_in_db(p_db, &uuid, GATT_PERM_READ)) != NULL) in gatts_add_characteristic()
506 p_char_val = (tGATT_ATTR16 *)allocate_attr_in_db(p_db, p_char_uuid, perm); in gatts_add_characteristic()
586 tGATT_ATTR16 *p_char_dscptr; in gatts_add_char_descr()
591 if ((p_char_dscptr = (tGATT_ATTR16 *)allocate_attr_in_db(p_db, in gatts_add_char_descr()
638 tGATT_ATTR16 *p_attr; in gatts_read_attr_value_by_handle()
643 p_attr = (tGATT_ATTR16 *)p_db->p_attr_list; in gatts_read_attr_value_by_handle()
659 p_attr = (tGATT_ATTR16 *)p_attr->p_next; in gatts_read_attr_value_by_handle()
692 tGATT_ATTR16 *p_attr; in gatts_read_attr_perm_check()
696 p_attr = (tGATT_ATTR16 *)p_db->p_attr_list; in gatts_read_attr_perm_check()
707 p_attr = (tGATT_ATTR16 *) p_attr->p_next; in gatts_read_attr_perm_check()
736 tGATT_ATTR16 *p_attr; in gatts_write_attr_perm_check()
746 p_attr = (tGATT_ATTR16 *) p_db->p_attr_list; in gatts_write_attr_perm_check()
888 p_attr = (tGATT_ATTR16 *)p_attr->p_next; in gatts_write_attr_perm_check()
912 tGATT_ATTR16 *p_attr16 = NULL, *p_last; in allocate_attr_in_db()
924 len = sizeof(tGATT_ATTR16); in allocate_attr_in_db()
946 p_attr16 = (tGATT_ATTR16 *) p_db->p_free_mem; in allocate_attr_in_db()
978 p_last = (tGATT_ATTR16 *)p_db->p_attr_list; in allocate_attr_in_db()
981 p_last = (tGATT_ATTR16 *)p_last->p_next; in allocate_attr_in_db()
1019 tGATT_ATTR16 *p_cur, *p_next; in deallocate_attr_in_db()
1025 p_cur = (tGATT_ATTR16 *) p_db->p_attr_list; in deallocate_attr_in_db()
1026 p_next = (tGATT_ATTR16 *) p_cur->p_next; in deallocate_attr_in_db()
1029 p_cur = p_next, p_next = (tGATT_ATTR16 *)p_next->p_next) in deallocate_attr_in_db()
1169 tGATT_ATTR16 *p_attr; in gatts_db_add_service_declaration()
1181 if ((p_attr = (tGATT_ATTR16 *)(allocate_attr_in_db(p_db, &uuid, GATT_PERM_READ))) != NULL) in gatts_db_add_service_declaration()