/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/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 | 52 size_t csize, unsigned long offset, int userbuf) in copy_oldmem_page() argument 56 if (!csize) in copy_oldmem_page() 65 memcpy(buf, (vaddr + offset), csize); in copy_oldmem_page() 76 if (copy_to_user(buf, (kdump_buf_page + offset), csize)) in copy_oldmem_page() 80 return csize; in copy_oldmem_page()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/arch/mips/kernel/ |
D | crash_dump.c | 28 size_t csize, unsigned long offset, int userbuf) in copy_oldmem_page() argument 32 if (!csize) in copy_oldmem_page() 38 memcpy(buf, (vaddr + offset), csize); in copy_oldmem_page() 48 if (copy_to_user(buf, (kdump_buf_page + offset), csize)) in copy_oldmem_page() 52 return csize; in copy_oldmem_page()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/of/ |
D | device.c | 223 ssize_t csize; in of_device_get_modalias() local 231 csize = snprintf(str, len, "of:N%pOFn%c%s", dev->of_node, 'T', in of_device_get_modalias() 233 tsize = csize; in of_device_get_modalias() 234 len -= csize; in of_device_get_modalias() 236 str += csize; in of_device_get_modalias() 239 csize = strlen(compat) + 1; in of_device_get_modalias() 240 tsize += csize; in of_device_get_modalias() 241 if (csize > len) in of_device_get_modalias() 244 csize = snprintf(str, len, "C%s", compat); in of_device_get_modalias() 250 len -= csize; in of_device_get_modalias() [all …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/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 | 79 int csize, in jit_emit_elf() argument 97 ret = jit_write_elf(fd, code_addr, sym, (const void *)code, csize, debug, nr_debug_entries, in jit_emit_elf() 414 int ret, csize, usize; in jit_repipe_code_load() local 423 csize = jr->load.code_size; in jit_repipe_code_load() 427 code = (unsigned long)jr + jr->load.p.total_size - csize; in jit_repipe_code_load() 445 …ret = jit_emit_elf(filename, sym, addr, (const void *)uaddr, csize, jd->debug_data, jd->nr_debug_e… in jit_repipe_code_load() 474 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,
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/liteos_a/fs/fat/os_adapt/ |
D | fatfs.c | 327 for (n = fs->csize - 1; n > 0; n--) { in init_cluster() 456 finfo_new->fsize = fs->csize * SS(fs); in fatfs_create_obj() 566 finfo->fsize = fs->csize * SS(fs); in fatfs_lookup() 937 QWORD csize; in realloc_cluster() local 952 csize = SS(fs) * fs->csize; in realloc_cluster() 964 while (remain > csize) { /* Follow or strentch the cluster chain */ in realloc_cluster() 973 remain -= csize; in realloc_cluster() 1184 dfp->fno.fsize = fs->csize * SS(fs); in fatfs_mount() 1328 info->f_bsize = fs->ssize * fs->csize; in fatfs_statfs() 1330 info->f_bsize = FF_MIN_SS * fs->csize; in fatfs_statfs() [all …]
|
/kernel/linux/linux-5.10/drivers/staging/greybus/ |
D | audio_topology.c | 1026 int i, ret, csize; in gbaudio_tplg_create_widget() local 1076 csize = offsetof(struct gb_audio_control, info); in gbaudio_tplg_create_widget() 1077 csize += offsetof(struct gb_audio_ctl_elem_info, value); in gbaudio_tplg_create_widget() 1078 csize += offsetof(struct gb_audio_enumerated, names); in gbaudio_tplg_create_widget() 1079 csize += le16_to_cpu(gbenum->names_length); in gbaudio_tplg_create_widget() 1088 csize = sizeof(struct gb_audio_control); in gbaudio_tplg_create_widget() 1091 *w_size += csize; in gbaudio_tplg_create_widget() 1092 curr = (void *)curr + csize; in gbaudio_tplg_create_widget() 1151 int i, csize, ret; in gbaudio_tplg_process_kcontrols() local 1189 csize = offsetof(struct gb_audio_control, info); in gbaudio_tplg_process_kcontrols() [all …]
|
/kernel/linux/linux-5.10/crypto/ |
D | ccm.c | 68 static int set_msg_len(u8 *block, unsigned int msglen, int csize) in set_msg_len() argument 72 memset(block, 0, csize); in set_msg_len() 73 block += csize; in set_msg_len() 75 if (csize >= 4) in set_msg_len() 76 csize = 4; in set_msg_len() 77 else if (msglen > (1 << (8 * csize))) in set_msg_len() 81 memcpy(block - csize, (u8 *)&data + 4 - csize, csize); in set_msg_len()
|
/kernel/linux/linux-5.10/drivers/dma/ |
D | at_xdmac.c | 292 int csize; in at_xdmac_csize() local 294 csize = ffs(maxburst) - 1; in at_xdmac_csize() 295 if (csize > 4) in at_xdmac_csize() 296 csize = -EINVAL; in at_xdmac_csize() 298 return csize; in at_xdmac_csize() 542 int csize, dwidth; in at_xdmac_compute_chan_conf() local 555 csize = ffs(atchan->sconfig.src_maxburst) - 1; in at_xdmac_compute_chan_conf() 556 if (csize < 0) { in at_xdmac_compute_chan_conf() 560 atchan->cfg |= AT_XDMAC_CC_CSIZE(csize); in at_xdmac_compute_chan_conf() 578 csize = ffs(atchan->sconfig.dst_maxburst) - 1; in at_xdmac_compute_chan_conf() [all …]
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/include/linux/ |
D | crash_dump.h | 31 size_t csize, unsigned long offset,
|
/kernel/linux/linux-5.10/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;
|