Home
last modified time | relevance | path

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

12345678910>>...313

/linux-6.12.1/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 …]
/linux-6.12.1/drivers/net/wireless/ath/ath12k/
Ddebugfs_htt_stats.c49 u32 len = stats_req->buf_len; in htt_print_tx_pdev_stats_cmn_tlv() local
58 len += scnprintf(buf + len, buf_len - len, "HTT_TX_PDEV_STATS_CMN_TLV:\n"); in htt_print_tx_pdev_stats_cmn_tlv()
59 len += scnprintf(buf + len, buf_len - len, "mac_id = %u\n", in htt_print_tx_pdev_stats_cmn_tlv()
61 len += scnprintf(buf + len, buf_len - len, "comp_delivered = %u\n", in htt_print_tx_pdev_stats_cmn_tlv()
63 len += scnprintf(buf + len, buf_len - len, "self_triggers = %u\n", in htt_print_tx_pdev_stats_cmn_tlv()
65 len += scnprintf(buf + len, buf_len - len, "hw_queued = %u\n", in htt_print_tx_pdev_stats_cmn_tlv()
67 len += scnprintf(buf + len, buf_len - len, "hw_reaped = %u\n", in htt_print_tx_pdev_stats_cmn_tlv()
69 len += scnprintf(buf + len, buf_len - len, "underrun = %u\n", in htt_print_tx_pdev_stats_cmn_tlv()
71 len += scnprintf(buf + len, buf_len - len, "hw_paused = %u\n", in htt_print_tx_pdev_stats_cmn_tlv()
73 len += scnprintf(buf + len, buf_len - len, "hw_flush = %u\n", in htt_print_tx_pdev_stats_cmn_tlv()
[all …]
/linux-6.12.1/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 …]
/linux-6.12.1/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 …]
/linux-6.12.1/tools/include/nolibc/
Dstring.h13 static void *malloc(size_t len);
36 void *memmove(void *dst, const void *src, size_t len) in memmove() argument
40 pos = len; in memmove()
48 while (len) { in memmove()
51 len--; in memmove()
60 void *memcpy(void *dst, const void *src, size_t len) in memcpy() argument
64 while (pos < len) { in memcpy()
77 void *memset(void *dst, int b, size_t len) in memset() argument
81 while (len--) { in memset()
130 size_t len; in strlen() local
[all …]
/linux-6.12.1/drivers/scsi/libfc/
Dfc_encode.h97 size_t len; in fc_ct_ns_fill() local
139 len = strnlen(fc_host_symbolic_name(lport->host), in fc_ct_ns_fill()
141 ct = fc_ct_hdr_fill(fp, op, sizeof(struct fc_ns_rspn) + len, in fc_ct_ns_fill()
145 fc_host_symbolic_name(lport->host), len); in fc_ct_ns_fill()
146 ct->payload.spn.fr_name_len = len; in fc_ct_ns_fill()
150 len = strnlen(fc_host_symbolic_name(lport->host), in fc_ct_ns_fill()
152 ct = fc_ct_hdr_fill(fp, op, sizeof(struct fc_ns_rsnn) + len, in fc_ct_ns_fill()
156 fc_host_symbolic_name(lport->host), len); in fc_ct_ns_fill()
157 ct->payload.snn.fr_name_len = len; in fc_ct_ns_fill()
169 const char *in, size_t len) in fc_ct_ms_fill_attr() argument
[all …]
/linux-6.12.1/kernel/module/
Dstats.c222 atomic_long_add(info->len * 2, &invalid_mod_bytes); in mod_stat_bump_invalid()
233 atomic_long_add(info->len, &invalid_becoming_bytes); in mod_stat_bump_becoming()
277 unsigned int len, size, count_failed = 0; in read_file_mod_stats() local
306 len = scnprintf(buf, size, "%25s\t%u\n", "Mods ever loaded", live_mod_count); in read_file_mod_stats()
308 len += scnprintf(buf + len, size - len, "%25s\t%u\n", "Mods failed on kread", fkreads); in read_file_mod_stats()
310 len += scnprintf(buf + len, size - len, "%25s\t%u\n", "Mods failed on decompress", in read_file_mod_stats()
312 len += scnprintf(buf + len, size - len, "%25s\t%u\n", "Mods failed on becoming", fbecoming); in read_file_mod_stats()
314 len += scnprintf(buf + len, size - len, "%25s\t%u\n", "Mods failed on load", floads); in read_file_mod_stats()
316 len += scnprintf(buf + len, size - len, "%25s\t%lu\n", "Total module size", total_size); in read_file_mod_stats()
317 len += scnprintf(buf + len, size - len, "%25s\t%lu\n", "Total mod text size", text_size); in read_file_mod_stats()
[all …]
/linux-6.12.1/lib/
Dkfifo.c91 unsigned int len, unsigned int off) in kfifo_copy_in() argument
101 len *= esize; in kfifo_copy_in()
103 l = min(len, size - off); in kfifo_copy_in()
106 memcpy(fifo->data, src + l, len - l); in kfifo_copy_in()
115 const void *buf, unsigned int len) in __kfifo_in() argument
120 if (len > l) in __kfifo_in()
121 len = l; in __kfifo_in()
123 kfifo_copy_in(fifo, buf, len, fifo->in); in __kfifo_in()
124 fifo->in += len; in __kfifo_in()
125 return len; in __kfifo_in()
[all …]
Dseq_buf.c38 static bool seq_buf_can_fit(struct seq_buf *s, size_t len) in seq_buf_can_fit() argument
40 return s->len + len <= s->size; in seq_buf_can_fit()
52 unsigned int len = seq_buf_used(s); in seq_buf_print_seq() local
54 return seq_write(m, s->buffer, len); in seq_buf_print_seq()
69 int len; in seq_buf_vprintf() local
73 if (s->len < s->size) { in seq_buf_vprintf()
74 len = vsnprintf(s->buffer + s->len, s->size - s->len, fmt, args); in seq_buf_vprintf()
75 if (s->len + len < s->size) { in seq_buf_vprintf()
76 s->len += len; in seq_buf_vprintf()
119 if (s->size == 0 || s->len == 0) in seq_buf_do_printk()
[all …]
/linux-6.12.1/arch/arc/net/
Dbpf_jit_arcv2.c1315 u8 len = 0; in mov_r32() local
1319 len = arc_sexb_r(buf, REG_LO(rd), REG_LO(rs)); in mov_r32()
1321 len = arc_sexh_r(buf, REG_LO(rd), REG_LO(rs)); in mov_r32()
1323 len = arc_mov_r(buf, REG_LO(rd), REG_LO(rs)); in mov_r32()
1325 return len; in mov_r32()
1331 len = arc_mov_r(buf, REG_LO(rd), REG_LO(rs)); in mov_r32()
1333 return len; in mov_r32()
1343 u8 len = 0; in mov_r64() local
1347 len = mov_r32(buf, rd, rs, sign_ext); in mov_r64()
1351 len += arc_asri_r(BUF(buf, len), in mov_r64()
[all …]
/linux-6.12.1/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 …]
/linux-6.12.1/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 …]
/linux-6.12.1/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 …]
/linux-6.12.1/drivers/s390/char/
Dhmcdrv_cache.c43 size_t len; member
51 .len = 0,
65 ssize_t len; in hmcdrv_cache_get() local
81 len = hmcdrv_cache_file.fsize - ftp->ofs; in hmcdrv_cache_get()
83 if (len > ftp->len) in hmcdrv_cache_get()
84 len = ftp->len; in hmcdrv_cache_get()
92 ((pos + len) <= hmcdrv_cache_file.len)) { in hmcdrv_cache_get()
96 len); in hmcdrv_cache_get()
98 hmcdrv_cache_file.fname, len, in hmcdrv_cache_get()
101 return len; in hmcdrv_cache_get()
[all …]
/linux-6.12.1/drivers/net/ethernet/meta/fbnic/
Dfbnic_tlv.c34 hdr.len = cpu_to_le16(1); in fbnic_tlv_msg_alloc()
59 attr_max_len -= le16_to_cpu(msg->hdr.len) * sizeof(u32); in fbnic_tlv_attr_put_flag()
64 attr = &msg[le16_to_cpu(msg->hdr.len)]; in fbnic_tlv_attr_put_flag()
68 hdr.len = cpu_to_le16(sizeof(hdr)); in fbnic_tlv_attr_put_flag()
71 le16_add_cpu(&msg->hdr.len, in fbnic_tlv_attr_put_flag()
72 FBNIC_TLV_MSG_SIZE(le16_to_cpu(hdr.len))); in fbnic_tlv_attr_put_flag()
95 const void *value, const int len) in fbnic_tlv_attr_put_value() argument
101 attr_max_len -= le16_to_cpu(msg->hdr.len) * sizeof(u32); in fbnic_tlv_attr_put_value()
102 if (attr_max_len < sizeof(*attr) + len) in fbnic_tlv_attr_put_value()
106 attr = &msg[le16_to_cpu(msg->hdr.len)]; in fbnic_tlv_attr_put_value()
[all …]
/linux-6.12.1/drivers/crypto/intel/qat/qat_common/
Dadf_gen4_pm_debugfs.c162 int len = 0; in adf_gen4_print_pm_status() local
192 len += scnprintf(&pm_kv[len], PAGE_SIZE - len, in adf_gen4_print_pm_status()
194 len += pm_scnprint_table_lower_keys(&pm_kv[len], pm_fuse_rows, in adf_gen4_print_pm_status()
195 pm_info_regs, PAGE_SIZE - len, in adf_gen4_print_pm_status()
197 len += scnprintf(&pm_kv[len], PAGE_SIZE - len, "max_pwrreq: %#x\n", in adf_gen4_print_pm_status()
199 len += scnprintf(&pm_kv[len], PAGE_SIZE - len, "min_pwrreq: %#x\n", in adf_gen4_print_pm_status()
203 len += scnprintf(&pm_kv[len], PAGE_SIZE - len, in adf_gen4_print_pm_status()
205 len += scnprintf(&pm_kv[len], PAGE_SIZE - len, "power_level: %s\n", in adf_gen4_print_pm_status()
207 len += pm_scnprint_table_lower_keys(&pm_kv[len], pm_info_rows, in adf_gen4_print_pm_status()
208 pm_info_regs, PAGE_SIZE - len, in adf_gen4_print_pm_status()
[all …]
/linux-6.12.1/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 …]
/linux-6.12.1/drivers/pnp/
Dsupport.c107 int len = 0, i; in dbg_pnp_show_option() local
114 len += scnprintf(buf + len, sizeof(buf) - len, in dbg_pnp_show_option()
119 len += scnprintf(buf + len, sizeof(buf) - len, in dbg_pnp_show_option()
125 len += scnprintf(buf + len, sizeof(buf) - len, "io min %#llx " in dbg_pnp_show_option()
134 len += scnprintf(buf + len, sizeof(buf) - len, "mem min %#llx " in dbg_pnp_show_option()
143 len += scnprintf(buf + len, sizeof(buf) - len, "irq"); in dbg_pnp_show_option()
145 len += scnprintf(buf + len, sizeof(buf) - len, in dbg_pnp_show_option()
150 len += scnprintf(buf + len, in dbg_pnp_show_option()
151 sizeof(buf) - len, in dbg_pnp_show_option()
154 len += scnprintf(buf + len, sizeof(buf) - len, " flags %#x", in dbg_pnp_show_option()
[all …]
/linux-6.12.1/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 …]
/linux-6.12.1/net/dccp/
Doptions.c22 u64 dccp_decode_value_var(const u8 *bf, const u8 len) in dccp_decode_value_var() argument
26 if (len >= DCCP_OPTVAL_MAXLEN) in dccp_decode_value_var()
28 if (len > 4) in dccp_decode_value_var()
30 if (len > 3) in dccp_decode_value_var()
32 if (len > 2) in dccp_decode_value_var()
34 if (len > 1) in dccp_decode_value_var()
36 if (len > 0) in dccp_decode_value_var()
59 unsigned char opt, len; in dccp_parse_options() local
68 opt = len = 0; in dccp_parse_options()
71 len = 0; in dccp_parse_options()
[all …]
/linux-6.12.1/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 …]
/linux-6.12.1/drivers/scsi/fnic/
Dfnic_trace.c97 int len = 0; in fnic_get_trace_data() local
127 len += scnprintf(fnic_dbgfs_prt->buffer + len, in fnic_get_trace_data()
128 (trace_max_pages * PAGE_SIZE * 3) - len, in fnic_get_trace_data()
169 len += scnprintf(fnic_dbgfs_prt->buffer + len, in fnic_get_trace_data()
170 (trace_max_pages * PAGE_SIZE * 3) - len, in fnic_get_trace_data()
186 return len; in fnic_get_trace_data()
204 int len = 0; in fnic_get_stats_data() local
210 len = scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data()
215 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data()
233 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data()
[all …]
/linux-6.12.1/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 …]
/linux-6.12.1/net/wireless/tests/
Dscan.c21 u8 len; member
40 { .id = WLAN_EID_EXTENSION, .len = 255,
44 { .id = WLAN_EID_SSID, .len = 2 },
47 { .id = WLAN_EID_SSID, .len = 2 },
53 { .id = WLAN_EID_REDUCED_NEIGHBOR_REPORT, .len = 254, },
54 { .id = WLAN_EID_FRAGMENT, .len = 125, },
57 { .id = WLAN_EID_SSID, .len = 2 },
58 { .id = WLAN_EID_FRAGMENT, .len = 125, },
61 { .id = WLAN_EID_REDUCED_NEIGHBOR_REPORT, .len = 254, },
62 { .id = WLAN_EID_SSID, .len = 2 },
[all …]

12345678910>>...313