Home
last modified time | relevance | path

Searched full:len (Results 1 – 25 of 4538) sorted by relevance

12345678910>>...182

/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/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/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/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/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/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()
95 * @len: length of string, in bytes
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()
[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/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/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/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/tools/testing/selftests/net/af_unix/
H A Dtest_unix_oob.c
/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/iio/imu/bno055/
H A Dbno055_ser_trace.h12 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);
23 TP_printk("len: %d, data: = %*ph",
24 __entry->len, __entry->len, __get_dynamic_array(chunk)
64 TP_PROTO(int addr, size_t len),
65 TP_ARGS(addr, len),
[all …]
/linux/net/dccp/
H A Doptions.c
/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
H A Dfwil.c97 brcmf_fil_cmd_data(struct brcmf_if *ifp, u32 cmd, void *data, u32 len, bool set) in brcmf_fil_cmd_data() argument
108 len = min_t(uint, len, BRCMF_DCMD_MAXLEN); in brcmf_fil_cmd_data()
111 data, len, &fwerr); in brcmf_fil_cmd_data()
114 data, len, &fwerr); in brcmf_fil_cmd_data()
130 brcmf_fil_cmd_data_set(struct brcmf_if *ifp, u32 cmd, void *data, u32 len) in brcmf_fil_cmd_data_set() argument
136 brcmf_dbg(FIL, "ifidx=%d, cmd=%d, len=%d\n", ifp->ifidx, cmd, len); in brcmf_fil_cmd_data_set()
138 min_t(uint, len, MAX_HEX_DUMP_LEN), "data\n"); in brcmf_fil_cmd_data_set()
140 err = brcmf_fil_cmd_data(ifp, cmd, data, len, true); in brcmf_fil_cmd_data_set()
148 brcmf_fil_cmd_data_get(struct brcmf_if *ifp, u32 cmd, void *data, u32 len) in brcmf_fil_cmd_data_get() argument
153 err = brcmf_fil_cmd_data(ifp, cmd, data, len, false); in brcmf_fil_cmd_data_get()
[all …]
/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/arch/mips/cavium-octeon/
H A Docteon-memcpy.S23 #define len a2 macro
28 * memcpy copies len bytes from src to dst and sets v0 to dst.
35 * __copy_user copies up to len bytes from src to dst and sets a2 (len) to
67 * The exception handlers for stores adjust len (if necessary) and return.
144 * __copy_user sets len to 0 for success; else to an upper bound of
149 LEAF(memcpy) /* a0=dst a1=src a2=len */
158 * Note: dst & src may be unaligned, len may be 0
166 sltu t0, len, NBYTES # Check if < 1 word
170 sltu t0, len, 4*NBYTES # Check if < 4 words
172 sltu t0, len, 8*NBYTES # Check if < 8 words
[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/include/linux/
H A Diov_iter.h15 typedef size_t (*iov_step_f)(void *iter_base, size_t progress, size_t len,
17 typedef size_t (*iov_ustep_f)(void __user *iter_base, size_t progress, size_t len,
24 size_t iterate_ubuf(struct iov_iter *iter, size_t len, void *priv, void *priv2, in iterate_ubuf() argument
30 remain = step(base + iter->iov_offset, 0, len, priv, priv2); in iterate_ubuf()
31 progress = len - remain; in iterate_ubuf()
41 size_t iterate_iovec(struct iov_iter *iter, size_t len, void *priv, void *priv2, in iterate_iovec() argument
49 size_t part = min(len, p->iov_len - skip); in iterate_iovec()
56 len -= consumed; in iterate_iovec()
62 } while (len); in iterate_iovec()
75 size_t iterate_kvec(struct iov_iter *iter, size_t len, void *priv, void *priv2, in iterate_kvec() argument
[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/arch/alpha/lib/
H A Dcsum_partial_copy.c85 long len) in csum_partial_cfu_aligned() argument
90 while (len >= 0) { in csum_partial_cfu_aligned()
97 len -= 8; in csum_partial_cfu_aligned()
102 len += 8; in csum_partial_cfu_aligned()
104 if (len) { in csum_partial_cfu_aligned()
109 mskql(word, len, word); in csum_partial_cfu_aligned()
111 mskqh(tmp, len, tmp); in csum_partial_cfu_aligned()
127 long len) in csum_partial_cfu_dest_aligned() argument
131 unsigned long lastsrc = 7+len+(unsigned long)src; in csum_partial_cfu_dest_aligned()
137 while (len >= 0) { in csum_partial_cfu_dest_aligned()
[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/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 },
51 .desc = "fragments are ignored if previous len not 255",
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, },
[all …]
/linux/tools/power/acpi/tools/acpidbg/
H A Dacpidbg.c126 int len; in acpi_aml_read() local
129 len = circ_space_to_end(crc); in acpi_aml_read()
130 len = read(fd, p, len); in acpi_aml_read()
131 if (len < 0) in acpi_aml_read()
133 else if (len > 0) in acpi_aml_read()
134 crc->head = (crc->head + len) & (ACPI_AML_BUF_SIZE - 1); in acpi_aml_read()
135 return len; in acpi_aml_read()
141 int len; in acpi_aml_read_batch_cmd() local
145 len = circ_space_to_end(crc); in acpi_aml_read_batch_cmd()
146 if (len > remained) { in acpi_aml_read_batch_cmd()
[all …]
/linux/fs/ntfs3/
H A Drun.c23 CLST len; /* Length in clusters. */ member
55 if (vcn < r->vcn + r->len) { in run_lookup()
61 if (vcn >= r->vcn + r->len) { in run_lookup()
79 } else if (vcn >= r->vcn + r->len) { in run_lookup()
105 CLST end = r->vcn + r->len; in run_consolidate()
120 if (n->len <= dl) in run_consolidate()
123 n->len -= dl; in run_consolidate()
145 if (n->lcn != SPARSE_LCN && n->lcn != r->lcn + r->len) in run_consolidate()
152 r->len += n->len - dl; in run_consolidate()
181 next_vcn = r->vcn + r->len; in run_is_mapped_full()
[all …]

12345678910>>...182