Home
last modified time | relevance | path

Searched refs:used (Results 1 – 25 of 3233) sorted by relevance

12345678910>>...130

/freebsd/contrib/wpa/src/tls/
H A Dlibtommath.c119 int used, alloc, sign; member
125 #define mp_iszero(a) (((a)->used == 0) ? MP_YES : MP_NO)
126 #define mp_iseven(a) (((a)->used > 0 && (((a)->dp[0] & 1) == 0)) ? MP_YES : MP_NO)
127 #define mp_isodd(a) (((a)->used > 0 && (((a)->dp[0] & 1) == 1)) ? MP_YES : MP_NO)
131 #define s_mp_mul(a, b, c) s_mp_mul_digs(a, b, c, (a)->used + (b)->used + 1)
220 if (a->used > b->used) { in s_mp_add()
221 min = b->used; in s_mp_add()
222 max = a->used; in s_mp_add()
225 min = a->used; in s_mp_add()
226 max = b->used; in s_mp_add()
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_copies/
H A Dzfs_copies_002_pos.ksh78 used=$(get_prop used $TESTPOOL/fs_$val)
79 check_used $used $val
90 (( used = blks * $blksize )) # bytes
91 check_used $used $val
97used=`df -m /$TESTPOOL/fs_$val | awk -v pa=$TESTPOOL/fs_$val -v fs=fs_$val '$0 ~ pa && $4 ~ fs {pr…
99 used=`df -F zfs -k /$TESTPOOL/fs_$val/$FILE | awk -v pa=$TESTPOOL/fs_$val '$0 ~ pa {print $3}'`
100 (( used = used * 1024 )) # kb -> bytes
102 check_used $used $val
108 used=`du -h /$TESTPOOL/fs_$val/$FILE | awk '{print $1}'`
110 used=`du -k /$TESTPOOL/fs_$val/$FILE | awk '{print $1}'`
[all …]
/freebsd/tests/sys/cddl/zfs/tests/refquota/
H A Drefquota_003_pos.ksh73 typeset -i used quota refquota
74 used=$(get_prop used $fs)
76 ((used = used / (1024 * 1024)))
78 if [[ $used -lt $refquota ]]; then
79 log_fail "ERROR: $used < $refquota subfs quotas are limited by refquota"
83 used=$(get_prop used $fs)
85 ((used = used / (1024 * 1024)))
87 if [[ $used -gt $quota ]]; then
88 log_fail "ERROR: $used > $quota subfs quotas aren't limited by quota"
H A Drefquota_002_pos.ksh73 typeset -i used quota
74 used=$(get_prop used $fs)
76 ((used = used / (1024 * 1024)))
78 if [[ $used -ne $quota ]]; then
79 log_fail "ERROR: $used -ne $quota Quotas are not limited by quota"
90 used=$(get_prop used $fs)
92 ((used = used / (1024 * 1024)))
94 if [[ $used -ne $refquota ]]; then
95 log_fail "ERROR: $used -ne $refquota Quotas are not limited by refquota"
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/refquota/
H A Drefquota_003_pos.ksh65 typeset -i used quota refquota
66 used=$(get_prop used $fs)
68 ((used = used / (1024 * 1024)))
70 if [[ $used -lt $refquota ]]; then
71 log_fail "ERROR: $used < $refquota subfs quotas are limited by refquota"
75 used=$(get_prop used $fs)
77 ((used = used / (1024 * 1024)))
79 if [[ $used -gt $quota ]]; then
80 log_fail "ERROR: $used > $quota subfs quotas aren't limited by quota"
H A Drefquota_002_pos.ksh65 typeset -i used quota
66 used=$(get_prop used $fs)
68 ((used = used / (1024 * 1024)))
70 if [[ $used -ne $quota ]]; then
71 log_fail "ERROR: $used -ne $quota Quotas are not limited by quota"
82 used=$(get_prop used $fs)
84 ((used = used / (1024 * 1024)))
86 if [[ $used -ne $refquota ]]; then
87 log_fail "ERROR: $used -ne $refquota Quotas are not limited by refquota"
/freebsd/contrib/ncurses/ncurses/tinfo/
H A Dlib_tgoto.c77 size_t used = 0; in tgoto_internal() local
90 if ((used + need) > length) { in tgoto_internal()
91 length += (used + need); in tgoto_internal()
139 result[used++] = (char) *value++; in tgoto_internal()
142 result[used++] = *string; in tgoto_internal()
170 _nc_SPRINTF(result + used, _nc_SLIMIT(length - used) in tgoto_internal()
172 used += strlen(result + used); in tgoto_internal()
180 result[used++] = *string; in tgoto_internal()
186 _nc_STRCPY(result + used, BC, length - used); in tgoto_internal()
187 used += strlen(BC); in tgoto_internal()
[all …]
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zfs_copies/
H A Dzfs_copies.kshlib54 typeset used
56 used=`$ZFS list -H -o used $ds`
57 used=${used%[m|M]}
58 if [[ $used == *K ]]; then
59 used=0
61 $ECHO $used
72 typeset -i used
77 (( used = ${charged_spc%[m|M]} ))
78 (( cfactor = used / fsize ))
128 (( used = post_used - pre_used ))
[all …]
H A Dzfs_copies_002_pos.ksh88 used=$(get_used_prop $TESTPOOL/fs_$val)
89 check_used $used $val
95 (( used = blks / 1024 ))
96 check_used $used $val
101 used=`$DF -m /$TESTPOOL/fs_$val | $GREP $TESTPOOL/fs_$val \
103 check_used $used $val
108 used=`$DU -h /$TESTPOOL/fs_$val/$FILE | $AWK '{print $1}'`
109 check_used $used $val
/freebsd/contrib/libarchive/libarchive/
H A Darchive_read_support_filter_rpm.c172 ssize_t avail_in, total, used; in rpm_filter_read() local
181 used = 0; in rpm_filter_read()
197 used += avail_in; in rpm_filter_read()
200 used += n; in rpm_filter_read()
210 avail_in - used); in rpm_filter_read()
213 used += n; in rpm_filter_read()
243 avail_in - used); in rpm_filter_read()
245 used += n; in rpm_filter_read()
251 while (used < avail_in) { in rpm_filter_read()
260 used++; in rpm_filter_read()
[all …]
H A Darchive_write_open_memory.c35 size_t used; member
51 archive_write_open_memory(struct archive *a, void *buff, size_t buffSize, size_t *used) in archive_write_open_memory() argument
62 mine->client_size = used; in archive_write_open_memory()
72 mine->used = 0; in memory_write_open()
74 *mine->client_size = mine->used; in memory_write_open()
93 if (mine->used + length > mine->size) { in memory_write()
97 memcpy(mine->buff + mine->used, buff, length); in memory_write()
98 mine->used += length; in memory_write()
100 *mine->client_size = mine->used; in memory_write()
/freebsd/contrib/ncurses/ncurses/trace/
H A Dvarargs.c84 ARGTYPE used = atUnknown; in _nc_varargs() local
112 used = atInteger; in _nc_varargs()
120 used = atFloat; in _nc_varargs()
124 used = atInteger; in _nc_varargs()
128 used = atString; in _nc_varargs()
132 used = atPoint; in _nc_varargs()
136 used = atPoint; in _nc_varargs()
144 if (used != atUnknown && parms < MAX_PARMS) { in _nc_varargs()
145 parm[parms++] = used; in _nc_varargs()
147 used = parm[n]; in _nc_varargs()
[all …]
/freebsd/contrib/ntp/libntp/lib/isc/include/isc/
H A Dbuffer.h147 ((void *)((unsigned char *)(b)->base + (b)->used)) /*d*/
155 #define isc_buffer_usedlength(b) ((b)->used) /* d-a */
157 #define isc_buffer_remaininglength(b) ((b)->used - (b)->current) /* d-b */
159 #define isc_buffer_availablelength(b) ((b)->length - (b)->used) /* e-d */
174 unsigned int used; member
691 (_b)->used = 0; \
706 (_b)->used = 0; \
720 (_r)->length = (_b)->used; \
731 (_b)->used += (_n); \
736 (_b)->used -= (_n); \
[all …]
/freebsd/contrib/libarchive/libarchive/test/
H A Dtest_write_format_iso9660_filename.c141 verify(unsigned char *buff, size_t used, enum vtype type, struct fns *fns) in verify() argument
159 assertEqualIntA(a, 0, archive_read_open_memory(a, buff, used)); in verify()
201 create_iso_image(unsigned char *buff, size_t buffsize, size_t *used, in create_iso_image() argument
227 assertA(0 == archive_write_open_memory(a, buff, buffsize, used)); in create_iso_image()
309 size_t used; in DEFINE_TEST() local
322 fcnt = create_iso_image(buff, buffsize, &used, NULL); in DEFINE_TEST()
336 verify(buff, used, ROCKRIDGE, &fns); in DEFINE_TEST()
342 verify(buff, used, JOLIET, &fns); in DEFINE_TEST()
350 verify(buff, used, ISO9660, &fns); in DEFINE_TEST()
355 assertEqualInt(fcnt, create_iso_image(buff, buffsize, &used, in DEFINE_TEST()
[all …]
H A Dtest_gnutar_filename_encoding.c33 size_t used; in DEFINE_TEST() local
53 archive_write_open_memory(a, buff, sizeof(buff), &used)); in DEFINE_TEST()
74 size_t used; in DEFINE_TEST() local
94 archive_write_open_memory(a, buff, sizeof(buff), &used)); in DEFINE_TEST()
115 size_t used; in DEFINE_TEST() local
135 archive_write_open_memory(a, buff, sizeof(buff), &used)); in DEFINE_TEST()
156 size_t used; in DEFINE_TEST() local
177 archive_write_open_memory(a, buff, sizeof(buff), &used)); in DEFINE_TEST()
201 size_t used; in DEFINE_TEST() local
215 archive_write_open_memory(a, buff, sizeof(buff), &used)); in DEFINE_TEST()
[all …]
H A Dtest_ustar_filename_encoding.c34 size_t used; in DEFINE_TEST() local
54 archive_write_open_memory(a, buff, sizeof(buff), &used)); in DEFINE_TEST()
75 size_t used; in DEFINE_TEST() local
95 archive_write_open_memory(a, buff, sizeof(buff), &used)); in DEFINE_TEST()
116 size_t used; in DEFINE_TEST() local
136 archive_write_open_memory(a, buff, sizeof(buff), &used)); in DEFINE_TEST()
157 size_t used; in DEFINE_TEST() local
178 archive_write_open_memory(a, buff, sizeof(buff), &used)); in DEFINE_TEST()
202 size_t used; in DEFINE_TEST() local
216 archive_write_open_memory(a, buff, sizeof(buff), &used)); in DEFINE_TEST()
[all …]
H A Dtest_zip_filename_encoding.c34 size_t used; in DEFINE_TEST() local
54 archive_write_open_memory(a, buff, sizeof(buff), &used)); in DEFINE_TEST()
79 archive_write_open_memory(a, buff, sizeof(buff), &used)); in DEFINE_TEST()
103 archive_write_open_memory(a, buff, sizeof(buff), &used)); in DEFINE_TEST()
125 size_t used; in DEFINE_TEST() local
144 archive_write_open_memory(a, buff, sizeof(buff), &used)); in DEFINE_TEST()
168 archive_write_open_memory(a, buff, sizeof(buff), &used)); in DEFINE_TEST()
200 archive_write_open_memory(a, buff, sizeof(buff), &used)); in DEFINE_TEST()
225 size_t used; in DEFINE_TEST() local
239 archive_write_open_memory(a, buff, sizeof(buff), &used)); in DEFINE_TEST()
[all …]
H A Dtest_write_format_tar_empty.c35 size_t used; in DEFINE_TEST()
44 assertA(0 == archive_write_open_memory(a, buff, sizeof(buff), &used)); in DEFINE_TEST()
50 assert(used == 1024); in DEFINE_TEST()
51 for (i = 0; i < used; i++) { in DEFINE_TEST()
62 assertA(0 == archive_write_open_memory(a, buff, sizeof(buff), &used)); in DEFINE_TEST()
68 assertEqualInt((int)used, 1024); in DEFINE_TEST()
69 for (i = 0; i < used; i++) { in DEFINE_TEST()
36 size_t used; DEFINE_TEST() local
/freebsd/contrib/libedit/
H A Dchartype.c96 ssize_t used; in ct_encode_string() local
103 used = (ssize_t)(dst - conv->cbuff); in ct_encode_string()
104 if ((conv->csize - (size_t)used) < 5) { in ct_encode_string()
108 dst = conv->cbuff + used; in ct_encode_string()
112 used = ct_encode_char(dst, (size_t)5, *s); in ct_encode_string()
113 if (used == -1) /* failed to encode, need more buffer space */ in ct_encode_string()
116 dst += used; in ct_encode_string()
218 ssize_t used; in ct_visual_string() local
226 used = 0; in ct_visual_string()
229 used = ct_visual_char(dst, in ct_visual_string()
[all …]
/freebsd/tests/sys/cddl/zfs/tests/snapused/
H A Dsnapused.kshlib43 used=$(get_prop used $dataset)
50 if (( used != used_sum )); then
51 log_fail "$dataset: used($used) is not the sum($used_sum) of usedby*"
80 used=$(get_prop used $child)
81 if (( reservation > used )); then
84 (( usedbychildren_sum += used ))
177 used=$(get_prop used $child)
178 (( usedbysnapshots_sum += used ))
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/snapused/
H A Dsnapused.kshlib43 used=$(get_prop used $dataset)
50 if ((used != used_sum)); then
51 log_fail "$dataset: used($used) is not the sum($used_sum) of usedby*"
80 used=$(get_prop used $child)
81 if ((reservation > used)); then
84 ((usedbychildren_sum += used))
177 used=$(get_prop used $child)
178 ((usedbysnapshots_sum += used))
/freebsd/contrib/ncurses/ncurses/base/
H A Dsafe_sprintf.c83 int used = 0; in _nc_printf_length() local
144 used = 'i'; in _nc_printf_length()
152 used = 'f'; in _nc_printf_length()
156 used = 'i'; in _nc_printf_length()
170 used = 'p'; in _nc_printf_length()
174 used = 'p'; in _nc_printf_length()
178 used = 0; in _nc_printf_length()
187 used = 'p'; in _nc_printf_length()
191 switch (used) { in _nc_printf_length()
266 int used; in NCURSES_SP_NAME()
[all …]
/freebsd/contrib/wpa/src/utils/
H A Dwpabuf.c40 buf, (unsigned long) buf->size, (unsigned long) buf->used, in wpabuf_overflow()
69 if (buf->used + add_len > buf->size) { in wpabuf_resize()
72 nbuf = os_realloc(buf->buf, buf->used + add_len); in wpabuf_resize()
75 os_memset(nbuf + buf->used, 0, add_len); in wpabuf_resize()
81 buf->used + add_len); in wpabuf_resize()
87 sizeof(struct wpabuf) + buf->used, 0, in wpabuf_resize()
91 buf->used + add_len); in wpabuf_resize()
95 os_memset(nbuf + sizeof(struct wpabuf) + buf->used, 0, in wpabuf_resize()
101 buf->size = buf->used + add_len; in wpabuf_resize()
152 buf->used = len; in wpabuf_alloc_ext_data()
[all …]
/freebsd/crypto/openssl/crypto/bn/
H A Dbn_ctx.c35 unsigned used, size; member
69 unsigned int used; member
90 while (bnidx < ctx->used) { in ctxdbg()
188 else if (!BN_STACK_push(&ctx->stack, ctx->used)) { in BN_CTX_start()
205 if (fp < ctx->used) in BN_CTX_end()
206 BN_POOL_release(&ctx->pool, ctx->used - fp); in BN_CTX_end()
207 ctx->used = fp; in BN_CTX_end()
234 ctx->used++; in BN_CTX_get()
297 p->used = p->size = 0; in BN_POOL_init()
322 if (p->used == p->size) { in BN_POOL_get()
[all …]
/freebsd/contrib/ntp/libntp/lib/isc/
H A Dbuffer.c127 REQUIRE(b->used + n <= b->length); in isc__buffer_add()
139 REQUIRE(b->used >= n); in isc__buffer_subtract()
198 REQUIRE(b->current + n <= b->used); in isc__buffer_setactive()
221 REQUIRE(b->current + n <= b->used); in isc__buffer_forward()
260 b->used = length; in isc_buffer_compact()
273 REQUIRE(b->used - b->current >= 1); in isc_buffer_getuint8()
285 REQUIRE(b->used + 1 <= b->length); in isc__buffer_putuint8()
301 REQUIRE(b->used - b->current >= 2); in isc_buffer_getuint16()
314 REQUIRE(b->used + 2 <= b->length); in isc__buffer_putuint16()
322 REQUIRE(b->used + 3 <= b->length); in isc__buffer_putuint24()
[all …]

12345678910>>...130