/kernel/linux/linux-6.6/arch/x86/xen/ |
H A D | enlighten_pv.c | 507 unsigned int size = dtr->size + 1; in xen_load_gdt() local 513 /* @size should be at most GDT_SIZE which is smaller than PAGE_SIZE. */ in xen_load_gdt() 514 BUG_ON(size > PAGE_SIZE); in xen_load_gdt() 534 if (HYPERVISOR_set_gdt(&mfn, size / sizeof(struct desc_struct))) in xen_load_gdt() 544 unsigned int size = dtr->size + 1; in xen_load_gdt_boot() local 548 /* @size should be at most GDT_SIZE which is smaller than PAGE_SIZE. */ in xen_load_gdt_boot() 549 BUG_ON(size > PAGE_SIZE); in xen_load_gdt_boot() 560 if (HYPERVISOR_set_gdt(&mfn, size / sizeo in xen_load_gdt_boot() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/ |
H A D | nouveau_gem.c | 234 nouveau_gem_new(struct nouveau_cli *cli, u64 size, int align, uint32_t domain, in nouveau_gem_new() argument 254 nvbo = nouveau_bo_alloc(cli, &size, &align, domain, tile_mode, in nouveau_gem_new() 264 ret = drm_gem_object_init(drm->dev, &nvbo->bo.base, size); in nouveau_gem_new() 274 ret = nouveau_bo_init(nvbo, size, align, domain, NULL, resv); in nouveau_gem_new() 321 rep->size = nvbo->bo.base.size; in nouveau_gem_info() 349 ret = nouveau_gem_new(cli, req->info.size, req->align, in nouveau_gem_ioctl_new() 686 nvbo->bo.base.size)) { in nouveau_gem_pushbuf_reloc_apply() 693 ret = ttm_bo_kmap(&nvbo->bo, 0, PFN_UP(nvbo->bo.base.size), in nouveau_gem_pushbuf_reloc_apply() 897 PFN_UP(nvbo->bo.base.size), in nouveau_gem_ioctl_pushbuf() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/ipu-v3/ |
H A D | ipu-cpmem.c | 30 #define IPU_CPMEM_WORD(word, ofs, size) ((((word) * 160 + (ofs)) << 8) | (size)) 104 u32 size = wbs & 0xff; in ipu_ch_param_write_field() local 108 u32 mask = (1 << size) - 1; in ipu_ch_param_write_field() 111 pr_debug("%s %d %d %d\n", __func__, word, bit , size); in ipu_ch_param_write_field() 118 if ((bit + size - 1) / 32 > i) { in ipu_ch_param_write_field() 130 u32 size = wbs & 0xff; in ipu_ch_param_read_field() local 134 u32 mask = (1 << size) - 1; in ipu_ch_param_read_field() 137 pr_debug("%s %d %d %d\n", __func__, word, bit , size); in ipu_ch_param_read_field() 141 if ((bit + size in ipu_ch_param_read_field() [all...] |
/kernel/linux/linux-6.6/drivers/iio/imu/bno055/ |
H A D | bno055.c | 301 dev_dbg(priv->dev, "Invalid calibration file size %d (expected %d)", in bno055_calibration_load() 846 int size, int *vals, int *val_len, in bno055_read_quaternion() 855 if (size < 4) in bno055_read_quaternion() 868 if (size < 2) in bno055_read_quaternion() 903 int size, int *vals, int *val_len, in _bno055_read_raw_multi() 914 if (size < 2) in _bno055_read_raw_multi() 930 size, vals, in _bno055_read_raw_multi() 932 if (size < 2) in _bno055_read_raw_multi() 945 int size, int *vals, int *val_len, in bno055_read_raw_multi() 952 ret = _bno055_read_raw_multi(indio_dev, chan, size, in bno055_read_raw_multi() 844 bno055_read_quaternion(struct iio_dev *indio_dev, struct iio_chan_spec const *chan, int size, int *vals, int *val_len, long mask) bno055_read_quaternion() argument 901 _bno055_read_raw_multi(struct iio_dev *indio_dev, struct iio_chan_spec const *chan, int size, int *vals, int *val_len, long mask) _bno055_read_raw_multi() argument 943 bno055_read_raw_multi(struct iio_dev *indio_dev, struct iio_chan_spec const *chan, int size, int *vals, int *val_len, long mask) bno055_read_raw_multi() argument [all...] |
/kernel/linux/linux-6.6/tools/mm/ |
H A D | slabinfo.c | 117 "-B|--Bytes Show size in bytes\n" in usage() 131 "-S|--Size Sort by size\n" in usage() 258 * Put a size string together 809 /* Object size */ in totals() 858 unsigned long long size; in totals() local 870 size = slab_size(s); in totals() 872 wasted = size - used; in totals() 891 if (size < min_size) in totals() 892 min_size = size; in totals() 916 if (size > max_siz in totals() 1352 _xtotals(char *heading, char *underline, int loss, int size, int partial) _xtotals() argument [all...] |
/kernel/linux/linux-6.6/net/sunrpc/xprtrdma/ |
H A D | verbs.c | 79 rpcrdma_regbuf_alloc(size_t size, enum dma_data_direction direction); 573 /* Fixed-size circular FIFO queue. This implementation is wait-free and 626 * the circular queue size stops Send Queue overflow by causing in rpcrdma_sendctxs_create() 649 /* The sendctx queue is not guaranteed to have a size that is a 804 * @size: initial size, in bytes, of send and receive buffers 809 size_t size) in rpcrdma_req_create() 818 req->rl_sendbuf = rpcrdma_regbuf_alloc(size, DMA_TO_DEVICE); in rpcrdma_req_create() 822 req->rl_recvbuf = rpcrdma_regbuf_alloc(size, DMA_NONE); in rpcrdma_req_create() 853 /* Compute maximum header buffer size i in rpcrdma_req_setup() 808 rpcrdma_req_create(struct rpcrdma_xprt *r_xprt, size_t size) rpcrdma_req_create() argument 1230 rpcrdma_regbuf_alloc(size_t size, enum dma_data_direction direction) rpcrdma_regbuf_alloc() argument 1258 rpcrdma_regbuf_realloc(struct rpcrdma_regbuf *rb, size_t size, gfp_t flags) rpcrdma_regbuf_realloc() argument [all...] |
/kernel/linux/linux-6.6/scripts/kconfig/ |
H A D | symbol.c | 644 int size; in sym_set_string_value() local 671 size = strlen(newval) + 1; in sym_set_string_value() 673 size += 2; in sym_set_string_value() 674 sym->def[S_DEF_USER].val = val = xmalloc(size); in sym_set_string_value() 678 sym->def[S_DEF_USER].val = val = xmalloc(size); in sym_set_string_value() 911 int i, cnt, size; in sym_re_search() local 915 cnt = size = 0; in sym_re_search() 927 if (cnt >= size) { in sym_re_search() 929 size += 16; in sym_re_search() 930 tmp = realloc(sym_match_arr, size * sizeo in sym_re_search() [all...] |
/kernel/linux/linux-6.6/drivers/scsi/aic94xx/ |
H A D | aic94xx_hwi.c | 220 seq->next_scb.size = sizeof(struct scb); in asd_init_scbs() 356 eb->size = cpu_to_le32(((u32) edb->size)); in asd_assign_edbs2escbs() 505 int size; in asd_extend_devctx() local 515 size = (max_devs - asd_ha->hw_prof.max_ddbs + 1) * ASD_DDB_SIZE; in asd_extend_devctx() 517 asd_ha->hw_prof.ddb_ext = asd_alloc_coherent(asd_ha, size, GFP_KERNEL); in asd_extend_devctx() 543 int size; in asd_extend_cmdctx() local 551 size = (max_cmnds - asd_ha->hw_prof.max_scbs + 1) * ASD_SCB_SIZE; in asd_extend_cmdctx() 553 asd_ha->hw_prof.scb_ext = asd_alloc_coherent(asd_ha, size, GFP_KERNEL); in asd_extend_cmdctx() 1039 ascb->dma_scb.size in asd_ascb_alloc() [all...] |
/kernel/linux/linux-6.6/kernel/trace/ |
H A D | trace_functions_graph.c | 1188 int size = 0; in print_lat_header() local 1191 size += 16; in print_lat_header() 1193 size += 16; in print_lat_header() 1195 size += 4; in print_lat_header() 1197 size += 17; in print_lat_header() 1199 seq_printf(s, "#%.*s _-----=> irqs-off \n", size, spaces); in print_lat_header() 1200 seq_printf(s, "#%.*s / _----=> need-resched \n", size, spaces); in print_lat_header() 1201 seq_printf(s, "#%.*s| / _---=> hardirq/softirq \n", size, spaces); in print_lat_header() 1202 seq_printf(s, "#%.*s|| / _--=> preempt-depth \n", size, spaces); in print_lat_header() 1203 seq_printf(s, "#%.*s||| / \n", size, space in print_lat_header() [all...] |
/third_party/elfio/tests/ |
H A D | ELFIOTest.cpp | 59 EXPECT_EQ( reader.sections.size(), secNum ); in checkHeader() 60 EXPECT_EQ( reader.segments.size(), segNum ); in checkHeader() 70 Elf_Xword size, in checkSection() 81 EXPECT_EQ( sec->get_size(), size ); in checkSection() 94 Elf_Xword size, in checkSection() 100 checkSection( sec, sec->get_index(), name, type, flags, address, size, link, in checkSection() 136 Elf_Xword size; in checkSymbol() local 143 sr.get_symbol( index, name, value, size, bind, type, section, other ), in checkSymbol() 147 EXPECT_EQ( size, size_ ); in checkSymbol() 232 for ( Elf_Half i = 0; i < reader.sections.size(); in TEST() 64 checkSection( const section* sec, Elf_Half index, const std::string& name, Elf_Word type, Elf_Xword flags, Elf64_Addr address, Elf_Xword size, Elf_Word link, Elf_Word info, Elf_Xword addrAlign, Elf_Xword entrySize ) checkSection() argument 89 checkSection( const section* sec, const std::string& name, Elf_Word type, Elf_Xword flags, Elf64_Addr address, Elf_Xword size, Elf_Word link, Elf_Word info, Elf_Xword addrAlign, Elf_Xword entrySize ) checkSection() argument [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | 4xm.c | 133 unsigned int size; member 736 av_log(f->avctx, AV_LOG_ERROR, "packet size too small\n"); in decode_i2_frame() 786 av_log(f->avctx, AV_LOG_ERROR, "packet size too small\n"); in decode_i_frame() 795 av_log(f->avctx, AV_LOG_ERROR, "size mismatch %d %d %d\n", in decode_i_frame() 841 int buf_size = avpkt->size; in decode_frame() 851 av_log(f->avctx, AV_LOG_ERROR, "size mismatch %d %"PRIu32"\n", in decode_frame() 885 if (f->cfrm[i].size == 0) in decode_frame() 897 if (data_size > UINT_MAX - cfrm->size - AV_INPUT_BUFFER_PADDING_SIZE) in decode_frame() 901 cfrm->size + data_size + AV_INPUT_BUFFER_PADDING_SIZE); in decode_frame() 908 memcpy(cfrm->data + cfrm->size, bu in decode_frame() [all...] |
/third_party/backends/backend/ |
H A D | v4l.c | 261 s->opt[i].size = sizeof (SANE_Word); in init_options() 290 s->opt[OPT_MODE].size = 1; /* '\0' */ in init_options() 294 if (s->opt[OPT_MODE].size < len) in init_options() 295 s->opt[OPT_MODE].size = len; in init_options() 312 s->opt[OPT_CHANNEL].size = 1; /* '\0' */ in init_options() 316 if (s->opt[OPT_CHANNEL].size < len) in init_options() 317 s->opt[OPT_CHANNEL].size = len; in init_options() 1001 s->mbuf.size, s->mbuf.frames, s->mbuf.offsets[0]); in sane_start() 1003 v4l1_mmap (0, s->mbuf.size, PROT_READ | PROT_WRITE, MAP_SHARED, s->fd, 0); in sane_start() 1121 v4l1_munmap(buffer, s->mbuf.size); in sane_cancel() [all...] |
/third_party/googletest/googletest/include/gtest/internal/ |
H A D | gtest-internal.h | 248 // Defines the unsigned integer type that has the same size as the 1018 bool ArrayEq(const T* lhs, size_t size, const U* rhs); 1036 bool ArrayEq(const T* lhs, size_t size, const U* rhs) { in ArrayEq() argument 1037 for (size_t i = 0; i != size; i++) { in ArrayEq() 1058 void CopyArray(const T* from, size_t size, U* to); 1076 void CopyArray(const T* from, size_t size, U* to) { in CopyArray() argument 1077 for (size_t i = 0; i != size; i++) { in CopyArray() 1125 size_t size() const { return size_; } in size() function in testing::internal::NativeArray 1129 return size() == rhs.size() in operator ==() [all...] |
/third_party/icu/icu4c/source/test/cintltst/ |
H A D | cnmdptst.c | 840 int32_t i, j, size; in TestGetKeywordValuesForLocale() local 867 size = uenum_count(pref, &status); in TestGetKeywordValuesForLocale() 869 if (size == EXPECTED_SIZE[i]) { in TestGetKeywordValuesForLocale() 871 for (j = 0; j < size; j++) { in TestGetKeywordValuesForLocale() 886 log_err("FAIL: size of locale \"%s\" %d does not match expected size %d\n", loc, size, EXPECTED_SIZE[i]); in TestGetKeywordValuesForLocale() 897 size = uenum_count(all, &status); in TestGetKeywordValuesForLocale() 899 if (U_SUCCESS(status) && size == uenum_count(ALL, &status)) { in TestGetKeywordValuesForLocale() 902 for (j = 0; j < size; in TestGetKeywordValuesForLocale() [all...] |
/third_party/icu/tools/colprobe/ |
H A D | colprobeNew.cpp | 449 const int32_t size = sizeof(stuff)/sizeof(stuff[0]); in checkCaseOrdering() local 451 Line **sortedLines = new Line*[size]; in checkCaseOrdering() 452 Line lines[size]; in checkCaseOrdering() 457 for(i = 0; i < size; i++) { in checkCaseOrdering() 460 //setArray(sortedLines, lines, size); in checkCaseOrdering() 461 qsort(sortedLines, size, sizeof(Line*), gComparer); in checkCaseOrdering() 463 for(i = 0; i < size; i++) { in checkCaseOrdering() 467 if(*(sortedLines+i) == &lines[size-i-1]) { in checkCaseOrdering() 473 if(ordered == size) { in checkCaseOrdering() 475 } else if(reversed == size) { in checkCaseOrdering() [all...] |
/third_party/icu/icu4c/source/common/ |
H A D | unisetspan.cpp | 12 * tab size: 8 (not used) 226 int32_t stringsLength=strings.size(); in UnicodeSetStringSpan() 411 int32_t stringsLength=strings.size(); in UnicodeSetStringSpan() 653 int32_t i, stringsLength=strings.size(); in span() 817 int32_t i, stringsLength=strings.size(); in spanBack() 983 int32_t i, stringsLength=strings.size(); in spanUTF8() 1160 int32_t i, stringsLength=strings.size(); in spanBackUTF8() 1351 int32_t i, stringsLength=strings.size(); in spanNot() 1394 int32_t i, stringsLength=strings.size(); in spanNotBack() 1437 int32_t i, stringsLength=strings.size(); in spanNotUTF8() [all...] |
/third_party/mesa3d/src/broadcom/vulkan/ |
H A D | v3dv_queue.c | 56 bool ok = v3dv_bo_map(device, bo, bo->size); in v3dv_clif_dump() 62 clif_dump_add_bo(clif, name, bo->offset, bo->size, bo->map); in v3dv_clif_dump() 275 assert(!bo->map || bo->map_size == bo->size); in handle_copy_query_results_cpu_job() 276 if (!bo->map && !v3dv_bo_map(job->device, bo, bo->size)) in handle_copy_query_results_cpu_job() 364 assert(!dst_bo->map || dst_bo->map_size == dst_bo->size); in handle_copy_buffer_to_image_cpu_job() 365 if (!dst_bo->map && !v3dv_bo_map(job->device, dst_bo, dst_bo->size)) in handle_copy_buffer_to_image_cpu_job() 370 assert(!src_bo->map || src_bo->map_size == src_bo->size); in handle_copy_buffer_to_image_cpu_job() 371 if (!src_bo->map && !v3dv_bo_map(job->device, src_bo, src_bo->size)) in handle_copy_buffer_to_image_cpu_job() 447 if (!bo->map && !v3dv_bo_map(job->device, bo, bo->size)) in handle_csd_indirect_cpu_job() 764 submit.qms = job->tile_alloc->size; in handle_cl_job() [all...] |
/third_party/mesa3d/src/gallium/drivers/vc4/ |
H A D | vc4_resource.c | 49 fprintf(stderr, "alloc %p: size %d + offset %d -> %d\n", in vc4_resource_bo_alloc() 51 rsc->slices[0].size, in vc4_resource_bo_alloc() 54 rsc->slices[0].size + in vc4_resource_bo_alloc() 60 rsc->slices[0].size + in vc4_resource_bo_alloc() 409 slice->size = level_height * slice->stride; in vc4_setup_slices() 411 offset += slice->size; in vc4_setup_slices() 448 rsc->slices[0].size, 4096); in vc4_setup_slices() 687 if (rsc->slices[0].offset + rsc->slices[0].size > in vc4_resource_from_handle() 688 rsc->bo->size) { in vc4_resource_from_handle() 692 rsc->slices[0].size, in vc4_resource_from_handle() [all...] |
/third_party/mesa3d/src/gtest/include/gtest/internal/ |
H A D | gtest-internal.h | 240 // Defines the unsigned integer type that has the same size as the 957 bool ArrayEq(const T* lhs, size_t size, const U* rhs); 973 bool ArrayEq(const T* lhs, size_t size, const U* rhs) { in ArrayEq() argument 974 for (size_t i = 0; i != size; i++) { in ArrayEq() 997 void CopyArray(const T* from, size_t size, U* to); 1013 void CopyArray(const T* from, size_t size, U* to) { in CopyArray() argument 1014 for (size_t i = 0; i != size; i++) { in CopyArray() 1063 size_t size() const { return size_; } in size() function in testing::internal::NativeArray 1067 return size() == rhs.size() in operator ==() [all...] |
/third_party/node/deps/v8/third_party/zlib/google/ |
H A D | zip_reader_unittest.cc | 397 // The directory size should be zero. in TEST_F() 518 std::string data(kTestData, std::size(kTestData)); in TEST_F() 600 EXPECT_EQ(contents.size(), listener.current_progress()); in TEST_F() 632 EXPECT_EQ(contents.size(), listener.current_progress()); in TEST_F() 664 EXPECT_EQ(contents.size(), listener.current_progress()); in TEST_F() 768 // |max_read_bytes| is larger than file size. in TEST_F() 917 ASSERT_TRUE(writer.WriteBytes(payload.data(), payload.size())); in TEST_F() 918 EXPECT_EQ(payload.size(), writer.file_length()); in TEST_F() 921 EXPECT_EQ(payload.size(), file_.GetLength()); in TEST_F() 931 ASSERT_TRUE(writer.WriteBytes(payload.data(), payload.size())); in TEST_F() [all...] |
/third_party/node/deps/zlib/google/ |
H A D | zip_reader_unittest.cc | 391 // The directory size should be zero. in TEST_F() 504 std::string data(kTestData, std::size(kTestData)); in TEST_F() 586 EXPECT_EQ(contents.size(), listener.current_progress()); in TEST_F() 618 EXPECT_EQ(contents.size(), listener.current_progress()); in TEST_F() 650 EXPECT_EQ(contents.size(), listener.current_progress()); in TEST_F() 754 // |max_read_bytes| is larger than file size. in TEST_F() 903 ASSERT_TRUE(writer.WriteBytes(payload.data(), payload.size())); in TEST_F() 904 EXPECT_EQ(payload.size(), writer.file_length()); in TEST_F() 907 EXPECT_EQ(payload.size(), file_.GetLength()); in TEST_F() 917 ASSERT_TRUE(writer.WriteBytes(payload.data(), payload.size())); in TEST_F() [all...] |
/third_party/node/src/ |
H A D | node_zlib.cc | 479 // Allocation functions provided to zlib itself. We store the real size of 485 static void* AllocForZlib(void* data, uInt items, uInt size) { in AllocForZlib() argument 488 static_cast<size_t>(size)); in AllocForZlib() 492 static void* AllocForBrotli(void* data, size_t size) { in AllocForBrotli() argument 493 size += sizeof(size_t); in AllocForBrotli() 495 char* memory = UncheckedMalloc(size); in AllocForBrotli() 497 *reinterpret_cast<size_t*>(memory) = size; in AllocForBrotli() 498 ctx->unreported_allocations_.fetch_add(size, in AllocForBrotli() 594 // to use the window size in the zlib header of the compressed stream. in Init() 835 dictionary_.size()); in DoThreadPoolWork() [all...] |
/third_party/nghttp2/src/ |
H A D | shrpx_downstream.cc | 319 len += kv.value.size() + str_size("; "); in assemble_request_cookie() 331 for (auto it = std::begin(kv.value) + kv.value.size(); in assemble_request_cookie() 377 if (val.size() != 8) { in find_affinity_cookie() 445 sum += name.size() + value.size(); in add_header() 452 auto iov = make_byte_ref(balloc, name.size() + 1); in alloc_header_name() 472 util::inp_strlower(p + name.size() - len, p + name.size()); in append_last_header_key() 565 // Header size limit should be applied to all header and trailer in add_trailer_token() 637 // We don't check buffer size her in request_buf_full() [all...] |
/third_party/node/deps/icu-small/source/common/ |
H A D | unisetspan.cpp | 12 * tab size: 8 (not used) 226 int32_t stringsLength=strings.size(); in UnicodeSetStringSpan() 411 int32_t stringsLength=strings.size(); in UnicodeSetStringSpan() 653 int32_t i, stringsLength=strings.size(); in span() 817 int32_t i, stringsLength=strings.size(); in spanBack() 983 int32_t i, stringsLength=strings.size(); in spanUTF8() 1160 int32_t i, stringsLength=strings.size(); in spanBackUTF8() 1351 int32_t i, stringsLength=strings.size(); in spanNot() 1394 int32_t i, stringsLength=strings.size(); in spanNotBack() 1437 int32_t i, stringsLength=strings.size(); in spanNotUTF8() [all...] |
/third_party/node/deps/googletest/include/gtest/internal/ |
H A D | gtest-internal.h | 247 // Defines the unsigned integer type that has the same size as the 1005 bool ArrayEq(const T* lhs, size_t size, const U* rhs); 1023 bool ArrayEq(const T* lhs, size_t size, const U* rhs) { in ArrayEq() argument 1024 for (size_t i = 0; i != size; i++) { in ArrayEq() 1045 void CopyArray(const T* from, size_t size, U* to); 1063 void CopyArray(const T* from, size_t size, U* to) { in CopyArray() argument 1064 for (size_t i = 0; i != size; i++) { in CopyArray() 1112 size_t size() const { return size_; } in size() function in testing::internal::NativeArray 1116 return size() == rhs.size() in operator ==() [all...] |