Home
last modified time | relevance | path

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

12345678910>>...244

/Linux-v4.19/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-v4.19/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-v4.19/lib/
Dkfifo.c103 unsigned int len, unsigned int off) in kfifo_copy_in() argument
113 len *= esize; in kfifo_copy_in()
115 l = min(len, size - off); in kfifo_copy_in()
118 memcpy(fifo->data, src + l, len - l); in kfifo_copy_in()
127 const void *buf, unsigned int len) in __kfifo_in() argument
132 if (len > l) in __kfifo_in()
133 len = l; in __kfifo_in()
135 kfifo_copy_in(fifo, buf, len, fifo->in); in __kfifo_in()
136 fifo->in += len; in __kfifo_in()
137 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-v4.19/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-v4.19/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-v4.19/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-v4.19/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 += snprintf(buf+len, size-len, buffer, in lpfc_debugfs_disc_trc_data()
184 len += snprintf(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 += snprintf(buf+len, size-len, buffer, in lpfc_debugfs_slow_ring_trc_data()
250 len += snprintf(buf+len, size-len, buffer, in lpfc_debugfs_slow_ring_trc_data()
257 return len; in lpfc_debugfs_slow_ring_trc_data()
[all …]
/Linux-v4.19/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-v4.19/net/dccp/
Doptions.c26 u64 dccp_decode_value_var(const u8 *bf, const u8 len) in dccp_decode_value_var() argument
30 if (len >= DCCP_OPTVAL_MAXLEN) in dccp_decode_value_var()
32 if (len > 4) in dccp_decode_value_var()
34 if (len > 3) in dccp_decode_value_var()
36 if (len > 2) in dccp_decode_value_var()
38 if (len > 1) in dccp_decode_value_var()
40 if (len > 0) in dccp_decode_value_var()
62 unsigned char opt, len; in dccp_parse_options() local
71 opt = len = 0; in dccp_parse_options()
74 len = 0; in dccp_parse_options()
[all …]
/Linux-v4.19/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-v4.19/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_cudbg.c83 u32 value, n = 0, len = 0; in cxgb4_get_entity_length() local
89 len = T4_REGMAP_SIZE; in cxgb4_get_entity_length()
93 len = T5_REGMAP_SIZE; in cxgb4_get_entity_length()
100 len = adap->params.devlog.size; in cxgb4_get_entity_length()
104 len = adap->params.cim_la_size / 10 + 1; in cxgb4_get_entity_length()
105 len *= 10 * sizeof(u32); in cxgb4_get_entity_length()
107 len = adap->params.cim_la_size / 8; in cxgb4_get_entity_length()
108 len *= 8 * sizeof(u32); in cxgb4_get_entity_length()
110 len += sizeof(u32); /* for reading CIM LA configuration */ in cxgb4_get_entity_length()
113 len = 2 * CIM_MALA_SIZE * 5 * sizeof(u32); in cxgb4_get_entity_length()
[all …]
/Linux-v4.19/net/sunrpc/
Dsocklib.c29 size_t xdr_skb_read_bits(struct xdr_skb_reader *desc, void *to, size_t len) in xdr_skb_read_bits() argument
31 if (len > desc->count) in xdr_skb_read_bits()
32 len = desc->count; in xdr_skb_read_bits()
33 if (unlikely(skb_copy_bits(desc->skb, desc->offset, to, len))) in xdr_skb_read_bits()
35 desc->count -= len; in xdr_skb_read_bits()
36 desc->offset += len; in xdr_skb_read_bits()
37 return len; in xdr_skb_read_bits()
49 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
54 if (len > desc->count) in xdr_skb_read_and_csum_bits()
55 len = desc->count; in xdr_skb_read_and_csum_bits()
[all …]
Dxdr.c25 unsigned int quadlen = XDR_QUADLEN(obj->len); in xdr_encode_netobj()
28 *p++ = cpu_to_be32(obj->len); in xdr_encode_netobj()
29 memcpy(p, obj->data, obj->len); in xdr_encode_netobj()
30 return p + XDR_QUADLEN(obj->len); in xdr_encode_netobj()
37 unsigned int len; in xdr_decode_netobj() local
39 if ((len = be32_to_cpu(*p++)) > XDR_MAX_NETOBJ) in xdr_decode_netobj()
41 obj->len = len; in xdr_decode_netobj()
43 return p + XDR_QUADLEN(len); in xdr_decode_netobj()
103 u32 len; in xdr_decode_string_inplace() local
105 len = be32_to_cpu(*p++); in xdr_decode_string_inplace()
[all …]
/Linux-v4.19/scripts/dtc/
Ddata.c51 while ((d.len + xlen) > newsize) in data_grow_for()
59 struct data data_copy_mem(const char *mem, int len) in data_copy_mem() argument
63 d = data_grow_for(empty_data, len); in data_copy_mem()
65 d.len = len; in data_copy_mem()
66 memcpy(d.val, mem, len); in data_copy_mem()
71 struct data data_copy_escape_string(const char *s, int len) in data_copy_escape_string() argument
77 d = data_grow_for(empty_data, len + 1); in data_copy_escape_string()
80 while (i < len) { in data_copy_escape_string()
86 q[d.len++] = c; in data_copy_escape_string()
89 q[d.len++] = '\0'; in data_copy_escape_string()
[all …]
/Linux-v4.19/drivers/parisc/
Deisa_enumerator.c84 int len; in configure_memory() local
89 len=0; in configure_memory()
92 c = get_8(buf+len); in configure_memory()
98 res->start = mem_parent->start + get_24(buf+len+2); in configure_memory()
99 res->end = res->start + get_16(buf+len+5)*1024; in configure_memory()
109 len+=7; in configure_memory()
116 return len; in configure_memory()
122 int len; in configure_irq() local
126 len=0; in configure_irq()
129 c = get_8(buf+len); in configure_irq()
[all …]
/Linux-v4.19/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-v4.19/tools/perf/util/
Dstrbuf.c16 sb->alloc = sb->len = 0; in strbuf_init()
35 *sz = sb->len; in strbuf_detach()
43 size_t nr = sb->len + extra + 1; in strbuf_grow()
48 if (nr <= sb->len) in strbuf_grow()
73 sb->buf[sb->len++] = c; in strbuf_addch()
74 sb->buf[sb->len] = '\0'; in strbuf_addch()
78 int strbuf_add(struct strbuf *sb, const void *data, size_t len) in strbuf_add() argument
80 int ret = strbuf_grow(sb, len); in strbuf_add()
84 memcpy(sb->buf + sb->len, data, len); in strbuf_add()
85 return strbuf_setlen(sb, sb->len + len); in strbuf_add()
[all …]
/Linux-v4.19/include/scsi/
Dfc_encode.h137 size_t len; in fc_ct_ns_fill() local
179 len = strnlen(fc_host_symbolic_name(lport->host), 255); in fc_ct_ns_fill()
180 ct = fc_ct_hdr_fill(fp, op, sizeof(struct fc_ns_rspn) + len, in fc_ct_ns_fill()
184 fc_host_symbolic_name(lport->host), len); in fc_ct_ns_fill()
185 ct->payload.spn.fr_name_len = len; in fc_ct_ns_fill()
189 len = strnlen(fc_host_symbolic_name(lport->host), 255); in fc_ct_ns_fill()
190 ct = fc_ct_hdr_fill(fp, op, sizeof(struct fc_ns_rsnn) + len, in fc_ct_ns_fill()
194 fc_host_symbolic_name(lport->host), len); in fc_ct_ns_fill()
195 ct->payload.snn.fr_name_len = len; in fc_ct_ns_fill()
221 size_t len; in fc_ct_ms_fill() local
[all …]
/Linux-v4.19/include/linux/sunrpc/
Dxdr.h34 unsigned int len; member
63 len; /* Length of XDR encoded message */ member
67 xdr_buf_init(struct xdr_buf *buf, void *start, size_t len) in xdr_buf_init() argument
70 buf->head[0].iov_len = len; in xdr_buf_init()
74 buf->len = 0; in xdr_buf_init()
75 buf->buflen = len; in xdr_buf_init()
107 __be32 *xdr_encode_opaque_fixed(__be32 *p, const void *ptr, unsigned int len);
108 __be32 *xdr_encode_opaque(__be32 *p, const void *ptr, unsigned int len);
119 static inline __be32 *xdr_encode_array(__be32 *p, const void *s, unsigned int len) in xdr_encode_array() argument
121 return xdr_encode_opaque(p, s, len); in xdr_encode_array()
[all …]
/Linux-v4.19/tools/lib/traceevent/
Dtrace-seq.c43 s->len = 0; in trace_seq_init()
62 s->len = 0; in trace_seq_reset()
113 int len; in trace_seq_printf() local
119 len = (s->buffer_size - 1) - s->len; in trace_seq_printf()
122 ret = vsnprintf(s->buffer + s->len, len, fmt, ap); in trace_seq_printf()
125 if (ret >= len) { in trace_seq_printf()
130 s->len += ret; in trace_seq_printf()
149 int len; in trace_seq_vprintf() local
155 len = (s->buffer_size - 1) - s->len; in trace_seq_vprintf()
157 ret = vsnprintf(s->buffer + s->len, len, fmt, args); in trace_seq_vprintf()
[all …]
/Linux-v4.19/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-v4.19/virt/kvm/arm/
Dmmio.c26 void kvm_mmio_write_buf(void *buf, unsigned int len, unsigned long data) in kvm_mmio_write_buf() argument
36 switch (len) { in kvm_mmio_write_buf()
55 memcpy(buf, datap, len); in kvm_mmio_write_buf()
58 unsigned long kvm_mmio_read_buf(const void *buf, unsigned int len) in kvm_mmio_read_buf() argument
67 switch (len) { in kvm_mmio_read_buf()
72 memcpy(&tmp.hword, buf, len); in kvm_mmio_read_buf()
76 memcpy(&tmp.word, buf, len); in kvm_mmio_read_buf()
80 memcpy(&tmp.dword, buf, len); in kvm_mmio_read_buf()
98 unsigned int len; in kvm_handle_mmio_return() local
102 len = run->mmio.len; in kvm_handle_mmio_return()
[all …]

12345678910>>...244