| /linux/drivers/net/wireless/ath/ath11k/ |
| H A D | debugfs_htt_stats.c | 19 #define PRINT_ARRAY_TO_BUF(out, buflen, arr, str, len, newline) \ argument 28 for (i = 0; i < len; i++) { \ 45 u32 len = stats_req->buf_len; in htt_print_stats_string_tlv() local 51 len += scnprintf(buf + len, buf_len - len, "HTT_STATS_STRING_TLV:\n"); in htt_print_stats_string_tlv() 53 len += scnprintf(buf + len, buf_len - len, in htt_print_stats_string_tlv() 56 len += scnprintf(buf + len, in htt_print_stats_string_tlv() 57 buf_len - len, in htt_print_stats_string_tlv() 61 len += scnprintf(buf + len, buf_len - len, "\n\n"); in htt_print_stats_string_tlv() 63 if (len >= buf_len) in htt_print_stats_string_tlv() 66 buf[len] = 0; in htt_print_stats_string_tlv() [all …]
|
| /linux/tools/testing/selftests/net/ |
| H A D | proc_net_pktgen.c | 116 ssize_t len; in FIXTURE_SETUP() local 127 len = write(self->thr_fd, thr_cmd_add_loopback_0, sizeof(thr_cmd_add_loopback_0)); in FIXTURE_SETUP() 128 ASSERT_EQ(len, sizeof(thr_cmd_add_loopback_0)) TH_LOG("device lo@0 already registered?"); in FIXTURE_SETUP() 136 ssize_t len; in FIXTURE_TEARDOWN() local 141 len = write(self->thr_fd, thr_cmd_rm_loopback_0, sizeof(thr_cmd_rm_loopback_0)); in FIXTURE_TEARDOWN() 142 EXPECT_EQ(len, sizeof(thr_cmd_rm_loopback_0)); in FIXTURE_TEARDOWN() 153 ssize_t len; in TEST_F() local 155 len = write(self->ctrl_fd, wrong_ctrl_cmd, i); in TEST_F() 156 EXPECT_EQ(len, -1); in TEST_F() 162 ssize_t len; in TEST_F() local [all …]
|
| /linux/drivers/net/wireless/ath/ath5k/ |
| H A 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 …]
|
| /linux/drivers/net/wireless/ath/ath9k/ |
| H A 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 …]
|
| /linux/kernel/module/ |
| H A D | stats.c | 222 atomic_long_add(info->len * 2, &invalid_mod_bytes); in mod_stat_bump_invalid() 233 atomic_long_add(info->len, &invalid_becoming_bytes); in mod_stat_bump_becoming() 277 unsigned int len, size, count_failed = 0; in read_file_mod_stats() local 306 len = scnprintf(buf, size, "%25s\t%u\n", "Mods ever loaded", live_mod_count); in read_file_mod_stats() 308 len += scnprintf(buf + len, size - len, "%25s\t%u\n", "Mods failed on kread", fkreads); in read_file_mod_stats() 310 len += scnprintf(buf + len, size - len, "%25s\t%u\n", "Mods failed on decompress", in read_file_mod_stats() 312 len += scnprintf(buf + len, size - len, "%25s\t%u\n", "Mods failed on becoming", fbecoming); in read_file_mod_stats() 314 len += scnprintf(buf + len, size - len, "%25s\t%u\n", "Mods failed on load", floads); in read_file_mod_stats() 316 len += scnprintf(buf + len, size - len, "%25s\t%lu\n", "Total module size", total_size); in read_file_mod_stats() 317 len += scnprintf(buf + len, size - len, "%25s\t%lu\n", "Total mod text size", text_size); in read_file_mod_stats() [all …]
|
| /linux/drivers/scsi/lpfc/ |
| H A 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 …]
|
| /linux/drivers/pnp/pnpbios/ |
| H A 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 …]
|
| /linux/tools/include/nolibc/ |
| H A D | string.h | 16 static void *malloc(size_t len); 38 void *memmove(void *dst, const void *src, size_t len); 40 void *memmove(void *dst, const void *src, size_t len) in memmove() argument 44 pos = len; in memmove() 52 while (len) { in memmove() 55 len--; in memmove() 63 void *memcpy(void *dst, const void *src, size_t len); 65 void *memcpy(void *dst, const void *src, size_t len) in memcpy() argument 69 while (pos < len) { in memcpy() 81 void *memset(void *dst, int b, size_t len); [all …]
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | test_varlen.c | 47 long len; in handler64_unsigned() local 53 len = bpf_probe_read_kernel_str(payload, MAX_LEN, &buf_in1[0]); in handler64_unsigned() 54 if (len >= 0) { in handler64_unsigned() 55 payload += len; in handler64_unsigned() 56 payload1_len1 = len; in handler64_unsigned() 59 len = bpf_probe_read_kernel_str(payload, MAX_LEN, &buf_in2[0]); in handler64_unsigned() 60 if (len >= 0) { in handler64_unsigned() 61 payload += len; in handler64_unsigned() 62 payload1_len2 = len; in handler64_unsigned() 77 long len; in handler64_signed() local [all …]
|
| /linux/drivers/scsi/fnic/ |
| H A D | fnic_trace.c | 109 int len = 0; in fnic_get_trace_data() local 139 len += scnprintf(fnic_dbgfs_prt->buffer + len, in fnic_get_trace_data() 140 (trace_max_pages * PAGE_SIZE * 3) - len, in fnic_get_trace_data() 180 len += scnprintf(fnic_dbgfs_prt->buffer + len, in fnic_get_trace_data() 181 (trace_max_pages * PAGE_SIZE * 3) - len, in fnic_get_trace_data() 196 return len; in fnic_get_trace_data() 214 int len = 0; in fnic_get_stats_data() local 220 len = scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data() 227 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data() 240 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data() [all …]
|
| /linux/lib/ |
| H A D | seq_buf.c | 38 static bool seq_buf_can_fit(struct seq_buf *s, size_t len) in seq_buf_can_fit() argument 40 return s->len + len <= s->size; in seq_buf_can_fit() 52 unsigned int len = seq_buf_used(s); in seq_buf_print_seq() local 54 return seq_write(m, s->buffer, len); in seq_buf_print_seq() 69 int len; in seq_buf_vprintf() local 73 if (s->len < s->size) { in seq_buf_vprintf() 74 len = vsnprintf(s->buffer + s->len, s->size - s->len, fmt, args); in seq_buf_vprintf() 75 if (s->len + len < s->size) { in seq_buf_vprintf() 76 s->len += len; in seq_buf_vprintf() 119 if (s->size == 0 || s->len == 0) in seq_buf_do_printk() [all …]
|
| /linux/drivers/net/wireless/ath/ath10k/ |
| H A D | debugfs_sta.c | 185 int len = 0; in ath10k_dbg_sta_read_aggr_mode() local 188 len = scnprintf(buf, sizeof(buf) - len, "aggregation mode: %s\n", in ath10k_dbg_sta_read_aggr_mode() 193 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_dbg_sta_read_aggr_mode() 400 int len = 0; in ath10k_dbg_sta_read_peer_debug_trigger() local 403 len = scnprintf(buf, sizeof(buf) - len, in ath10k_dbg_sta_read_peer_debug_trigger() 407 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_dbg_sta_read_peer_debug_trigger() 462 int len = 0; in ath10k_dbg_sta_read_peer_ps_state() local 466 len = scnprintf(buf, sizeof(buf) - len, "%d\n", in ath10k_dbg_sta_read_peer_ps_state() 471 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_dbg_sta_read_peer_ps_state() 548 len += scnprintf(buf + len, buf_len - len, \ [all …]
|
| /linux/net/dccp/ |
| H A D | options.c | |
| /linux/lib/crc/arm64/ |
| H A D | crc32.h | 10 asmlinkage u32 crc32_le_arm64(u32 crc, unsigned char const *p, size_t len); 11 asmlinkage u32 crc32c_le_arm64(u32 crc, unsigned char const *p, size_t len); 12 asmlinkage u32 crc32_be_arm64(u32 crc, unsigned char const *p, size_t len); 14 asmlinkage u32 crc32_le_arm64_4way(u32 crc, unsigned char const *p, size_t len); 15 asmlinkage u32 crc32c_le_arm64_4way(u32 crc, unsigned char const *p, size_t len); 16 asmlinkage u32 crc32_be_arm64_4way(u32 crc, unsigned char const *p, size_t len); 18 static inline u32 crc32_le_arch(u32 crc, const u8 *p, size_t len) in crc32_le_arch() argument 21 return crc32_le_base(crc, p, len); in crc32_le_arch() 23 if (len >= min_len && cpu_have_named_feature(PMULL) && in crc32_le_arch() 26 crc = crc32_le_arm64_4way(crc, p, len); in crc32_le_arch() [all …]
|
| /linux/net/sunrpc/ |
| H A D | xdr.c | 31 unsigned int quadlen = XDR_QUADLEN(obj->len); in xdr_encode_netobj() 34 *p++ = cpu_to_be32(obj->len); in xdr_encode_netobj() 35 memcpy(p, obj->data, obj->len); in xdr_encode_netobj() 36 return p + XDR_QUADLEN(obj->len); in xdr_encode_netobj() 98 void xdr_terminate_string(const struct xdr_buf *buf, const u32 len) in xdr_terminate_string() argument 103 kaddr[buf->page_base + len] = '\0'; in xdr_terminate_string() 160 unsigned int offset, len, remaining; in xdr_buf_to_bvec() local 166 len = min_t(unsigned int, remaining, in xdr_buf_to_bvec() 168 bvec_set_page(bvec++, *pages++, len, offset); in xdr_buf_to_bvec() 169 remaining -= len; in xdr_buf_to_bvec() [all …]
|
| /linux/tools/testing/selftests/net/af_unix/ |
| H A D | test_unix_oob.c | |
| /linux/net/wireless/tests/ |
| H A D | scan.c | 21 u8 len; member 40 { .id = WLAN_EID_EXTENSION, .len = 255, 44 { .id = WLAN_EID_SSID, .len = 2 }, 47 { .id = WLAN_EID_SSID, .len = 2 }, 53 { .id = WLAN_EID_REDUCED_NEIGHBOR_REPORT, .len = 254, }, 54 { .id = WLAN_EID_FRAGMENT, .len = 125, }, 57 { .id = WLAN_EID_SSID, .len = 2 }, 58 { .id = WLAN_EID_FRAGMENT, .len = 125, }, 61 { .id = WLAN_EID_REDUCED_NEIGHBOR_REPORT, .len = 254, }, 62 { .id = WLAN_EID_SSID, .len = 2 }, [all …]
|
| /linux/tools/perf/util/intel-pt-decoder/ |
| H A D | intel-pt-pkt-decoder.c | 73 static int intel_pt_get_long_tnt(const unsigned char *buf, size_t len, in intel_pt_get_long_tnt() argument 79 if (len < 8) in intel_pt_get_long_tnt() 96 static int intel_pt_get_pip(const unsigned char *buf, size_t len, in intel_pt_get_pip() argument 101 if (len < 8) in intel_pt_get_pip() 117 static int intel_pt_get_cbr(const unsigned char *buf, size_t len, in intel_pt_get_cbr() argument 120 if (len < 4) in intel_pt_get_cbr() 127 static int intel_pt_get_vmcs(const unsigned char *buf, size_t len, in intel_pt_get_vmcs() argument 130 if (len < 7) in intel_pt_get_vmcs() 146 static int intel_pt_get_psb(const unsigned char *buf, size_t len, in intel_pt_get_psb() argument 151 if (len < 16) in intel_pt_get_psb() [all …]
|
| /linux/drivers/parisc/ |
| H A 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 …]
|
| /linux/arch/arm64/kvm/vgic/ |
| H A D | vgic-mmio.h | 10 unsigned int len; member 15 unsigned int len); 17 gpa_t addr, unsigned int len); 21 unsigned int len, unsigned long val); 23 gpa_t addr, unsigned int len, 27 unsigned int len); 30 unsigned int len, unsigned long val); 32 gpa_t addr, unsigned int len, 71 .len = bpi * 1024 / 8, \ 83 .len = length, \ [all …]
|
| /linux/drivers/net/ethernet/intel/fm10k/ |
| H A 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 …]
|
| /linux/fs/lockd/ |
| H A D | svcxdr.h | 51 u32 len; in svcxdr_decode_string() local 53 if (xdr_stream_decode_u32(xdr, &len) < 0) in svcxdr_decode_string() 55 if (len > NLM_MAXSTRLEN) in svcxdr_decode_string() 57 p = xdr_inline_decode(xdr, len); in svcxdr_decode_string() 60 *data_len = len; in svcxdr_decode_string() 76 u32 len; in svcxdr_decode_cookie() local 78 if (xdr_stream_decode_u32(xdr, &len) < 0) in svcxdr_decode_cookie() 80 if (len > NLM_MAXCOOKIELEN) in svcxdr_decode_cookie() 82 if (!len) in svcxdr_decode_cookie() 85 p = xdr_inline_decode(xdr, len); in svcxdr_decode_cookie() [all …]
|
| /linux/drivers/parport/ |
| H A D | procfs.c | 42 int len = 0; in do_active_device() local 54 len += scnprintf(buffer, sizeof(buffer), "%s\n", dev->name); in do_active_device() 58 if(!len) { in do_active_device() 59 len += scnprintf(buffer, sizeof(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 …]
|
| /linux/rust/kernel/ |
| H A D | uaccess.rs | 246 pub fn len(&self) -> usize { in len() method 266 let len = out.len(); in read_raw() localVariable 268 if len > self.length { in read_raw() 273 let res = unsafe { bindings::copy_from_user(out_ptr, self.ptr.as_const_ptr(), len) }; in read_raw() 277 self.ptr = self.ptr.wrapping_byte_add(len); in read_raw() 278 self.length -= len; in read_raw() 300 let end = offset.saturating_add(self.len()).min(out.len()); in read_slice_partial() 307 Ok(dst.len()) in read_slice_partial() 340 let len = size_of::<T>(); in read() localVariable 341 if len > self.length { in read() [all …]
|
| /linux/drivers/scsi/qla2xxx/ |
| H A 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 …]
|