Home
last modified time | relevance | path

Searched refs:csize (Results 1 – 25 of 38) sorted by relevance

12

/linux-3.4.99/arch/powerpc/kernel/
Dcrash_dump.c82 static size_t copy_oldmem_vaddr(void *vaddr, char *buf, size_t csize, in copy_oldmem_vaddr() argument
86 if (copy_to_user((char __user *)buf, (vaddr + offset), csize)) in copy_oldmem_vaddr()
89 memcpy(buf, (vaddr + offset), csize); in copy_oldmem_vaddr()
91 return csize; in copy_oldmem_vaddr()
108 size_t csize, unsigned long offset, int userbuf) in copy_oldmem_page() argument
113 if (!csize) in copy_oldmem_page()
116 csize = min_t(size_t, csize, PAGE_SIZE); in copy_oldmem_page()
119 if (memblock_is_region_memory(paddr, csize)) { in copy_oldmem_page()
121 csize = copy_oldmem_vaddr(vaddr, buf, csize, offset, userbuf); in copy_oldmem_page()
124 csize = copy_oldmem_vaddr(vaddr, buf, csize, offset, userbuf); in copy_oldmem_page()
[all …]
/linux-3.4.99/arch/ia64/kernel/
Dcrash_dump.c35 size_t csize, unsigned long offset, int userbuf) in copy_oldmem_page() argument
39 if (!csize) in copy_oldmem_page()
43 if (copy_to_user(buf, (vaddr + offset), csize)) { in copy_oldmem_page()
47 memcpy(buf, (vaddr + offset), csize); in copy_oldmem_page()
48 return csize; in copy_oldmem_page()
/linux-3.4.99/arch/sh/kernel/
Dcrash_dump.c26 size_t csize, unsigned long offset, int userbuf) in copy_oldmem_page() argument
30 if (!csize) in copy_oldmem_page()
36 if (copy_to_user(buf, (vaddr + offset), csize)) { in copy_oldmem_page()
41 memcpy(buf, (vaddr + offset), csize); in copy_oldmem_page()
44 return csize; in copy_oldmem_page()
/linux-3.4.99/arch/arm/kernel/
Dcrash_dump.c34 size_t csize, unsigned long offset, in copy_oldmem_page() argument
39 if (!csize) in copy_oldmem_page()
47 if (copy_to_user(buf, vaddr + offset, csize)) { in copy_oldmem_page()
52 memcpy(buf, vaddr + offset, csize); in copy_oldmem_page()
56 return csize; in copy_oldmem_page()
/linux-3.4.99/arch/x86/kernel/
Dcrash_dump_64.c27 size_t csize, unsigned long offset, int userbuf) in copy_oldmem_page() argument
31 if (!csize) in copy_oldmem_page()
39 if (copy_to_user(buf, vaddr + offset, csize)) { in copy_oldmem_page()
44 memcpy(buf, vaddr + offset, csize); in copy_oldmem_page()
48 return csize; in copy_oldmem_page()
Dcrash_dump_32.c51 size_t csize, unsigned long offset, int userbuf) in copy_oldmem_page() argument
55 if (!csize) in copy_oldmem_page()
64 memcpy(buf, (vaddr + offset), csize); in copy_oldmem_page()
75 if (copy_to_user(buf, (kdump_buf_page + offset), csize)) in copy_oldmem_page()
79 return csize; in copy_oldmem_page()
/linux-3.4.99/drivers/of/
Ddevice.c85 ssize_t tsize, csize, repend; in of_device_get_modalias() local
88 csize = snprintf(str, len, "of:N%sT%s", dev->of_node->name, in of_device_get_modalias()
94 return csize; in of_device_get_modalias()
100 return csize; in of_device_get_modalias()
104 tsize = csize + cplen; in of_device_get_modalias()
107 if (csize >= len) /* @ the limit, all is already filled */ in of_device_get_modalias()
111 cplen = len - csize - 1; in of_device_get_modalias()
116 memcpy(&str[csize + 1], compat, cplen); in of_device_get_modalias()
117 for (i = csize; i < repend; i++) { in of_device_get_modalias()
/linux-3.4.99/fs/jffs2/
Dread.c55 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 …]
Dreadinode.c40 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()
715 uint32_t len, csize; in read_dnode() local
737 csize = je32_to_cpu(rd->csize); in read_dnode()
744 unlikely(PAD(je32_to_cpu(rd->csize) + sizeof(*rd)) != PAD(je32_to_cpu(rd->totlen)))) { in read_dnode()
751 if (jffs2_is_writebuffered(c) && csize != 0) { in read_dnode()
[all …]
Dgc.c632 crc = crc32(0, node->i.data, je32_to_cpu(node->i.csize)); in jffs2_garbage_collect_pristine()
808 ri.csize = cpu_to_je32(mdatalen); in jffs2_garbage_collect_metadata()
1059 ri.csize = cpu_to_je32(0); in jffs2_garbage_collect_hole()
1350 ri.csize = cpu_to_je32(cdatalen); in jffs2_garbage_collect_dnode()
/linux-3.4.99/drivers/tty/serial/
Dbfin_sport_uart.c46 unsigned short csize; member
86 if ((up->csize + up->stopb) > 7) in rx_one_byte()
92 up->csize, up->rxmask); in rx_one_byte()
110 : [val]"d"(value), [rxmask]"d"(up->rxmask), [lc]"a"(up->csize) in rx_one_byte()
502 up->csize = 8; in sport_set_termios()
505 up->csize = 7; in sport_set_termios()
508 up->csize = 6; in sport_set_termios()
511 up->csize = 5; in sport_set_termios()
535 up->rxmask = 0x01 | (((up->csize + up->stopb) * 2 - 1) << 0x8); in sport_set_termios()
540 for (i = 0, up->txmask1 = 0; i < up->csize; i++) in sport_set_termios()
[all …]
/linux-3.4.99/arch/m68k/atari/
Ddebug.c170 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-3.4.99/drivers/char/
Dmem.c365 size_t read = 0, csize; in read_oldmem() local
375 csize = PAGE_SIZE - offset; in read_oldmem()
377 csize = count; in read_oldmem()
379 rc = copy_oldmem_page(pfn, buf, csize, offset, 1); in read_oldmem()
382 buf += csize; in read_oldmem()
383 *ppos += csize; in read_oldmem()
384 read += csize; in read_oldmem()
385 count -= csize; in read_oldmem()
/linux-3.4.99/arch/s390/kernel/
Dcrash_dump.c31 size_t csize, unsigned long offset, int userbuf) in copy_oldmem_page() argument
35 if (!csize) in copy_oldmem_page()
46 csize); in copy_oldmem_page()
48 memcpy_real(buf, (void *) src, csize); in copy_oldmem_page()
49 return csize; in copy_oldmem_page()
/linux-3.4.99/crypto/
Dccm.c58 static int set_msg_len(u8 *block, unsigned int msglen, int csize) in set_msg_len() argument
62 memset(block, 0, csize); in set_msg_len()
63 block += csize; in set_msg_len()
65 if (csize >= 4) in set_msg_len()
66 csize = 4; in set_msg_len()
67 else if (msglen > (1 << (8 * csize))) in set_msg_len()
71 memcpy(block - csize, (u8 *)&data + 4 - csize, csize); in set_msg_len()
/linux-3.4.99/arch/cris/arch-v32/mm/
Dl2cache.c17 ctrl.csize = L2CACHE_SIZE; in l2cache_init()
/linux-3.4.99/sound/usb/
Dmixer.c1245 int err, csize; in parse_audio_feature_unit() local
1250 csize = hdr->bControlSize; in parse_audio_feature_unit()
1251 if (!csize) { in parse_audio_feature_unit()
1256 channels = (hdr->bLength - 7) / csize - 1; in parse_audio_feature_unit()
1258 if (hdr->bLength < 7 + csize) { in parse_audio_feature_unit()
1266 csize = 4; in parse_audio_feature_unit()
1269 if (hdr->bLength < 6 + csize) { in parse_audio_feature_unit()
1286 master_bits = snd_usb_combine_bytes(bmaControls, csize); in parse_audio_feature_unit()
1304 first_ch_bits = snd_usb_combine_bytes(bmaControls + csize, csize); in parse_audio_feature_unit()
1313 unsigned int mask = snd_usb_combine_bytes(bmaControls + csize * (j+1), csize); in parse_audio_feature_unit()
[all …]
/linux-3.4.99/fs/xfs/
Dxfs_buf.c1328 size_t bend, cpoff, csize; in xfs_buf_iomove() local
1335 csize = min_t(size_t, in xfs_buf_iomove()
1338 ASSERT(((csize + cpoff) <= PAGE_SIZE)); in xfs_buf_iomove()
1342 memset(page_address(page) + cpoff, 0, csize); in xfs_buf_iomove()
1345 memcpy(data, page_address(page) + cpoff, csize); in xfs_buf_iomove()
1348 memcpy(page_address(page) + cpoff, data, csize); in xfs_buf_iomove()
1351 boff += csize; in xfs_buf_iomove()
1352 data += csize; in xfs_buf_iomove()
/linux-3.4.99/drivers/md/
Dbitmap.c1256 sector_t csize; in bitmap_get_counter() local
1263 csize = ((sector_t)1) << (bitmap->chunkshift + in bitmap_get_counter()
1266 csize = ((sector_t)1) << bitmap->chunkshift; in bitmap_get_counter()
1267 *blocks = csize - (offset & (csize - 1)); in bitmap_get_counter()
2009 unsigned long csize; in chunksize_store() local
2012 rv = strict_strtoul(buf, 10, &csize); in chunksize_store()
2015 if (csize < 512 || in chunksize_store()
2016 !is_power_of_2(csize)) in chunksize_store()
2018 mddev->bitmap_info.chunksize = csize; in chunksize_store()
/linux-3.4.99/arch/cris/include/arch-v32/mach-a3/mach/hwregs/
Dl2cache_defs.h97 unsigned int csize : 10; member
/linux-3.4.99/include/linux/
Djffs2.h156 jint32_t csize; /* (Compressed) data size */ member
Dcdk.h228 unsigned char csize; member
/linux-3.4.99/arch/mips/include/asm/octeon/
Dcvmx-dpi-defs.h143 uint64_t csize:14; member
151 uint64_t csize:14; member
/linux-3.4.99/Documentation/filesystems/pohmelfs/
Dnetwork_protocol.txt8 __u16 csize; /* Attached crypto information size */
57 @csize, @cpad - size and padding size of the (attached if needed) crypto information.
/linux-3.4.99/net/netfilter/
Dx_tables.c491 u_int16_t csize = match->compatsize ? : match->matchsize; in xt_compat_match_offset() local
492 return XT_ALIGN(match->matchsize) - COMPAT_XT_ALIGN(csize); in xt_compat_match_offset()
603 u_int16_t csize = target->compatsize ? : target->targetsize; in xt_compat_target_offset() local
604 return XT_ALIGN(target->targetsize) - COMPAT_XT_ALIGN(csize); in xt_compat_target_offset()

12