Home
last modified time | relevance | path

Searched refs:len (Results 251 – 275 of 7729) sorted by relevance

1...<<11121314151617181920>>...310

/freebsd/sys/contrib/zstd/zlibWrapper/
H A Dgzwrite.c164 while (len) {
176 len -= n;
186 z_size_t len;
191 if (len == 0)
254 unsigned len;
285 z_size_t len; local
306 return len ? gz_write(state, buf, len) / size : 0;
387 int len; in gzvprintf() local
424 for (len = 0; len < state.state->size; len++) in gzvprintf()
454 return len; in gzvprintf()
[all …]
/freebsd/contrib/wpa/src/radius/
H A Dradius.c283 int len; in radius_msg_dump_attr() local
312 len); in radius_msg_dump_attr()
326 len); in radius_msg_dump_attr()
343 len); in radius_msg_dump_attr()
744 int len; in radius_msg_add_eap() local
754 pos += len; in radius_msg_add_eap()
771 len = 0; in radius_msg_get_eap()
1073 len = (len & 0xf0) + 16; in encrypt_ms_key()
1377 os_memcpy(buf, (attr + 1), dlen > len ? len : dlen); in radius_msg_get_attr()
1632 len[2] = 2; in radius_msg_get_tunnel_password()
[all …]
/freebsd/contrib/less/
H A Dprompt.c84 int len; in ap_str() local
89 strncpy(mp, s, len); in ap_str()
90 mp += len; in ap_str()
170 POSITION len; in cond() local
235 POSITION len; in protochar() local
266 len = ch_length(); in protochar()
269 else if (len == 0) in protochar()
313 len = ch_length(); in protochar()
314 if (len == NULL_POSITION || len == ch_zero() || in protochar()
340 (len = ch_length()) == NULL_POSITION || len == ch_zero() || in protochar()
[all …]
/freebsd/usr.sbin/bsnmpd/modules/snmp_lm75/
H A Dsnmp_lm75.c175 size_t len; in update_sensor_sysctl() local
183 if (len != 4) in update_sensor_sysctl()
196 size_t len; in update_sensor() local
198 len = sizeof(sensor->desc); in update_sensor()
207 len = sizeof(sensor->parent); in update_sensor()
215 size_t len; in add_sensor() local
222 len = sizeof(temp); in add_sensor()
248 size_t len, nextlen, rootlen; in update_sensors() local
272 len = rootlen; in update_sensors()
314 len = nextlen / sizeof(int); in update_sensors()
[all …]
/freebsd/contrib/bearssl/src/symcipher/
H A Daes_big_ctrcbc.c30 const void *key, size_t len) in br_aes_big_ctrcbc_init() argument
37 xorbuf(void *dst, const void *src, size_t len) in xorbuf() argument
44 while (len -- > 0) { in xorbuf()
52 void *ctr, void *data, size_t len) in br_aes_big_ctrcbc_ctr() argument
63 while (len > 0) { in br_aes_big_ctrcbc_ctr()
74 len -= 16; in br_aes_big_ctrcbc_ctr()
92 void *cbcmac, const void *data, size_t len) in br_aes_big_ctrcbc_mac() argument
97 while (len > 0) { in br_aes_big_ctrcbc_mac()
101 len -= 16; in br_aes_big_ctrcbc_mac()
110 br_aes_big_ctrcbc_ctr(ctx, ctr, data, len); in br_aes_big_ctrcbc_encrypt()
[all …]
H A Daes_small_ctrcbc.c30 const void *key, size_t len) in br_aes_small_ctrcbc_init() argument
37 xorbuf(void *dst, const void *src, size_t len) in xorbuf() argument
44 while (len -- > 0) { in xorbuf()
52 void *ctr, void *data, size_t len) in br_aes_small_ctrcbc_ctr() argument
63 while (len > 0) { in br_aes_small_ctrcbc_ctr()
74 len -= 16; in br_aes_small_ctrcbc_ctr()
92 void *cbcmac, const void *data, size_t len) in br_aes_small_ctrcbc_mac() argument
97 while (len > 0) { in br_aes_small_ctrcbc_mac()
101 len -= 16; in br_aes_small_ctrcbc_mac()
110 br_aes_small_ctrcbc_ctr(ctx, ctr, data, len); in br_aes_small_ctrcbc_encrypt()
[all …]
/freebsd/contrib/ntp/sntp/libopts/
H A Dsave-flags.c47 find_save_flags_bnm(char const * str, size_t len);
91 (void)len; in save_flags_hash()
92 return len; in save_flags_hash()
108 if (len <= 7 && len >= 5) in find_save_flags_name()
116 if (*str == *s && !strncmp (str + 1, s + 1, len - 1) && s[len] == '\0') in find_save_flags_name()
132 find_save_flags_bnm(char const * str, size_t len) in find_save_flags_bnm() argument
136 map = find_save_flags_name(str, (unsigned int)len); in find_save_flags_bnm()
156 cmp = strncmp(map->svfl_name, str, len); in find_save_flags_bnm()
168 if (map->svfl_name[len] == NUL) in find_save_flags_bnm()
176 if (strncmp(map->svfl_name, str, len) == 0) in find_save_flags_bnm()
[all …]
/freebsd/contrib/ntp/ntpd/
H A Dntp_crypto.c1105 int len; in crypto_xmit() local
1124 len = 8; in crypto_xmit()
1841 u_int len; in crypto_update() local
2086 u_int len; in bighash() local
2265 if (len == 0 || len > MAX_VALLEN) in crypto_bob()
2306 len); in crypto_bob()
2597 if (len == 0 || len > MAX_VALLEN) in crypto_bob2()
2682 long len; in crypto_gq() local
2940 if (len == 0 || len > MAX_VALLEN) in crypto_bob3()
3170 if (len == 0 || len > MAX_VALLEN) in cert_sign()
[all …]
/freebsd/stand/i386/libi386/
H A Di386_copy.c38 i386_copyin(const void *src, vm_offset_t dest, const size_t len) in i386_copyin() argument
40 if (dest + len >= memtop) { in i386_copyin()
45 bcopy(src, PTOV(dest), len); in i386_copyin()
46 return (len); in i386_copyin()
50 i386_copyout(const vm_offset_t src, void *dest, const size_t len) in i386_copyout() argument
52 if (src + len >= memtop) { in i386_copyout()
57 bcopy(PTOV(src), dest, len); in i386_copyout()
58 return (len); in i386_copyout()
63 i386_readin(readin_handle_t fd, vm_offset_t dest, const size_t len) in i386_readin() argument
66 if (dest + len >= memtop_copyin) { in i386_readin()
[all …]
/freebsd/contrib/wpa/src/eap_common/
H A Deap_fast_common.c23 hdr.len = host_to_be16(len); in eap_fast_put_tlv_hdr()
29 u16 len) in eap_fast_put_tlv() argument
100 out = os_malloc(len); in eap_fast_derive_key()
154 pos, len); in eap_fast_parse_tlv()
172 if (len < 2) { in eap_fast_parse_tlv()
191 pos, len); in eap_fast_parse_tlv()
192 if (len < 2) { in eap_fast_parse_tlv()
217 pos, len); in eap_fast_parse_tlv()
236 pos, len); in eap_fast_parse_tlv()
243 if (len < 2) { in eap_fast_parse_tlv()
[all …]
/freebsd/contrib/arm-optimized-routines/string/aarch64/
H A Dstrcpy.S22 #define len x4 macro
76 clz len, synd
77 add len, tmp, len, lsr 2
79 sub tmp, len, 15
89 clz len, synd
90 lsr len, len, 2
93 sub tmp, len, 7
103 subs tmp, len, 3
148 clz len, synd
149 lsr len, len, 2
[all …]
/freebsd/contrib/wpa/src/crypto/
H A Dcrypto_nettle.c65 alg->update(ctx, len[i], addr[i]); in nettle_digest_vector()
119 hmac_md5_update(&ctx, len[i], addr[i]); in hmac_md5_vector()
144 hmac_sha1_update(&ctx, len[i], addr[i]); in hmac_sha1_vector()
337 u8 *secret, size_t *len) in crypto_dh_derive_secret() argument
368 prime, prime_len, secret, len); in crypto_dh_derive_secret()
382 size_t len; in crypto_mod_exp() local
390 len = mpz_sizeinbase(bn_result, 2); in crypto_mod_exp()
391 len = (len + 7) / 8; in crypto_mod_exp()
392 if (*result_len < len) in crypto_mod_exp()
437 u8 *crypt, size_t len) in crypto_cipher_encrypt() argument
[all …]
/freebsd/contrib/tcpdump/
H A Dprint-dccp.c197 return len; in dccp_csum_coverage()
199 return (cov > len)? len : cov; in dccp_csum_coverage()
270 u_int len) in dccp_print() argument
302 if (len < fixed_hdrlen) { in dccp_print()
304 fixed_hdrlen - len); in dccp_print()
327 if (hlen > len) { in dccp_print()
329 hlen, len); in dccp_print()
368 fixed_hdrlen - len); in dccp_print()
384 fixed_hdrlen - len); in dccp_print()
401 fixed_hdrlen - len); in dccp_print()
[all …]
H A Dprint-geneve.c107 while (len > 0) { in geneve_opts_print()
123 if (opt_len > len) { in geneve_opts_print()
141 len -= opt_len; in geneve_opts_print()
159 if (len < 8) { in geneve_print()
169 len -= 1; in geneve_print()
179 len -= 1; in geneve_print()
183 len -= 2; in geneve_print()
187 len -= 3; in geneve_print()
191 len -= 1; in geneve_print()
206 if (len < opts_len) { in geneve_print()
[all …]
H A Dprint-vxlan-gpe.c62 vxlan_gpe_print(netdissect_options *ndo, const u_char *bp, u_int len) in vxlan_gpe_print() argument
70 if (len < VXLAN_GPE_HDR_LEN) { in vxlan_gpe_print()
71 ND_PRINT(" (len %u < %u)", len, VXLAN_GPE_HDR_LEN); in vxlan_gpe_print()
77 len -= 1; in vxlan_gpe_print()
83 len -= 2; in vxlan_gpe_print()
87 len -= 1; in vxlan_gpe_print()
91 len -= 3; in vxlan_gpe_print()
96 len -= 1; in vxlan_gpe_print()
103 ip_print(ndo, bp, len); in vxlan_gpe_print()
106 ip6_print(ndo, bp, len); in vxlan_gpe_print()
[all …]
/freebsd/sys/rpc/rpcsec_gss/
H A Drpcsec_gss_prot.c60 u_int len;
64 len = p->length;
67 p->length = len;
123 u_int len; in xdr_rpc_gss_wrap_data() local
153 put_uint32(&mic, len); in xdr_rpc_gss_wrap_data()
154 if (len != RNDUP(len)) { in xdr_rpc_gss_wrap_data()
155 m_append(mic, RNDUP(len) - len, zpad); in xdr_rpc_gss_wrap_data()
177 if (len != RNDUP(len)) { in xdr_rpc_gss_wrap_data()
178 m_append(args, RNDUP(len) - len, zpad); in xdr_rpc_gss_wrap_data()
228 uint32_t len, cklen; in xdr_rpc_gss_unwrap_data() local
[all …]
/freebsd/crypto/openssl/crypto/evp/
H A De_aes.c194 if (len < bl) in aesni_ecb_cipher()
1017 --len; in s390x_aes_ofb_cipher()
1025 if (len) { in s390x_aes_ofb_cipher()
1084 --len; in s390x_aes_cfb_cipher()
1092 if (len) { in s390x_aes_cfb_cipher()
1202 if (len) { in s390x_aes_gcm_aad()
1274 if (len) { in s390x_aes_gcm()
1823 if (len) in s390x_aes_ccm()
2443 for (i = 0, len -= bl; i <= len; i += bl) in aes_ecb_cipher()
2511 if (len) { in aes_cfb1_cipher()
[all …]
/freebsd/contrib/wpa/src/tls/
H A Dx509v3.c231 end = buf + len; in x509_parse_public_key()
371 if (oid.len == 4 && in x509_parse_name()
498 if (len == 0) in x509_name_string()
502 end = buf + len; in x509_name_string()
540 if (len < 2) in parse_uint2()
556 if (len < 4) in parse_uint4()
585 end = pos + len; in x509_parse_time()
667 buf, len); in x509_parse_time()
923 pos, len); in x509_parse_alt_name_uri()
950 name->ip_len = len; in x509_parse_alt_name_ip()
[all …]
/freebsd/crypto/openssl/providers/implementations/ciphers/
H A Dcipher_des_hw.c57 if (len < bl) in cipher_hw_des_ecb_cipher()
59 for (i = 0, len -= bl; i <= len; i += bl) in cipher_hw_des_ecb_cipher()
79 len -= MAXCHUNK; in cipher_hw_des_cbc_cipher()
83 if (len > 0) in cipher_hw_des_cbc_cipher()
97 len -= MAXCHUNK; in cipher_hw_des_ofb64_cipher()
101 if (len > 0) { in cipher_hw_des_ofb64_cipher()
115 if (len < chunk) in cipher_hw_des_cfb64_cipher()
116 chunk = len; in cipher_hw_des_cfb64_cipher()
117 while (len > 0 && len >= chunk) { in cipher_hw_des_cfb64_cipher()
120 len -= chunk; in cipher_hw_des_cfb64_cipher()
[all …]
/freebsd/sys/dev/liquidio/base/
H A Dlio_mem_ops.c118 len--; in lio_pci_fastwrite()
123 while (len >= 8) { in lio_pci_fastwrite()
127 len -= 8; in lio_pci_fastwrite()
132 while (len--) in lio_pci_fastwrite()
151 len--; in lio_pci_fastread()
156 while (len >= 8) { in lio_pci_fastread()
160 len -= 8; in lio_pci_fastread()
165 while (len--) in lio_pci_fastread()
210 copy_len = len; in lio_pci_rw_core_mem()
221 len -= copy_len; in lio_pci_rw_core_mem()
[all …]
/freebsd/sys/contrib/dev/athk/ath11k/
H A Ddebugfs.c719 len += scnprintf(buf + len, size - len, "hp: %u\n", in ath11k_fill_bp_stats()
721 len += scnprintf(buf + len, size - len, "tp: %u\n", in ath11k_fill_bp_stats()
771 len += scnprintf(buf + len, size - len, in ath11k_debugfs_dump_soc_ring_bp_stats()
810 len += scnprintf(buf + len, size - len, "%s: %u\n", in ath11k_debugfs_dump_soc_dp_stats()
815 len += scnprintf(buf + len, size - len, "%s: %u\n", in ath11k_debugfs_dump_soc_dp_stats()
819 len += scnprintf(buf + len, size - len, in ath11k_debugfs_dump_soc_dp_stats()
833 len += scnprintf(buf + len, size - len, in ath11k_debugfs_dump_soc_dp_stats()
1256 len += scnprintf(buf + len, size - len, in ath11k_debug_dump_dbr_entries()
1258 len += scnprintf(buf + len, size - len, in ath11k_debug_dump_dbr_entries()
1260 len += scnprintf(buf + len, size - len, in ath11k_debug_dump_dbr_entries()
[all …]
/freebsd/contrib/libfido2/src/
H A Du2f.c57 sig->len = *len; /* consume the whole buffer */ in sig_get()
59 fido_buf_read(buf, len, sig->ptr, sig->len) < 0) { in sig_get()
82 (x5c->len = (size_t)(end - *buf)) >= *len) { in x5c_get()
89 fido_buf_read(buf, len, x5c->ptr, x5c->len) < 0) { in x5c_get()
286 if (len < 2 || ((reply[len - 2] << 8) | reply[len - 1]) != SW_NO_ERROR) { in parse_auth_reply()
291 len -= 2; in parse_auth_reply()
327 if (cdh->len != SHA256_DIGEST_LENGTH || key_id->len > UINT8_MAX || in do_auth()
512 size_t len; in encode_cred_authdata() local
555 fido_buf_write(&ptr, &len, pk_blob.ptr, pk_blob.len) < 0) { in encode_cred_authdata()
602 if (len < 2 || ((reply[len - 2] << 8) | reply[len - 1]) != SW_NO_ERROR) { in parse_register_reply()
[all …]
/freebsd/contrib/lua/src/
H A Dlutf8lib.c49 else if (0u - (size_t)pos > len) return 0; in u_posrelat()
50 else return (lua_Integer)len + pos + 1; in u_posrelat()
98 size_t len; /* string length in bytes */ in utflen() local
99 const char *s = luaL_checklstring(L, 1, &len); in utflen()
105 luaL_argcheck(L, --posj < (lua_Integer)len, 3, in utflen()
127 size_t len; in codepoint() local
128 const char *s = luaL_checklstring(L, 1, &len); in codepoint()
188 size_t len; in byteoffset() local
191 lua_Integer posi = (n >= 0) ? 1 : len + 1; in byteoffset()
229 size_t len; in iter_aux() local
[all …]
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zfs_set/
H A Dzfs_set_common.kshlib119 typeset -i len=${2:-5}
125 while ((i < len)); do
145 typeset -i len
146 ((len = RANDOM % sumlen))
156 ((len = sumlen - (len + 1)))
178 typeset -i len
179 ((len = RANDOM % sumlen))
184 ((len = sumlen - len))
204 typeset -i len=${1:-100}
205 ((len < 1 )) && len=1
[all …]
/freebsd/usr.bin/sort/
H A Dbwstring.c65 size_t i, len; in populate_cmonth() local
73 len = strlen(tmp); in populate_cmonth()
86 size_t i, len; in populate_wmonth() local
93 len = strlen(tmp); in populate_wmonth()
99 m[len] = L'\0'; in populate_wmonth()
241 } else if (bws && newlen != bws->wdata.len && newlen <= bws->wdata.len) { in bws_setlen()
324 ret = bwsalloc(len); in bwscsbdup()
344 n = len - cptr; in bwscsbdup()
429 size_t len = bws->cdata.len; in bwsfwrite() local
441 return (len + 1); in bwsfwrite()
[all …]

1...<<11121314151617181920>>...310