Lines Matching refs:s_hdl
511 uint16_t s_hdl, uint16_t e_hdl, UNUSED_ATTR uint8_t* p_data, in gatt_build_primary_service_rsp() argument
521 if (el.s_hdl < s_hdl || el.s_hdl > e_hdl || in gatt_build_primary_service_rsp()
551 UINT16_TO_STREAM(p, el.s_hdl); in gatt_build_primary_service_rsp()
554 gatt_cb.last_service_handle == el.s_hdl) { in gatt_build_primary_service_rsp()
581 uint16_t s_hdl, uint16_t e_hdl) { in gatt_build_find_info_rsp() argument
593 if (attr.handle < s_hdl) continue; in gatt_build_find_info_rsp()
627 static tGATT_STATUS read_handles(uint16_t& len, uint8_t*& p, uint16_t& s_hdl, in read_handles() argument
632 STREAM_TO_UINT16(s_hdl, p); in read_handles()
636 if (s_hdl > e_hdl || !GATT_HANDLE_IS_VALID(s_hdl) || in read_handles()
646 uint16_t& s_hdl, in gatts_validate_packet_format() argument
648 tGATT_STATUS ret = read_handles(len, p, s_hdl, e_hdl); in gatts_validate_packet_format()
679 uint16_t s_hdl = 0, e_hdl = 0; in gatts_process_primary_service_req() local
683 gatts_validate_packet_format(op_code, len, p_data, &uuid, s_hdl, e_hdl); in gatts_process_primary_service_req()
685 gatt_send_error_rsp(tcb, cid, reason, op_code, s_hdl, false); in gatts_process_primary_service_req()
691 gatt_send_error_rsp(tcb, cid, GATT_UNSUPPORT_GRP_TYPE, op_code, s_hdl, in gatts_process_primary_service_req()
699 gatt_send_error_rsp(tcb, cid, GATT_NOT_FOUND, op_code, s_hdl, false); in gatts_process_primary_service_req()
709 gatt_send_error_rsp(tcb, cid, GATT_INVALID_PDU, op_code, s_hdl, false); in gatts_process_primary_service_req()
718 reason = gatt_build_primary_service_rsp(p_msg, tcb, cid, op_code, s_hdl, in gatts_process_primary_service_req()
722 gatt_send_error_rsp(tcb, cid, reason, op_code, s_hdl, false); in gatts_process_primary_service_req()
742 uint16_t s_hdl = 0, e_hdl = 0; in gatts_process_find_info() local
743 uint8_t reason = read_handles(len, p_data, s_hdl, e_hdl); in gatts_process_find_info()
745 gatt_send_error_rsp(tcb, cid, reason, op_code, s_hdl, false); in gatts_process_find_info()
763 if (el.s_hdl <= e_hdl && el.e_hdl >= s_hdl) { in gatts_process_find_info()
764 reason = gatt_build_find_info_rsp(el, p_msg, buf_len, s_hdl, e_hdl); in gatts_process_find_info()
778 gatt_send_error_rsp(tcb, cid, reason, op_code, s_hdl, false); in gatts_process_find_info()
860 uint16_t s_hdl = 0, e_hdl = 0, err_hdl = 0; in gatts_process_read_by_type_req() local
862 gatts_validate_packet_format(op_code, len, p_data, &uuid, s_hdl, e_hdl); in gatts_process_read_by_type_req()
870 s_hdl, false); in gatts_process_read_by_type_req()
877 gatt_send_error_rsp(tcb, cid, reason, op_code, s_hdl, false); in gatts_process_read_by_type_req()
894 if (el.s_hdl <= e_hdl && el.e_hdl >= s_hdl) { in gatts_process_read_by_type_req()
899 tcb, cid, el.p_db, op_code, p_msg, s_hdl, e_hdl, uuid, &buf_len, in gatts_process_read_by_type_req()
907 s_hdl = err_hdl; in gatts_process_read_by_type_req()
921 gatt_send_error_rsp(tcb, cid, reason, op_code, s_hdl, false); in gatts_process_read_by_type_req()
1111 if (el.s_hdl <= handle && el.e_hdl >= handle) { in gatts_process_attribute_req()
1247 if (el.s_hdl <= handle && el.e_hdl >= handle) { in gatts_process_value_conf()
1270 uint16_t s_hdl = 0, e_hdl = 0; in gatts_process_db_out_of_sync() local
1273 &uuid, s_hdl, e_hdl); in gatts_process_db_out_of_sync()
1275 (s_hdl <= db_hash_handle && db_hash_handle <= e_hdl) && in gatts_process_db_out_of_sync()