Home
last modified time | relevance | path

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

12345678910>>...198

/linux/tools/testing/selftests/net/
H A Dproc_net_pktgen.c116 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 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 …]
/linux/drivers/net/wireless/ath/ath9k/
H A 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 …]
/linux/drivers/scsi/lpfc/
H A Dlpfc_debugfs.c149 int i, index, len, enable; in lpfc_debugfs_disc_trc_data() local
161 len = 0; in lpfc_debugfs_disc_trc_data()
172 len += scnprintf(buf+len, size-len, buffer, in lpfc_debugfs_disc_trc_data()
183 len += scnprintf(buf+len, size-len, buffer, in lpfc_debugfs_disc_trc_data()
190 return len; in lpfc_debugfs_disc_trc_data()
215 int i, index, len, enable; in lpfc_debugfs_slow_ring_trc_data() local
227 len = 0; in lpfc_debugfs_slow_ring_trc_data()
238 len += scnprintf(buf+len, size-len, buffer, in lpfc_debugfs_slow_ring_trc_data()
249 len += scnprintf(buf+len, size-len, buffer, in lpfc_debugfs_slow_ring_trc_data()
256 return len; in lpfc_debugfs_slow_ring_trc_data()
[all …]
/linux/drivers/pnp/pnpbios/
H A 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 …]
/linux/tools/include/nolibc/
H A Dstring.h16 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 Dtest_varlen.c47 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/net/dccp/
H A Doptions.c
/linux/net/sunrpc/
H A Dxdr.c31 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()
163 unsigned int offset, len, remaining; in xdr_buf_to_bvec() local
169 len = min_t(unsigned int, remaining, in xdr_buf_to_bvec()
173 bvec_set_page(bvec++, *pages++, len, offset); in xdr_buf_to_bvec()
174 remaining -= len; in xdr_buf_to_bvec()
[all …]
/linux/drivers/net/wireless/ath/ath12k/
H A Ddebugfs.c418 static int ath12k_tpc_fill_pream(struct ath12k *ar, char *buf, int buf_len, int len, in ath12k_tpc_fill_pream() argument
475 len += scnprintf(buf + len, buf_len - len, in ath12k_tpc_fill_pream()
481 len += scnprintf(buf + len, in ath12k_tpc_fill_pream()
482 buf_len - len, in ath12k_tpc_fill_pream()
492 len += scnprintf(buf + len, in ath12k_tpc_fill_pream()
493 buf_len - len, "\tNA"); in ath12k_tpc_fill_pream()
495 len += scnprintf(buf + len, in ath12k_tpc_fill_pream()
496 buf_len - len, "\t%d", in ath12k_tpc_fill_pream()
501 len += scnprintf(buf + len, buf_len - len, "\n"); in ath12k_tpc_fill_pream()
509 return len; in ath12k_tpc_fill_pream()
[all …]
/linux/lib/crc/arm64/
H A Dcrc32.h10 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/tools/testing/selftests/net/af_unix/
H A Dtest_unix_oob.c
/linux/tools/perf/util/intel-pt-decoder/
H A Dintel-pt-pkt-decoder.c73 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 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 …]
/linux/arch/arm64/kvm/vgic/
H A Dvgic-mmio.h10 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 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 …]
/linux/drivers/parport/
H A Dprocfs.c42 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 Duaccess.rs246 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/gpu/drm/msm/disp/dpu1/catalog/
H A Ddpu_13_0_kaanapali.h22 .base = 0, .len = 0x494,
31 .base = 0x1f000, .len = 0x1000,
35 .base = 0x20000, .len = 0x1000,
39 .base = 0x21000, .len = 0x1000,
43 .base = 0x22000, .len = 0x1000,
47 .base = 0x23000, .len = 0x1000,
51 .base = 0x24000, .len = 0x1000,
59 .base = 0x2b000, .len = 0x84,
66 .base = 0x34000, .len = 0x84,
73 .base = 0x3d000, .len = 0x84,
[all …]
/linux/tools/perf/util/
H A Dstrbuf.c22 sb->alloc = sb->len = 0; in strbuf_init()
41 *sz = sb->len; in strbuf_detach()
49 size_t nr = sb->len + extra + 1; in strbuf_grow()
54 if (nr <= sb->len) in strbuf_grow()
79 sb->buf[sb->len++] = c; in strbuf_addch()
80 sb->buf[sb->len] = '\0'; in strbuf_addch()
84 int strbuf_add(struct strbuf *sb, const void *data, size_t len) in strbuf_add() argument
86 int ret = strbuf_grow(sb, len); in strbuf_add()
90 memcpy(sb->buf + sb->len, data, len); in strbuf_add()
91 return strbuf_setlen(sb, sb->len + len); in strbuf_add()
[all …]
/linux/net/wireless/tests/
H A Dscan.c21 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/arch/riscv/kernel/
H A Dpatch.c22 size_t len; member
69 static int __patch_insn_set(void *addr, u8 c, size_t len) in __patch_insn_set() argument
71 bool across_pages = (offset_in_page(addr) + len) > PAGE_SIZE; in __patch_insn_set()
77 if (len + offset_in_page(addr) > 2 * PAGE_SIZE) in __patch_insn_set()
93 memset(waddr, c, len); in __patch_insn_set()
101 (unsigned long)waddr + len); in __patch_insn_set()
114 static int __patch_insn_write(void *addr, const void *insn, size_t len) in __patch_insn_write() argument
116 bool across_pages = (offset_in_page(addr) + len) > PAGE_SIZE; in __patch_insn_write()
123 if (len + offset_in_page(addr) > 2 * PAGE_SIZE) in __patch_insn_write()
147 ret = copy_to_kernel_nofault(waddr, insn, len); in __patch_insn_write()
[all …]
/linux/arch/m68k/kernel/
H A Dsys_m68k.c40 asmlinkage long sys_mmap2(unsigned long addr, unsigned long len, in sys_mmap2() argument
49 return ksys_mmap_pgoff(addr, len, prot, flags, fd, pgoff); in sys_mmap2()
68 cache_flush_040 (unsigned long addr, int scope, int cache, unsigned long len) in cache_flush_040() argument
105 len = (len + (addr & 15) + 15) >> 4; in cache_flush_040()
109 if (len <= tmp) in cache_flush_040()
112 len -= tmp; in cache_flush_040()
118 if (len <= tmp) in cache_flush_040()
121 len -= tmp; in cache_flush_040()
123 len = (len + 15) >> 4; in cache_flush_040()
126 while (len--) in cache_flush_040()
[all …]
/linux/tools/testing/selftests/powerpc/ptrace/
H A Dptrace-hwbreak.c65 static void write_var(int len) in write_var() argument
72 switch (len) { in write_var()
92 static void read_var(int len) in read_var() argument
99 switch (len) { in read_var()
119 int len = 0; in test_workload() local
130 for (len = 1; len <= sizeof(glvar); len <<= 1) in test_workload()
131 write_var(len); in test_workload()
134 for (len = 1; len <= sizeof(glvar); len <<= 1) in test_workload()
135 read_var(len); in test_workload()
138 for (len = 1; len <= sizeof(glvar); len <<= 1) { in test_workload()
[all …]
/linux/drivers/platform/surface/aggregator/
H A 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 …]

12345678910>>...198