Home
last modified time | relevance | path

Searched refs:sz (Results 1 – 25 of 771) sorted by relevance

12345678910>>...31

/freebsd-12-stable/sys/sparc64/include/
Datomic.h93 #define itype(sz) uint ## sz ## _t argument
98 #define atomic_cas(p, e, s, sz) \ argument
99 atomic_cas_ ## sz((p), (e), (s))
101 #define atomic_cas_acq(p, e, s, sz) ({ \ argument
102 itype(sz) v; \
103 v = atomic_cas((p), (e), (s), sz); \
108 #define atomic_cas_rel(p, e, s, sz) ({ \ argument
109 itype(sz) v; \
111 v = atomic_cas((p), (e), (s), sz); \
115 #define atomic_op(p, op, v, sz) ({ \ argument
[all …]
/freebsd-12-stable/contrib/mandoc/
Dmandoc.c42 mandoc_font(const char *cp, int sz) in mandoc_font() argument
44 switch (sz) { in mandoc_font()
95 mandoc_escape(const char **end, const char **start, int *sz) in mandoc_escape() argument
109 if (NULL == sz) in mandoc_escape()
110 sz = &local_sz; in mandoc_escape()
128 *sz = 0; in mandoc_escape()
139 *sz = 2; in mandoc_escape()
223 *sz = 2; in mandoc_escape()
248 *sz = 1; in mandoc_escape()
315 *sz = 1; in mandoc_escape()
[all …]
Dpreconv.c115 size_t sz, phsz; in preconv_cue() local
118 sz = b->sz - offset; in preconv_cue()
122 if (NULL == (eoln = memchr(ln, '\n', sz))) in preconv_cue()
123 eoln = ln + sz; in preconv_cue()
127 if ((sz = (size_t)(eoln - ln)) < 10 || in preconv_cue()
134 sz -= 10; in preconv_cue()
136 while (sz > 0) { in preconv_cue()
137 while (sz > 0 && ' ' == *ln) { in preconv_cue()
139 sz--; in preconv_cue()
141 if (0 == sz) in preconv_cue()
[all …]
/freebsd-12-stable/usr.bin/mkimg/
Dimage.c153 image_chunk_grow(struct chunk *ch, size_t sz) in image_chunk_grow() argument
157 newsz = ch->ch_size + sz; in image_chunk_grow()
164 assert(dsz < sz); in image_chunk_grow()
166 return (sz - dsz); in image_chunk_grow()
218 size_t sz; in image_chunk_skipto() local
231 sz = (to - from) * secsz; in image_chunk_skipto()
233 sz = image_chunk_grow(ch, sz); in image_chunk_skipto()
234 if (sz == 0) in image_chunk_skipto()
243 ch->ch_size = sz; in image_chunk_skipto()
251 image_chunk_append(lba_t blk, size_t sz, off_t ofs, int fd) in image_chunk_append() argument
[all …]
/freebsd-12-stable/contrib/openbsm/libbsm/
Dbsm_wrappers.c567 audit_get_qctrl(au_qctrl_t *qctrl, size_t sz) in audit_get_qctrl() argument
571 if (sizeof(*qctrl) != sz) { in audit_get_qctrl()
606 audit_set_qctrl(au_qctrl_t *qctrl, size_t sz) in audit_set_qctrl() argument
610 if (sizeof(*qctrl) != sz) { in audit_set_qctrl()
615 ret = auditon(A_SETQCTRL, qctrl, sz); in audit_set_qctrl()
652 audit_get_kaudit(auditinfo_addr_t *aia, size_t sz) in audit_get_kaudit() argument
655 if (sizeof(*aia) != sz) { in audit_get_kaudit()
660 return (auditon(A_GETKAUDIT, aia, sz)); in audit_get_kaudit()
664 audit_set_kaudit(auditinfo_addr_t *aia, size_t sz) in audit_set_kaudit() argument
667 if (sizeof(*aia) != sz) { in audit_set_kaudit()
[all …]
/freebsd-12-stable/stand/efi/libefi/
Defichar.c83 size_t len, sz; in ucs2_to_utf8() local
88 sz = utf8_len_of_ucs2(nm) + 1; in ucs2_to_utf8()
93 cp = *name = malloc(sz); in ucs2_to_utf8()
100 if (len++ < sz) in ucs2_to_utf8()
102 if (len++ < sz) in ucs2_to_utf8()
104 if (len++ < sz) in ucs2_to_utf8()
107 if (len++ < sz) in ucs2_to_utf8()
109 if (len++ < sz) in ucs2_to_utf8()
112 if (len++ < sz) in ucs2_to_utf8()
117 if (len >= sz) { in ucs2_to_utf8()
[all …]
/freebsd-12-stable/sys/dev/vnic/
Dthunder_bgx_fdt.c91 ssize_t sz; in bgx_fdt_phy_mode_match() local
97 sz = sizeof("sgmii"); in bgx_fdt_phy_mode_match()
98 offset = size - sz; in bgx_fdt_phy_mode_match()
102 sz = sizeof("xaui"); in bgx_fdt_phy_mode_match()
103 offset = size - sz; in bgx_fdt_phy_mode_match()
106 if (strncmp(&qlm_mode[offset], type, sz) == 0) in bgx_fdt_phy_mode_match()
109 sz = sizeof("dxaui"); in bgx_fdt_phy_mode_match()
110 offset = size - sz; in bgx_fdt_phy_mode_match()
114 sz = sizeof("raui"); in bgx_fdt_phy_mode_match()
115 offset = size - sz; in bgx_fdt_phy_mode_match()
[all …]
/freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/tsan/rtl/
Dtsan_mman.cpp158 void *user_alloc_internal(ThreadState *thr, uptr pc, uptr sz, uptr align, in user_alloc_internal() argument
160 if (sz >= kMaxAllowedMallocSize || align >= kMaxAllowedMallocSize || in user_alloc_internal()
161 sz > max_user_defined_malloc_size) { in user_alloc_internal()
167 ReportAllocationSizeTooBig(sz, malloc_limit, &stack); in user_alloc_internal()
169 void *p = allocator()->Allocate(&thr->proc()->alloc_cache, sz, align); in user_alloc_internal()
175 ReportOutOfMemory(sz, &stack); in user_alloc_internal()
178 OnUserAlloc(thr, pc, (uptr)p, sz, true); in user_alloc_internal()
193 void *user_alloc(ThreadState *thr, uptr pc, uptr sz) { in user_alloc() argument
194 return SetErrnoOnNull(user_alloc_internal(thr, pc, sz, kDefaultAlignment)); in user_alloc()
220 void OnUserAlloc(ThreadState *thr, uptr pc, uptr p, uptr sz, bool write) { in OnUserAlloc() argument
[all …]
Dtsan_sync.cpp58 void MetaMap::AllocBlock(ThreadState *thr, uptr pc, uptr p, uptr sz) { in AllocBlock() argument
61 b->siz = sz; in AllocBlock()
74 uptr sz = RoundUpTo(b->siz, kMetaShadowCell); in FreeBlock() local
75 FreeRange(proc, p, sz); in FreeBlock()
76 return sz; in FreeBlock()
79 bool MetaMap::FreeRange(Processor *proc, uptr p, uptr sz) { in FreeRange() argument
82 u32 *end = MemToMeta(p + sz); in FreeRange()
118 void MetaMap::ResetRange(Processor *proc, uptr p, uptr sz) { in ResetRange() argument
122 FreeRange(proc, p, sz); in ResetRange()
127 if (sz <= 4 * kPageSize) { in ResetRange()
[all …]
/freebsd-12-stable/tests/sys/vm/
Dpage_fault_signal.c73 int sz; in ATF_TC_BODY() local
75 sz = getpagesize(); in ATF_TC_BODY()
76 p = mmap(NULL, sz, PROT_READ, MAP_ANON, -1, 0); in ATF_TC_BODY()
78 r = munmap(p, sz); in ATF_TC_BODY()
92 int sz; in ATF_TC_BODY() local
94 sz = getpagesize(); in ATF_TC_BODY()
95 p = mmap(NULL, sz, PROT_READ, MAP_ANON, -1, 0); in ATF_TC_BODY()
101 (void)munmap(p, sz); in ATF_TC_BODY()
111 int sz; in ATF_TC_BODY() local
113 sz = getpagesize(); in ATF_TC_BODY()
[all …]
/freebsd-12-stable/lib/libc/db/btree/
Dbt_overflow.c85 u_int32_t sz; in __ovfl_get() local
88 memmove(&sz, (char *)p + sizeof(pgno_t), sizeof(u_int32_t)); in __ovfl_get()
89 *ssz = sz; in __ovfl_get()
92 if (pg == P_INVALID || sz == 0) in __ovfl_get()
96 if (*bufsz < sz) { in __ovfl_get()
97 *buf = reallocf(*buf, sz); in __ovfl_get()
100 *bufsz = sz; in __ovfl_get()
112 nb = MIN(sz, plen); in __ovfl_get()
116 if ((sz -= nb) == 0) in __ovfl_get()
140 u_int32_t sz; in __ovfl_put() local
[all …]
/freebsd-12-stable/lib/libc/iconv/
Dcitrus_memstream.h71 void *ptr, size_t sz) in _citrus_memory_stream_bind_ptr() argument
75 _citrus_region_init(&r, ptr, sz); in _citrus_memory_stream_bind_ptr()
96 size_t sz; in _citrus_memory_stream_remainder() local
98 sz = _citrus_region_size(&ms->ms_region); in _citrus_memory_stream_remainder()
99 if (ms->ms_pos>sz) in _citrus_memory_stream_remainder()
101 return (sz-ms->ms_pos); in _citrus_memory_stream_remainder()
107 size_t sz; in _citrus_memory_stream_seek() local
109 sz = _citrus_region_size(&ms->ms_region); in _citrus_memory_stream_seek()
113 if (pos >= sz) in _citrus_memory_stream_seek()
119 if (pos >= sz) in _citrus_memory_stream_seek()
[all …]
/freebsd-12-stable/crypto/openssh/regress/unittests/sshbuf/
Dtest_sshbuf_misc.c31 size_t sz; in sshbuf_misc_tests() local
42 sz = fread(tmp, 1, sizeof(tmp), out); in sshbuf_misc_tests()
45 ASSERT_SIZE_T_GT(sz, 0); in sshbuf_misc_tests()
46 tmp[sz] = '\0'; in sshbuf_misc_tests()
190 ASSERT_INT_EQ(sshbuf_find(p1, 0, "i", 1, &sz), 0); in sshbuf_misc_tests()
191 ASSERT_SIZE_T_EQ(sz, 0); in sshbuf_misc_tests()
192 ASSERT_INT_EQ(sshbuf_find(p1, 0, "j", 1, &sz), SSH_ERR_INVALID_FORMAT); in sshbuf_misc_tests()
193 ASSERT_INT_EQ(sshbuf_find(p1, 0, "imploring", 9, &sz), 0); in sshbuf_misc_tests()
194 ASSERT_SIZE_T_EQ(sz, 0); in sshbuf_misc_tests()
195 ASSERT_INT_EQ(sshbuf_find(p1, 0, "implored", 9, &sz), in sshbuf_misc_tests()
[all …]
/freebsd-12-stable/contrib/ntp/sntp/libevent/
Dmm-internal.h47 void *event_mm_malloc_(size_t sz);
72 void *event_mm_realloc_(void *p, size_t sz);
75 #define mm_malloc(sz) event_mm_malloc_(sz) argument
78 #define mm_realloc(p, sz) event_mm_realloc_((p), (sz)) argument
81 #define mm_malloc(sz) malloc(sz)
82 #define mm_calloc(n, sz) calloc((n), (sz))
84 #define mm_realloc(p, sz) realloc((p), (sz))
/freebsd-12-stable/contrib/libevent/
Dmm-internal.h47 void *event_mm_malloc_(size_t sz);
72 void *event_mm_realloc_(void *p, size_t sz);
75 #define mm_malloc(sz) event_mm_malloc_(sz) argument
78 #define mm_realloc(p, sz) event_mm_realloc_((p), (sz)) argument
81 #define mm_malloc(sz) malloc(sz)
82 #define mm_calloc(n, sz) calloc((n), (sz))
84 #define mm_realloc(p, sz) realloc((p), (sz))
/freebsd-12-stable/sys/compat/linux/
Dlinux_util.c158 size_t sz; in linux_driver_get_major_minor() local
163 sz = sizeof("pts/") - 1; in linux_driver_get_major_minor()
164 if (strncmp(node, "pts/", sz) == 0 && node[sz] != '\0') { in linux_driver_get_major_minor()
170 devno = strtoul(node + sz, NULL, 10); in linux_driver_get_major_minor()
176 sz = sizeof("dri/card") - 1; in linux_driver_get_major_minor()
177 if (strncmp(node, "dri/card", sz) == 0 && node[sz] != '\0') { in linux_driver_get_major_minor()
178 devno = strtoul(node + sz, NULL, 10); in linux_driver_get_major_minor()
183 sz = sizeof("dri/controlD") - 1; in linux_driver_get_major_minor()
184 if (strncmp(node, "dri/controlD", sz) == 0 && node[sz] != '\0') { in linux_driver_get_major_minor()
185 devno = strtoul(node + sz, NULL, 10); in linux_driver_get_major_minor()
[all …]
/freebsd-12-stable/sys/cddl/contrib/opensolaris/common/unicode/
Du8_textprep.c343 int sz; in u8_validate() local
370 sz = u8_number_of_bytes[*ib]; in u8_validate()
371 if (sz == U8_ILLEGAL_CHAR) { in u8_validate()
376 if (sz == U8_OUT_OF_RANGE_CHAR || in u8_validate()
377 (validate_ucs2_range_only && sz > U8_MAX_BYTES_UCS2)) { in u8_validate()
387 if ((ibtail - ib) < sz) { in u8_validate()
392 if (sz == 1) { in u8_validate()
404 for (i = 1; i < sz; i++) { in u8_validate()
423 s1 = ib - sz; in u8_validate()
460 do_case_conv(int uv, uchar_t *u8s, uchar_t *s, int sz, boolean_t is_it_toupper) in do_case_conv() argument
[all …]
/freebsd-12-stable/contrib/elftoolchain/libelf/
Dlibelf_ar_util.c42 _libelf_ar_get_number(const char *src, size_t sz, unsigned int base, in _libelf_ar_get_number() argument
52 e = s + sz; in _libelf_ar_get_number()
231 size_t sz; in _libelf_ar_open() local
273 READ_AR_HEADER(s, arh, sz, end); in _libelf_ar_open()
279 if (sz == 0) in _libelf_ar_open()
296 e->e_u.e_ar.e_rawsymtabsz = sz; in _libelf_ar_open()
298 sz = LIBELF_ADJUST_AR_SIZE(sz); in _libelf_ar_open()
299 s += sz; in _libelf_ar_open()
305 e->e_u.e_ar.e_rawstrtabsz = sz; in _libelf_ar_open()
307 sz = LIBELF_ADJUST_AR_SIZE(sz); in _libelf_ar_open()
[all …]
/freebsd-12-stable/contrib/elftoolchain/libdwarf/
Ddwarf_sections.c47 Dwarf_Unsigned sz; in dwarf_get_section_max_offsets_b() local
68 sz = dbg->dbg_section[i].ds_size; in dwarf_get_section_max_offsets_b()
70 SET(debug_info, sz); in dwarf_get_section_max_offsets_b()
72 SET(debug_abbrev, sz); in dwarf_get_section_max_offsets_b()
74 SET(debug_line, sz); in dwarf_get_section_max_offsets_b()
76 SET(debug_loc, sz); in dwarf_get_section_max_offsets_b()
78 SET(debug_aranges, sz); in dwarf_get_section_max_offsets_b()
80 SET(debug_macinfo, sz); in dwarf_get_section_max_offsets_b()
82 SET(debug_pubnames, sz); in dwarf_get_section_max_offsets_b()
84 SET(debug_str, sz); in dwarf_get_section_max_offsets_b()
[all …]
/freebsd-12-stable/contrib/elftoolchain/elfcopy/
Dascii.c41 static void append_data(struct section *s, const void *buf, size_t sz);
47 uint64_t *num, uint8_t *data, size_t *sz);
49 const void *buf, size_t sz);
50 static void ihex_write_00(int ofd, uint64_t addr, const void *buf, size_t sz);
56 static int read_num(const char *line, int *len, uint64_t *num, size_t sz,
59 uint8_t *data, size_t *sz);
61 size_t sz);
66 size_t sz, size_t rlen);
68 static void write_num(char *line, int *len, uint64_t num, size_t sz,
207 size_t sz; in create_elf_from_srec() local
[all …]
/freebsd-12-stable/contrib/gcc/config/
Dhost-darwin.c34 darwin_gt_pch_get_address (size_t sz, int fd ATTRIBUTE_UNUSED) in darwin_gt_pch_get_address() argument
36 if (sz <= sizeof (pch_address_space)) in darwin_gt_pch_get_address()
46 darwin_gt_pch_use_address (void *addr, size_t sz, int fd, size_t off) in darwin_gt_pch_use_address() argument
55 ret = (addr == pch_address_space && sz <= sizeof (pch_address_space)); in darwin_gt_pch_use_address()
57 sz = 0; in darwin_gt_pch_use_address()
60 sz = (sz + pagesize - 1) / pagesize * pagesize; in darwin_gt_pch_use_address()
62 if (munmap (pch_address_space + sz, sizeof (pch_address_space) - sz) != 0) in darwin_gt_pch_use_address()
67 mmap_result = mmap (addr, sz, in darwin_gt_pch_use_address()
/freebsd-12-stable/crypto/openssl/crypto/sha/asm/
Dsha512p8-ppc.pl72 $sz="d";
77 $sz="w";
117 vshasigma${sz} $Sigma,@X[($j+1)%16],0,0
118 vaddu${sz}m @X[$j],@X[$j],$Sigma
119 vshasigma${sz} $Sigma,@X[($j+14)%16],0,15
120 vaddu${sz}m @X[$j],@X[$j],$Sigma
121 vaddu${sz}m @X[$j],@X[$j],@X[($j+9)%16]
124 vaddu${sz}m $h,$h,@X[$i%16] ; h+=X[i]
126 vaddu${sz}m $g,$g,$Ki ; future h+=K[i]
127 vaddu${sz}m $h,$h,$Func ; h+=Ch(e,f,g)
[all …]
/freebsd-12-stable/usr.bin/truncate/
Dtruncate.c52 off_t oflow, rsize, sz, tsize, round; in main() local
63 rsize = tsize = sz = 0; in main()
88 sz = (*optarg == '-' || *optarg == '/') ? in main()
112 rsize = sz; in main()
114 tsize = sz; in main()
153 sz = rsize; in main()
154 if (sz < 0) in main()
155 sz = -sz; in main()
156 if (sb.st_size % sz) { in main()
157 round = sb.st_size / sz; in main()
[all …]
/freebsd-12-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/json/
Dtst.usdt.d.out1 [0] sz 445.890000 odd false even true
2 [1] sz 793.684200 odd true even false
3 [2] sz 1412.757876 odd false even true
4 [3] sz 2514.709019 odd true even false
5 [4] sz 4476.182054 odd false even true
6 [5] sz 7967.604057 odd true even false
7 [6] sz 14182.335221 odd false even true
8 [8] sz 44935.310914 odd false even true
9 [9] sz 79984.853427 odd true even false
/freebsd-12-stable/stand/libsa/
Dpkgfs.c294 size_t sz; in pkg_read() local
308 sz = 0; in pkg_read()
310 sz = tf->tf_size - fp; in pkg_read()
312 sz = tf->tf_cachesz - fp; in pkg_read()
313 if (size < sz) in pkg_read()
314 sz = size; in pkg_read()
315 if (sz == 0) in pkg_read()
320 memcpy(p, tf->tf_cache + fp, sz); in pkg_read()
321 fp += sz; in pkg_read()
322 p += sz; in pkg_read()
[all …]

12345678910>>...31