Home
last modified time | relevance | path

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

12345678910>>...30

/freebsd-11-stable/sys/sparc64/include/
HDatomic.h91 #define itype(sz) uint ## sz ## _t argument
96 #define atomic_cas(p, e, s, sz) \ argument
97 atomic_cas_ ## sz((p), (e), (s))
99 #define atomic_cas_acq(p, e, s, sz) ({ \ argument
100 itype(sz) v; \
101 v = atomic_cas((p), (e), (s), sz); \
106 #define atomic_cas_rel(p, e, s, sz) ({ \ argument
107 itype(sz) v; \
109 v = atomic_cas((p), (e), (s), sz); \
113 #define atomic_op(p, op, v, sz) ({ \ argument
[all …]
/freebsd-11-stable/contrib/mdocml/
HDmandoc.c41 mandoc_escape(const char **end, const char **start, int *sz) in mandoc_escape() argument
55 if (NULL == sz) in mandoc_escape()
56 sz = &local_sz; in mandoc_escape()
66 *sz = 0; in mandoc_escape()
77 *sz = 2; in mandoc_escape()
131 *sz = 2; in mandoc_escape()
138 *sz = 1; in mandoc_escape()
205 *sz = 1; in mandoc_escape()
211 *sz = *end - *start; in mandoc_escape()
229 *sz = 2; in mandoc_escape()
[all …]
HDpreconv.c112 size_t sz, phsz; in preconv_cue() local
115 sz = b->sz - offset; in preconv_cue()
119 if (NULL == (eoln = memchr(ln, '\n', sz))) in preconv_cue()
120 eoln = ln + sz; in preconv_cue()
124 if ((sz = (size_t)(eoln - ln)) < 10 || in preconv_cue()
131 sz -= 10; in preconv_cue()
133 while (sz > 0) { in preconv_cue()
134 while (sz > 0 && ' ' == *ln) { in preconv_cue()
136 sz--; in preconv_cue()
138 if (0 == sz) in preconv_cue()
[all …]
/freebsd-11-stable/usr.bin/mkimg/
HDimage.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-11-stable/stand/efi/libefi/
HDefichar.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-11-stable/contrib/groff/src/libs/libgroff/
HDstring.cpp81 string::string() : ptr(0), len(0), sz(0) in string()
88 ptr = salloc(n, &sz); in string()
98 sz = 0; in string()
102 ptr = salloc(len, &sz); in string()
109 ptr = salloc(1, &sz); in string()
115 ptr = salloc(len, &sz); in string()
122 sfree(ptr, sz); in ~string()
127 ptr = sfree_alloc(ptr, sz, s.len, &sz); in operator =()
140 sz = 0; in operator =()
144 ptr = sfree_alloc(ptr, sz, slen, &sz); in operator =()
[all …]
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/tsan/rtl/
HDtsan_mman.cpp161 void *user_alloc_internal(ThreadState *thr, uptr pc, uptr sz, uptr align, in user_alloc_internal() argument
163 if (sz >= kMaxAllowedMallocSize || align >= kMaxAllowedMallocSize || in user_alloc_internal()
164 sz > max_user_defined_malloc_size) { in user_alloc_internal()
170 ReportAllocationSizeTooBig(sz, malloc_limit, &stack); in user_alloc_internal()
172 void *p = allocator()->Allocate(&thr->proc()->alloc_cache, sz, align); in user_alloc_internal()
178 ReportOutOfMemory(sz, &stack); in user_alloc_internal()
181 OnUserAlloc(thr, pc, (uptr)p, sz, true); in user_alloc_internal()
196 void *user_alloc(ThreadState *thr, uptr pc, uptr sz) { in user_alloc() argument
197 return SetErrnoOnNull(user_alloc_internal(thr, pc, sz, kDefaultAlignment)); in user_alloc()
223 void OnUserAlloc(ThreadState *thr, uptr pc, uptr p, uptr sz, bool write) { in OnUserAlloc() argument
[all …]
HDtsan_sync.cpp61 void MetaMap::AllocBlock(ThreadState *thr, uptr pc, uptr p, uptr sz) { in AllocBlock() argument
64 b->siz = sz; in AllocBlock()
77 uptr sz = RoundUpTo(b->siz, kMetaShadowCell); in FreeBlock() local
78 FreeRange(proc, p, sz); in FreeBlock()
79 return sz; in FreeBlock()
82 bool MetaMap::FreeRange(Processor *proc, uptr p, uptr sz) { in FreeRange() argument
85 u32 *end = MemToMeta(p + sz); in FreeRange()
121 void MetaMap::ResetRange(Processor *proc, uptr p, uptr sz) { in ResetRange() argument
125 FreeRange(proc, p, sz); in ResetRange()
130 if (sz <= 4 * kPageSize) { in ResetRange()
[all …]
/freebsd-11-stable/contrib/openbsm/libbsm/
HDbsm_wrappers.c559 audit_get_qctrl(au_qctrl_t *qctrl, size_t sz) in audit_get_qctrl() argument
563 if (sizeof(*qctrl) != sz) { in audit_get_qctrl()
598 audit_set_qctrl(au_qctrl_t *qctrl, size_t sz) in audit_set_qctrl() argument
602 if (sizeof(*qctrl) != sz) { in audit_set_qctrl()
607 ret = auditon(A_SETQCTRL, qctrl, sz); in audit_set_qctrl()
644 audit_get_kaudit(auditinfo_addr_t *aia, size_t sz) in audit_get_kaudit() argument
647 if (sizeof(*aia) != sz) { in audit_get_kaudit()
652 return (auditon(A_GETKAUDIT, aia, sz)); in audit_get_kaudit()
656 audit_set_kaudit(auditinfo_addr_t *aia, size_t sz) in audit_set_kaudit() argument
659 if (sizeof(*aia) != sz) { in audit_set_kaudit()
[all …]
/freebsd-11-stable/sys/compat/linux/
HDlinux_util.c131 size_t sz; in linux_driver_get_major_minor() local
136 sz = sizeof("pts/") - 1; in linux_driver_get_major_minor()
137 if (strncmp(node, "pts/", sz) == 0 && node[sz] != '\0') { in linux_driver_get_major_minor()
143 devno = strtoul(node + sz, NULL, 10); in linux_driver_get_major_minor()
149 sz = sizeof("dri/card") - 1; in linux_driver_get_major_minor()
150 if (strncmp(node, "dri/card", sz) == 0 && node[sz] != '\0') { in linux_driver_get_major_minor()
151 devno = strtoul(node + sz, NULL, 10); in linux_driver_get_major_minor()
156 sz = sizeof("dri/controlD") - 1; in linux_driver_get_major_minor()
157 if (strncmp(node, "dri/controlD", sz) == 0 && node[sz] != '\0') { in linux_driver_get_major_minor()
158 devno = strtoul(node + sz, NULL, 10); in linux_driver_get_major_minor()
[all …]
/freebsd-11-stable/lib/libc/db/btree/
HDbt_overflow.c83 u_int32_t sz; in __ovfl_get() local
86 memmove(&sz, (char *)p + sizeof(pgno_t), sizeof(u_int32_t)); in __ovfl_get()
87 *ssz = sz; in __ovfl_get()
90 if (pg == P_INVALID || sz == 0) in __ovfl_get()
94 if (*bufsz < sz) { in __ovfl_get()
95 *buf = reallocf(*buf, sz); in __ovfl_get()
98 *bufsz = sz; in __ovfl_get()
110 nb = MIN(sz, plen); in __ovfl_get()
114 if ((sz -= nb) == 0) in __ovfl_get()
138 u_int32_t sz; in __ovfl_put() local
[all …]
/freebsd-11-stable/lib/libc/iconv/
HDcitrus_memstream.h69 void *ptr, size_t sz) in _citrus_memory_stream_bind_ptr() argument
73 _citrus_region_init(&r, ptr, sz); in _citrus_memory_stream_bind_ptr()
94 size_t sz; in _citrus_memory_stream_remainder() local
96 sz = _citrus_region_size(&ms->ms_region); in _citrus_memory_stream_remainder()
97 if (ms->ms_pos>sz) in _citrus_memory_stream_remainder()
99 return (sz-ms->ms_pos); in _citrus_memory_stream_remainder()
105 size_t sz; in _citrus_memory_stream_seek() local
107 sz = _citrus_region_size(&ms->ms_region); in _citrus_memory_stream_seek()
111 if (pos >= sz) in _citrus_memory_stream_seek()
117 if (pos >= sz) in _citrus_memory_stream_seek()
[all …]
/freebsd-11-stable/sys/cddl/contrib/opensolaris/common/unicode/
HDu8_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-11-stable/contrib/ntp/sntp/libevent/
HDmm-internal.h46 void *event_mm_malloc_(size_t sz);
68 void *event_mm_realloc_(void *p, size_t sz);
70 #define mm_malloc(sz) event_mm_malloc_(sz) argument
73 #define mm_realloc(p, sz) event_mm_realloc_((p), (sz)) argument
76 #define mm_malloc(sz) malloc(sz)
77 #define mm_calloc(n, sz) calloc((n), (sz))
79 #define mm_realloc(p, sz) realloc((p), (sz))
/freebsd-11-stable/contrib/elftoolchain/libelf/
HDlibelf_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-11-stable/crypto/openssl/crypto/perlasm/
HDx86_64-xlate.pl114 undef $self->{sz};
117 $self->{sz} = $2;
119 $self->{sz} = "";
121 $self->{sz} = "";
123 $self->{sz} = "";
125 $self->{sz} = "";
128 $self->{sz} = $2;
135 my $sz = shift;
136 $self->{sz} = $sz if (defined($sz) && !defined($self->{sz}));
137 $self->{sz};
[all …]
/freebsd-11-stable/usr.bin/xlint/lint2/
HDchk.c598 tspec_t sz, t1, t2 = NOTSPEC; in printflike() local
616 sz = NOTSPEC; in printflike()
684 sz = SHORT; in printflike()
686 sz = LONG; in printflike()
688 sz = QUAD; in printflike()
690 sz = LDOUBLE; in printflike()
692 if (sz != NOTSPEC) in printflike()
696 if (sz != NOTSPEC || left || sign || space || in printflike()
718 if (alt || sz == LDOUBLE) { in printflike()
723 if (sz == LONG) { in printflike()
[all …]
/freebsd-11-stable/contrib/elftoolchain/libdwarf/
HDdwarf_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-11-stable/contrib/elftoolchain/elfcopy/
HDascii.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-11-stable/stand/libsa/
HDpkgfs.c275 size_t sz; in pkg_read() local
286 sz = 0; in pkg_read()
288 sz = tf->tf_size - fp; in pkg_read()
290 sz = tf->tf_cachesz - fp; in pkg_read()
291 if (size < sz) in pkg_read()
292 sz = size; in pkg_read()
293 if (sz == 0) in pkg_read()
298 memcpy(p, tf->tf_cache + fp, sz); in pkg_read()
299 fp += sz; in pkg_read()
300 p += sz; in pkg_read()
[all …]
/freebsd-11-stable/crypto/openssl/crypto/sha/asm/
HDsha512p8-ppc.pl56 $sz="d";
61 $sz="w";
100 `"vshasigma${sz} $s0,@X[($j+1)%16],0,0" if ($i>=15)`
102 vshasigma${sz} $S1,$e,1,15 ; Sigma1(e)
103 vaddu${sz}m $h,$h,@X[$i%16] ; h+=X[i]
104 vshasigma${sz} $S0,$a,1,0 ; Sigma0(a)
105 `"vshasigma${sz} $s1,@X[($j+14)%16],0,15" if ($i>=15)`
106 vaddu${sz}m $h,$h,$Func ; h+=Ch(e,f,g)
108 `"vaddu${sz}m @X[$j],@X[$j],@X[($j+9)%16]" if ($i>=15)`
109 vaddu${sz}m $h,$h,$S1 ; h+=Sigma1(e)
[all …]
/freebsd-11-stable/contrib/gcc/config/
HDhost-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-11-stable/stand/efi/loader/arch/i386/
HDefimd.c70 UINTN mmsz, pages, sz; in ldr_bootinfo() local
76 sz = sizeof(EFI_HANDLE); in ldr_bootinfo()
77 status = BS->LocateHandle(ByProtocol, &fpswa_guid, 0, &sz, &handle); in ldr_bootinfo()
93 sz = 0; in ldr_bootinfo()
94 BS->GetMemoryMap(&sz, NULL, &mapkey, &mmsz, &mmver); in ldr_bootinfo()
95 sz += mmsz; in ldr_bootinfo()
96 sz = (sz + 15) & ~15; in ldr_bootinfo()
97 pages = EFI_SIZE_TO_PAGES(sz + bisz); in ldr_bootinfo()
113 sz = (EFI_PAGE_SIZE * pages) - bisz; in ldr_bootinfo()
114 status = BS->GetMemoryMap(&sz, mm, &mapkey, &mmsz, &mmver); in ldr_bootinfo()
[all …]
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/json/
HDtst.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-11-stable/sys/dev/drm/
HDr300_cmdbuf.c304 int sz; in r300_emit_carefully_checked_packet0() local
309 sz = header.packet0.count; in r300_emit_carefully_checked_packet0()
312 if ((sz > 64) || (sz < 0)) { in r300_emit_carefully_checked_packet0()
315 reg, sz); in r300_emit_carefully_checked_packet0()
318 for (i = 0; i < sz; i++) { in r300_emit_carefully_checked_packet0()
327 reg, sz); in r300_emit_carefully_checked_packet0()
338 BEGIN_RING(1 + sz); in r300_emit_carefully_checked_packet0()
339 OUT_RING(CP_PACKET0(reg, sz - 1)); in r300_emit_carefully_checked_packet0()
340 OUT_RING_TABLE(values, sz); in r300_emit_carefully_checked_packet0()
343 cmdbuf->buf += sz * 4; in r300_emit_carefully_checked_packet0()
[all …]

12345678910>>...30