/openbmc/linux/drivers/of/ |
H A D | module.c | 16 ssize_t csize; in of_modalias() local 31 tsize = csize; in of_modalias() 32 if (csize >= len) in of_modalias() 33 csize = len > 0 ? len - 1 : 0; in of_modalias() 34 len -= csize; in of_modalias() 35 str += csize; in of_modalias() 38 csize = strlen(compat) + 1; in of_modalias() 39 tsize += csize; in of_modalias() 40 if (csize >= len) in of_modalias() 49 len -= csize; in of_modalias() [all …]
|
/openbmc/linux/arch/x86/kernel/ |
H A D | crash_dump_64.c | 16 size_t csize, unsigned long offset, in __copy_oldmem_page() argument 21 if (!csize) in __copy_oldmem_page() 32 csize = copy_to_iter(vaddr + offset, csize, iter); in __copy_oldmem_page() 35 return csize; in __copy_oldmem_page() 38 ssize_t copy_oldmem_page(struct iov_iter *iter, unsigned long pfn, size_t csize, in copy_oldmem_page() argument 41 return __copy_oldmem_page(iter, pfn, csize, offset, false); in copy_oldmem_page() 50 size_t csize, unsigned long offset) in copy_oldmem_page_encrypted() argument 52 return __copy_oldmem_page(iter, pfn, csize, offset, true); in copy_oldmem_page_encrypted()
|
H A D | crash_dump_32.c | 31 ssize_t copy_oldmem_page(struct iov_iter *iter, unsigned long pfn, size_t csize, in copy_oldmem_page() argument 36 if (!csize) in copy_oldmem_page() 43 csize = copy_to_iter(vaddr + offset, csize, iter); in copy_oldmem_page() 46 return csize; in copy_oldmem_page()
|
/openbmc/linux/arch/powerpc/kernel/ |
H A D | crash_dump.c | 72 size_t csize, unsigned long offset) in copy_oldmem_page() argument 77 if (!csize) in copy_oldmem_page() 80 csize = min_t(size_t, csize, PAGE_SIZE); in copy_oldmem_page() 83 if (memblock_is_region_memory(paddr, csize)) { in copy_oldmem_page() 85 csize = copy_to_iter(vaddr + offset, csize, iter); in copy_oldmem_page() 88 csize = copy_to_iter(vaddr + offset, csize, iter); in copy_oldmem_page() 92 return csize; in copy_oldmem_page()
|
/openbmc/qemu/disas/ |
H A D | capstone.c | 183 size_t csize = 0; in cap_disas_target() local 191 size_t tsize = MIN(sizeof(cap_buf) - csize, size); in cap_disas_target() 194 if (info->read_memory_func(pc + csize, cap_buf + csize, tsize, info) == 0) { in cap_disas_target() 195 csize += tsize; in cap_disas_target() 208 if (csize != 0) { in cap_disas_target() 209 memmove(cap_buf, cbuf, csize); in cap_disas_target() 218 if (csize != 0) { in cap_disas_target() 272 size_t csize = 0; in cap_disas_monitor() local 295 if (info->read_memory_func(pc + csize, cap_buf + csize, in cap_disas_monitor() 298 csize += tsize; in cap_disas_monitor() [all …]
|
/openbmc/linux/arch/ia64/kernel/ |
H A D | crash_dump.c | 17 size_t csize, unsigned long offset) in copy_oldmem_page() argument 21 if (!csize) in copy_oldmem_page() 24 csize = copy_to_iter(vaddr + offset, csize, iter); in copy_oldmem_page() 25 return csize; in copy_oldmem_page()
|
/openbmc/linux/arch/mips/kernel/ |
H A D | crash_dump.c | 7 size_t csize, unsigned long offset) in copy_oldmem_page() argument 11 if (!csize) in copy_oldmem_page() 15 csize = copy_to_iter(vaddr + offset, csize, iter); in copy_oldmem_page() 18 return csize; in copy_oldmem_page()
|
/openbmc/linux/arch/sh/kernel/ |
H A D | crash_dump.c | 15 size_t csize, unsigned long offset) in copy_oldmem_page() argument 19 if (!csize) in copy_oldmem_page() 23 csize = copy_to_iter(vaddr + offset, csize, iter); in copy_oldmem_page() 26 return csize; in copy_oldmem_page()
|
/openbmc/linux/arch/arm/kernel/ |
H A D | crash_dump.c | 20 size_t csize, unsigned long offset) in copy_oldmem_page() argument 24 if (!csize) in copy_oldmem_page() 31 csize = copy_to_iter(vaddr + offset, csize, iter); in copy_oldmem_page() 34 return csize; in copy_oldmem_page()
|
/openbmc/linux/arch/riscv/kernel/ |
H A D | crash_dump.c | 13 size_t csize, unsigned long offset) in copy_oldmem_page() argument 17 if (!csize) in copy_oldmem_page() 24 csize = copy_to_iter(vaddr + offset, csize, iter); in copy_oldmem_page() 27 return csize; in copy_oldmem_page()
|
/openbmc/linux/arch/loongarch/kernel/ |
H A D | crash_dump.c | 7 size_t csize, unsigned long offset) in copy_oldmem_page() argument 11 if (!csize) in copy_oldmem_page() 18 csize = copy_to_iter(vaddr + offset, csize, iter); in copy_oldmem_page() 22 return csize; in copy_oldmem_page()
|
/openbmc/openbmc/poky/meta/recipes-extended/unzip/unzip/ |
H A D | CVE-2019-13232_p1.patch | 22 * defer_leftover_input(), and it is NOT allowed to touch G.csize 24 - * (single exception: see read_byte()'s "G.csize <= 0" handling) !! 25 + * (single exception: see readbyte()'s "G.csize <= 0" handling) !! 27 + if (G.csize < 0L) 28 + G.csize = 0L; 29 G.incnt = G.incnt_leftover + (int)G.csize; 30 G.inptr = G.inptr_leftover - (int)G.csize;
|
H A D | 11-cve-2014-8141-getzip64data.patch | 102 - if (G.crec.csize == 0xffffffff || G.lrec.csize == 0xffffffff){ 103 - G.csize = G.lrec.csize = G.crec.csize = makeint64(offset + ef_buf); 104 - offset += sizeof(G.crec.csize); 106 + if ((G.crec.csize == Z64FLGL) || (G.lrec.csize == Z64FLGL)) 111 + G.csize = G.crec.csize = G.lrec.csize = makeint64(offset + ef_buf);
|
/openbmc/linux/arch/arm64/kernel/ |
H A D | crash_dump.c | 16 size_t csize, unsigned long offset) in copy_oldmem_page() argument 20 if (!csize) in copy_oldmem_page() 27 csize = copy_to_iter(vaddr + offset, csize, iter); in copy_oldmem_page() 31 return csize; in copy_oldmem_page()
|
/openbmc/linux/fs/jffs2/ |
H A 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 …]
|
H A 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() 718 uint32_t len, csize; in read_dnode() local 740 csize = je32_to_cpu(rd->csize); in read_dnode() 809 } else if (csize == 0) { in read_dnode() 842 tn->csize = csize; in read_dnode() 852 tn->fn->size = csize; in read_dnode() 1268 uint32_t csize = je32_to_cpu(latest_node->csize); in jffs2_do_read_inode_internal() local 1281 if (retlen != csize) in jffs2_do_read_inode_internal() [all …]
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | 284 | 61 echo "== cluster size $csize" 74 …$QEMU_IO -c "write -P 0x9 $csize 1" $QEMU_IMG_EXTRA_ARGS $TEST_IMG | _filter_qemu_io | _filter_tes… 88 for csize in 512 2048 32768 90 …RET -o "encrypt.format=luks,encrypt.key-secret=sec0,encrypt.iter-time=10,cluster_size=$csize" $size
|
H A D | 212 | 180 for csize in [ 1234, 128, 4294967296, 9223372036854775808, 185 'cluster-size': csize })
|
/openbmc/linux/tools/perf/util/ |
H A D | genelf.c | 105 size_t csize __maybe_unused) in gen_build_id() 129 size_t csize) in gen_build_id() argument 134 SHA1(code, csize, (unsigned char *)note->build_id); in gen_build_id() 153 EVP_DigestUpdate(mdctx, code, csize); in gen_build_id() 248 const void *code, int csize, in jit_write_elf() argument 299 phdr[0].p_filesz = csize; in jit_write_elf() 300 phdr[0].p_memsz = csize; in jit_write_elf() 323 d->d_size = csize; in jit_write_elf() 342 eh_frame_base_offset = ALIGN_8(GEN_ELF_TEXT_OFFSET + csize); in jit_write_elf() 387 symtab[1].st_size = csize; in jit_write_elf() [all …]
|
/openbmc/linux/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_blit.c | 293 ssize_t csize, byte_len; in vmw_diff_memcpy() local 299 csize = vmw_find_first_diff(dest, src, n, diff->cpp); in vmw_diff_memcpy() 300 if (csize < n) { in vmw_diff_memcpy() 301 vmw_adjust_rect(diff, csize); in vmw_diff_memcpy() 308 diff->line_offset += csize; in vmw_diff_memcpy() 309 dest += csize; in vmw_diff_memcpy() 310 src += csize; in vmw_diff_memcpy() 311 n -= csize; in vmw_diff_memcpy() 313 if (csize >= 0) { in vmw_diff_memcpy() 314 byte_len += csize; in vmw_diff_memcpy() [all …]
|
/openbmc/linux/drivers/crypto/nx/ |
H A 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()
|
/openbmc/linux/arch/m68k/atari/ |
H A 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()
|
/openbmc/linux/include/linux/ |
H A D | crash_dump.h | 27 ssize_t copy_oldmem_page(struct iov_iter *i, unsigned long pfn, size_t csize, 30 size_t csize, unsigned long offset);
|
/openbmc/linux/drivers/bus/ |
H A 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()
|
/openbmc/u-boot/fs/jffs2/ |
H A D | jffs2_nand_1pass.c | 148 new->csize = node->csize; in insert_inode() 306 len += jNode->csize; in jffs2_1pass_read_inode() 336 rtime_decompress(src, dst, inode->csize, inode->dsize); in jffs2_1pass_read_inode() 341 dynrubin_decompress(src, dst, inode->csize, inode->dsize); in jffs2_1pass_read_inode() 344 ret = zlib_decompress(src, dst, inode->csize, inode->dsize); in jffs2_1pass_read_inode() 348 ret = lzo_decompress(src, dst, inode->csize, inode->dsize); in jffs2_1pass_read_inode() 594 size_t len = jNode->csize; in jffs2_1pass_resolve_inode() 598 tmp[jNode->csize] = '\0'; in jffs2_1pass_resolve_inode() 722 putLabeledWord("\tbuild_list: csize = ", jNode->csize); in dump_fragments()
|