Home
last modified time | relevance | path

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

12345678910>>...154

/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 …]
/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 …]
Ddebug.c92 unsigned int len; in read_file_debug() local
94 len = sprintf(buf, "0x%08x\n", common->debug_mask); in read_file_debug()
95 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_debug()
105 ssize_t len; in write_file_debug() local
107 len = min(count, sizeof(buf) - 1); in write_file_debug()
108 if (copy_from_user(buf, user_buf, len)) in write_file_debug()
111 buf[len] = '\0'; in write_file_debug()
138 unsigned int len = 0; in read_file_ani() local
167 len += scnprintf(buf + len, size - len, "%15s: %s\n", "ANI", in read_file_ani()
174 len += scnprintf(buf + len, size - len, "%15s: %u\n", in read_file_ani()
[all …]
/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 …]
/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/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/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 …]
/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 …]
/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 …]
/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 …]
/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/net/caif/
Dcaif_spi.c135 int len = 0; in dbgfs_state() local
144 len += snprintf((buf + len), (DEBUGFS_BUF_SIZE - len), in dbgfs_state()
147 len += snprintf((buf + len), (DEBUGFS_BUF_SIZE - len), FLAVOR); in dbgfs_state()
149 len += snprintf((buf + len), (DEBUGFS_BUF_SIZE - len), in dbgfs_state()
151 len += snprintf((buf + len), (DEBUGFS_BUF_SIZE - len), in dbgfs_state()
153 len += snprintf((buf + len), (DEBUGFS_BUF_SIZE - len), in dbgfs_state()
155 len += snprintf((buf + len), (DEBUGFS_BUF_SIZE - len), in dbgfs_state()
157 len += snprintf((buf + len), (DEBUGFS_BUF_SIZE - len), in dbgfs_state()
159 len += snprintf((buf + len), (DEBUGFS_BUF_SIZE - len), in dbgfs_state()
161 len += snprintf((buf + len), (DEBUGFS_BUF_SIZE - len), in dbgfs_state()
[all …]
/drivers/target/
Dtarget_core_fabric_lib.c106 unsigned len, count, leading_zero_bytes; in srp_get_pr_transport_id() local
112 len = strlen(p); in srp_get_pr_transport_id()
113 if (len % 2) in srp_get_pr_transport_id()
116 count = min(len / 2, 16U); in srp_get_pr_transport_id()
135 u16 len = 0; in iscsi_get_pr_transport_id() local
149 len = sprintf(&buf[off], "%s", se_nacl->initiatorname); in iscsi_get_pr_transport_id()
153 len++; in iscsi_get_pr_transport_id()
182 buf[off+len] = 0x2c; off++; /* ASCII Character: "," */ in iscsi_get_pr_transport_id()
183 buf[off+len] = 0x69; off++; /* ASCII Character: "i" */ in iscsi_get_pr_transport_id()
184 buf[off+len] = 0x2c; off++; /* ASCII Character: "," */ in iscsi_get_pr_transport_id()
[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()
69 return copy_to_user(result, buffer, len) ? -EFAULT : 0; in do_active_device()
79 int len = 0; in do_autoprobe() local
[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/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 …]
/drivers/infiniband/sw/rxe/
Drxe_sysfs.c40 int len; in sanitize_arg() local
46 for (len = 0; len < intf_len - 1 && val[len] && val[len] != '\n'; len++) in sanitize_arg()
47 intf[len] = val[len]; in sanitize_arg()
48 intf[len] = 0; in sanitize_arg()
50 if (len == 0 || (val[len] != 0 && val[len] != '\n')) in sanitize_arg()
53 return len; in sanitize_arg()
58 int len; in rxe_param_set_add() local
64 len = sanitize_arg(val, intf, sizeof(intf)); in rxe_param_set_add()
65 if (!len) { in rxe_param_set_add()
97 int len; in rxe_param_set_remove() local
[all …]
/drivers/staging/fbtft/
Dfbtft-io.c8 int fbtft_write_spi(struct fbtft_par *par, void *buf, size_t len) in fbtft_write_spi() argument
12 .len = len, in fbtft_write_spi()
16 fbtft_par_dbg_hex(DEBUG_WRITE, par, par->info->device, u8, buf, len, in fbtft_write_spi()
17 "%s(len=%zu): ", __func__, len); in fbtft_write_spi()
40 int fbtft_write_spi_emulate_9(struct fbtft_par *par, void *buf, size_t len) in fbtft_write_spi_emulate_9() argument
44 size_t size = len / 2; in fbtft_write_spi_emulate_9()
49 fbtft_par_dbg_hex(DEBUG_WRITE, par, par->info->device, u8, buf, len, in fbtft_write_spi_emulate_9()
50 "%s(len=%zu): ", __func__, len); in fbtft_write_spi_emulate_9()
57 if ((len % 8) != 0) { in fbtft_write_spi_emulate_9()
59 "error: len=%zu must be divisible by 8\n", len); in fbtft_write_spi_emulate_9()
[all …]
/drivers/cpufreq/
Dcpufreq_stats.c56 ssize_t len = 0; in show_time_in_state() local
67 len += sprintf(buf + len, "%u %llu\n", stats->freq_table[i], in show_time_in_state()
71 return len; in show_time_in_state()
87 ssize_t len = 0; in show_trans_table() local
93 len += snprintf(buf + len, PAGE_SIZE - len, " From : To\n"); in show_trans_table()
94 len += snprintf(buf + len, PAGE_SIZE - len, " : "); in show_trans_table()
96 if (len >= PAGE_SIZE) in show_trans_table()
98 len += snprintf(buf + len, PAGE_SIZE - len, "%9u ", in show_trans_table()
101 if (len >= PAGE_SIZE) in show_trans_table()
104 len += snprintf(buf + len, PAGE_SIZE - len, "\n"); in show_trans_table()
[all …]
/drivers/spi/
Dspi-dw.c41 u32 len = 0; in dw_spi_show_regs() local
48 len += scnprintf(buf + len, SPI_REGS_BUFSIZE - len, in dw_spi_show_regs()
50 len += scnprintf(buf + len, SPI_REGS_BUFSIZE - len, in dw_spi_show_regs()
52 len += scnprintf(buf + len, SPI_REGS_BUFSIZE - len, in dw_spi_show_regs()
54 len += scnprintf(buf + len, SPI_REGS_BUFSIZE - len, in dw_spi_show_regs()
56 len += scnprintf(buf + len, SPI_REGS_BUFSIZE - len, in dw_spi_show_regs()
58 len += scnprintf(buf + len, SPI_REGS_BUFSIZE - len, in dw_spi_show_regs()
60 len += scnprintf(buf + len, SPI_REGS_BUFSIZE - len, in dw_spi_show_regs()
62 len += scnprintf(buf + len, SPI_REGS_BUFSIZE - len, in dw_spi_show_regs()
64 len += scnprintf(buf + len, SPI_REGS_BUFSIZE - len, in dw_spi_show_regs()
[all …]

12345678910>>...154