/drivers/net/wireless/ath/ath5k/ |
D | debug.c | 199 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/ |
D | htc_drv_debug.c | 25 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 …]
|
D | debug_sta.c | 30 u32 len = 0, size = 4096; in read_file_node_aggr() local 40 len = scnprintf(buf, size, "%s\n", in read_file_node_aggr() 45 len = scnprintf(buf, size, "Max-AMPDU: %d\n", in read_file_node_aggr() 47 len += scnprintf(buf + len, size - len, "MPDU Density: %d\n\n", in read_file_node_aggr() 50 len += scnprintf(buf + len, size - len, in read_file_node_aggr() 60 len += scnprintf(buf + len, size - len, in read_file_node_aggr() 74 retval = simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_node_aggr() 153 len += scnprintf(buf + len, size - len, \ 162 len += scnprintf(buf + len, size - len, \ 177 u32 len = 0, size = 4096; in read_file_node_recv() local [all …]
|
D | dfs_debug.c | 28 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 …]
|
D | debug.c | 92 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/ |
D | lpfc_debugfs.c | 150 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 …]
|
/drivers/pnp/pnpbios/ |
D | rsparser.c | 57 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/ath6kl/ |
D | debug.c | 151 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/s390/char/ |
D | hmcdrv_cache.c | 43 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/ |
D | support.c | 108 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/ |
D | rtw_debug.c | 24 int len = 0; in proc_get_drv_version() local 26 len += snprintf(page + len, count - len, "%s\n", DRIVERVERSION); in proc_get_drv_version() 29 return len; in proc_get_drv_version() 46 u32 addr, val, len; in proc_set_write_reg() local 54 int num = sscanf(tmp, "%x %x %x", &addr, &val, &len); in proc_set_write_reg() 60 switch (len) { in proc_set_write_reg() 71 DBG_88E("error write length =%d", len); in proc_set_write_reg() 88 int len = 0; in proc_get_read_reg() local 92 return len; in proc_get_read_reg() 97 …len += 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/ |
D | fnic_trace.c | 111 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/ |
D | eisa_enumerator.c | 84 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 …]
|
/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_tlv.c | 54 u32 attr_data = 0, len = 0; in fm10k_tlv_attr_put_null_string() local 66 if (len && !(len % 4)) { in fm10k_tlv_attr_put_null_string() 67 attr[len / 4] = attr_data; in fm10k_tlv_attr_put_null_string() 72 attr_data |= (u32)(*string) << (8 * (len % 4)); in fm10k_tlv_attr_put_null_string() 73 len++; in fm10k_tlv_attr_put_null_string() 79 attr[(len + 3) / 4] = attr_data; in fm10k_tlv_attr_put_null_string() 82 len <<= FM10K_TLV_LEN_SHIFT; in fm10k_tlv_attr_put_null_string() 83 attr[0] = len | attr_id; in fm10k_tlv_attr_put_null_string() 86 len += FM10K_TLV_HDR_LEN << FM10K_TLV_LEN_SHIFT; in fm10k_tlv_attr_put_null_string() 87 *msg += FM10K_TLV_LEN_ALIGN(len); in fm10k_tlv_attr_put_null_string() [all …]
|
/drivers/scsi/qla2xxx/ |
D | qla_tmpl.c | 109 qla27xx_insert16(uint16_t value, void *buf, ulong *len) in qla27xx_insert16() argument 112 buf += *len; in qla27xx_insert16() 115 *len += sizeof(value); in qla27xx_insert16() 119 qla27xx_insert32(uint32_t value, void *buf, ulong *len) in qla27xx_insert32() argument 122 buf += *len; in qla27xx_insert32() 125 *len += sizeof(value); in qla27xx_insert32() 129 qla27xx_insertbuf(void *mem, ulong size, void *buf, ulong *len) in qla27xx_insertbuf() argument 133 buf += *len; in qla27xx_insertbuf() 136 *len += size; in qla27xx_insertbuf() 140 qla27xx_read8(void __iomem *window, void *buf, ulong *len) in qla27xx_read8() argument [all …]
|
/drivers/media/usb/em28xx/ |
D | em28xx-i2c.c | 58 static int em2800_i2c_send_bytes(struct em28xx *dev, u8 addr, u8 *buf, u16 len) in em2800_i2c_send_bytes() argument 64 if (len < 1 || len > 4) in em2800_i2c_send_bytes() 67 BUG_ON(len < 1 || len > 4); in em2800_i2c_send_bytes() 68 b2[5] = 0x80 + len - 1; in em2800_i2c_send_bytes() 71 if (len > 1) in em2800_i2c_send_bytes() 73 if (len > 2) in em2800_i2c_send_bytes() 75 if (len > 3) in em2800_i2c_send_bytes() 79 ret = dev->em28xx_write_regs(dev, 4 - len, &b2[4 - len], 2 + len); in em2800_i2c_send_bytes() 80 if (ret != 2 + len) { in em2800_i2c_send_bytes() 89 if (ret == 0x80 + len - 1) in em2800_i2c_send_bytes() [all …]
|
/drivers/net/caif/ |
D | caif_spi.c | 133 int len = 0; in dbgfs_state() local 142 len += snprintf((buf + len), (DEBUGFS_BUF_SIZE - len), in dbgfs_state() 145 len += snprintf((buf + len), (DEBUGFS_BUF_SIZE - len), FLAVOR); in dbgfs_state() 147 len += snprintf((buf + len), (DEBUGFS_BUF_SIZE - len), 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() [all …]
|
/drivers/target/ |
D | target_core_fabric_lib.c | 119 unsigned len, count, leading_zero_bytes; in srp_get_pr_transport_id() local 125 len = strlen(p); in srp_get_pr_transport_id() 126 if (len % 2) in srp_get_pr_transport_id() 129 count = min(len / 2, 16U); in srp_get_pr_transport_id() 148 u16 len = 0; in iscsi_get_pr_transport_id() local 162 len = sprintf(&buf[off], "%s", se_nacl->initiatorname); in iscsi_get_pr_transport_id() 166 len++; in iscsi_get_pr_transport_id() 195 buf[off+len] = 0x2c; off++; /* ASCII Character: "," */ in iscsi_get_pr_transport_id() 196 buf[off+len] = 0x69; off++; /* ASCII Character: "i" */ in iscsi_get_pr_transport_id() 197 buf[off+len] = 0x2c; off++; /* ASCII Character: "," */ in iscsi_get_pr_transport_id() [all …]
|
/drivers/parport/ |
D | procfs.c | 42 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/cpufreq/ |
D | cpufreq_stats.c | 59 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() 85 ssize_t len = 0; in show_trans_table() local 91 len += snprintf(buf + len, PAGE_SIZE - len, " From : To\n"); in show_trans_table() 92 len += snprintf(buf + len, PAGE_SIZE - len, " : "); in show_trans_table() 94 if (len >= PAGE_SIZE) in show_trans_table() 96 len += snprintf(buf + len, PAGE_SIZE - len, "%9u ", in show_trans_table() 99 if (len >= PAGE_SIZE) in show_trans_table() 102 len += snprintf(buf + len, PAGE_SIZE - len, "\n"); in show_trans_table() [all …]
|
/drivers/w1/ |
D | w1_netlink.c | 68 return (u8 *)block->cn - (u8 *)block->first_cn + block->cn->len; in w1_reply_len() 74 u16 len = w1_reply_len(block); in w1_unref_block() local 75 if (len) { in w1_unref_block() 76 cn_netlink_send_mult(block->first_cn, len, in w1_unref_block() 93 u16 len = w1_reply_len(block); in w1_reply_make_space() local 94 if (len + space >= block->maxlen) { in w1_reply_make_space() 95 cn_netlink_send_mult(block->first_cn, len, block->portid, 0, GFP_KERNEL); in w1_reply_make_space() 96 block->first_cn->len = 0; in w1_reply_make_space() 122 block->msg = (struct w1_netlink_msg *)(block->cn->data + block->cn->len); in w1_netlink_setup_msg() 127 block->cn->len); in w1_netlink_setup_msg() [all …]
|
/drivers/staging/fbtft/ |
D | fbtft-io.c | 8 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=%d): ", __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=%d): ", __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/spi/ |
D | spi-dw.c | 52 u32 len = 0; in dw_spi_show_regs() local 59 len += snprintf(buf + len, SPI_REGS_BUFSIZE - len, in dw_spi_show_regs() 61 len += snprintf(buf + len, SPI_REGS_BUFSIZE - len, in dw_spi_show_regs() 63 len += snprintf(buf + len, SPI_REGS_BUFSIZE - len, in dw_spi_show_regs() 65 len += snprintf(buf + len, SPI_REGS_BUFSIZE - len, in dw_spi_show_regs() 67 len += snprintf(buf + len, SPI_REGS_BUFSIZE - len, in dw_spi_show_regs() 69 len += snprintf(buf + len, SPI_REGS_BUFSIZE - len, in dw_spi_show_regs() 71 len += snprintf(buf + len, SPI_REGS_BUFSIZE - len, in dw_spi_show_regs() 73 len += snprintf(buf + len, SPI_REGS_BUFSIZE - len, in dw_spi_show_regs() 75 len += snprintf(buf + len, SPI_REGS_BUFSIZE - len, in dw_spi_show_regs() [all …]
|
/drivers/net/usb/ |
D | cdc_eem.c | 69 skb->data, skb->len, eem_linkcmd_complete, skb); in eem_linkcmd() 108 u16 len = skb->len; in eem_tx_fixup() local 118 if (!((len + EEM_HEAD + ETH_FCS_LEN) % dev->maxpacket)) in eem_tx_fixup() 134 skb->len); in eem_tx_fixup() 135 skb_set_tail_pointer(skb, len); in eem_tx_fixup() 149 crc = crc32_le(~0, skb->data, skb->len); in eem_tx_fixup() 159 len = skb->len; in eem_tx_fixup() 160 put_unaligned_le16(BIT(14) | len, skb_push(skb, 2)); in eem_tx_fixup() 185 u16 len = 0; in eem_rx_fixup() local 188 if (skb->len < EEM_HEAD) in eem_rx_fixup() [all …]
|
/drivers/infiniband/sw/rxe/ |
D | rxe_sysfs.c | 40 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() 74 int len; in rxe_param_set_add() local 80 len = sanitize_arg(val, intf, sizeof(intf)); in rxe_param_set_add() 81 if (!len) { in rxe_param_set_add() 117 int len; in rxe_param_set_remove() local [all …]
|