/drivers/net/wireless/ath/ath11k/ |
D | debugfs_htt_stats.c | 18 #define PRINT_ARRAY_TO_BUF(out, buflen, arr, str, len, newline) \ argument 27 for (i = 0; i < len; i++) { \ 44 u32 len = stats_req->buf_len; in htt_print_stats_string_tlv() local 50 len += scnprintf(buf + len, buf_len - len, "HTT_STATS_STRING_TLV:\n"); in htt_print_stats_string_tlv() 52 len += scnprintf(buf + len, buf_len - len, in htt_print_stats_string_tlv() 55 len += scnprintf(buf + len, in htt_print_stats_string_tlv() 56 buf_len - len, in htt_print_stats_string_tlv() 60 len += scnprintf(buf + len, buf_len - len, "\n\n"); in htt_print_stats_string_tlv() 62 if (len >= buf_len) in htt_print_stats_string_tlv() 65 buf[len] = 0; in htt_print_stats_string_tlv() [all …]
|
D | debugfs_sta.c | 146 int len = 0, i, j, k, retval = 0; in ath11k_dbg_sta_dump_tx_stats() local 163 len += scnprintf(buf + len, size - len, "%s_%s\n", in ath11k_dbg_sta_dump_tx_stats() 166 len += scnprintf(buf + len, size - len, in ath11k_dbg_sta_dump_tx_stats() 170 len += scnprintf(buf + len, size - len, in ath11k_dbg_sta_dump_tx_stats() 173 len += scnprintf(buf + len, size - len, "\n"); in ath11k_dbg_sta_dump_tx_stats() 174 len += scnprintf(buf + len, size - len, in ath11k_dbg_sta_dump_tx_stats() 178 len += scnprintf(buf + len, size - len, in ath11k_dbg_sta_dump_tx_stats() 181 len += scnprintf(buf + len, size - len, "\n"); in ath11k_dbg_sta_dump_tx_stats() 182 len += scnprintf(buf + len, size - len, " HT MCS %s\n", in ath11k_dbg_sta_dump_tx_stats() 185 len += scnprintf(buf + len, size - len, in ath11k_dbg_sta_dump_tx_stats() [all …]
|
/drivers/net/wireless/ath/ath5k/ |
D | debug.c | 180 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/ |
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 | 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 …]
|
/drivers/scsi/libfc/ |
D | fc_encode.h | 97 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/ |
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/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/scsi/lpfc/ |
D | lpfc_debugfs.c | 148 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/ |
D | debugfs_sta.c | 183 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/ |
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 | 107 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/ |
D | fnic_trace.c | 97 int len = 0; in fnic_get_trace_data() local 127 len += scnprintf(fnic_dbgfs_prt->buffer + len, in fnic_get_trace_data() 128 (trace_max_pages * PAGE_SIZE * 3) - len, in fnic_get_trace_data() 169 len += scnprintf(fnic_dbgfs_prt->buffer + len, in fnic_get_trace_data() 170 (trace_max_pages * PAGE_SIZE * 3) - len, in fnic_get_trace_data() 186 return len; in fnic_get_trace_data() 204 int len = 0; in fnic_get_stats_data() local 209 len = scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data() 214 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data() 232 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data() [all …]
|
/drivers/parisc/ |
D | eisa_enumerator.c | 79 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/ |
D | fm10k_tlv.c | 37 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/ |
D | qla_tmpl.c | 15 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/ |
D | procfs.c | 49 int len = 0; in do_active_device() local 61 len += snprintf(buffer, sizeof(buffer), "%s\n", dev->name); in do_active_device() 65 if(!len) { in do_active_device() 66 len += snprintf(buffer, sizeof(buffer), "%s\n", "none"); in do_active_device() 69 if (len > *lenp) in do_active_device() 70 len = *lenp; in do_active_device() 72 *lenp = len; in do_active_device() 74 *ppos += len; in do_active_device() 75 memcpy(result, buffer, len); in do_active_device() 86 int len = 0; in do_autoprobe() local [all …]
|
/drivers/platform/surface/aggregator/ |
D | ssh_parser.c | 31 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/ |
D | v4l2-jpeg.c | 88 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/media/usb/em28xx/ |
D | em28xx-i2c.c | 73 static int em2800_i2c_send_bytes(struct em28xx *dev, u8 addr, u8 *buf, u16 len) in em2800_i2c_send_bytes() argument 79 if (len < 1 || len > 4) in em2800_i2c_send_bytes() 82 b2[5] = 0x80 + len - 1; in em2800_i2c_send_bytes() 85 if (len > 1) in em2800_i2c_send_bytes() 87 if (len > 2) in em2800_i2c_send_bytes() 89 if (len > 3) in em2800_i2c_send_bytes() 93 ret = dev->em28xx_write_regs(dev, 4 - len, &b2[4 - len], 2 + len); in em2800_i2c_send_bytes() 94 if (ret != 2 + len) { in em2800_i2c_send_bytes() 103 if (ret == 0x80 + len - 1) in em2800_i2c_send_bytes() 104 return len; in em2800_i2c_send_bytes() [all …]
|
/drivers/iio/imu/bno055/ |
D | bno055_ser_trace.h | 12 TP_PROTO(int len, const u8 *data), 13 TP_ARGS(len, data), 15 __field(int, len) 16 __dynamic_array(u8, chunk, len) 19 __entry->len = len; 21 data, __entry->len); 24 __entry->len, __entry->len, __get_dynamic_array(chunk) 64 TP_PROTO(int addr, size_t len), 65 TP_ARGS(addr, len), 68 __field(size_t, len) [all …]
|
/drivers/w1/ |
D | w1_netlink.c | 59 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() 85 u16 len = w1_reply_len(block); in w1_reply_make_space() local 86 if (len + space >= block->maxlen) { in w1_reply_make_space() 87 cn_netlink_send_mult(block->first_cn, len, block->portid, in w1_reply_make_space() 89 block->first_cn->len = 0; in w1_reply_make_space() 115 block->msg = (struct w1_netlink_msg *)(block->cn->data + block->cn->len); in w1_netlink_setup_msg() 120 block->cn->len); in w1_netlink_setup_msg() [all …]
|
/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
D | hclge_debugfs.c | 88 static void hclge_dbg_fill_content(char *content, u16 len, in hclge_dbg_fill_content() argument 97 if (!len) { in hclge_dbg_fill_content() 99 } else if (len <= HCLGE_DBG_LINE_END_LEN) { in hclge_dbg_fill_content() 104 memset(content, ' ', len); in hclge_dbg_fill_content() 105 len -= HCLGE_DBG_LINE_END_LEN; in hclge_dbg_fill_content() 109 if (len < item_len) in hclge_dbg_fill_content() 120 len -= item_len; in hclge_dbg_fill_content() 191 char *buf, int len, int *pos) in hclge_dbg_dump_reg_tqp() argument 211 *pos += scnprintf(buf + *pos, len - *pos, "item%u = %s\n", in hclge_dbg_dump_reg_tqp() 215 *pos += scnprintf(buf + *pos, len - *pos, "item%u\t", i); in hclge_dbg_dump_reg_tqp() [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=%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/gpu/drm/msm/disp/dpu1/catalog/ |
D | dpu_9_0_sm8550.h | 24 .base = 0, .len = 0x494, 45 .base = 0x15000, .len = 0x290, 50 .base = 0x16000, .len = 0x290, 55 .base = 0x17000, .len = 0x290, 60 .base = 0x18000, .len = 0x290, 65 .base = 0x19000, .len = 0x290, 70 .base = 0x1a000, .len = 0x290, 79 .base = 0x4000, .len = 0x344, 87 .base = 0x6000, .len = 0x344, 95 .base = 0x8000, .len = 0x344, [all …]
|