/Linux-v5.15/arch/powerpc/kernel/ |
D | crash_dump.c | 71 static size_t copy_oldmem_vaddr(void *vaddr, char *buf, size_t csize, in copy_oldmem_vaddr() argument 75 if (copy_to_user((char __user *)buf, (vaddr + offset), csize)) in copy_oldmem_vaddr() 78 memcpy(buf, (vaddr + offset), csize); in copy_oldmem_vaddr() 80 return csize; in copy_oldmem_vaddr() 97 size_t csize, unsigned long offset, int userbuf) in copy_oldmem_page() argument 102 if (!csize) in copy_oldmem_page() 105 csize = min_t(size_t, csize, PAGE_SIZE); in copy_oldmem_page() 108 if (memblock_is_region_memory(paddr, csize)) { in copy_oldmem_page() 110 csize = copy_oldmem_vaddr(vaddr, buf, csize, offset, userbuf); in copy_oldmem_page() 113 csize = copy_oldmem_vaddr(vaddr, buf, csize, offset, userbuf); in copy_oldmem_page() [all …]
|
/Linux-v5.15/arch/x86/kernel/ |
D | crash_dump_64.c | 14 static ssize_t __copy_oldmem_page(unsigned long pfn, char *buf, size_t csize, in __copy_oldmem_page() argument 20 if (!csize) in __copy_oldmem_page() 32 if (copy_to_user((void __user *)buf, vaddr + offset, csize)) { in __copy_oldmem_page() 37 memcpy(buf, vaddr + offset, csize); in __copy_oldmem_page() 41 return csize; in __copy_oldmem_page() 57 ssize_t copy_oldmem_page(unsigned long pfn, char *buf, size_t csize, in copy_oldmem_page() argument 60 return __copy_oldmem_page(pfn, buf, csize, offset, userbuf, false); in copy_oldmem_page() 68 ssize_t copy_oldmem_page_encrypted(unsigned long pfn, char *buf, size_t csize, in copy_oldmem_page_encrypted() argument 71 return __copy_oldmem_page(pfn, buf, csize, offset, userbuf, true); in copy_oldmem_page_encrypted()
|
D | crash_dump_32.c | 45 ssize_t copy_oldmem_page(unsigned long pfn, char *buf, size_t csize, in copy_oldmem_page() argument 50 if (!csize) in copy_oldmem_page() 59 memcpy(buf, vaddr + offset, csize); in copy_oldmem_page() 61 if (copy_to_user(buf, vaddr + offset, csize)) in copy_oldmem_page() 62 csize = -EFAULT; in copy_oldmem_page() 67 return csize; in copy_oldmem_page()
|
/Linux-v5.15/arch/mips/kernel/ |
D | crash_dump.c | 19 size_t csize, unsigned long offset, int userbuf) in copy_oldmem_page() argument 23 if (!csize) in copy_oldmem_page() 29 memcpy(buf, vaddr + offset, csize); in copy_oldmem_page() 31 if (copy_to_user(buf, vaddr + offset, csize)) in copy_oldmem_page() 32 csize = -EFAULT; in copy_oldmem_page() 37 return csize; in copy_oldmem_page()
|
/Linux-v5.15/arch/ia64/kernel/ |
D | crash_dump.c | 36 size_t csize, unsigned long offset, int userbuf) in copy_oldmem_page() argument 40 if (!csize) in copy_oldmem_page() 44 if (copy_to_user(buf, (vaddr + offset), csize)) { in copy_oldmem_page() 48 memcpy(buf, (vaddr + offset), csize); in copy_oldmem_page() 49 return csize; in copy_oldmem_page()
|
/Linux-v5.15/arch/sh/kernel/ |
D | crash_dump.c | 27 size_t csize, unsigned long offset, int userbuf) in copy_oldmem_page() argument 31 if (!csize) in copy_oldmem_page() 37 if (copy_to_user(buf, (vaddr + offset), csize)) { in copy_oldmem_page() 42 memcpy(buf, (vaddr + offset), csize); in copy_oldmem_page() 45 return csize; in copy_oldmem_page()
|
/Linux-v5.15/arch/arm/kernel/ |
D | crash_dump.c | 31 size_t csize, unsigned long offset, in copy_oldmem_page() argument 36 if (!csize) in copy_oldmem_page() 44 if (copy_to_user(buf, vaddr + offset, csize)) { in copy_oldmem_page() 49 memcpy(buf, vaddr + offset, csize); in copy_oldmem_page() 53 return csize; in copy_oldmem_page()
|
/Linux-v5.15/arch/riscv/kernel/ |
D | crash_dump.c | 24 size_t csize, unsigned long offset, in copy_oldmem_page() argument 29 if (!csize) in copy_oldmem_page() 37 if (copy_to_user((char __user *)buf, vaddr + offset, csize)) { in copy_oldmem_page() 42 memcpy(buf, vaddr + offset, csize); in copy_oldmem_page() 45 return csize; in copy_oldmem_page()
|
/Linux-v5.15/arch/arm64/kernel/ |
D | crash_dump.c | 29 size_t csize, unsigned long offset, in copy_oldmem_page() argument 34 if (!csize) in copy_oldmem_page() 42 if (copy_to_user((char __user *)buf, vaddr + offset, csize)) { in copy_oldmem_page() 47 memcpy(buf, vaddr + offset, csize); in copy_oldmem_page() 52 return csize; in copy_oldmem_page()
|
/Linux-v5.15/fs/jffs2/ |
D | read.c | 55 crc, je32_to_cpu(ri->dsize), je32_to_cpu(ri->csize), in jffs2_read_dnode() 66 je32_to_cpu(ri->csize)) { in jffs2_read_dnode() 67 ri->dsize = ri->csize; in jffs2_read_dnode() 68 ri->csize = cpu_to_je32(0); in jffs2_read_dnode() 93 readbuf = kmalloc(je32_to_cpu(ri->csize), GFP_KERNEL); in jffs2_read_dnode() 113 jffs2_dbg(2, "Read %d bytes to %p\n", je32_to_cpu(ri->csize), in jffs2_read_dnode() 116 je32_to_cpu(ri->csize), &readlen, readbuf); in jffs2_read_dnode() 118 if (!ret && readlen != je32_to_cpu(ri->csize)) in jffs2_read_dnode() 123 crc = crc32(0, readbuf, je32_to_cpu(ri->csize)); in jffs2_read_dnode() 133 je32_to_cpu(ri->csize), readbuf, in jffs2_read_dnode() [all …]
|
D | readinode.c | 40 BUG_ON(tn->csize == 0); in check_node_data() 44 len = tn->csize; in check_node_data() 51 if (adj >= tn->csize) { in check_node_data() 53 ref_offset(ref), tn->csize, ofs); in check_node_data() 62 ref_offset(ref), tn->csize, tn->partial_crc, tn->data_crc, ofs - len, ofs, len); in check_node_data() 69 JFFS2_WARNING("MTD point returned len too short: %zu instead of %u.\n", retlen, tn->csize); in check_node_data() 718 uint32_t len, csize; in read_dnode() local 740 csize = je32_to_cpu(rd->csize); in read_dnode() 747 unlikely(PAD(je32_to_cpu(rd->csize) + sizeof(*rd)) != PAD(je32_to_cpu(rd->totlen)))) { in read_dnode() 754 if (jffs2_is_writebuffered(c) && csize != 0) { in read_dnode() [all …]
|
/Linux-v5.15/drivers/of/ |
D | device.c | 246 ssize_t csize; in of_device_get_modalias() local 254 csize = snprintf(str, len, "of:N%pOFn%c%s", dev->of_node, 'T', in of_device_get_modalias() 256 tsize = csize; in of_device_get_modalias() 257 len -= csize; in of_device_get_modalias() 259 str += csize; in of_device_get_modalias() 262 csize = strlen(compat) + 1; in of_device_get_modalias() 263 tsize += csize; in of_device_get_modalias() 264 if (csize > len) in of_device_get_modalias() 267 csize = snprintf(str, len, "C%s", compat); in of_device_get_modalias() 273 len -= csize; in of_device_get_modalias() [all …]
|
/Linux-v5.15/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_blit.c | 291 ssize_t csize, byte_len; in vmw_diff_memcpy() local 297 csize = vmw_find_first_diff(dest, src, n, diff->cpp); in vmw_diff_memcpy() 298 if (csize < n) { in vmw_diff_memcpy() 299 vmw_adjust_rect(diff, csize); in vmw_diff_memcpy() 306 diff->line_offset += csize; in vmw_diff_memcpy() 307 dest += csize; in vmw_diff_memcpy() 308 src += csize; in vmw_diff_memcpy() 309 n -= csize; in vmw_diff_memcpy() 310 csize = vmw_find_last_diff(dest, src, n, diff->cpp); in vmw_diff_memcpy() 311 if (csize >= 0) { in vmw_diff_memcpy() [all …]
|
/Linux-v5.15/tools/perf/util/ |
D | genelf.c | 104 size_t csize __maybe_unused) in gen_build_id() 128 size_t csize) in gen_build_id() argument 133 SHA1(code, csize, (unsigned char *)note->build_id); in gen_build_id() 139 gen_build_id(struct buildid_note *note, unsigned long load_addr, const void *code, size_t csize) in gen_build_id() argument 148 MD5_Update(&context, code, csize); in gen_build_id() 242 const void *code, int csize, in jit_write_elf() argument 303 d->d_size = csize; in jit_write_elf() 322 eh_frame_base_offset = ALIGN_8(GEN_ELF_TEXT_OFFSET + csize); in jit_write_elf() 366 symtab[1].st_size = csize; in jit_write_elf() 460 gen_build_id(&bnote, load_addr, code, csize); in jit_write_elf()
|
D | jitdump.c | 82 int csize, in jit_emit_elf() argument 104 ret = jit_write_elf(fd, code_addr, sym, (const void *)code, csize, debug, nr_debug_entries, in jit_emit_elf() 441 int ret, csize, usize; in jit_repipe_code_load() local 451 csize = jr->load.code_size; in jit_repipe_code_load() 455 code = (unsigned long)jr + jr->load.p.total_size - csize; in jit_repipe_code_load() 473 …ret = jit_emit_elf(jd, filename, sym, addr, (const void *)uaddr, csize, jd->debug_data, jd->nr_deb… in jit_repipe_code_load() 502 event->mmap2.len = usize ? ALIGN_8(csize) + usize : csize; in jit_repipe_code_load()
|
D | genelf.h | 7 const void *code, int csize, void *debug, int nr_debug_entries,
|
/Linux-v5.15/drivers/crypto/nx/ |
D | nx-aes-ccm.c | 104 static int set_msg_len(u8 *block, unsigned int msglen, int csize) in set_msg_len() argument 108 memset(block, 0, csize); in set_msg_len() 109 block += csize; in set_msg_len() 111 if (csize >= 4) in set_msg_len() 112 csize = 4; in set_msg_len() 113 else if (msglen > (unsigned int)(1 << (8 * csize))) in set_msg_len() 117 memcpy(block - csize, (u8 *)&data + 4 - csize, csize); in set_msg_len()
|
/Linux-v5.15/arch/m68k/atari/ |
D | debug.c | 170 int csize = ((cflag & CSIZE) == CS7) ? 0x20 : 0x00; in atari_init_mfp_port() local 179 st_mfp.usart_ctr = parity | csize | 0x88; /* 1:16 clk mode, 1 stop bit */ in atari_init_mfp_port() 266 int csize = ((cflag & CSIZE) == CS8) ? 0x10 : 0x00; in atari_init_midi_port() local 283 acia.mid_ctrl = div | csize | parity | in atari_init_midi_port()
|
/Linux-v5.15/drivers/bus/ |
D | hisi_lpc.c | 33 unsigned int csize; /* data length of each operation */ member 110 if (!buf || !opcnt || !para || !para->csize || !lpcdev) in hisi_lpc_target_in() 221 iopara.csize = dwidth; in hisi_lpc_comm_in() 256 iopara.csize = dwidth; in hisi_lpc_comm_out() 286 iopara.csize = dwidth; in hisi_lpc_comm_ins() 325 iopara.csize = dwidth; in hisi_lpc_comm_outs()
|
/Linux-v5.15/drivers/staging/greybus/ |
D | audio_topology.c | 981 int i, ret, csize; in gbaudio_tplg_create_widget() local 1031 csize = offsetof(struct gb_audio_control, info); in gbaudio_tplg_create_widget() 1032 csize += offsetof(struct gb_audio_ctl_elem_info, value); in gbaudio_tplg_create_widget() 1033 csize += offsetof(struct gb_audio_enumerated, names); in gbaudio_tplg_create_widget() 1034 csize += le16_to_cpu(gbenum->names_length); in gbaudio_tplg_create_widget() 1039 csize = sizeof(struct gb_audio_control); in gbaudio_tplg_create_widget() 1042 *w_size += csize; in gbaudio_tplg_create_widget() 1043 curr = (void *)curr + csize; in gbaudio_tplg_create_widget() 1142 int i, csize, ret; in gbaudio_tplg_process_kcontrols() local 1180 csize = offsetof(struct gb_audio_control, info); in gbaudio_tplg_process_kcontrols() [all …]
|
/Linux-v5.15/crypto/ |
D | ccm.c | 69 static int set_msg_len(u8 *block, unsigned int msglen, int csize) in set_msg_len() argument 73 memset(block, 0, csize); in set_msg_len() 74 block += csize; in set_msg_len() 76 if (csize >= 4) in set_msg_len() 77 csize = 4; in set_msg_len() 78 else if (msglen > (1 << (8 * csize))) in set_msg_len() 82 memcpy(block - csize, (u8 *)&data + 4 - csize, csize); in set_msg_len()
|
/Linux-v5.15/drivers/staging/media/tegra-vde/ |
D | vde.c | 544 size_t lsize, size_t csize) in tegra_vde_attach_dmabufs_to_frame() argument 557 src->cb_offset, csize, SZ_256, in tegra_vde_attach_dmabufs_to_frame() 565 src->cr_offset, csize, SZ_256, in tegra_vde_attach_dmabufs_to_frame() 578 src->aux_offset, csize, SZ_256, in tegra_vde_attach_dmabufs_to_frame() 704 size_t lsize, csize; in tegra_vde_ioctl_decode_h264() local 753 csize = cstride * ctx.pic_height_in_mbs * 8; in tegra_vde_ioctl_decode_h264() 769 lsize, csize); in tegra_vde_ioctl_decode_h264()
|
/Linux-v5.15/include/linux/ |
D | crash_dump.h | 32 size_t csize, unsigned long offset,
|
/Linux-v5.15/arch/s390/kernel/ |
D | crash_dump.c | 217 ssize_t copy_oldmem_page(unsigned long pfn, char *buf, size_t csize, in copy_oldmem_page() argument 223 if (!csize) in copy_oldmem_page() 227 rc = copy_oldmem_user((void __force __user *) buf, src, csize); in copy_oldmem_page() 229 rc = copy_oldmem_kernel((void *) buf, src, csize); in copy_oldmem_page()
|
/Linux-v5.15/arch/mips/include/asm/octeon/ |
D | cvmx-dpi-defs.h | 182 uint64_t csize:14; member 192 uint64_t csize:14; 199 uint64_t csize:14; member 211 uint64_t csize:14;
|