/third_party/grpc/test/core/security/ |
D | secure_endpoint_test.cc | 39 size_t slice_size, grpc_slice* leftover_slices, size_t leftover_nslices, in secure_endpoint_create_fixture_tcp_socketpair() argument 60 a[0].value.integer = static_cast<int>(slice_size); in secure_endpoint_create_fixture_tcp_socketpair() 126 secure_endpoint_create_fixture_tcp_socketpair_noleftover(size_t slice_size) { in secure_endpoint_create_fixture_tcp_socketpair_noleftover() argument 127 return secure_endpoint_create_fixture_tcp_socketpair(slice_size, nullptr, 0, in secure_endpoint_create_fixture_tcp_socketpair_noleftover() 133 size_t slice_size) { in secure_endpoint_create_fixture_tcp_socketpair_noleftover_zero_copy() argument 134 return secure_endpoint_create_fixture_tcp_socketpair(slice_size, nullptr, 0, in secure_endpoint_create_fixture_tcp_socketpair_noleftover_zero_copy() 139 secure_endpoint_create_fixture_tcp_socketpair_leftover(size_t slice_size) { in secure_endpoint_create_fixture_tcp_socketpair_leftover() argument 142 return secure_endpoint_create_fixture_tcp_socketpair(slice_size, &s, 1, in secure_endpoint_create_fixture_tcp_socketpair_leftover() 148 size_t slice_size) { in secure_endpoint_create_fixture_tcp_socketpair_leftover_zero_copy() argument 151 return secure_endpoint_create_fixture_tcp_socketpair(slice_size, &s, 1, true); in secure_endpoint_create_fixture_tcp_socketpair_leftover_zero_copy() [all …]
|
/third_party/gstreamer/gstreamer/gst/ |
D | gstallocator.c | 366 gsize slice_size; member 389 GstMemory * parent, gsize slice_size, in _sysmem_init() argument 396 mem->slice_size = slice_size; in _sysmem_init() 409 gsize slice_size; in _sysmem_new() local 411 slice_size = sizeof (GstMemorySystem); in _sysmem_new() 413 mem = g_slice_alloc (slice_size); in _sysmem_new() 414 _sysmem_init (mem, flags, parent, slice_size, in _sysmem_new() 426 gsize aoffset, slice_size, padding; in _sysmem_new_block() local 434 slice_size = sizeof (GstMemorySystem) + maxsize; in _sysmem_new_block() 436 mem = g_slice_alloc (slice_size); in _sysmem_new_block() [all …]
|
D | gstbufferlist.c | 64 gsize slice_size; member 107 gsize slice_size; in _gst_buffer_list_free() local 122 slice_size = list->slice_size; in _gst_buffer_list_free() 125 memset (list, 0xff, slice_size); in _gst_buffer_list_free() 128 g_slice_free1 (slice_size, list); in _gst_buffer_list_free() 132 gst_buffer_list_init (GstBufferList * list, guint n_allocated, gsize slice_size) in gst_buffer_list_init() argument 141 list->slice_size = slice_size; in gst_buffer_list_init() 159 gsize slice_size; in gst_buffer_list_new_sized() local 167 slice_size = sizeof (GstBufferList) + (n_allocated - 1) * sizeof (gpointer); in gst_buffer_list_new_sized() 169 list = g_slice_alloc0 (slice_size); in gst_buffer_list_new_sized() [all …]
|
/third_party/grpc/test/core/iomgr/ |
D | tcp_posix_test.cc | 201 static void read_test(size_t num_bytes, size_t slice_size) { in read_test() argument 211 num_bytes, slice_size); in read_test() 218 a[0].value.integer = static_cast<int>(slice_size); in read_test() 253 static void large_read_test(size_t slice_size) { in large_read_test() argument 262 gpr_log(GPR_INFO, "Start large read test, slice size %" PRIuPTR, slice_size); in large_read_test() 269 a[0].value.integer = static_cast<int>(slice_size); in large_read_test() 307 static grpc_slice* allocate_blocks(size_t num_bytes, size_t slice_size, in allocate_blocks() argument 309 size_t nslices = num_bytes / slice_size + (num_bytes % slice_size ? 1u : 0u); in allocate_blocks() 318 slices[i] = grpc_slice_malloc(slice_size > num_bytes_left ? num_bytes_left in allocate_blocks() 319 : slice_size); in allocate_blocks() [all …]
|
D | endpoint_tests.cc | 70 size_t slice_size) { in begin_test() argument 72 return config.create_fixture(slice_size); in begin_test() 77 static grpc_slice* allocate_blocks(size_t num_bytes, size_t slice_size, in allocate_blocks() argument 79 size_t nslices = num_bytes / slice_size + (num_bytes % slice_size ? 1 : 0); in allocate_blocks() 89 slices[i] = grpc_slice_malloc(slice_size > num_bytes_left ? num_bytes_left in allocate_blocks() 90 : slice_size); in allocate_blocks() 196 size_t slice_size, bool shutdown) { in read_and_write_test() argument 199 begin_test(config, "read_and_write_test", slice_size); in read_and_write_test() 206 num_bytes, write_size, slice_size, shutdown); in read_and_write_test() 214 num_bytes, slice_size); in read_and_write_test()
|
D | endpoint_pair_test.cc | 35 size_t slice_size) { in create_fixture_endpoint_pair() argument 41 a[0].value.integer = static_cast<int>(slice_size); in create_fixture_endpoint_pair()
|
D | endpoint_tests.h | 36 grpc_endpoint_test_fixture (*create_fixture)(size_t slice_size);
|
/third_party/mesa3d/src/gallium/drivers/nouveau/nvc0/ |
D | nvc0_video_vp.c | 28 struct nouveau_bo *inter_bo, unsigned slice_size) in dump_comm_vp() argument 50 for (i = 0; i < comm->byte_ofs + slice_size; i += 0x10) { in dump_comm_vp() 75 uint32_t slice_size, bucket_size, ring_size, i; in nvc0_decoder_vp() local 92 nouveau_vp3_inter_sizes(dec, desc.h264->slice_count, &slice_size, &bucket_size, &ring_size); in nvc0_decoder_vp() 95 nouveau_vp3_inter_sizes(dec, 1, &slice_size, &bucket_size, &ring_size); in nvc0_decoder_vp() 137 PUSH_DATA (push, inter_addr + slice_size + bucket_size); // 718 inter_data_ofs in nvc0_decoder_vp() 144 PUSH_DATA (push, inter_addr + slice_size); // 720 bucket_ofs in nvc0_decoder_vp() 187 dump_comm_vp(dec, dec->comm, comm_seq, inter_bo, slice_size << 8); in nvc0_decoder_vp() 191 dump_comm_vp(dec, dec->comm, comm_seq, inter_bo, slice_size << 8); in nvc0_decoder_vp()
|
D | nvc0_video_bsp.c | 142 uint32_t slice_size, bucket_size, ring_size; in nvc0_decoder_bsp_end() local 188 nouveau_vp3_inter_sizes(dec, 1, &slice_size, &bucket_size, &ring_size); in nvc0_decoder_bsp_end() 192 PUSH_DATA (push, inter_addr + slice_size + bucket_size); // 408 interdata addr in nvc0_decoder_bsp_end() 197 nouveau_vp3_inter_sizes(dec, desc.h264->slice_count, &slice_size, &bucket_size, &ring_size); in nvc0_decoder_bsp_end() 201 PUSH_DATA (push, slice_size << 8); // 408 interparm size? in nvc0_decoder_bsp_end() 202 PUSH_DATA (push, inter_addr + slice_size + bucket_size); // 40c interdata addr in nvc0_decoder_bsp_end() 204 PUSH_DATA (push, inter_addr + slice_size); // 414 bucket? in nvc0_decoder_bsp_end()
|
/third_party/mesa3d/src/gallium/drivers/nouveau/nv50/ |
D | nv98_video_vp.c | 28 struct nouveau_bo *inter_bo, unsigned slice_size) in dump_comm_vp() argument 50 for (i = 0; i < comm->byte_ofs + slice_size; i += 0x10) { in dump_comm_vp() 75 uint32_t slice_size, bucket_size, ring_size, i; in nv98_decoder_vp() local 92 nouveau_vp3_inter_sizes(dec, desc.h264->slice_count, &slice_size, &bucket_size, &ring_size); in nv98_decoder_vp() 95 nouveau_vp3_inter_sizes(dec, 1, &slice_size, &bucket_size, &ring_size); in nv98_decoder_vp() 137 PUSH_DATA (push, inter_addr + slice_size + bucket_size); // 718 inter_data_ofs in nv98_decoder_vp() 144 PUSH_DATA (push, inter_addr + slice_size); // 720 bucket_ofs in nv98_decoder_vp() 187 dump_comm_vp(dec, dec->comm, comm_seq, inter_bo, slice_size << 8); in nv98_decoder_vp() 191 dump_comm_vp(dec, dec->comm, comm_seq, inter_bo, slice_size << 8); in nv98_decoder_vp()
|
D | nv98_video_bsp.c | 45 uint32_t slice_size, bucket_size, ring_size, bsp_size; in nv98_decoder_bsp() local 136 nouveau_vp3_inter_sizes(dec, 1, &slice_size, &bucket_size, &ring_size); in nv98_decoder_bsp() 140 PUSH_DATA (push, inter_addr + slice_size + bucket_size); // 408 interdata addr in nv98_decoder_bsp() 148 nouveau_vp3_inter_sizes(dec, desc.h264->slice_count, &slice_size, &bucket_size, &ring_size); in nv98_decoder_bsp() 152 PUSH_DATA (push, slice_size << 8); // 408 interparm size? in nv98_decoder_bsp() 153 PUSH_DATA (push, inter_addr + slice_size + bucket_size); // 40c interdata addr in nv98_decoder_bsp() 155 PUSH_DATA (push, inter_addr + slice_size); // 414 bucket? in nv98_decoder_bsp()
|
/third_party/grpc/test/cpp/microbenchmarks/ |
D | bm_byte_buffer.cc | 36 size_t slice_size = state.range(1); in BM_ByteBuffer_Copy() local 40 std::unique_ptr<char[]> buf(new char[slice_size]); in BM_ByteBuffer_Copy() 41 memset(buf.get(), 0, slice_size); in BM_ByteBuffer_Copy() 42 slices.emplace_back(buf.get(), slice_size); in BM_ByteBuffer_Copy()
|
/third_party/grpc/src/core/lib/compression/ |
D | stream_compression_gzip.cc | 50 size_t slice_size = max_output_size < OUTPUT_BLOCK_SIZE ? max_output_size in gzip_flate() local 52 grpc_slice slice_out = GRPC_SLICE_MALLOC(slice_size); in gzip_flate() 53 ctx->zs.avail_out = static_cast<uInt>(slice_size); in gzip_flate() 118 } else if (ctx->zs.avail_out < slice_size) { in gzip_flate() 125 max_output_size -= (slice_size - ctx->zs.avail_out); in gzip_flate()
|
/third_party/pcre2/pcre2/maint/ |
D | MultiStage2.py | 359 slice_type, slice_size = get_type_size(record_slice) 361 size = (size + slice_size - 1) & -slice_size 362 size += slice_size 367 slice_type, slice_size = get_type_size(record_slice) 368 size = (size + slice_size - 1) & -slice_size
|
/third_party/ffmpeg/libavcodec/ |
D | fic.c | 376 unsigned slice_size; in fic_decode_frame() local 385 slice_size = msize; in fic_decode_frame() 388 slice_size = AV_RB32(src + tsize + FIC_HEADER_SIZE + slice * 4 + 4); in fic_decode_frame() 389 if (slice_size < slice_off) in fic_decode_frame() 393 if (slice_size < slice_off || slice_size > msize) in fic_decode_frame() 396 slice_size -= slice_off; in fic_decode_frame() 399 ctx->slice_data[slice].src_size = slice_size; in fic_decode_frame()
|
D | dxtory.c | 355 int slice_size, int off) in check_slice_size() argument 359 if (slice_size > src_size - off) { in check_slice_size() 362 slice_size, src_size - off); in check_slice_size() 365 if (slice_size <= 16) { in check_slice_size() 367 slice_size); in check_slice_size() 372 if (cur_slice_size != slice_size - 16) { in check_slice_size() 375 cur_slice_size, slice_size - 16); in check_slice_size() 437 uint32_t off, slice_size; in dxtory_decode_v2() local 449 slice_size = bytestream2_get_le32(&gb_check); in dxtory_decode_v2() 451 if (slice_size <= 16 + (avctx->height * avctx->width / (8 * nslices))) in dxtory_decode_v2() [all …]
|
D | aic.c | 393 int slice_size; in aic_decode_frame() local 421 slice_size = bytestream2_get_le16(&gb) * 4; in aic_decode_frame() 422 if (slice_size + off > buf_size || !slice_size) { in aic_decode_frame() 424 "Incorrect slice size %d at %d.%d\n", slice_size, x, y); in aic_decode_frame() 428 ret = aic_decode_slice(ctx, x, y, buf + off, slice_size); in aic_decode_frame() 435 off += slice_size; in aic_decode_frame()
|
D | utvideodec.c | 135 int slice_data_start, slice_data_end, slice_size; in decode_plane10() local 144 slice_size = slice_data_end - slice_data_start; in decode_plane10() 146 if (!slice_size) { in decode_plane10() 152 memset(c->slice_bits + slice_size, 0, AV_INPUT_BUFFER_PADDING_SIZE); in decode_plane10() 156 init_get_bits(&gb, c->slice_bits, slice_size * 8); in decode_plane10() 296 int slice_data_start, slice_data_end, slice_size; in decode_plane() local 305 slice_size = slice_data_end - slice_data_start; in decode_plane() 307 if (!slice_size) { in decode_plane() 313 memset(c->slice_bits + slice_size, 0, AV_INPUT_BUFFER_PADDING_SIZE); in decode_plane() 317 init_get_bits(&gb, c->slice_bits, slice_size * 8); in decode_plane() [all …]
|
D | proresenc_anatoliy.c | 544 int ret = 0, slice_size; in encode_slice() local 593 slice_size = encode_slice_data(avctx, blocks_y, blocks_u, blocks_v, in encode_slice() 608 slice_size = encode_slice_data(avctx, blocks_y, blocks_u, blocks_v, in encode_slice() 613 if (slice_size > high_bytes && *qp < qp_end_table[avctx->profile]) { in encode_slice() 616 slice_size = encode_slice_data(avctx, blocks_y, blocks_u, blocks_v, in encode_slice() 620 } while (slice_size > high_bytes && *qp < qp_end_table[avctx->profile]); in encode_slice() 621 } else if (slice_size < low_bytes && *qp in encode_slice() 625 slice_size = encode_slice_data(avctx, blocks_y, blocks_u, blocks_v, in encode_slice() 629 } while (slice_size < low_bytes && *qp > qp_start_table[avctx->profile]); in encode_slice() 645 buf + hdr_size + slice_size, in encode_slice() [all …]
|
/third_party/mesa3d/src/gallium/drivers/nouveau/ |
D | nouveau_vp3_video.h | 192 uint32_t *slice_size, uint32_t *bucket_size, in nouveau_vp3_inter_sizes() argument 195 *slice_size = (SLICE_SIZE * slice_count)>>8; in nouveau_vp3_inter_sizes() 200 *ring_size = (dec->inter_bo[0]->size >> 8) - *bucket_size - *slice_size; in nouveau_vp3_inter_sizes()
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/ |
D | slice_cpu_kernel.cc | 72 int slice_size = LongToInt(size[i]); in InitSliceParam() local 73 if (slice_size <= 0) { in InitSliceParam() 77 slice_param_.size_[i] = slice_size; in InitSliceParam()
|
/third_party/mindspore/mindspore/lite/tools/optimizer/graph/ |
D | slice_prepose_pass.cc | 523 auto slice_size = GetSliceBeginAndSize(slice_cnode, SliceSizeIndex); in GetReshapeAbnormalIndexOut() local 536 …MS_CHECK_TRUE_MSG(static_cast<int>(slice_size.size()) > index, false, "slice_size.size() is wrong"… in GetReshapeAbnormalIndexOut() 537 if (slice_begin[index] != 0 || (slice_size[index] != -1 && slice_size[index] != shape_out[j])) { in GetReshapeAbnormalIndexOut() 547 …(slice_size[index] == -1 ? shape_out[j] - slice_begin[index] : static_cast<int64_t>(slice_size[ind… in GetReshapeAbnormalIndexOut() 569 auto slice_size = GetSliceBeginAndSize(slice_cnode, SliceSizeIndex); in PreposeWithNormalReshape() local 575 MS_CHECK_TRUE_MSG(slice_size.size() >= mapped_axe.size(), false, "slice_begin.size() is wrong"); in PreposeWithNormalReshape() 582 new_size[axe_in] = slice_size[i]; in PreposeWithNormalReshape() 720 auto slice_size = GetSliceBeginAndSize(slice_cnode, SliceSizeIndex); in PreposeWithAbnormalReshape() local 745 …MS_CHECK_TRUE_MSG(static_cast<int>(slice_size.size()) > abnormal_index_out, false, "slice_size.siz… in PreposeWithAbnormalReshape() 748 …slice_size[abnormal_index_out] == -1 ? 0 : (shape_out[abnormal_axe_out] - slice_size[abnormal_inde… in PreposeWithAbnormalReshape() [all …]
|
/third_party/gstreamer/gstplugins_bad/sys/va/ |
D | gstvadecoder.h | 75 gsize slice_size); 83 gsize slice_size);
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/ |
D | slice_base.c | 21 int32_t slice_size[DIMENSION_8D]; in PadSliceParameterTo8D() local 26 slice_size[i] = param->size_[i] < 0 ? param->shape_[i] - begin[i] : param->size_[i]; in PadSliceParameterTo8D() 34 param->size_[i] = slice_size[real_index]; in PadSliceParameterTo8D()
|
/third_party/mindspore/mindspore/numpy/ |
D | utils.py | 179 slice_size = slice_end - slice_start 181 index_end = _tuple_setitem(index_end, axis, slice_size)
|