Lines Matching refs:el

461   for (tGATT_SRV_LIST_ELEM& el : *gatt_cb.srv_list_info) {  in gatt_build_primary_service_rsp()
462 if (el.s_hdl < s_hdl || el.s_hdl > e_hdl || in gatt_build_primary_service_rsp()
463 el.type != GATT_UUID_PRI_SERVICE) { in gatt_build_primary_service_rsp()
467 Uuid* p_uuid = gatts_get_service_uuid(el.p_db); in gatt_build_primary_service_rsp()
492 UINT16_TO_STREAM(p, el.s_hdl); in gatt_build_primary_service_rsp()
495 gatt_cb.last_service_handle == el.s_hdl) { in gatt_build_primary_service_rsp()
500 UINT16_TO_STREAM(p, el.e_hdl); in gatt_build_primary_service_rsp()
520 static tGATT_STATUS gatt_build_find_info_rsp(tGATT_SRV_LIST_ELEM& el, in gatt_build_find_info_rsp() argument
525 if (!el.p_db) return GATT_NOT_FOUND; in gatt_build_find_info_rsp()
531 for (auto& attr : el.p_db->attr_list) { in gatt_build_find_info_rsp()
697 for (tGATT_SRV_LIST_ELEM& el : *gatt_cb.srv_list_info) { in gatts_process_find_info()
698 if (el.s_hdl <= e_hdl && el.e_hdl >= s_hdl) { in gatts_process_find_info()
699 reason = gatt_build_find_info_rsp(el, p_msg, buf_len, s_hdl, e_hdl); in gatts_process_find_info()
825 for (tGATT_SRV_LIST_ELEM& el : *gatt_cb.srv_list_info) { in gatts_process_read_by_type_req()
826 if (el.s_hdl <= e_hdl && el.e_hdl >= s_hdl) { in gatts_process_read_by_type_req()
831 tcb, el.p_db, op_code, p_msg, s_hdl, e_hdl, uuid, &buf_len, sec_flag, in gatts_process_read_by_type_req()
864 void gatts_process_write_req(tGATT_TCB& tcb, tGATT_SRV_LIST_ELEM& el, in gatts_process_write_req() argument
909 status = gatts_write_attr_perm_check(el.p_db, op_code, handle, in gatts_process_write_req()
916 conn_id = GATT_CREATE_CONN_ID(tcb.tcb_idx, el.gatt_if); in gatts_process_write_req()
952 static void gatts_process_read_req(tGATT_TCB& tcb, tGATT_SRV_LIST_ELEM& el, in gatts_process_read_req() argument
981 tcb, el.p_db, op_code, handle, offset, p, &value_len, (uint16_t)buf_len, in gatts_process_read_req()
1037 for (auto& el : *gatt_cb.srv_list_info) { in gatts_process_attribute_req()
1038 if (el.s_hdl <= handle && el.e_hdl >= handle) { in gatts_process_attribute_req()
1039 for (const auto& attr : el.p_db->attr_list) { in gatts_process_attribute_req()
1044 gatts_process_read_req(tcb, el, op_code, handle, len, p); in gatts_process_attribute_req()
1051 gatts_process_write_req(tcb, el, handle, op_code, len, p, in gatts_process_attribute_req()
1170 for (auto& el : *gatt_cb.srv_list_info) { in gatts_process_value_conf()
1171 if (el.s_hdl <= handle && el.e_hdl >= handle) { in gatts_process_value_conf()
1173 uint16_t conn_id = GATT_CREATE_CONN_ID(tcb.tcb_idx, el.gatt_if); in gatts_process_value_conf()