| /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/drivers/scsi/lpfc/ |
| H A D | lpfc_debugfs.c | 149 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 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/net/dccp/ |
| H A D | options.c | |
| /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() 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, offse in xdr_buf_to_bvec() 211 xdr_buf_to_sg(const struct xdr_buf * buf,unsigned int offset,unsigned int len,struct scatterlist * sg,unsigned int nsg) xdr_buf_to_sg() argument 295 xdr_buf_sg_nents(const struct xdr_buf * buf,unsigned int offset,unsigned int len) xdr_buf_sg_nents() argument 352 xdr_buf_to_sg_alloc(const struct xdr_buf * buf,unsigned int offset,unsigned int len,struct scatterlist * sg_head,unsigned int sg_head_nents,struct scatterlist ** sg_overflow,gfp_t gfp) xdr_buf_to_sg_alloc() argument 404 xdr_inline_pages(struct xdr_buf * xdr,unsigned int offset,struct page ** pages,unsigned int base,unsigned int len) xdr_inline_pages() argument 443 _shift_data_left_pages(struct page ** pages,size_t pgto_base,size_t pgfrom_base,size_t len) _shift_data_left_pages() argument 508 _shift_data_right_pages(struct page ** pages,size_t pgto_base,size_t pgfrom_base,size_t len) _shift_data_right_pages() argument 571 _copy_to_pages(struct page ** pages,size_t pgbase,const char * p,size_t len) _copy_to_pages() argument 618 _copy_from_pages(char * p,struct page ** pages,size_t pgbase,size_t len) _copy_from_pages() argument 651 xdr_buf_iov_zero(const struct kvec * iov,unsigned int base,unsigned int len) xdr_buf_iov_zero() argument 667 xdr_buf_pages_zero(const struct xdr_buf * buf,unsigned int pgbase,unsigned int len) xdr_buf_pages_zero() argument 734 xdr_buf_try_expand(struct xdr_buf * buf,unsigned int len) xdr_buf_try_expand() argument 761 xdr_buf_tail_copy_right(const struct xdr_buf * buf,unsigned int base,unsigned int len,unsigned int shift) xdr_buf_tail_copy_right() argument 775 xdr_buf_pages_copy_right(const struct xdr_buf * buf,unsigned int base,unsigned int len,unsigned int shift) xdr_buf_pages_copy_right() argument 808 xdr_buf_head_copy_right(const struct xdr_buf * buf,unsigned int base,unsigned int len,unsigned int shift) xdr_buf_head_copy_right() argument 855 xdr_buf_tail_shift_right(const struct xdr_buf * buf,unsigned int base,unsigned int len,unsigned int shift) xdr_buf_tail_shift_right() argument 866 xdr_buf_pages_shift_right(const struct xdr_buf * buf,unsigned int base,unsigned int len,unsigned int shift) xdr_buf_pages_shift_right() argument 882 xdr_buf_head_shift_right(const struct xdr_buf * buf,unsigned int base,unsigned int len,unsigned int shift) xdr_buf_head_shift_right() argument 901 xdr_buf_tail_copy_left(const struct xdr_buf * buf,unsigned int base,unsigned int len,unsigned int shift) xdr_buf_tail_copy_left() argument 945 xdr_buf_pages_copy_left(const struct xdr_buf * buf,unsigned int base,unsigned int len,unsigned int shift) xdr_buf_pages_copy_left() argument 978 xdr_buf_tail_shift_left(const struct xdr_buf * buf,unsigned int base,unsigned int len,unsigned int shift) xdr_buf_tail_shift_left() argument 987 xdr_buf_pages_shift_left(const struct xdr_buf * buf,unsigned int base,unsigned int len,unsigned int shift) xdr_buf_pages_shift_left() argument 1004 xdr_buf_head_shift_left(const struct xdr_buf * buf,unsigned int base,unsigned int len,unsigned int shift) xdr_buf_head_shift_left() argument 1040 xdr_shrink_bufhead(struct xdr_buf * buf,unsigned int len) xdr_shrink_bufhead() argument 1069 xdr_shrink_pagelen(struct xdr_buf * buf,unsigned int len) xdr_shrink_pagelen() argument 1155 size_t len; xdr_init_encode() local 1364 xdr_truncate_encode(struct xdr_stream * xdr,size_t len) xdr_truncate_encode() argument 1420 xdr_truncate_decode(struct xdr_stream * xdr,size_t len) xdr_truncate_decode() argument 1470 xdr_write_pages(struct xdr_stream * xdr,struct page ** pages,unsigned int base,unsigned int len) xdr_write_pages() argument 1498 xdr_set_iov(struct xdr_stream * xdr,struct kvec * iov,unsigned int base,unsigned int len) xdr_set_iov() argument 1512 xdr_set_tail_base(struct xdr_stream * xdr,unsigned int base,unsigned int len) xdr_set_tail_base() argument 1529 xdr_set_page_base(struct xdr_stream * xdr,unsigned int base,unsigned int len) xdr_set_page_base() argument 1570 xdr_set_page(struct xdr_stream * xdr,unsigned int base,unsigned int len) xdr_set_page() argument 1632 xdr_init_decode_pages(struct xdr_stream * xdr,struct xdr_buf * buf,struct page ** pages,unsigned int len) xdr_init_decode_pages() argument 1735 xdr_align_pages(struct xdr_stream * xdr,unsigned int len) xdr_align_pages() argument 1771 xdr_read_pages(struct xdr_stream * xdr,unsigned int len) xdr_read_pages() argument 1799 xdr_set_pagelen(struct xdr_stream * xdr,unsigned int len) xdr_set_pagelen() argument 1828 xdr_enter_page(struct xdr_stream * xdr,unsigned int len) xdr_enter_page() argument 1866 xdr_buf_subsegment(const struct xdr_buf * buf,struct xdr_buf * subbuf,unsigned int base,unsigned int len) xdr_buf_subsegment() argument 1932 unsigned int remaining, len; xdr_stream_subsegment() local 2024 xdr_buf_trim(struct xdr_buf * buf,unsigned int len) xdr_buf_trim() argument 2056 __read_bytes_from_xdr_buf(const struct xdr_buf * subbuf,void * obj,unsigned int len) __read_bytes_from_xdr_buf() argument 2074 read_bytes_from_xdr_buf(const struct xdr_buf * buf,unsigned int base,void * obj,unsigned int len) read_bytes_from_xdr_buf() argument 2088 __write_bytes_to_xdr_buf(const struct xdr_buf * subbuf,void * obj,unsigned int len) __write_bytes_to_xdr_buf() argument 2106 write_bytes_to_xdr_buf(const struct xdr_buf * buf,unsigned int base,void * obj,unsigned int len) write_bytes_to_xdr_buf() argument 2403 ssize_t ret, len; xdr_stream_decode_opaque_auth() local 2431 ssize_t ret, len; xdr_stream_encode_opaque_auth() local [all...] |
| /linux/drivers/net/wireless/ath/ath12k/ |
| H A D | debugfs.c | 418 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, "\tN in ath12k_tpc_fill_pream() 514 ath12k_tpc_stats_print(struct ath12k * ar,struct wmi_tpc_stats_arg * tpc_stats,char * buf,size_t len,enum wmi_halphy_ctrl_path_stats_id type) ath12k_tpc_stats_print() argument 710 size_t len = 0; ath12k_tpc_stats_fill() local 788 size_t len = strlen(buf); ath12k_read_tpc_stats() local 890 int len = 0; ath12k_read_extd_rx_stats() local 909 size_t len = 0, buf_len = (PAGE_SIZE * 2); ath12k_open_link_stats() local 1002 size_t len = strlen(buf); ath12k_read_link_stats() local 1032 int len = 0, i, j, ret; ath12k_debugfs_dump_device_dp_stats() local 1322 size_t len = strlen(buf); ath12k_read_vdev_stats() local 1389 size_t len = strlen(buf); ath12k_read_bcn_stats() local 1450 size_t len = strlen(buf); ath12k_read_pdev_stats() local [all...] |
| /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/tools/testing/selftests/net/af_unix/ |
| H A D | test_unix_oob.c | |
| /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 | 59 int i, len = 0; in print_eisa_id() 63 u_int8_t c = get_8(buf + len); in print_eisa_id() 69 res->start = mem_parent->start + get_24(buf + len + 2); in print_eisa_id() 70 res->end = res->start + get_16(buf + len + 5) * 1024; in print_eisa_id() 80 len += 7; in configure_memory() 85 return len; in configure_memory() 91 int i, len = 0; in configure_memory() 94 u_int8_t c = get_8(buf + len); in configure_memory() 103 len += 2; in configure_memory() 111 return len; in configure_memory() 79 int len; configure_memory() local 117 int len; configure_irq() local 148 int len; configure_dma() local 170 int len; configure_port() local 211 int len=0; configure_port_init() local 276 int len; configure_choise() local 290 int len; configure_type_string() local [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 [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/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 in do_autoprobe() local 121 int len = 0; do_hardware_base_addr() local 148 int len = 0; do_hardware_irq() local 175 int len = 0; do_hardware_dma() local 202 int len = 0; do_hardware_modes() local [all...] |
| /linux/rust/kernel/ |
| H A D | uaccess.rs | 97 /// fn bytes_add_one(uptr: UserPtr, len: usize) -> Result { 98 /// let (read, mut write) = UserSlice::new(uptr, len).reader_writer(); 119 /// fn is_valid(uptr: UserPtr, len: usize) -> Result<bool> { 120 /// let read = UserSlice::new(uptr, len).reader(); 129 /// fn get_bytes_if_valid(uptr: UserPtr, len: usize) -> Result<KVec<u8>> { 130 /// if !is_valid(uptr, len)? { 134 /// let read = UserSlice::new(uptr, len).reader(); 246 pub fn len(&self) -> usize { in len() method 266 let len = out.len(); in read_raw() localVariable 340 let len = size_of::<T>(); read() localVariable 371 let len = self.length; read_all() localVariable 406 let mut len = raw_strncpy_from_user(dst, self.ptr)?; strcpy_into_buf() localVariable 455 pub fn len(&self) -> usize { len() method 534 let len = alloc.size(); write_dma() localVariable 603 let len = size_of::<T>(); write() localVariable 643 let len = dst.len() as isize; raw_strncpy_from_user() localVariable [all...] |
| /linux/drivers/gpu/drm/msm/disp/dpu1/catalog/ |
| H A D | dpu_13_0_kaanapali.h | 22 .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 D | strbuf.c | 23 sb->alloc = sb->len = 0; in strbuf_init() 42 *sz = sb->len; in strbuf_detach() 50 size_t nr = sb->len + extra + 1; in strbuf_grow() 55 if (nr <= sb->len) in strbuf_grow() 83 sb->buf[sb->len++] = c; 84 sb->buf[sb->len] = '\0'; in strbuf_add() argument 88 int strbuf_add(struct strbuf *sb, const void *data, size_t len) in strbuf_add() 90 int ret = strbuf_grow(sb, len); in strbuf_add() 94 memcpy(sb->buf + sb->len, data, len); in strbuf_addv() 96 int len, ret; strbuf_addv() local [all...] |
| /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/testing/selftests/powerpc/ptrace/ |
| H A D | ptrace-hwbreak.c | 65 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/arch/riscv/kernel/ |
| H A D | patch.c | 22 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 D | sys_m68k.c | 40 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/fs/ntfs3/ |
| H A D | run.c | 23 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 …]
|