Lines Matching refs:p_db
71 Uuid* gatts_get_service_uuid(tGATT_SVC_DB* p_db) { in gatts_get_service_uuid() argument
72 if (!p_db || p_db->attr_list.empty()) { in gatts_get_service_uuid()
76 return &p_db->attr_list[0].p_value->uuid; in gatts_get_service_uuid()
255 tGATT_TCB& tcb, tGATT_SVC_DB* p_db, uint8_t op_code, BT_HDR* p_rsp, in gatts_db_read_attr_value_by_type() argument
263 if (p_db) { in gatts_db_read_attr_value_by_type()
264 for (tGATT_ATTR& attr : p_db->attr_list) { in gatts_db_read_attr_value_by_type()
412 tGATT_ATTR* find_attr_by_handle(tGATT_SVC_DB* p_db, uint16_t handle) { in find_attr_by_handle() argument
413 if (!p_db) return nullptr; in find_attr_by_handle()
415 for (auto& attr : p_db->attr_list) { in find_attr_by_handle()
443 tGATT_TCB& tcb, tGATT_SVC_DB* p_db, uint8_t op_code, uint16_t handle, in gatts_read_attr_value_by_handle() argument
446 tGATT_ATTR* p_attr = find_attr_by_handle(p_db, handle); in gatts_read_attr_value_by_handle()
480 tGATT_STATUS gatts_read_attr_perm_check(tGATT_SVC_DB* p_db, bool is_long, in gatts_read_attr_perm_check() argument
484 tGATT_ATTR* p_attr = find_attr_by_handle(p_db, handle); in gatts_read_attr_perm_check()
508 tGATT_STATUS gatts_write_attr_perm_check(tGATT_SVC_DB* p_db, uint8_t op_code, in gatts_write_attr_perm_check() argument
518 tGATT_ATTR* p_attr = find_attr_by_handle(p_db, handle); in gatts_write_attr_perm_check()