Home
last modified time | relevance | path

Searched refs:len (Results 1 – 25 of 4387) sorted by relevance

12345678910>>...176

/freebsd/sys/contrib/dev/athk/ath11k/
H A Ddebugfs_htt_stats.c18 #define PRINT_ARRAY_TO_BUF(out, buflen, arr, str, len, newline) \ argument
27 for (i = 0; i < len; i++) { \
44 u32 len = stats_req->buf_len; in htt_print_stats_string_tlv() local
50 len += scnprintf(buf + len, buf_len - len, "HTT_STATS_STRING_TLV:\n"); in htt_print_stats_string_tlv()
52 len += scnprintf(buf + len, buf_len - len, in htt_print_stats_string_tlv()
55 len += scnprintf(buf + len, in htt_print_stats_string_tlv()
56 buf_len - len, in htt_print_stats_string_tlv()
60 len += scnprintf(buf + len, buf_len - len, "\n\n"); in htt_print_stats_string_tlv()
62 if (len >= buf_len) in htt_print_stats_string_tlv()
65 buf[len] = 0; in htt_print_stats_string_tlv()
[all …]
H A Ddebugfs_sta.c145 int len = 0, i, j, k, retval = 0; in ath11k_dbg_sta_dump_tx_stats() local
162 len += scnprintf(buf + len, size - len, "%s_%s\n", in ath11k_dbg_sta_dump_tx_stats()
165 len += scnprintf(buf + len, size - len, in ath11k_dbg_sta_dump_tx_stats()
169 len += scnprintf(buf + len, size - len, in ath11k_dbg_sta_dump_tx_stats()
172 len += scnprintf(buf + len, size - len, "\n"); in ath11k_dbg_sta_dump_tx_stats()
173 len += scnprintf(buf + len, size - len, in ath11k_dbg_sta_dump_tx_stats()
177 len += scnprintf(buf + len, size - len, in ath11k_dbg_sta_dump_tx_stats()
180 len += scnprintf(buf + len, size - len, "\n"); in ath11k_dbg_sta_dump_tx_stats()
181 len += scnprintf(buf + len, size - len, " HT MCS %s\n", in ath11k_dbg_sta_dump_tx_stats()
184 len += scnprintf(buf + len, size - len, in ath11k_dbg_sta_dump_tx_stats()
[all …]
/freebsd/contrib/wpa/src/wps/
H A Dwps_attr_parse.c21 u8 id, u8 len, const u8 *pos) in wps_set_vendor_ext_wfa_subelem() argument
24 id, len); in wps_set_vendor_ext_wfa_subelem()
27 if (len != 1) { in wps_set_vendor_ext_wfa_subelem()
29 "%u", len); in wps_set_vendor_ext_wfa_subelem()
36 attr->authorized_macs_len = len; in wps_set_vendor_ext_wfa_subelem()
39 if (len != 1) { in wps_set_vendor_ext_wfa_subelem()
41 "Shareable length %u", len); in wps_set_vendor_ext_wfa_subelem()
47 if (len != 1) { in wps_set_vendor_ext_wfa_subelem()
49 "length %u", len); in wps_set_vendor_ext_wfa_subelem()
55 if (len != 1) { in wps_set_vendor_ext_wfa_subelem()
[all …]
/freebsd/lib/libugidfw/
H A Dugidfw.c68 size_t left, len; in bsde_rule_to_string() local
74 len = snprintf(cur, left, "subject "); in bsde_rule_to_string()
75 if (len < 0 || len > left) in bsde_rule_to_string()
77 left -= len; in bsde_rule_to_string()
78 cur += len; in bsde_rule_to_string()
81 len = snprintf(cur, left, "not "); in bsde_rule_to_string()
82 if (len < 0 || len > left) in bsde_rule_to_string()
84 left -= len; in bsde_rule_to_string()
85 cur += len; in bsde_rule_to_string()
92 len = snprintf(cur, left, "! "); in bsde_rule_to_string()
[all …]
/freebsd/contrib/wpa/src/ap/
H A Dctrl_iface_ap.c34 size_t len = curr_len; in hostapd_write_ht_mcs_bitmask() local
36 ret = os_snprintf(buf + len, buflen - len, in hostapd_write_ht_mcs_bitmask()
38 if (os_snprintf_error(buflen - len, ret)) in hostapd_write_ht_mcs_bitmask()
39 return len; in hostapd_write_ht_mcs_bitmask()
40 len += ret; in hostapd_write_ht_mcs_bitmask()
43 len += wpa_snprintf_hex(buf + len, buflen - len, mcs_set, 10); in hostapd_write_ht_mcs_bitmask()
45 ret = os_snprintf(buf + len, buflen - len, "\n"); in hostapd_write_ht_mcs_bitmask()
46 if (os_snprintf_error(buflen - len, ret)) in hostapd_write_ht_mcs_bitmask()
48 len += ret; in hostapd_write_ht_mcs_bitmask()
50 return len; in hostapd_write_ht_mcs_bitmask()
[all …]
/freebsd/contrib/bc/tests/bc/errors/
H A D34.txt4 define printarray(a[], len) {
13 define a2(a[], len) {
17 for (i = 0; i < len; ++i) {(x)#086$
30 printarray(a[], len)
33 define a4(a__[], len) {
37 for (i = 0; i < len; ++i) {
41 printarray(a__[], len)
44 define a6(*a__[], len) {
48 for (i = 0; i < len; ++i) {
52 printarray(a__[], len)
[all …]
H A D11.txt3 define printarray(a[], len) {
7 for (i = 0; i < len; ++i) {
12 define a2(a[], len) {
16 for (i = 0; i < len; ++i) {
20 printarray(len, len)
23 define a4(a__[], len) {
27 for (i = 0; i < len; ++i) {
31 printarray(a__[], len)
34 define a6(*a__[], len) {
38 for (i = 0; i < len; ++i) {
[all …]
/freebsd/contrib/bc/tests/bc/scripts/
H A Dafl1.bc4 define printarray(a[], len) {
13 define a2(a[], len) {
17 for (i = 0; i < len; ++i) {(x)#086$
30 printarray(a[], len)
33 define a4(a__[], len) {
37 for (i = 0; i < len; ++i) {
41 printarray(a__[], len)
44 define a6(*a__[], len) {
48 for (i = 0; i < len; ++i) {
52 printarray(a__[], len)
[all …]
H A Dreferences.bc3 define printarray(a[], len) {
7 for (i = 0; i < len; ++i) {
12 define a2(a[], len) {
16 for (i = 0; i < len; ++i) {
20 printarray(a[], len)
23 define a4(a__[], len) {
27 for (i = 0; i < len; ++i) {
31 printarray(a__[], len)
34 define a6(*a__[], len) {
38 for (i = 0; i < len; ++i) {
[all …]
/freebsd/sbin/hastd/
H A Dlzf.c171 unsigned int len = 2; in lzf_compress() local
172 unsigned int maxlen = in_end - ip - len; in lzf_compress()
186 len++; if (ref [len] != ip [len]) break; in lzf_compress()
187 len++; if (ref [len] != ip [len]) break; in lzf_compress()
188 len++; if (ref [len] ! in lzf_compress()
307 lzf_movsb(dst,src,len) global() argument
354 unsigned int len = ctrl >> 5; lzf_decompress() local
[all...]
/freebsd/crypto/openssl/crypto/modes/
H A Dcts128.c28 unsigned char *out, size_t len, in CRYPTO_cts128_encrypt_block() argument
34 if (len <= 16) in CRYPTO_cts128_encrypt_block()
37 if ((residue = len % 16) == 0) in CRYPTO_cts128_encrypt_block()
40 len -= residue; in CRYPTO_cts128_encrypt_block()
42 CRYPTO_cbc128_encrypt(in, out, len, key, ivec, block); in CRYPTO_cts128_encrypt_block()
44 in += len; in CRYPTO_cts128_encrypt_block()
45 out += len; in CRYPTO_cts128_encrypt_block()
53 return len + residue; in CRYPTO_cts128_encrypt_block()
57 unsigned char *out, size_t len, in CRYPTO_nistcts128_encrypt_block() argument
64 if (len < 16) in CRYPTO_nistcts128_encrypt_block()
[all …]
/freebsd/crypto/heimdal/lib/asn1/
H A Dder_get.c38 * which to read, from the left, `len' which means the maximum number
45 der_get_unsigned (const unsigned char *p, size_t len, in der_get_unsigned() argument
49 size_t oldlen = len; in der_get_unsigned()
51 if (len == sizeof(val) + 1 && p[0] == 0) in der_get_unsigned()
53 else if (len > sizeof(val)) in der_get_unsigned()
56 while (len--) in der_get_unsigned()
64 der_get_unsigned64 (const unsigned char *p, size_t len, in der_get_integer() argument
68 size_t oldlen = len; in der_get_integer()
70 if (len == sizeof(val) + 1 && p[0] == 0) in der_get_integer()
72 else if (len > sizeo in der_get_integer()
84 der_get_length(const unsigned char * p,size_t len,size_t * val,size_t * size) der_get_length() argument
118 der_get_boolean(const unsigned char * p,size_t len,int * data,size_t * size) der_get_boolean() argument
131 der_get_general_string(const unsigned char * p,size_t len,heim_general_string * str,size_t * size) der_get_general_string() argument
163 der_get_utf8string(const unsigned char * p,size_t len,heim_utf8_string * str,size_t * size) der_get_utf8string() argument
170 der_get_printable_string(const unsigned char * p,size_t len,heim_printable_string * str,size_t * size) der_get_printable_string() argument
184 der_get_ia5_string(const unsigned char * p,size_t len,heim_ia5_string * str,size_t * size) der_get_ia5_string() argument
191 der_get_bmp_string(const unsigned char * p,size_t len,heim_bmp_string * data,size_t * size) der_get_bmp_string() argument
222 der_get_universal_string(const unsigned char * p,size_t len,heim_universal_string * data,size_t * size) der_get_universal_string() argument
252 der_get_visible_string(const unsigned char * p,size_t len,heim_visible_string * str,size_t * size) der_get_visible_string() argument
259 der_get_octet_string(const unsigned char * p,size_t len,heim_octet_string * data,size_t * size) der_get_octet_string() argument
272 der_get_octet_string_ber(const unsigned char * p,size_t len,heim_octet_string * data,size_t * size) der_get_octet_string_ber() argument
341 der_get_heim_integer(const unsigned char * p,size_t len,heim_integer * data,size_t * size) der_get_heim_integer() argument
427 der_get_time(const unsigned char * p,size_t len,time_t * data,size_t * size) der_get_time() argument
448 der_get_generalized_time(const unsigned char * p,size_t len,time_t * data,size_t * size) der_get_generalized_time() argument
455 der_get_utctime(const unsigned char * p,size_t len,time_t * data,size_t * size) der_get_utctime() argument
462 der_get_oid(const unsigned char * p,size_t len,heim_oid * data,size_t * size) der_get_oid() argument
510 der_get_tag(const unsigned char * p,size_t len,Der_class * class,Der_type * type,unsigned int * tag,size_t * size) der_get_tag() argument
542 der_match_tag(const unsigned char * p,size_t len,Der_class class,Der_type type,unsigned int tag,size_t * size) der_match_tag() argument
556 der_match_tag2(const unsigned char * p,size_t len,Der_class class,Der_type * type,unsigned int tag,size_t * size) der_match_tag2() argument
578 der_match_tag_and_length(const unsigned char * p,size_t len,Der_class class,Der_type * type,unsigned int tag,size_t * length_ret,size_t * size) der_match_tag_and_length() argument
612 _heim_fix_dce(size_t reallen,size_t * len) _heim_fix_dce() argument
623 der_get_bit_string(const unsigned char * p,size_t len,heim_bit_string * data,size_t * size) der_get_bit_string() argument
[all...]
H A Dder_put.c40 * which to write, from the right, `len' which means the maximum
47 der_put_unsigned (unsigned char *p, size_t len, const unsigned *v, size_t *size) in der_put_unsigned() argument
53 while (len > 0 && val) { in der_put_unsigned()
56 --len; in der_put_unsigned()
62 if(len < 1) in der_put_unsigned()
69 } else if (len < 1) in der_put_unsigned()
79 der_put_unsigned64 (unsigned char *p, size_t len, const uint64_t *v, size_t *size) in der_put_integer() argument
85 while (len > 0 && val) { in der_put_integer()
88 --len; in der_put_integer()
94 if(len < in der_put_integer()
120 der_put_length(unsigned char * p,size_t len,size_t val,size_t * size) der_put_length() argument
147 der_put_boolean(unsigned char * p,size_t len,const int * data,size_t * size) der_put_boolean() argument
160 der_put_general_string(unsigned char * p,size_t len,const heim_general_string * str,size_t * size) der_put_general_string() argument
174 der_put_utf8string(unsigned char * p,size_t len,const heim_utf8_string * str,size_t * size) der_put_utf8string() argument
181 der_put_printable_string(unsigned char * p,size_t len,const heim_printable_string * str,size_t * size) der_put_printable_string() argument
188 der_put_ia5_string(unsigned char * p,size_t len,const heim_ia5_string * str,size_t * size) der_put_ia5_string() argument
195 der_put_bmp_string(unsigned char * p,size_t len,const heim_bmp_string * data,size_t * size) der_put_bmp_string() argument
212 der_put_universal_string(unsigned char * p,size_t len,const heim_universal_string * data,size_t * size) der_put_universal_string() argument
231 der_put_visible_string(unsigned char * p,size_t len,const heim_visible_string * str,size_t * size) der_put_visible_string() argument
238 der_put_octet_string(unsigned char * p,size_t len,const heim_octet_string * data,size_t * size) der_put_octet_string() argument
250 der_put_heim_integer(unsigned char * p,size_t len,const heim_integer * data,size_t * size) der_put_heim_integer() argument
302 der_put_generalized_time(unsigned char * p,size_t len,const time_t * data,size_t * size) der_put_generalized_time() argument
322 der_put_utctime(unsigned char * p,size_t len,const time_t * data,size_t * size) der_put_utctime() argument
342 der_put_oid(unsigned char * p,size_t len,const heim_oid * data,size_t * size) der_put_oid() argument
372 der_put_tag(unsigned char * p,size_t len,Der_class class,Der_type type,unsigned int tag,size_t * size) der_put_tag() argument
403 der_put_length_and_tag(unsigned char * p,size_t len,size_t len_val,Der_class class,Der_type type,unsigned int tag,size_t * size) der_put_length_and_tag() argument
430 const size_t len = gtimep ? 15 : 13; _heim_time2generalizedtime() local
451 der_put_bit_string(unsigned char * p,size_t len,const heim_bit_string * data,size_t * size) der_put_bit_string() argument
[all...]
/freebsd/contrib/tcpdump/
H A Dprint-aoe.c143 const u_char *cp, u_int len) in aoev1_issue_print() argument
145 if (len < AOEV1_ISSUE_ARG_LEN) in aoev1_issue_print()
151 len -= 1; in aoev1_issue_print()
155 len -= 1; in aoev1_issue_print()
159 len -= 1; in aoev1_issue_print()
163 len -= 1; in aoev1_issue_print()
167 len -= 1; in aoev1_issue_print()
171 len -= 1; in aoev1_issue_print()
175 len -= 1; in aoev1_issue_print()
179 len -= 1; in aoev1_issue_print()
[all …]
H A Dprint-ahcp.c100 const u_char *cp, uint8_t len) in ahcp_time_print() argument
105 if (len != 4) in ahcp_time_print()
115 ND_TCHECK_LEN(cp, len); in ahcp_time_print()
120 const u_char *cp, uint8_t len) in ahcp_seconds_print() argument
122 if (len != 4) in ahcp_seconds_print()
129 ND_TCHECK_LEN(cp, len); in ahcp_seconds_print()
134 const u_char *cp, uint8_t len) in ahcp_ipv6_addresses_print() argument
138 while (len) { in ahcp_ipv6_addresses_print()
139 if (len < 16) in ahcp_ipv6_addresses_print()
143 len -= 16; in ahcp_ipv6_addresses_print()
[all …]
H A Dprint-pim.c156 static void pimv2_print(netdissect_options *, const u_char *bp, u_int len, const u_char *);
160 const u_char *bp, u_int len) in pimv1_join_prune_print() argument
188 if (len < sizeof(nd_ipv4)) in pimv1_join_prune_print()
194 len -= 4; in pimv1_join_prune_print()
195 if (len < 4) in pimv1_join_prune_print()
204 len -= 4; in pimv1_join_prune_print()
206 if (len < 4) in pimv1_join_prune_print()
210 len -= 4; in pimv1_join_prune_print()
216 if (len < 4) in pimv1_join_prune_print()
220 len -= 4; in pimv1_join_prune_print()
[all …]
/freebsd/contrib/bsnmp/lib/
H A Dasn1.c59 asn_get_header(struct asn_buf *b, u_char *type, asn_len_t *len) in asn_get_header() argument
94 *len = 0; in asn_get_header()
96 *len = (*len << 8) | *b->asn_cptr++; in asn_get_header()
100 *len = *b->asn_cptr++; in asn_get_header()
111 if (*len > b->asn_len) { in asn_get_header()
112 asn_error(b, "lenen %u exceeding asn_len %u", *len, b->asn_len); in asn_get_header()
125 asn_put_len(u_char *ptr, asn_len_t len) in asn_put_len() argument
130 if (len > ASN_MAXLEN) { in asn_put_len()
131 asn_error(NULL, "encoding length too long: (%u)", len); in asn_put_len()
135 if (len <= 127) { in asn_put_len()
[all …]
/freebsd/sys/contrib/dev/athk/ath10k/
H A Ddebugfs_sta.c183 int len = 0; in ath10k_dbg_sta_read_aggr_mode() local
186 len = scnprintf(buf, sizeof(buf) - len, "aggregation mode: %s\n", in ath10k_dbg_sta_read_aggr_mode()
191 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_dbg_sta_read_aggr_mode()
398 int len = 0; in ath10k_dbg_sta_read_peer_debug_trigger() local
401 len = scnprintf(buf, sizeof(buf) - len, in ath10k_dbg_sta_read_peer_debug_trigger()
405 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_dbg_sta_read_peer_debug_trigger()
460 int len = 0; in ath10k_dbg_sta_read_peer_ps_state() local
464 len = scnprintf(buf, sizeof(buf) - len, "%d\n", in ath10k_dbg_sta_read_peer_ps_state()
469 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_dbg_sta_read_peer_ps_state()
546 len += scnprintf(buf + len, buf_len - len, \
[all …]
/freebsd/include/ssp/
H A Dwchar.h35 __ssp_wchar_overlap(const void *leftp, const void *rightp, size_t len) in __ssp_wchar_overlap() argument
38 if (len > __SIZE_T_MAX / sizeof(wchar_t)) in __ssp_wchar_overlap()
40 return (__ssp_overlap(leftp, rightp, len * sizeof(wchar_t))); in __ssp_wchar_overlap()
60 (wchar_t *__restrict buf, const wchar_t *__restrict src, size_t len))
64 if (len > slen)
66 if (__ssp_wchar_overlap(src, buf, len))
69 return (__ssp_real(wmemcpy)(buf, src, len));
73 (wchar_t *__restrict buf, const wchar_t *__restrict src, size_t len))
77 if (len > slen)
79 if (__ssp_wchar_overlap(src, buf, len))
[all …]
/freebsd/contrib/ntp/sntp/libevent/
H A Devent_tagging.c160 int len = encode_int_internal(data, number); in evtag_encode_int() local
161 evbuffer_add(evbuf, data, len); in evtag_encode_int()
168 int len = encode_int64_internal(data, number); in evtag_encode_int64() local
169 evbuffer_add(evbuf, data, len); in evtag_encode_int64()
204 size_t len = evbuffer_get_length(evbuf); in decode_tag_internal() local
214 evbuf, len < sizeof(number) + 1 ? len : sizeof(number) + 1); in decode_tag_internal()
218 while (count++ < len) { in decode_tag_internal()
262 const void *data, ev_uint32_t len) in evtag_marshal() argument
265 evtag_encode_int(evbuf, len); in evtag_marshal()
266 evbuffer_add(evbuf, (void *)data, len); in evtag_marshal()
[all …]
/freebsd/contrib/libevent/
H A Devent_tagging.c160 int len = encode_int_internal(data, number); in evtag_encode_int() local
161 evbuffer_add(evbuf, data, len); in evtag_encode_int()
168 int len = encode_int64_internal(data, number); in evtag_encode_int64() local
169 evbuffer_add(evbuf, data, len); in evtag_encode_int64()
204 size_t len = evbuffer_get_length(evbuf); in decode_tag_internal() local
214 evbuf, len < sizeof(number) + 1 ? len : sizeof(number) + 1); in decode_tag_internal()
218 while (count++ < len) { in decode_tag_internal()
262 const void *data, ev_uint32_t len) in evtag_marshal() argument
265 evtag_encode_int(evbuf, len); in evtag_marshal()
266 evbuffer_add(evbuf, (void *)data, len); in evtag_marshal()
[all …]
/freebsd/contrib/tnftp/src/
H A Dprogressbar.c129 #define BUFLEFT (sizeof(buf) - len)
152 size_t len; local
183 len = snprintf(buf, sizeof(buf), "\r\n%s: "
186 (void)write(fileno(ttyout), buf, len);
212 len = 0;
220 len += snprintf(buf + len, BUFLEFT, "\r");
222 len += snprintf(buf + len, BUFLEFT, "%s", prefix);
227 len += snprintf(buf + len, BUFLEFT, "%3d%% ", ratio);
238 len += snprintf(buf + len, BUFLEFT,
248 len += snprintf(buf + len, BUFLEFT, " " LLFP("5") " %-3s ",
[all …]
/freebsd/lib/libc/tests/string/
H A Dstrncmp_test.c38 alignment_testcase(char *a, char *b, int want, size_t len) in alignment_testcase() argument
42 res = strncmp_fn(a, b, len); in alignment_testcase()
45 (void *)a, a, (void *)b, b, len, res, want); in alignment_testcase()
50 size_t a_off, size_t b_off, size_t len, size_t pos) in check_strncmp_alignments() argument
60 a_str[len] = '\0'; in check_strncmp_alignments()
61 b_str[len] = '\0'; in check_strncmp_alignments()
62 a_str[len+1] = 'A'; in check_strncmp_alignments()
63 b_str[len+1] = 'B'; in check_strncmp_alignments()
68 alignment_testcase(a_str, b_str, 0, len + 16); in check_strncmp_alignments()
69 alignment_testcase(a_str, b_str, 0, len + 1); in check_strncmp_alignments()
[all …]
/freebsd/sys/contrib/openzfs/include/sys/
H A Dbitops.h44 #define BF32_DECODE(x, low, len) P2PHASE((x) >> (low), 1U << (len)) argument
45 #define BF64_DECODE(x, low, len) P2PHASE((x) >> (low), 1ULL << (len)) argument
46 #define BF32_ENCODE(x, low, len) (P2PHASE((x), 1U << (len)) << (low)) argument
47 #define BF64_ENCODE(x, low, len) (P2PHASE((x), 1ULL << (len)) << (low)) argument
49 #define BF32_GET(x, low, len) BF32_DECODE(x, low, len) argument
50 #define BF64_GET(x, low, len) BF64_DECODE(x, low, len) argument
52 #define BF32_SET(x, low, len, val) do { \ argument
53 ASSERT3U(val, <, 1U << (len)); \
54 ASSERT3U(low + len, <=, 32); \
55 (x) ^= BF32_ENCODE((x >> low) ^ (val), low, len); \
[all …]
/freebsd/crypto/openssh/
H A Dsshbuf-getput-basic.c35 sshbuf_get(struct sshbuf *buf, void *v, size_t len) in sshbuf_get() argument
40 if ((r = sshbuf_consume(buf, len)) < 0) in sshbuf_get()
42 if (v != NULL && len != 0) in sshbuf_get()
43 memcpy(v, p, len); in sshbuf_get()
100 check_offset(const struct sshbuf *buf, int wr, size_t offset, size_t len) in check_offset() argument
104 if (offset >= SIZE_MAX - len) in check_offset()
106 if (offset + len > sshbuf_len(buf)) { in check_offset()
114 check_roffset(const struct sshbuf *buf, size_t offset, size_t len, in check_roffset() argument
120 if ((r = check_offset(buf, 0, offset, len)) != 0) in check_roffset()
190 size_t len; in sshbuf_get_string() local
[all …]

12345678910>>...176