Home
last modified time | relevance | path

Searched refs:GPR_MIN (Results 1 – 23 of 23) sorted by relevance

/third_party/grpc/src/core/tsi/alts/frame_protector/
Dframe_handler.cc85 GPR_MIN(*bytes_size, in alts_write_frame_bytes()
100 GPR_MIN(writer->input_size - writer->input_bytes_written, *bytes_size); in alts_write_frame_bytes()
170 size_t bytes_to_write = GPR_MIN( in alts_read_frame_bytes()
202 size_t bytes_to_write = GPR_MIN(*bytes_size, reader->bytes_remaining); in alts_read_frame_bytes()
Dalts_frame_protector.cc159 size_t bytes_to_buffer = GPR_MIN(*unprotected_bytes_size, in alts_protect()
269 GPR_MIN(impl->max_unprotected_frame_size - in alts_unprotect()
293 size_t bytes_to_write = GPR_MIN( in alts_unprotect()
388 GPR_MIN(*max_protected_frame_size, kMaxFrameLength); in alts_create_frame_protector()
/third_party/grpc/test/core/gpr/
Duseful_test.cc31 GPR_ASSERT(GPR_MIN(1, 2) == 1); in main()
33 GPR_ASSERT(GPR_MIN(2, 1) == 1); in main()
/third_party/grpc/src/core/ext/transport/chttp2/transport/
Dwriting.cc333 return static_cast<uint32_t> GPR_MIN( in max_outgoing()
335 GPR_MIN(stream_remote_window(), t_->flow_control->remote_window())); in max_outgoing()
341 uint32_t send_bytes = static_cast<uint32_t> GPR_MIN( in FlushUncompressedBytes()
357 uint32_t send_bytes = static_cast<uint32_t> GPR_MIN( in FlushCompressedBytes()
Dflow_control.h271 return static_cast<uint32_t> GPR_MIN( in target_window()
Dflow_control.cc320 target *= 1 - GPR_MIN(1, (memory_pressure - kHighMemPressure) / in AdjustForMemoryPressure()
Dhpack_encoder.cc787 c, GPR_MIN(c->max_table_size, max_table_size)); in grpc_chttp2_hpack_compressor_set_max_usable_size()
811 max_table_size = GPR_MIN(max_table_size, c->max_usable_size); in grpc_chttp2_hpack_compressor_set_max_table_size()
Dchttp2_transport.cc1401 s->deadline = GPR_MIN(s->deadline, s->send_initial_metadata->deadline); in perform_stream_op_locked()
1939 GPR_MIN(s->frame_storage.length, GRPC_HEADER_SIZE_IN_BYTES), in grpc_chttp2_maybe_complete_recv_trailing_metadata()
Dhpack_parser.cc1658 const uint8_t* target = start + GPR_MIN(MAX_PARSE_LENGTH, end - start); in grpc_chttp2_hpack_parser_parse()
/third_party/grpc/src/core/lib/gpr/
Duseful.h24 #define GPR_MIN(a, b) ((a) < (b) ? (a) : (b)) macro
/third_party/grpc/test/core/tsi/alts/frame_protector/
Dframe_handler_test.cc71 size_t bytes_written = GPR_MIN(write_length, handler->buffer_size - offset); in frame()
86 size_t bytes_read = GPR_MIN(read_length, handler->buffer_size - offset); in deframe()
/third_party/grpc/src/core/lib/iomgr/
Dtimer_generic.cc605 if (next != nullptr) *next = GPR_MIN(*next, min_timer); in run_some_expired_timers()
650 *next = GPR_MIN(*next, g_shard_queue[0]->min_deadline); in run_some_expired_timers()
696 *next = GPR_MIN(*next, min_timer); in timer_check()
Derror.cc197 (*err)->arena_capacity = static_cast<uint8_t> GPR_MIN( in get_placement()
Dresource_quota.cc726 (gpr_atm)GPR_MIN((size_t)GPR_ATM_MAX, size)); in grpc_resource_quota_resize()
/third_party/grpc/src/core/ext/filters/client_channel/lb_policy/grpclb/
Dload_balancer_api.cc59 GPR_MIN(strlen(lb_service_name), GRPC_GRPCLB_SERVICE_NAME_MAX_LENGTH); in GrpcLbRequestCreate()
/third_party/grpc/test/core/util/
Dtrickle_endpoint.cc187 GPR_MIN(bytes, te->write_buffer.length), in grpc_trickle_endpoint_trickle()
/third_party/grpc/src/core/tsi/alts/zero_copy_frame_protector/
Dalts_zero_copy_grpc_protector.cc281 GPR_MIN(*max_protected_frame_size, kMaxFrameLength); in alts_zero_copy_grpc_protector_create()
/third_party/grpc/src/core/lib/surface/
Dchannel.cc314 static_cast<gpr_atm>(GPR_MIN(cur - 1, (255 * cur + size) / 256))); in grpc_channel_update_call_size_estimate()
Dcall.cc400 send_deadline = GPR_MIN(send_deadline, args->parent->send_deadline); in grpc_call_create()
/third_party/grpc/src/core/ext/transport/inproc/
Dinproc_transport.cc175 deadline = GPR_MIN(deadline, cs->write_buffer_deadline); in inproc_stream()
1025 *dl = GPR_MIN(*dl, op->payload->send_initial_metadata in perform_stream_op()
/third_party/grpc/src/core/tsi/
Dfake_transport_security.cc419 GPR_MIN(impl->max_frame_size, in fake_zero_copy_grpc_protector_protect()
/third_party/grpc/src/core/ext/filters/client_channel/xds/
Dxds_api.cc1671 numerator = GPR_MIN(numerator, 1000000); in DropParseAndAppend()
/third_party/grpc/src/core/ext/xds/
Dxds_api.cc2065 numerator = GPR_MIN(numerator, 1000000); in DropParseAndAppend()