Home
last modified time | relevance | path

Searched full:len (Results 1 – 25 of 10330) sorted by relevance

12345678910>>...414

/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath11k/
Ddebugfs_htt_stats.c13 #define HTT_DBG_OUT(buf, len, fmt, ...) \ argument
14 scnprintf(buf, len, fmt "\n", ##__VA_ARGS__)
21 #define ARRAY_TO_STRING(out, arr, len) \ argument
24 for (i = 0; i < len; i++) { \
38 u32 len = stats_req->buf_len; in htt_print_stats_string_tlv() local
46 len += HTT_DBG_OUT(buf + len, buf_len - len, "HTT_STATS_STRING_TLV:"); in htt_print_stats_string_tlv()
56 len += HTT_DBG_OUT(buf + len, buf_len - len, "data = %s\n", data); in htt_print_stats_string_tlv()
58 if (len >= buf_len) in htt_print_stats_string_tlv()
61 buf[len] = 0; in htt_print_stats_string_tlv()
63 stats_req->buf_len = len; in htt_print_stats_string_tlv()
[all …]
Ddebugfs_sta.c221 int len = 0, i, j, k, retval = 0; in ath11k_dbg_sta_dump_tx_stats() local
238 len += scnprintf(buf + len, size - len, "%s_%s\n", in ath11k_dbg_sta_dump_tx_stats()
241 len += scnprintf(buf + len, size - len, in ath11k_dbg_sta_dump_tx_stats()
245 len += scnprintf(buf + len, size - len, in ath11k_dbg_sta_dump_tx_stats()
248 len += scnprintf(buf + len, size - len, "\n"); in ath11k_dbg_sta_dump_tx_stats()
249 len += scnprintf(buf + len, size - len, in ath11k_dbg_sta_dump_tx_stats()
253 len += scnprintf(buf + len, size - len, in ath11k_dbg_sta_dump_tx_stats()
256 len += scnprintf(buf + len, size - len, "\n"); in ath11k_dbg_sta_dump_tx_stats()
257 len += scnprintf(buf + len, size - len, " HT MCS %s\n", in ath11k_dbg_sta_dump_tx_stats()
260 len += scnprintf(buf + len, size - len, in ath11k_dbg_sta_dump_tx_stats()
[all …]
/kernel/linux/linux-6.6/drivers/net/wireless/ath/ath11k/
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 …]
Ddebugfs_sta.c146 int len = 0, i, j, k, retval = 0; in ath11k_dbg_sta_dump_tx_stats() local
163 len += scnprintf(buf + len, size - len, "%s_%s\n", in ath11k_dbg_sta_dump_tx_stats()
166 len += scnprintf(buf + len, size - len, in ath11k_dbg_sta_dump_tx_stats()
170 len += scnprintf(buf + len, size - len, in ath11k_dbg_sta_dump_tx_stats()
173 len += scnprintf(buf + len, size - len, "\n"); in ath11k_dbg_sta_dump_tx_stats()
174 len += scnprintf(buf + len, size - len, in ath11k_dbg_sta_dump_tx_stats()
178 len += scnprintf(buf + len, size - len, in ath11k_dbg_sta_dump_tx_stats()
181 len += scnprintf(buf + len, size - len, "\n"); in ath11k_dbg_sta_dump_tx_stats()
182 len += scnprintf(buf + len, size - len, " HT MCS %s\n", in ath11k_dbg_sta_dump_tx_stats()
185 len += scnprintf(buf + len, size - len, in ath11k_dbg_sta_dump_tx_stats()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath9k/
Dhtc_drv_debug.c25 unsigned int len = 0; in read_file_tgt_int_stats() local
40 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_tgt_int_stats()
44 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_tgt_int_stats()
48 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_tgt_int_stats()
52 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_tgt_int_stats()
56 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_tgt_int_stats()
60 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_tgt_int_stats()
64 if (len > sizeof(buf)) in read_file_tgt_int_stats()
65 len = sizeof(buf); in read_file_tgt_int_stats()
67 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_tgt_int_stats()
[all …]
/kernel/linux/linux-6.6/drivers/net/wireless/ath/ath9k/
Dhtc_drv_debug.c25 unsigned int len = 0; in read_file_tgt_int_stats() local
40 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_tgt_int_stats()
44 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_tgt_int_stats()
48 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_tgt_int_stats()
52 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_tgt_int_stats()
56 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_tgt_int_stats()
60 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_tgt_int_stats()
64 if (len > sizeof(buf)) in read_file_tgt_int_stats()
65 len = sizeof(buf); in read_file_tgt_int_stats()
67 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_tgt_int_stats()
[all …]
/kernel/linux/linux-6.6/drivers/net/wireless/ath/ath5k/
Ddebug.c180 unsigned int len = 0; in read_file_beacon() local
185 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_beacon()
190 len += scnprintf(buf + len, sizeof(buf) - len, "%-24s0x%08x\n", in read_file_beacon()
193 len += scnprintf(buf + len, sizeof(buf) - len, "%-24s0x%08x\n\n", in read_file_beacon()
197 len += scnprintf(buf + len, sizeof(buf) - len, "%-24s0x%08x\tTU: %08x\n", in read_file_beacon()
201 len += scnprintf(buf + len, sizeof(buf) - len, "%-24s0x%08x\tTU: %08x\n", in read_file_beacon()
205 len += scnprintf(buf + len, sizeof(buf) - len, "%-24s0x%08x\tTU: %08x\n", in read_file_beacon()
209 len += scnprintf(buf + len, sizeof(buf) - len, "%-24s0x%08x\tTU: %08x\n", in read_file_beacon()
213 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_beacon()
217 if (len > sizeof(buf)) in read_file_beacon()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath5k/
Ddebug.c180 unsigned int len = 0; in read_file_beacon() local
185 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_beacon()
190 len += scnprintf(buf + len, sizeof(buf) - len, "%-24s0x%08x\n", in read_file_beacon()
193 len += scnprintf(buf + len, sizeof(buf) - len, "%-24s0x%08x\n\n", in read_file_beacon()
197 len += scnprintf(buf + len, sizeof(buf) - len, "%-24s0x%08x\tTU: %08x\n", in read_file_beacon()
201 len += scnprintf(buf + len, sizeof(buf) - len, "%-24s0x%08x\tTU: %08x\n", in read_file_beacon()
205 len += scnprintf(buf + len, sizeof(buf) - len, "%-24s0x%08x\tTU: %08x\n", in read_file_beacon()
209 len += scnprintf(buf + len, sizeof(buf) - len, "%-24s0x%08x\tTU: %08x\n", in read_file_beacon()
213 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_beacon()
217 if (len > sizeof(buf)) in read_file_beacon()
[all …]
/kernel/linux/linux-6.6/drivers/scsi/libfc/
Dfc_encode.h97 size_t len; in fc_ct_ns_fill() local
139 len = strnlen(fc_host_symbolic_name(lport->host), 255); in fc_ct_ns_fill()
140 ct = fc_ct_hdr_fill(fp, op, sizeof(struct fc_ns_rspn) + len, in fc_ct_ns_fill()
144 fc_host_symbolic_name(lport->host), len); in fc_ct_ns_fill()
145 ct->payload.spn.fr_name_len = len; in fc_ct_ns_fill()
149 len = strnlen(fc_host_symbolic_name(lport->host), 255); in fc_ct_ns_fill()
150 ct = fc_ct_hdr_fill(fp, op, sizeof(struct fc_ns_rsnn) + len, in fc_ct_ns_fill()
154 fc_host_symbolic_name(lport->host), len); in fc_ct_ns_fill()
155 ct->payload.snn.fr_name_len = len; in fc_ct_ns_fill()
167 const char *in, size_t len) in fc_ct_ms_fill_attr() argument
[all …]
/kernel/linux/linux-5.10/lib/
Dkfifo.c90 unsigned int len, unsigned int off) in kfifo_copy_in() argument
100 len *= esize; in kfifo_copy_in()
102 l = min(len, size - off); in kfifo_copy_in()
105 memcpy(fifo->data, src + l, len - l); in kfifo_copy_in()
114 const void *buf, unsigned int len) in __kfifo_in() argument
119 if (len > l) in __kfifo_in()
120 len = l; in __kfifo_in()
122 kfifo_copy_in(fifo, buf, len, fifo->in); in __kfifo_in()
123 fifo->in += len; in __kfifo_in()
124 return len; in __kfifo_in()
[all …]
/kernel/linux/linux-6.6/lib/
Dkfifo.c90 unsigned int len, unsigned int off) in kfifo_copy_in() argument
100 len *= esize; in kfifo_copy_in()
102 l = min(len, size - off); in kfifo_copy_in()
105 memcpy(fifo->data, src + l, len - l); in kfifo_copy_in()
114 const void *buf, unsigned int len) in __kfifo_in() argument
119 if (len > l) in __kfifo_in()
120 len = l; in __kfifo_in()
122 kfifo_copy_in(fifo, buf, len, fifo->in); in __kfifo_in()
123 fifo->in += len; in __kfifo_in()
124 return len; in __kfifo_in()
[all …]
/kernel/linux/linux-6.6/drivers/net/wireless/ath/ath6kl/
Ddebug.c151 const void *buf, size_t len) in ath6kl_dbg_dump() argument
157 print_hex_dump_bytes(prefix, DUMP_PREFIX_OFFSET, buf, len); in ath6kl_dbg_dump()
162 buf, len); in ath6kl_dbg_dump()
305 unsigned int len = 0, buf_len = 1500; in read_file_war_stats() local
312 len += scnprintf(buf + len, buf_len - len, "\n"); in read_file_war_stats()
313 len += scnprintf(buf + len, buf_len - len, "%25s\n", in read_file_war_stats()
315 len += scnprintf(buf + len, buf_len - len, "%25s\n\n", in read_file_war_stats()
317 len += scnprintf(buf + len, buf_len - len, "%20s %10u\n", in read_file_war_stats()
320 if (WARN_ON(len > buf_len)) in read_file_war_stats()
321 len = buf_len; in read_file_war_stats()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath6kl/
Ddebug.c151 const void *buf, size_t len) in ath6kl_dbg_dump() argument
157 print_hex_dump_bytes(prefix, DUMP_PREFIX_OFFSET, buf, len); in ath6kl_dbg_dump()
162 buf, len); in ath6kl_dbg_dump()
305 unsigned int len = 0, buf_len = 1500; in read_file_war_stats() local
312 len += scnprintf(buf + len, buf_len - len, "\n"); in read_file_war_stats()
313 len += scnprintf(buf + len, buf_len - len, "%25s\n", in read_file_war_stats()
315 len += scnprintf(buf + len, buf_len - len, "%25s\n\n", in read_file_war_stats()
317 len += scnprintf(buf + len, buf_len - len, "%20s %10u\n", in read_file_war_stats()
320 if (WARN_ON(len > buf_len)) in read_file_war_stats()
321 len = buf_len; in read_file_war_stats()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath10k/
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 …]
/kernel/linux/linux-6.6/tools/include/nolibc/
Dstring.h12 static void *malloc(size_t len);
31 void *_nolibc_memcpy_up(void *dst, const void *src, size_t len) in _nolibc_memcpy_up() argument
35 while (pos < len) { in _nolibc_memcpy_up()
43 void *_nolibc_memcpy_down(void *dst, const void *src, size_t len) in _nolibc_memcpy_down() argument
45 while (len) { in _nolibc_memcpy_down()
46 len--; in _nolibc_memcpy_down()
47 ((char *)dst)[len] = ((const char *)src)[len]; in _nolibc_memcpy_down()
56 void *memmove(void *dst, const void *src, size_t len) in memmove() argument
60 pos = len; in memmove()
68 while (len) { in memmove()
[all …]
/kernel/linux/linux-6.6/drivers/net/wireless/ath/ath10k/
Ddebugfs_sta.c184 int len = 0; in ath10k_dbg_sta_read_aggr_mode() local
187 len = scnprintf(buf, sizeof(buf) - len, "aggregation mode: %s\n", in ath10k_dbg_sta_read_aggr_mode()
192 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_dbg_sta_read_aggr_mode()
399 int len = 0; in ath10k_dbg_sta_read_peer_debug_trigger() local
402 len = scnprintf(buf, sizeof(buf) - len, in ath10k_dbg_sta_read_peer_debug_trigger()
406 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_dbg_sta_read_peer_debug_trigger()
461 int len = 0; in ath10k_dbg_sta_read_peer_ps_state() local
465 len = scnprintf(buf, sizeof(buf) - len, "%d\n", in ath10k_dbg_sta_read_peer_ps_state()
470 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_dbg_sta_read_peer_ps_state()
547 len += scnprintf(buf + len, buf_len - len, \
[all …]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
Dtest_varlen.c47 long len; in handler64_unsigned() local
53 len = bpf_probe_read_kernel_str(payload, MAX_LEN, &buf_in1[0]); in handler64_unsigned()
54 if (len >= 0) { in handler64_unsigned()
55 payload += len; in handler64_unsigned()
56 payload1_len1 = len; in handler64_unsigned()
59 len = bpf_probe_read_kernel_str(payload, MAX_LEN, &buf_in2[0]); in handler64_unsigned()
60 if (len >= 0) { in handler64_unsigned()
61 payload += len; in handler64_unsigned()
62 payload1_len2 = len; in handler64_unsigned()
77 long len; in handler64_signed() local
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
Dtest_varlen.c44 u64 len; in handler64_unsigned() local
50 len = bpf_probe_read_kernel_str(payload, MAX_LEN, &buf_in1[0]); in handler64_unsigned()
51 if (len <= MAX_LEN) { in handler64_unsigned()
52 payload += len; in handler64_unsigned()
53 payload1_len1 = len; in handler64_unsigned()
56 len = bpf_probe_read_kernel_str(payload, MAX_LEN, &buf_in2[0]); in handler64_unsigned()
57 if (len <= MAX_LEN) { in handler64_unsigned()
58 payload += len; in handler64_unsigned()
59 payload1_len2 = len; in handler64_unsigned()
72 long len; in handler64_signed() local
[all …]
/kernel/linux/linux-5.10/scripts/dtc/
Ddata.c36 while ((d.len + xlen) > newsize) in data_grow_for()
44 struct data data_copy_mem(const char *mem, int len) in data_copy_mem() argument
48 d = data_grow_for(empty_data, len); in data_copy_mem()
50 d.len = len; in data_copy_mem()
51 memcpy(d.val, mem, len); in data_copy_mem()
56 struct data data_copy_escape_string(const char *s, int len) in data_copy_escape_string() argument
63 d = data_grow_for(d, len + 1); in data_copy_escape_string()
66 while (i < len) { in data_copy_escape_string()
72 q[d.len++] = c; in data_copy_escape_string()
75 q[d.len++] = '\0'; in data_copy_escape_string()
[all …]
/kernel/linux/linux-6.6/scripts/dtc/
Ddata.c36 while ((d.len + xlen) > newsize) in data_grow_for()
44 struct data data_copy_mem(const char *mem, int len) in data_copy_mem() argument
48 d = data_grow_for(empty_data, len); in data_copy_mem()
50 d.len = len; in data_copy_mem()
51 memcpy(d.val, mem, len); in data_copy_mem()
56 struct data data_copy_escape_string(const char *s, int len) in data_copy_escape_string() argument
63 d = data_grow_for(d, len + 1); in data_copy_escape_string()
66 while (i < len) { in data_copy_escape_string()
72 q[d.len++] = c; in data_copy_escape_string()
75 q[d.len++] = '\0'; in data_copy_escape_string()
[all …]
/kernel/linux/linux-5.10/drivers/pnp/pnpbios/
Drsparser.c57 int start, int len) in pnpbios_parse_allocated_ioresource() argument
60 int end = start + len - 1; in pnpbios_parse_allocated_ioresource()
62 if (len <= 0 || end >= 0x10003) in pnpbios_parse_allocated_ioresource()
69 int start, int len) in pnpbios_parse_allocated_memresource() argument
72 int end = start + len - 1; in pnpbios_parse_allocated_memresource()
74 if (len <= 0) in pnpbios_parse_allocated_memresource()
84 unsigned int len, tag; in pnpbios_parse_allocated_resource_data() local
98 len = (p[2] << 8) | p[1]; in pnpbios_parse_allocated_resource_data()
101 len = p[0] & 0x07; in pnpbios_parse_allocated_resource_data()
108 if (len != 9) in pnpbios_parse_allocated_resource_data()
[all …]
/kernel/linux/linux-6.6/drivers/pnp/pnpbios/
Drsparser.c57 int start, int len) in pnpbios_parse_allocated_ioresource() argument
60 int end = start + len - 1; in pnpbios_parse_allocated_ioresource()
62 if (len <= 0 || end >= 0x10003) in pnpbios_parse_allocated_ioresource()
69 int start, int len) in pnpbios_parse_allocated_memresource() argument
72 int end = start + len - 1; in pnpbios_parse_allocated_memresource()
74 if (len <= 0) in pnpbios_parse_allocated_memresource()
84 unsigned int len, tag; in pnpbios_parse_allocated_resource_data() local
98 len = (p[2] << 8) | p[1]; in pnpbios_parse_allocated_resource_data()
101 len = p[0] & 0x07; in pnpbios_parse_allocated_resource_data()
108 if (len != 9) in pnpbios_parse_allocated_resource_data()
[all …]
/kernel/linux/linux-6.6/net/sunrpc/
Dxdr.c31 unsigned int quadlen = XDR_QUADLEN(obj->len); in xdr_encode_netobj()
34 *p++ = cpu_to_be32(obj->len); in xdr_encode_netobj()
35 memcpy(p, obj->data, obj->len); in xdr_encode_netobj()
36 return p + XDR_QUADLEN(obj->len); in xdr_encode_netobj()
43 unsigned int len; in xdr_decode_netobj() local
45 if ((len = be32_to_cpu(*p++)) > XDR_MAX_NETOBJ) in xdr_decode_netobj()
47 obj->len = len; in xdr_decode_netobj()
49 return p + XDR_QUADLEN(len); in xdr_decode_netobj()
109 u32 len; in xdr_decode_string_inplace() local
111 len = be32_to_cpu(*p++); in xdr_decode_string_inplace()
[all …]
/kernel/linux/linux-6.6/tools/testing/selftests/net/af_unix/
Dtest_unix_oob.c96 int len = 0; in read_data() local
99 len = read(pfd, buf, size); in read_data()
101 if (len < 0) in read_data()
104 return len; in read_data()
179 socklen_t len = sizeof(consumer_addr); in main() local
213 pfd = accept(lfd, (struct sockaddr *) &paddr, &len); in main()
226 len = read_data(pfd, buf, 1024); in main()
227 if (!signal_recvd || len != 63 || oob != '@') { in main()
228 fprintf(stderr, "Test 1 failed sigurg %d len %d %c\n", in main()
229 signal_recvd, len, oob); in main()
[all …]
/kernel/linux/linux-5.10/drivers/scsi/lpfc/
Dlpfc_debugfs.c148 int i, index, len, enable; in lpfc_debugfs_disc_trc_data() local
160 len = 0; in lpfc_debugfs_disc_trc_data()
171 len += scnprintf(buf+len, size-len, buffer, in lpfc_debugfs_disc_trc_data()
182 len += scnprintf(buf+len, size-len, buffer, in lpfc_debugfs_disc_trc_data()
189 return len; in lpfc_debugfs_disc_trc_data()
214 int i, index, len, enable; in lpfc_debugfs_slow_ring_trc_data() local
226 len = 0; in lpfc_debugfs_slow_ring_trc_data()
237 len += scnprintf(buf+len, size-len, buffer, in lpfc_debugfs_slow_ring_trc_data()
248 len += scnprintf(buf+len, size-len, buffer, in lpfc_debugfs_slow_ring_trc_data()
255 return len; in lpfc_debugfs_slow_ring_trc_data()
[all …]

12345678910>>...414