Home
last modified time | relevance | path

Searched refs:sizes (Results 1 – 25 of 441) sorted by relevance

12345678910>>...18

/openbsd/libexec/talkd/
H A Dannounce.c92 int sizes[N_LINES]; in print_mesg() local
102 sizes[i] = strlen(line_buf[i]); in print_mesg()
103 max_size = max(max_size, sizes[i]); in print_mesg()
113 sizes[i] = strlen(line_buf[i]); in print_mesg()
114 max_size = max(max_size, sizes[i]); in print_mesg()
120 sizes[i] = strlen(line_buf[i]); in print_mesg()
121 max_size = max(max_size, sizes[i]); in print_mesg()
125 sizes[i] = strlen(line_buf[i]); in print_mesg()
126 max_size = max(max_size, sizes[i]); in print_mesg()
129 sizes[i] = strlen(line_buf[i]); in print_mesg()
[all …]
/openbsd/regress/lib/libc/sys/
H A Dt_truncate.c46 static const size_t sizes[] = { 8, 16, 512, 1024, 2048, 4094, 3000, 30 }; variable
63 for (i = 0; i < __arraycount(sizes); i++) { in ATF_TC_BODY()
67 ATF_REQUIRE(ftruncate(fd, sizes[i]) == 0); in ATF_TC_BODY()
70 (void)fprintf(stderr, "truncating to %zu bytes\n", sizes[i]); in ATF_TC_BODY()
72 if (sizes[i] != (size_t)st.st_size) in ATF_TC_BODY()
123 for (i = 0; i < __arraycount(sizes); i++) { in ATF_TC_BODY()
127 ATF_REQUIRE(truncate(path, sizes[i]) == 0); in ATF_TC_BODY()
130 (void)fprintf(stderr, "truncating to %zu bytes\n", sizes[i]); in ATF_TC_BODY()
132 if (sizes[i] != (size_t)st.st_size) in ATF_TC_BODY()
/openbsd/sys/dev/pci/drm/i915/gt/uc/
H A Dintel_guc_log.c77 log->sizes[i].units = SZ_1M; in _guc_log_init_sizes()
78 log->sizes[i].flag = sections[i].flag; in _guc_log_init_sizes()
80 log->sizes[i].units = SZ_4K; in _guc_log_init_sizes()
81 log->sizes[i].flag = 0; in _guc_log_init_sizes()
84 if (!IS_ALIGNED(log->sizes[i].bytes, log->sizes[i].units)) in _guc_log_init_sizes()
86 sections[i].name, log->sizes[i].bytes, log->sizes[i].units); in _guc_log_init_sizes()
87 log->sizes[i].count = log->sizes[i].bytes / log->sizes[i].units; in _guc_log_init_sizes()
89 if (!log->sizes[i].count) { in _guc_log_init_sizes()
93 log->sizes[i].count--; in _guc_log_init_sizes()
104 if (log->sizes[GUC_LOG_SECTIONS_CRASH].units != log->sizes[GUC_LOG_SECTIONS_DEBUG].units) { in _guc_log_init_sizes()
[all …]
H A Dintel_guc.c247 log->sizes[GUC_LOG_SECTIONS_DEBUG].flag | in guc_ctl_log_params_flags()
248 log->sizes[GUC_LOG_SECTIONS_CAPTURE].flag | in guc_ctl_log_params_flags()
249 (log->sizes[GUC_LOG_SECTIONS_CRASH].count << GUC_LOG_CRASH_SHIFT) | in guc_ctl_log_params_flags()
250 (log->sizes[GUC_LOG_SECTIONS_DEBUG].count << GUC_LOG_DEBUG_SHIFT) | in guc_ctl_log_params_flags()
251 (log->sizes[GUC_LOG_SECTIONS_CAPTURE].count << GUC_LOG_CAPTURE_SHIFT) | in guc_ctl_log_params_flags()
/openbsd/sys/dev/pci/drm/
H A Ddrm_fbdev_dma.c85 struct drm_fb_helper_surface_size *sizes) in drm_fbdev_dma_helper_fb_probe() argument
98 sizes->surface_width, sizes->surface_height, in drm_fbdev_dma_helper_fb_probe()
99 sizes->surface_bpp); in drm_fbdev_dma_helper_fb_probe()
101 format = drm_mode_legacy_fb_format(sizes->surface_bpp, sizes->surface_depth); in drm_fbdev_dma_helper_fb_probe()
102 buffer = drm_client_framebuffer_create(client, sizes->surface_width, in drm_fbdev_dma_helper_fb_probe()
103 sizes->surface_height, format); in drm_fbdev_dma_helper_fb_probe()
131 drm_fb_helper_fill_info(info, fb_helper, sizes); in drm_fbdev_dma_helper_fb_probe()
139 info->screen_size = sizes->surface_height * fb->pitches[0]; in drm_fbdev_dma_helper_fb_probe()
H A Ddrm_fbdev_generic.c81 struct drm_fb_helper_surface_size *sizes) in drm_fbdev_generic_helper_fb_probe() argument
93 sizes->surface_width, sizes->surface_height, in drm_fbdev_generic_helper_fb_probe()
94 sizes->surface_bpp); in drm_fbdev_generic_helper_fb_probe()
96 format = drm_mode_legacy_fb_format(sizes->surface_bpp, sizes->surface_depth); in drm_fbdev_generic_helper_fb_probe()
97 buffer = drm_client_framebuffer_create(client, sizes->surface_width, in drm_fbdev_generic_helper_fb_probe()
98 sizes->surface_height, format); in drm_fbdev_generic_helper_fb_probe()
118 drm_fb_helper_fill_info(info, fb_helper, sizes); in drm_fbdev_generic_helper_fb_probe()
H A Ddrm_fb_helper.c1574 memset(sizes, 0, sizeof(*sizes)); in __drm_fb_helper_find_sizes()
1575 sizes->fb_width = (u32)-1; in __drm_fb_helper_find_sizes()
1576 sizes->fb_height = (u32)-1; in __drm_fb_helper_find_sizes()
1647 sizes->surface_width = in __drm_fb_helper_find_sizes()
1649 sizes->surface_height = in __drm_fb_helper_find_sizes()
1666 sizes->fb_width = min_t(u32, desired_mode->hdisplay + x, sizes->fb_width); in __drm_fb_helper_find_sizes()
1668 sizes->fb_height = min_t(u32, desired_mode->vdisplay + y, sizes->fb_height); in __drm_fb_helper_find_sizes()
1671 if (crtc_count == 0 || sizes->fb_width == -1 || sizes->fb_height == -1) { in __drm_fb_helper_find_sizes()
1677 sizes->fb_width = sizes->surface_width = 1024; in __drm_fb_helper_find_sizes()
1678 sizes->fb_height = sizes->surface_height = 768; in __drm_fb_helper_find_sizes()
[all …]
/openbsd/sys/dev/pci/drm/i915/display/
H A Dintel_fbdev.c167 if (sizes->surface_bpp == 24) in intelfb_alloc()
168 sizes->surface_bpp = 32; in intelfb_alloc()
170 mode_cmd.width = sizes->surface_width; in intelfb_alloc()
171 mode_cmd.height = sizes->surface_height; in intelfb_alloc()
176 sizes->surface_depth); in intelfb_alloc()
249 sizes->fb_width, sizes->fb_height); in intelfb_create()
256 ret = intelfb_alloc(helper, sizes); in intelfb_create()
263 sizes->fb_width = intel_fb->base.width; in intelfb_create()
264 sizes->fb_height = intel_fb->base.height; in intelfb_create()
355 ri->ri_width = sizes->fb_width; in intelfb_create()
[all …]
/openbsd/sys/dev/pci/drm/radeon/
H A Dradeon_fbdev.c212 struct drm_fb_helper_surface_size *sizes) in radeon_fbdev_fb_helper_fb_probe() argument
224 mode_cmd.width = sizes->surface_width; in radeon_fbdev_fb_helper_fb_probe()
225 mode_cmd.height = sizes->surface_height; in radeon_fbdev_fb_helper_fb_probe()
228 if ((sizes->surface_bpp == 24) && ASIC_IS_AVIVO(rdev)) in radeon_fbdev_fb_helper_fb_probe()
229 sizes->surface_bpp = 32; in radeon_fbdev_fb_helper_fb_probe()
231 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in radeon_fbdev_fb_helper_fb_probe()
232 sizes->surface_depth); in radeon_fbdev_fb_helper_fb_probe()
267 drm_fb_helper_fill_info(info, fb_helper, sizes); in radeon_fbdev_fb_helper_fb_probe()
288 ri->ri_width = sizes->fb_width; in radeon_fbdev_fb_helper_fb_probe()
289 ri->ri_height = sizes->fb_height; in radeon_fbdev_fb_helper_fb_probe()
/openbsd/gnu/llvm/clang/utils/ABITest/
H A DTypeGen.py298 def __init__(self, typeGen, sizes): argument
301 self.sizes = tuple(map(int,sizes))
305 self.cardinality = len(self.sizes)*self.typeGen.cardinality
308 S,T = getNthPairBounded(N, len(self.sizes), self.typeGen.cardinality)
309 return ArrayType(N, True, self.typeGen.get(T), self.sizes[S])
312 def __init__(self, typeGen, sizes): argument
315 self.sizes = tuple(size)
319 self.cardinality = len(self.sizes)*self.typeGen.cardinality
322 S,T = getNthPairBounded(N, len(self.sizes), self.typeGen.cardinality)
323 return ArrayType(N, false, self.typeGen.get(T), self.sizes[S])
/openbsd/gnu/usr.bin/perl/cpan/Encode/t/
H A Dunibench.pl9 my @sizes = @ARGV || (1, 4, 16);
25 for my $i (@sizes){
33 for my $i (@sizes){
/openbsd/sys/dev/pci/drm/i915/gt/
H A Dselftest_migrate.c14 static const unsigned int sizes[] = { variable
496 for (i = 0; i < ARRAY_SIZE(sizes); i++) { in live_migrate_copy()
499 err = migrate_copy(migrate, sizes[i], &prng); in live_migrate_copy()
501 err = global_copy(migrate, sizes[i], &prng); in live_migrate_copy()
518 for (i = 0; i < ARRAY_SIZE(sizes); i++) { in live_migrate_clear()
521 err = migrate_clear(migrate, sizes[i], &prng); in live_migrate_clear()
887 static const unsigned long sizes[] = { in perf_clear_blt() local
895 for (i = 0; i < ARRAY_SIZE(sizes); i++) { in perf_clear_blt()
908 sizes[i]); in perf_clear_blt()
970 static const unsigned long sizes[] = { in perf_copy_blt() local
[all …]
/openbsd/gnu/usr.bin/binutils/gdb/
H A Dbcache.c129 static unsigned long sizes[] = { in expand_hash_table() local
146 for (i = 0; i < (sizeof (sizes) / sizeof (sizes[0])); i++) in expand_hash_table()
147 if (sizes[i] > bcache->num_buckets) in expand_hash_table()
149 new_num_buckets = sizes[i]; in expand_hash_table()
/openbsd/sys/dev/fdt/
H A Drkdrm.c477 rkdrm_fb_probe(struct drm_fb_helper *helper, struct drm_fb_helper_surface_size *sizes) in rkdrm_fb_probe() argument
488 bytes_per_pixel = DIV_ROUND_UP(sizes->surface_bpp, 8); in rkdrm_fb_probe()
490 mode_cmd.width = sizes->surface_width; in rkdrm_fb_probe()
491 mode_cmd.height = sizes->surface_height; in rkdrm_fb_probe()
492 mode_cmd.pitches[0] = sizes->surface_width * bytes_per_pixel; in rkdrm_fb_probe()
493 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in rkdrm_fb_probe()
494 sizes->surface_depth); in rkdrm_fb_probe()
/openbsd/gnu/llvm/compiler-rt/lib/asan/tests/
H A Dasan_interface_test.cpp20 const size_t sizes[] = { 1, 30, 1<<30 }; in TEST() local
22 EXPECT_EQ(sizes[i], __sanitizer_get_estimated_allocated_size(sizes[i])); in TEST()
393 std::vector<size_t> sizes; in TEST() local
398 sizes.push_back(size); in TEST()
405 EXPECT_EQ(sizes[idx], __sanitizer_get_allocated_size(pointers[idx])); in TEST()
/openbsd/regress/usr.bin/mandoc/roff/esc/
H A Dignore.out_ascii22 sizes: abcdef
23 signed sizes: abcdef
/openbsd/gnu/llvm/compiler-rt/lib/scudo/standalone/
H A Dwrappers_c.inc234 auto *sizes = static_cast<scudo::uptr *>(
237 auto *sizes = reinterpret_cast<scudo::uptr *>(arg);
239 sizes[size]++;
241 SCUDO_ALLOCATOR.iterateOverChunks(0, -1ul, callback, sizes);
245 if (sizes[i])
246 fprintf(stream, "<alloc size=\"%zu\" count=\"%zu\"/>\n", i, sizes[i]);
248 SCUDO_PREFIX(free)(sizes);
/openbsd/sys/dev/pci/drm/include/drm/
H A Ddrm_fb_helper.h87 struct drm_fb_helper_surface_size *sizes);
259 struct drm_fb_helper_surface_size *sizes);
355 struct drm_fb_helper_surface_size *sizes) in drm_fb_helper_fill_info() argument
/openbsd/lib/libelf/
H A Dlibelf_fsize.m436 * Create an array of file sizes from the elf_type definitions
65 * FSZ{32,64} define the sizes of 32 and 64 bit file structures respectively.
87 * sizes.
94 * compute an expression that adds up the sizes of the structure's
/openbsd/gnu/gcc/gcc/
H A Dcfgloop.c1057 unsigned *sizes, i, j; in verify_loop_structure() local
1065 sizes = XCNEWVEC (unsigned, loops->num); in verify_loop_structure()
1066 sizes[0] = 2; in verify_loop_structure()
1070 sizes[loop->num]++; in verify_loop_structure()
1077 if (loops->parray[i]->num_nodes != sizes[i]) in verify_loop_structure()
1080 i, sizes[i], loops->parray[i]->num_nodes); in verify_loop_structure()
1209 memset (sizes, 0, sizeof (unsigned) * loops->num); in verify_loop_structure()
1227 sizes[loop->num]++; in verify_loop_structure()
1249 if (sizes[i] == 1 in verify_loop_structure()
1256 if (sizes[i] != 1 in verify_loop_structure()
[all …]
/openbsd/lib/
H A Dcheck_sym220 output_if_not_empty "data object sizes changes:" \
277 output_if_not_empty "data object sizes changes:" \
/openbsd/gnu/llvm/clang/include/clang/AST/
H A DExternalASTSource.h289 MemoryBufferSizes sizes(0, 0); in getMemoryBufferSizes()
290 getMemoryBufferSizes(sizes); in getMemoryBufferSizes()
291 return sizes; in getMemoryBufferSizes()
294 virtual void getMemoryBufferSizes(MemoryBufferSizes &sizes) const;
/openbsd/gnu/usr.bin/perl/cpan/IO-Compress/lib/IO/Compress/
H A DZip.pm464 my $sizes ;
466 $sizes .= *$self->{CompSize}->getPacked_V32() ; # Compressed size
467 $sizes .= *$self->{UnCompSize}->getPacked_V32() ; # Uncompressed size
470 $sizes .= *$self->{CompSize}->getPacked_V64() ; # Compressed size
471 $sizes .= *$self->{UnCompSize}->getPacked_V64() ; # Uncompressed size
474 my $data = $crc32 . $sizes ;
489 *$self->{ZipData}{Zip64} ? $xtrasize : $sizes)
/openbsd/regress/sbin/pfctl/
H A Dpfr4.in1 # parsing of all IPv4 network sizes
/openbsd/gnu/usr.bin/gcc/gcc/
H A Dcfgloop.c1087 int *sizes, i, j; local
1093 sizes = xcalloc (loops->num, sizeof (int));
1094 sizes[0] = 2;
1098 sizes[loop->num]++;
1105 if (loops->parray[i]->num_nodes != sizes[i])
1108 i, sizes[i], loops->parray[i]->num_nodes);
1113 free (sizes);

12345678910>>...18