Home
last modified time | relevance | path

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

12345678910>>...215

/Linux-v5.4/drivers/net/wireless/ath/ath5k/
Ddebug.c199 unsigned int len = 0; in read_file_beacon() local
204 len += snprintf(buf + len, sizeof(buf) - len, in read_file_beacon()
209 len += snprintf(buf + len, sizeof(buf) - len, "%-24s0x%08x\n", in read_file_beacon()
212 len += snprintf(buf + len, sizeof(buf) - len, "%-24s0x%08x\n\n", in read_file_beacon()
216 len += snprintf(buf + len, sizeof(buf) - len, "%-24s0x%08x\tTU: %08x\n", in read_file_beacon()
220 len += snprintf(buf + len, sizeof(buf) - len, "%-24s0x%08x\tTU: %08x\n", in read_file_beacon()
224 len += snprintf(buf + len, sizeof(buf) - len, "%-24s0x%08x\tTU: %08x\n", in read_file_beacon()
228 len += snprintf(buf + len, sizeof(buf) - len, "%-24s0x%08x\tTU: %08x\n", in read_file_beacon()
232 len += snprintf(buf + len, sizeof(buf) - len, in read_file_beacon()
236 if (len > sizeof(buf)) in read_file_beacon()
[all …]
/Linux-v5.4/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 …]
Ddfs_debug.c28 len += scnprintf(buf + len, size - len, "%28s : %10u\n", s, \
31 len += scnprintf(buf + len, size - len, "%28s : %10u\n", s, \
40 unsigned int len = 0, size = 8000; in read_file_dfs() local
47 len += scnprintf(buf + len, size - len, "DFS support for " in read_file_dfs()
54 len += scnprintf(buf + len, size - len, in read_file_dfs()
61 len += scnprintf(buf + len, size - len, "Pulse detector statistics:\n"); in read_file_dfs()
71 len += scnprintf(buf + len, size - len, "Radar detector statistics " in read_file_dfs()
76 len += scnprintf(buf + len, size - len, "Global Pool statistics:\n"); in read_file_dfs()
86 if (len > size) in read_file_dfs()
87 len = size; in read_file_dfs()
[all …]
/Linux-v5.4/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 …]
Dseq_buf.c28 static bool seq_buf_can_fit(struct seq_buf *s, size_t len) in seq_buf_can_fit() argument
30 return s->len + len <= s->size; in seq_buf_can_fit()
42 unsigned int len = seq_buf_used(s); in seq_buf_print_seq() local
44 return seq_write(m, s->buffer, len); in seq_buf_print_seq()
59 int len; in seq_buf_vprintf() local
63 if (s->len < s->size) { in seq_buf_vprintf()
64 len = vsnprintf(s->buffer + s->len, s->size - s->len, fmt, args); in seq_buf_vprintf()
65 if (s->len + len < s->size) { in seq_buf_vprintf()
66 s->len += len; in seq_buf_vprintf()
115 unsigned int len = seq_buf_buffer_left(s); in seq_buf_bprintf() local
[all …]
Dcrc32.c58 crc32_body(u32 crc, unsigned char const *buf, size_t len, const u32 (*tab)[256]) argument
85 if (unlikely((long)buf & 3 && len)) {
88 } while ((--len) && ((long)buf)&3);
92 rem_len = len & 3;
93 len = len >> 2;
95 rem_len = len & 7;
96 len = len >> 3;
102 for (i = 0; i < len; i++) {
104 for (--b; len; --len) {
115 len = rem_len;
[all …]
/Linux-v5.4/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-v5.4/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-v5.4/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-v5.4/drivers/scsi/lpfc/
Dlpfc_debugfs.c150 int i, index, len, enable; in lpfc_debugfs_disc_trc_data() local
162 len = 0; in lpfc_debugfs_disc_trc_data()
173 len += scnprintf(buf+len, size-len, buffer, in lpfc_debugfs_disc_trc_data()
184 len += scnprintf(buf+len, size-len, buffer, in lpfc_debugfs_disc_trc_data()
191 return len; in lpfc_debugfs_disc_trc_data()
216 int i, index, len, enable; in lpfc_debugfs_slow_ring_trc_data() local
228 len = 0; in lpfc_debugfs_slow_ring_trc_data()
239 len += scnprintf(buf+len, size-len, buffer, in lpfc_debugfs_slow_ring_trc_data()
250 len += scnprintf(buf+len, size-len, buffer, in lpfc_debugfs_slow_ring_trc_data()
257 return len; in lpfc_debugfs_slow_ring_trc_data()
[all …]
/Linux-v5.4/drivers/pnp/
Dsupport.c108 int len = 0, i; in dbg_pnp_show_option() local
115 len += scnprintf(buf + len, sizeof(buf) - len, in dbg_pnp_show_option()
120 len += scnprintf(buf + len, sizeof(buf) - len, in dbg_pnp_show_option()
126 len += scnprintf(buf + len, sizeof(buf) - len, "io min %#llx " in dbg_pnp_show_option()
135 len += scnprintf(buf + len, sizeof(buf) - len, "mem min %#llx " in dbg_pnp_show_option()
144 len += scnprintf(buf + len, sizeof(buf) - len, "irq"); in dbg_pnp_show_option()
146 len += scnprintf(buf + len, sizeof(buf) - len, in dbg_pnp_show_option()
151 len += scnprintf(buf + len, in dbg_pnp_show_option()
152 sizeof(buf) - len, in dbg_pnp_show_option()
155 len += scnprintf(buf + len, sizeof(buf) - len, " flags %#x", in dbg_pnp_show_option()
[all …]
/Linux-v5.4/drivers/staging/rtl8188eu/core/
Drtw_debug.c16 int len = 0; in proc_get_drv_version() local
18 len += snprintf(page + len, count - len, "%s\n", DRIVERVERSION); in proc_get_drv_version()
21 return len; in proc_get_drv_version()
38 u32 addr, val, len; in proc_set_write_reg() local
46 int num = sscanf(tmp, "%x %x %x", &addr, &val, &len); in proc_set_write_reg()
52 switch (len) { in proc_set_write_reg()
63 DBG_88E("error write length =%d", len); in proc_set_write_reg()
80 int len = 0; in proc_get_read_reg() local
84 return len; in proc_get_read_reg()
89len += snprintf(page + len, count - len, "usb_read8(0x%x)=0x%x\n", proc_get_read_addr, usb_read8(p… in proc_get_read_reg()
[all …]
/Linux-v5.4/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 …]
/Linux-v5.4/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()
58 unsigned char opt, len; in dccp_parse_options() local
67 opt = len = 0; in dccp_parse_options()
70 len = 0; in dccp_parse_options()
[all …]
/Linux-v5.4/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_cudbg.c72 u32 value, n = 0, len = 0; in cxgb4_get_entity_length() local
78 len = T4_REGMAP_SIZE; in cxgb4_get_entity_length()
82 len = T5_REGMAP_SIZE; in cxgb4_get_entity_length()
89 len = adap->params.devlog.size; in cxgb4_get_entity_length()
93 len = adap->params.cim_la_size / 10 + 1; in cxgb4_get_entity_length()
94 len *= 10 * sizeof(u32); in cxgb4_get_entity_length()
96 len = adap->params.cim_la_size / 8; in cxgb4_get_entity_length()
97 len *= 8 * sizeof(u32); in cxgb4_get_entity_length()
99 len += sizeof(u32); /* for reading CIM LA configuration */ in cxgb4_get_entity_length()
102 len = 2 * CIM_MALA_SIZE * 5 * sizeof(u32); in cxgb4_get_entity_length()
[all …]
/Linux-v5.4/net/sunrpc/
Dsocklib.c31 xdr_skb_read_bits(struct xdr_skb_reader *desc, void *to, size_t len) in xdr_skb_read_bits() argument
33 if (len > desc->count) in xdr_skb_read_bits()
34 len = desc->count; in xdr_skb_read_bits()
35 if (unlikely(skb_copy_bits(desc->skb, desc->offset, to, len))) in xdr_skb_read_bits()
37 desc->count -= len; in xdr_skb_read_bits()
38 desc->offset += len; in xdr_skb_read_bits()
39 return len; in xdr_skb_read_bits()
50 static size_t xdr_skb_read_and_csum_bits(struct xdr_skb_reader *desc, void *to, size_t len) in xdr_skb_read_and_csum_bits() argument
55 if (len > desc->count) in xdr_skb_read_and_csum_bits()
56 len = desc->count; in xdr_skb_read_and_csum_bits()
[all …]
Dxdr.c28 unsigned int quadlen = XDR_QUADLEN(obj->len); in xdr_encode_netobj()
31 *p++ = cpu_to_be32(obj->len); in xdr_encode_netobj()
32 memcpy(p, obj->data, obj->len); in xdr_encode_netobj()
33 return p + XDR_QUADLEN(obj->len); in xdr_encode_netobj()
40 unsigned int len; in xdr_decode_netobj() local
42 if ((len = be32_to_cpu(*p++)) > XDR_MAX_NETOBJ) in xdr_decode_netobj()
44 obj->len = len; in xdr_decode_netobj()
46 return p + XDR_QUADLEN(len); in xdr_decode_netobj()
106 u32 len; in xdr_decode_string_inplace() local
108 len = be32_to_cpu(*p++); in xdr_decode_string_inplace()
[all …]
/Linux-v5.4/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-v5.4/drivers/scsi/fnic/
Dfnic_trace.c111 int len = 0; in fnic_get_trace_data() local
141 len += snprintf(fnic_dbgfs_prt->buffer + len, in fnic_get_trace_data()
142 (trace_max_pages * PAGE_SIZE * 3) - len, in fnic_get_trace_data()
183 len += snprintf(fnic_dbgfs_prt->buffer + len, in fnic_get_trace_data()
184 (trace_max_pages * PAGE_SIZE * 3) - len, in fnic_get_trace_data()
200 return len; in fnic_get_trace_data()
218 int len = 0; in fnic_get_stats_data() local
223 len = snprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data()
228 len += snprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data()
246 len += snprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data()
[all …]
/Linux-v5.4/drivers/parisc/
Deisa_enumerator.c79 int len; in configure_memory() local
84 len=0; in configure_memory()
87 c = get_8(buf+len); in configure_memory()
93 res->start = mem_parent->start + get_24(buf+len+2); in configure_memory()
94 res->end = res->start + get_16(buf+len+5)*1024; in configure_memory()
104 len+=7; in configure_memory()
111 return len; in configure_memory()
117 int len; in configure_irq() local
121 len=0; in configure_irq()
124 c = get_8(buf+len); in configure_irq()
[all …]
/Linux-v5.4/tools/perf/util/intel-pt-decoder/
Dintel-pt-pkt-decoder.c76 static int intel_pt_get_long_tnt(const unsigned char *buf, size_t len, in intel_pt_get_long_tnt() argument
82 if (len < 8) in intel_pt_get_long_tnt()
99 static int intel_pt_get_pip(const unsigned char *buf, size_t len, in intel_pt_get_pip() argument
104 if (len < 8) in intel_pt_get_pip()
122 static int intel_pt_get_cbr(const unsigned char *buf, size_t len, in intel_pt_get_cbr() argument
125 if (len < 4) in intel_pt_get_cbr()
132 static int intel_pt_get_vmcs(const unsigned char *buf, size_t len, in intel_pt_get_vmcs() argument
140 if (len < count + 2) in intel_pt_get_vmcs()
156 static int intel_pt_get_psb(const unsigned char *buf, size_t len, in intel_pt_get_psb() argument
161 if (len < 16) in intel_pt_get_psb()
[all …]
/Linux-v5.4/include/scsi/
Dfc_encode.h125 size_t len; in fc_ct_ns_fill() local
167 len = strnlen(fc_host_symbolic_name(lport->host), 255); in fc_ct_ns_fill()
168 ct = fc_ct_hdr_fill(fp, op, sizeof(struct fc_ns_rspn) + len, in fc_ct_ns_fill()
172 fc_host_symbolic_name(lport->host), len); in fc_ct_ns_fill()
173 ct->payload.spn.fr_name_len = len; in fc_ct_ns_fill()
177 len = strnlen(fc_host_symbolic_name(lport->host), 255); in fc_ct_ns_fill()
178 ct = fc_ct_hdr_fill(fp, op, sizeof(struct fc_ns_rsnn) + len, in fc_ct_ns_fill()
182 fc_host_symbolic_name(lport->host), len); in fc_ct_ns_fill()
183 ct->payload.snn.fr_name_len = len; in fc_ct_ns_fill()
209 size_t len; in fc_ct_ms_fill() local
[all …]
/Linux-v5.4/drivers/net/ethernet/intel/fm10k/
Dfm10k_tlv.c37 u32 attr_data = 0, len = 0; in fm10k_tlv_attr_put_null_string() local
49 if (len && !(len % 4)) { in fm10k_tlv_attr_put_null_string()
50 attr[len / 4] = attr_data; in fm10k_tlv_attr_put_null_string()
55 attr_data |= (u32)(*string) << (8 * (len % 4)); in fm10k_tlv_attr_put_null_string()
56 len++; in fm10k_tlv_attr_put_null_string()
62 attr[(len + 3) / 4] = attr_data; in fm10k_tlv_attr_put_null_string()
65 len <<= FM10K_TLV_LEN_SHIFT; in fm10k_tlv_attr_put_null_string()
66 attr[0] = len | attr_id; in fm10k_tlv_attr_put_null_string()
69 len += FM10K_TLV_HDR_LEN << FM10K_TLV_LEN_SHIFT; in fm10k_tlv_attr_put_null_string()
70 *msg += FM10K_TLV_LEN_ALIGN(len); in fm10k_tlv_attr_put_null_string()
[all …]
/Linux-v5.4/tools/perf/util/
Dstrbuf.c22 sb->alloc = sb->len = 0; in strbuf_init()
41 *sz = sb->len; in strbuf_detach()
49 size_t nr = sb->len + extra + 1; in strbuf_grow()
54 if (nr <= sb->len) in strbuf_grow()
79 sb->buf[sb->len++] = c; in strbuf_addch()
80 sb->buf[sb->len] = '\0'; in strbuf_addch()
84 int strbuf_add(struct strbuf *sb, const void *data, size_t len) in strbuf_add() argument
86 int ret = strbuf_grow(sb, len); in strbuf_add()
90 memcpy(sb->buf + sb->len, data, len); in strbuf_add()
91 return strbuf_setlen(sb, sb->len + len); in strbuf_add()
[all …]
/Linux-v5.4/include/linux/sunrpc/
Dxdr.h35 unsigned int len; member
66 len; /* Length of XDR encoded message */ member
70 xdr_buf_init(struct xdr_buf *buf, void *start, size_t len) in xdr_buf_init() argument
73 buf->head[0].iov_len = len; in xdr_buf_init()
78 buf->len = 0; in xdr_buf_init()
79 buf->buflen = len; in xdr_buf_init()
123 __be32 *xdr_encode_opaque_fixed(__be32 *p, const void *ptr, unsigned int len);
124 __be32 *xdr_encode_opaque(__be32 *p, const void *ptr, unsigned int len);
138 static inline __be32 *xdr_encode_array(__be32 *p, const void *s, unsigned int len) in xdr_encode_array() argument
140 return xdr_encode_opaque(p, s, len); in xdr_encode_array()
[all …]

12345678910>>...215