Home
last modified time | relevance | path

Searched refs:len (Results 151 – 175 of 7335) sorted by relevance

12345678910>>...294

/freebsd/sys/netinet6/
H A Din6_cksum.c153 int len, sum; in in6_cksumdata() local
159 len = *lenp; in in6_cksumdata()
162 if (len == 0) { in in6_cksumdata()
163 len = rlen; in in6_cksumdata()
178 len--; in in6_cksumdata()
190 len--; in in6_cksumdata()
204 len += 32; in in6_cksumdata()
209 len += 8; in in6_cksumdata()
224 len++; in in6_cksumdata()
276 "len(%d)", __func__, m->m_pkthdr.len, off, len)); in in6_cksum_partial()
[all …]
/freebsd/lib/libiscsiutil/
H A Dpdu.c53 uint32_t len = 0; in pdu_data_segment_length() local
56 len <<= 8; in pdu_data_segment_length()
58 len <<= 8; in pdu_data_segment_length()
61 return (len); in pdu_data_segment_length()
113 while (len > 0) { in pdu_read()
127 len -= ret; in pdu_read()
136 size_t len, padding; in pdu_receive() local
145 len = pdu_ahs_length(pdu); in pdu_receive()
146 if (len > 0) in pdu_receive()
150 if (len > 0) { in pdu_receive()
[all …]
/freebsd/stand/efi/libefi/
H A Defichar.c67 size_t len; in utf8_len_of_ucs2() local
70 len = 0; in utf8_len_of_ucs2()
74 len += 3; in utf8_len_of_ucs2()
76 len += 2; in utf8_len_of_ucs2()
78 len++; in utf8_len_of_ucs2()
81 return (len); in utf8_len_of_ucs2()
87 size_t len, sz; in ucs2_to_utf8() local
93 len = 0; in ucs2_to_utf8()
121 if (len >= sz) { in ucs2_to_utf8()
149 *len = sz; in utf8_to_ucs2()
[all …]
/freebsd/contrib/wpa/src/utils/
H A Dcommon.c224 int pos = len - 1; in inc_byte_array()
529 size_t len = 0; in printf_decode() local
604 return len; in printf_decode()
693 *len = tlen; in wpa_config_parse_string()
738 size_t len = 0; in merge_byte_arrays() local
754 os_memcpy(res + len, src2, res_len - len); in merge_byte_arrays()
762 return len; in merge_byte_arrays()
776 res[len] = '\0'; in dup_binstr()
1201 size_t len; in ssid_parse() local
1267 size_t len; in get_param() local
[all …]
H A Dwpabuf.c129 buf->size = len; in wpabuf_alloc()
151 buf->size = len; in wpabuf_alloc_ext_data()
152 buf->used = len; in wpabuf_alloc_ext_data()
220 buf->used += len; in wpabuf_put()
240 size_t len = 0; in wpabuf_concat() local
284 if (blen >= len) in wpabuf_zeropad()
289 os_memset(wpabuf_put(ret, len - blen), 0, len - blen); in wpabuf_zeropad()
322 size_t len; in wpabuf_parse_bin() local
326 if (len & 0x01) in wpabuf_parse_bin()
328 len /= 2; in wpabuf_parse_bin()
[all …]
/freebsd/contrib/ntp/libntp/lib/isc/
H A Dinet_ntop.c93 int len; in inet_ntop4() local
96 if (len < 0 || (size_t)len >= size) in inet_ntop4()
101 memcpy(dst, tmp, 1 + len); in inet_ntop4()
124 struct { int base, len; } best, cur; in inet_ntop6() member
138 best.len = cur.len = 0; in inet_ntop6()
142 cur.base = i, cur.len = 1; in inet_ntop6()
144 cur.len++; in inet_ntop6()
147 if (best.base == -1 || cur.len > best.len) in inet_ntop6()
154 if (best.base == -1 || cur.len > best.len) in inet_ntop6()
157 if (best.base != -1 && best.len < 2) in inet_ntop6()
[all …]
/freebsd/tests/sys/fifo/
H A Dfifo_io.c216 ssize_t len; in drain_fd() local
246 ssize_t len; in test_simpleio() local
267 len); in test_simpleio()
280 len); in test_simpleio()
404 ssize_t len; in test_blocking_read_empty() local
473 ssize_t len; in test_blocking_one_byte() local
539 ssize_t len; in test_nonblocking_one_byte() local
604 ssize_t len; in test_blocking_partial_write() local
662 ssize_t len; in test_nonblocking_partial_write() local
701 if (len == 0 || len >= 512*1024) { in test_nonblocking_partial_write()
[all …]
/freebsd/lib/libc/stdtime/
H A Dstrptime.c86 int i, len; in _strptime() local
136 len = 2; in _strptime()
141 len--; in _strptime()
217 len = 3; in _strptime()
222 len--; in _strptime()
246 len--; in _strptime()
288 len--; in _strptime()
362 len--; in _strptime()
419 len--; in _strptime()
478 len--; in _strptime()
[all …]
/freebsd/lib/librpcsvc/
H A Dxcrypt.c63 int len; in xencrypt() local
65 len = strlen(secret) / 2; in xencrypt()
66 if ((buf = malloc((unsigned)len)) == NULL) { in xencrypt()
70 hex2bin(len, secret, buf); in xencrypt()
96 int len; in xdecrypt() local
98 len = strlen(secret) / 2; in xdecrypt()
103 hex2bin(len, secret, buf); in xdecrypt()
139 hex2bin(int len, char *hexnum, char *binnum) in hex2bin() argument
143 for (i = 0; i < len; i++) { in hex2bin()
157 for (i = 0; i < len; i++) { in bin2hex()
[all …]
/freebsd/sys/dev/ofw/
H A Dopenfirmio.c102 cp[len] = '\0'; in openfirm_getstr()
112 int len, ok, error; in openfirm_ioctl() local
159 of->of_buflen = len; in openfirm_ioctl()
166 of->of_buflen = len; in openfirm_ioctl()
168 if (len <= 0) in openfirm_ioctl()
171 len = OF_getprop(node, name, (void *)value, len); in openfirm_ioctl()
197 if (len < 0) in openfirm_ioctl()
199 of->of_buflen = len; in openfirm_ioctl()
231 len = of->of_buflen; in openfirm_ioctl()
232 newname[len - 1] = '\0'; in openfirm_ioctl()
[all …]
H A Dofw_fdt.c157 ssize_t len; in ofw_fdt_init() local
168 if (len > 0 && len <= FDT_MODEL_LEN) { in ofw_fdt_init()
173 if (len > 0 && len <= FDT_COMPAT_LEN) { in ofw_fdt_init()
183 if (len > 0 && len <= FDT_FBSDVER_LEN) { in ofw_fdt_init()
189 if (len > 0 && len <= FDT_SERIAL_LEN) { in ofw_fdt_init()
299 int offset, len; in ofw_fdt_getproplen() local
305 len = -1; in ofw_fdt_getproplen()
324 return (len); in ofw_fdt_getproplen()
334 int len, offset; in ofw_fdt_getprop() local
367 return (len); in ofw_fdt_getprop()
[all …]
/freebsd/contrib/arm-optimized-routines/string/test/
H A Dstrchr.c60 if (len > LEN || seekpos >= len || align >= ALIGN) in test()
64 src[i] = (i + len) & 1 ? seekchar : 0; in test()
66 s[len + i] = (i + len) & 1 ? seekchar : 0; in test()
67 for (int i = 0; i < len; i++) in test()
71 if (seekpos != -1 && (len + align) & 1) in test()
73 s[len] = '\0'; in test()
77 untag_buffer (s, len + 1, fun->test_mte); in test()
84 quote ("input", s, len); in test()
91 if (p != s + len) in test()
94 fun->name, s, 0, len, p, f, len); in test()
[all …]
H A D__mtag_tag_region.c22 untag_buffer (p, len, 1); in mtag_quoteat()
24 quoteat (prefix, p, len, at); in mtag_quoteat()
54 test (const struct fun *fun, int salign, int len) in test() argument
63 if (len > LEN || salign >= A) in test()
65 for (i = 0; i < len + 2 * A; i++) in test()
67 for (i = 0; i < len; i++) in test()
70 src = tag_buffer (src, len + 2 * A, 1); in test()
74 p = fun->fun (s, len); in test()
89 for (; i < salign + len; i++) in test()
99 for (; i < len + 2 * A; i++) in test()
[all …]
/freebsd/contrib/bearssl/tools/
H A Dfiles.c40 *len = 0; in read_file()
86 while (len > 0) { in write_file()
98 len -= wlen; in write_file()
116 if (len < 2) { in looks_like_DER()
123 len -= 2; in looks_like_DER()
133 len -= (size_t)fb; in looks_like_DER()
141 return dlen == len; in looks_like_DER()
184 while (len > 0) { in decode_pem()
189 len -= tlen; in decode_pem()
230 len = 1; in decode_pem()
[all …]
/freebsd/crypto/openssl/crypto/bio/
H A Dbio_dump.c23 void *u, const void *s, int len) in BIO_dump_cb() argument
25 return BIO_dump_indent_cb(cb, u, s, len, 0); in BIO_dump_cb()
44 rows = len / dump_width; in BIO_dump_indent_cb()
45 if ((rows * dump_width) < len) in BIO_dump_indent_cb()
52 if (((i * dump_width) + j) >= len) { in BIO_dump_indent_cb()
67 if (((i * dump_width) + j) >= len) in BIO_dump_indent_cb()
100 return UP_fwrite(data, len, 1, fp); in write_fp()
103 int BIO_dump_fp(FILE *fp, const void *s, int len) in BIO_dump_fp() argument
105 return BIO_dump_cb(write_fp, fp, s, len); in BIO_dump_fp()
119 int BIO_dump(BIO *bp, const void *s, int len) in BIO_dump() argument
[all …]
/freebsd/usr.sbin/ypldap/
H A Dber.c170 len = i; in ber_add_enumerated()
173 len = i; in ber_add_enumerated()
199 len = i; in ber_add_integer()
202 len = i; in ber_add_integer()
402 if (len) in ber_oid2ber()
407 if (len) in ber_oid2ber()
457 if (ber_oid2ber(o, buf, len) != len) in ber_add_oid()
764 size_t len; in ber_write_elements() local
1032 *len = u; in get_len()
1061 *len = s; in get_len()
[all …]
/freebsd/crypto/openssl/crypto/
H A Dpacket.c21 pkt->written += len; in WPACKET_allocate_bytes()
22 pkt->curr += len; in WPACKET_allocate_bytes()
56 reflen = (len > pkt->buf->length) ? len : pkt->buf->length; in WPACKET_reserve_bytes()
71 *allocbytes -= len; in WPACKET_reserve_bytes()
139 pkt->maxsize = (max < len) ? max : len; in WPACKET_init_static_len()
153 pkt->maxsize = len; in WPACKET_init_der()
215 for (data += len - 1; len > 0; len--) { in put_value()
424 if (len == 0) in WPACKET_memset()
431 memset(dest, ch, len); in WPACKET_memset()
440 if (len == 0) in WPACKET_memcpy()
[all …]
/freebsd/tools/regression/netinet6/icmp6_filter/
H A Dicmp6_filter.c54 socklen_t len; in main() local
68 len = sizeof(ic6f); in main()
69 if (getsockopt(s, IPPROTO_ICMPV6, ICMP6_FILTER, &ic6f, &len) < 0) in main()
77 len = sizeof(ic6f); in main()
79 if (setsockopt(s, IPPROTO_ICMPV6, ICMP6_FILTER, &ic6f, len) < 0) in main()
85 len = sizeof(ic6f); in main()
94 len = sizeof(ic6f); in main()
96 if (setsockopt(s, IPPROTO_ICMPV6, ICMP6_FILTER, &ic6f, len) < 0) in main()
102 len = sizeof(ic6f); in main()
111 len = sizeof(ic6f); in main()
[all …]
/freebsd/sbin/dhclient/
H A Dhash.c63 do_hash(const unsigned char *name, int len, int size) in do_hash() argument
66 int accum = 0, i = len; in do_hash()
86 if (!len) in add_hash()
87 len = strlen((const char *)name); in add_hash()
89 hashno = do_hash(name, len, table->hash_count); in add_hash()
99 bp->len = len; in add_hash()
104 hash_lookup(struct hash_table *table, unsigned char *name, int len) in hash_lookup() argument
112 if (!len) in hash_lookup()
113 len = strlen((char *)name); in hash_lookup()
115 hashno = do_hash(name, len, table->hash_count); in hash_lookup()
[all …]
/freebsd/crypto/openssl/crypto/asn1/
H A Da_d2i_fp.c43 int len; in ASN1_d2i_bio() local
46 if (len < 0) in ASN1_d2i_bio()
50 ret = d2i(x, &p, len); in ASN1_d2i_bio()
64 int len; in ASN1_item_d2i_bio_ex() local
69 if (len < 0) in ASN1_item_d2i_bio_ex()
117 size_t len = 0; in asn1_d2i_read_bio() local
132 diff = len - off; in asn1_d2i_read_bio()
136 if (len + want < len || !BUF_MEM_grow_clean(b, len + want)) { in asn1_d2i_read_bio()
146 if (len + i < len) { in asn1_d2i_read_bio()
150 len += i; in asn1_d2i_read_bio()
[all …]
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/
H A Dzpl_file_range.c106 dst_file, dst_off, len); in zpl_copy_file_range()
116 dst_off, len, flags); in zpl_copy_file_range()
125 dst_off, len); in zpl_copy_file_range()
169 if (len == 0) in zpl_remap_file_range()
173 dst_file, dst_off, len); in zpl_remap_file_range()
192 if (len == 0) in zpl_clone_file_range()
197 dst_file, dst_off, len); in zpl_clone_file_range()
199 if (ret >= 0 && ret != len) in zpl_clone_file_range()
246 if (ret != len) in zpl_ioctl_ficlone()
271 if (len == 0) in zpl_ioctl_ficlonerange()
[all …]
/freebsd/contrib/libucl/src/
H A Ducl_emitter_utils.c106 size_t len = 0; in ucl_elt_string_write_json() local
115 if (len > 0) { in ucl_elt_string_write_json()
151 len = 0; in ucl_elt_string_write_json()
156 len ++; in ucl_elt_string_write_json()
161 if (len > 0) { in ucl_elt_string_write_json()
173 size_t len = 0; in ucl_elt_string_write_squoted() local
184 len = 0; in ucl_elt_string_write_squoted()
190 len ++; in ucl_elt_string_write_squoted()
195 if (len > 0) { in ucl_elt_string_write_squoted()
221 if (len == 1) { in ucl_utstring_append_character()
[all …]
/freebsd/contrib/wpa/src/radius/
H A Dradius_das.c61 size_t len; in radius_das_disconnect() local
80 if (len != 4) { in radius_das_disconnect()
92 if (len != 16) { in radius_das_disconnect()
113 tmp[len] = '\0'; in radius_das_disconnect()
144 attrs.cui_len = len; in radius_das_disconnect()
221 size_t len; in radius_das_coa() local
245 if (len != 4) { in radius_das_coa()
257 if (len != 16) { in radius_das_coa()
278 tmp[len] = '\0'; in radius_das_coa()
395 int len; in radius_das_receive() local
[all …]
/freebsd/contrib/ofed/libibverbs/
H A Dsysfs.c63 int len; in ibv_get_sysfs_path() local
67 len = strlen(dup); in ibv_get_sysfs_path()
68 while (len > 0 && dup[len - 1] == '/') { in ibv_get_sysfs_path()
69 --len; in ibv_get_sysfs_path()
70 dup[len] = '\0'; in ibv_get_sysfs_path()
83 size_t len; in ibv_read_sysfs_file() local
92 len = size; in ibv_read_sysfs_file()
93 ret = sysctlbyname(&path[1], buf, &len, NULL, 0); in ibv_read_sysfs_file()
99 if (len > 0 && buf[len - 1] == '\n') in ibv_read_sysfs_file()
100 buf[--len] = '\0'; in ibv_read_sysfs_file()
[all …]
/freebsd/contrib/tcpdump/
H A Dprint-babel.c392 u_int len; in babel_print_v2_tlvs() local
405 len = GET_U_1(message + 1); in babel_print_v2_tlvs()
407 ICHECK(i, 2 + len); in babel_print_v2_tlvs()
408 ND_TCHECK_LEN(message, 2 + len); in babel_print_v2_tlvs()
425 if(len < 6) goto invalid; in babel_print_v2_tlvs()
464 if(len > 6) in babel_print_v2_tlvs()
490 if((u_int)rc < len - 6) in babel_print_v2_tlvs()
529 if(len < 10) in babel_print_v2_tlvs()
568 if((u_int)rc < len - 10) in babel_print_v2_tlvs()
636 len - 2); in babel_print_v2_tlvs()
[all …]

12345678910>>...294