Home
last modified time | relevance | path

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

12345678910>>...174

/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 …]
Ddebugfs.c291 size_t len = strlen(buf); in ath11k_read_pdev_stats() local
293 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath11k_read_pdev_stats()
363 size_t len = strlen(buf); in ath11k_read_vdev_stats() local
365 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath11k_read_vdev_stats()
448 size_t len = strlen(buf); in ath11k_read_bcn_stats() local
450 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath11k_read_bcn_stats()
583 int len = 0; in ath11k_read_enable_extd_tx_stats() local
586 len = scnprintf(buf, sizeof(buf) - len, "%08x\n", in ath11k_read_enable_extd_tx_stats()
590 return simple_read_from_buffer(ubuf, count, ppos, buf, len); in ath11k_read_enable_extd_tx_stats()
675 int len = 0; in ath11k_read_extd_rx_stats() local
[all …]
/drivers/staging/r8188eu/core/
Drtw_debug.c13 int len = 0; in proc_get_drv_version() local
15 len += snprintf(page + len, count - len, "%s\n", DRIVERVERSION); in proc_get_drv_version()
18 return len; in proc_get_drv_version()
35 u32 addr, val, len; in proc_set_write_reg() local
43 int num = sscanf(tmp, "%x %x %x", &addr, &val, &len); in proc_set_write_reg()
49 switch (len) { in proc_set_write_reg()
60 DBG_88E("error write length =%d", len); in proc_set_write_reg()
77 int len = 0; in proc_get_read_reg() local
81 return len; in proc_get_read_reg()
86len += snprintf(page + len, count - len, "rtw_read8(0x%x)=0x%x\n", proc_get_read_addr, rtw_read8(p… in proc_get_read_reg()
[all …]
/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 …]
/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 …]
/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 …]
/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 …]
/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 …]
/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 …]
/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 …]
/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 …]
/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 …]
/drivers/scsi/fnic/
Dfnic_trace.c111 int len = 0; in fnic_get_trace_data() local
141 len += scnprintf(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 += scnprintf(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 = scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data()
228 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data()
246 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data()
[all …]
/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 …]
/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 …]
/drivers/scsi/qla2xxx/
Dqla_tmpl.c15 qla27xx_insert16(uint16_t value, void *buf, ulong *len) in qla27xx_insert16() argument
18 buf += *len; in qla27xx_insert16()
21 *len += sizeof(value); in qla27xx_insert16()
25 qla27xx_insert32(uint32_t value, void *buf, ulong *len) in qla27xx_insert32() argument
28 buf += *len; in qla27xx_insert32()
31 *len += sizeof(value); in qla27xx_insert32()
35 qla27xx_insertbuf(void *mem, ulong size, void *buf, ulong *len) in qla27xx_insertbuf() argument
38 buf += *len; in qla27xx_insertbuf()
41 *len += size; in qla27xx_insertbuf()
45 qla27xx_read8(void __iomem *window, void *buf, ulong *len) in qla27xx_read8() argument
[all …]
/drivers/parport/
Dprocfs.c42 int len = 0; in do_active_device() local
54 len += sprintf(buffer, "%s\n", dev->name); in do_active_device()
58 if(!len) { in do_active_device()
59 len += sprintf(buffer, "%s\n", "none"); in do_active_device()
62 if (len > *lenp) in do_active_device()
63 len = *lenp; in do_active_device()
65 *lenp = len; in do_active_device()
67 *ppos += len; in do_active_device()
68 memcpy(result, buffer, len); in do_active_device()
79 int len = 0; in do_autoprobe() local
[all …]
/drivers/platform/surface/aggregator/
Dssh_parser.c31 u16 actual = ssh_crc(src->ptr, src->len); in sshp_validate_crc()
43 return src->len >= 2 && get_unaligned_le16(src->ptr) == SSH_MSG_SYN; in sshp_starts_with_syn()
73 for (i = 0; i < src->len - 1; i++) { in sshp_find_syn()
76 rem->len = src->len - i; in sshp_find_syn()
81 if (unlikely(src->ptr[src->len - 1] == (SSH_MSG_SYN & 0xff))) { in sshp_find_syn()
82 rem->ptr = src->ptr + src->len - 1; in sshp_find_syn()
83 rem->len = 1; in sshp_find_syn()
87 rem->ptr = src->ptr + src->len; in sshp_find_syn()
88 rem->len = 0; in sshp_find_syn()
127 payload->len = 0; in sshp_parse_frame()
[all …]
/drivers/media/v4l2-core/
Dv4l2-jpeg.c88 static int jpeg_skip(struct jpeg_stream *stream, size_t len) in jpeg_skip() argument
90 if (stream->curr + len > stream->end) in jpeg_skip()
93 stream->curr += len; in jpeg_skip()
117 u16 len; in jpeg_reference_segment() local
122 len = get_unaligned_be16(stream->curr); in jpeg_reference_segment()
123 if (stream->curr + len > stream->end) in jpeg_reference_segment()
127 segment->length = len; in jpeg_reference_segment()
158 int len = jpeg_get_word_be(stream); in jpeg_parse_frame_header() local
160 if (len < 0) in jpeg_parse_frame_header()
161 return len; in jpeg_parse_frame_header()
[all …]
/drivers/gpu/drm/msm/dp/
Ddp_debug.c34 static int dp_debug_check_buffer_overflow(int rc, int *max_size, int *len) in dp_debug_check_buffer_overflow() argument
40 *len += rc; in dp_debug_check_buffer_overflow()
41 *max_size = SZ_4K - *len; in dp_debug_check_buffer_overflow()
51 u32 len = 0, rc = 0; in dp_debug_read_info() local
69 rc = snprintf(buf + len, max_size, "\tname = %s\n", DEBUG_NAME); in dp_debug_read_info()
70 if (dp_debug_check_buffer_overflow(rc, &max_size, &len)) in dp_debug_read_info()
73 rc = snprintf(buf + len, max_size, in dp_debug_read_info()
76 if (dp_debug_check_buffer_overflow(rc, &max_size, &len)) in dp_debug_read_info()
79 rc = snprintf(buf + len, max_size, in dp_debug_read_info()
82 if (dp_debug_check_buffer_overflow(rc, &max_size, &len)) in dp_debug_read_info()
[all …]
/drivers/media/usb/em28xx/
Dem28xx-i2c.c83 static int em2800_i2c_send_bytes(struct em28xx *dev, u8 addr, u8 *buf, u16 len) in em2800_i2c_send_bytes() argument
89 if (len < 1 || len > 4) in em2800_i2c_send_bytes()
92 b2[5] = 0x80 + len - 1; in em2800_i2c_send_bytes()
95 if (len > 1) in em2800_i2c_send_bytes()
97 if (len > 2) in em2800_i2c_send_bytes()
99 if (len > 3) in em2800_i2c_send_bytes()
103 ret = dev->em28xx_write_regs(dev, 4 - len, &b2[4 - len], 2 + len); in em2800_i2c_send_bytes()
104 if (ret != 2 + len) { in em2800_i2c_send_bytes()
113 if (ret == 0x80 + len - 1) in em2800_i2c_send_bytes()
114 return len; in em2800_i2c_send_bytes()
[all …]
/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_debugfs.c80 static void hclge_dbg_fill_content(char *content, u16 len, in hclge_dbg_fill_content() argument
87 memset(content, ' ', len); in hclge_dbg_fill_content()
164 char *buf, int len, int *pos) in hclge_dbg_dump_reg_tqp() argument
184 *pos += scnprintf(buf + *pos, len - *pos, "item%u = %s\n", in hclge_dbg_dump_reg_tqp()
188 *pos += scnprintf(buf + *pos, len - *pos, "item%u\t", i); in hclge_dbg_dump_reg_tqp()
190 *pos += scnprintf(buf + *pos, len - *pos, "\n"); in hclge_dbg_dump_reg_tqp()
205 *pos += scnprintf(buf + *pos, len - *pos, "%#x\t", in hclge_dbg_dump_reg_tqp()
208 *pos += scnprintf(buf + *pos, len - *pos, "\n"); in hclge_dbg_dump_reg_tqp()
218 char *buf, int len, int *pos) in hclge_dbg_dump_reg_common() argument
252 *pos += scnprintf(buf + *pos, len - *pos, "%s: %#x\n", in hclge_dbg_dump_reg_common()
[all …]
/drivers/w1/
Dw1_netlink.c59 return (u8 *)block->cn - (u8 *)block->first_cn + block->cn->len; in w1_reply_len()
65 u16 len = w1_reply_len(block); in w1_unref_block() local
66 if (len) { in w1_unref_block()
67 cn_netlink_send_mult(block->first_cn, len, in w1_unref_block()
84 u16 len = w1_reply_len(block); in w1_reply_make_space() local
85 if (len + space >= block->maxlen) { in w1_reply_make_space()
86 cn_netlink_send_mult(block->first_cn, len, block->portid, 0, GFP_KERNEL); in w1_reply_make_space()
87 block->first_cn->len = 0; in w1_reply_make_space()
113 block->msg = (struct w1_netlink_msg *)(block->cn->data + block->cn->len); in w1_netlink_setup_msg()
118 block->cn->len); in w1_netlink_setup_msg()
[all …]

12345678910>>...174