| /linux/rust/kernel/sync/atomic/ |
| H A D | predefine.rs | 79 // as `isize` and `usize`, and `isize` and `usize` are always bi-directional transmutable to 100 static_assert!(size_of::<isize>() == size_of::<isize_atomic_repr>()); 101 static_assert!(align_of::<isize>() == align_of::<isize_atomic_repr>()); 105 // SAFETY: `isize` has the same size and alignment with `isize_atomic_repr`, and is round-trip 107 unsafe impl super::AtomicType for isize { 112 unsafe impl super::AtomicAdd<isize> for isize { 113 fn rhs_into_delta(rhs: isize) -> isize_atomic_repr { 176 for_each_type!(42 in [i8, i16, i32, i64, u32, u64, isize, usiz in atomic_arithmetic_tests() 63 unsafe impl super::AtomicType for isize { global() implementation 68 unsafe impl super::AtomicAdd<isize> for isize { global() implementation [all...] |
| /linux/drivers/net/ppp/ |
| H A D | ppp_mppe.c | 281 int isize, int osize) in mppe_compress() argument 294 if (osize < isize + MPPE_OVHD + 2) { in mppe_compress() 302 osize = isize + MPPE_OVHD + 2; in mppe_compress() 333 isize -= 2; in mppe_compress() 335 arc4_crypt(&state->arc4, obuf, ibuf, isize); in mppe_compress() 337 state->stats.unc_bytes += isize; in mppe_compress() 377 mppe_decompress(void *arg, unsigned char *ibuf, int isize, unsigned char *obuf, in mppe_decompress() argument 384 if (isize <= PPP_HDRLEN + MPPE_OVHD) { in mppe_decompress() 388 state->unit, isize); in mppe_decompress() 398 if (osize < isize - MPPE_OVHD - 1) { in mppe_decompress() [all …]
|
| H A D | ppp_deflate.c | 48 int isize, int osize); 51 int isize, unsigned char *obuf, int osize); 185 int isize, int osize) in z_compress() argument 200 if (osize > isize) in z_compress() 201 osize = isize; in z_compress() 222 state->strm.avail_in = (isize - off); in z_compress() 245 if (olen < isize && olen <= osize) { in z_compress() 249 state->stats.inc_bytes += isize; in z_compress() 253 state->stats.unc_bytes += isize; in z_compress() 409 static int z_decompress(void *arg, unsigned char *ibuf, int isize, in z_decompress() argument [all …]
|
| H A D | bsd_comp.c | 185 unsigned char *obuf, int isize, int osize); 188 static int bsd_decompress (void *state, unsigned char *ibuf, int isize, 563 int isize, int osize) in bsd_compress() argument 632 if (osize > isize) in bsd_compress() 634 osize = isize; in bsd_compress() 650 isize -= PPP_HDRLEN; in bsd_compress() 651 ilen = ++isize; /* Low byte of protocol is counted as input */ in bsd_compress() 741 db->uncomp_bytes += isize; in bsd_compress() 742 db->in_count += isize; in bsd_compress() 784 db->incomp_bytes += isize; in bsd_compress() [all …]
|
| /linux/rust/kernel/debugfs/ |
| H A D | file_ops.rs | 148 fn read<T: Reader + Sync>(data: &T, buf: *const c_char, count: usize) -> isize { in read() 152 return e.to_errno() as isize; 155 count as isize 169 ) -> isize { 228 ) -> isize { 261 ) -> isize { in blob_read() 274 let ret = || -> Result<isize> { in blob_read() 282 Err(e) => e.to_errno() as isize, 315 ) -> isize { in blob_write() 328 let ret = || -> Result<isize> { in blob_write() 140 read<T: Reader + Sync>(data: &T, buf: *const c_char, count: usize) -> isize read() argument 161 write<T: Reader + Sync>( file: *mut bindings::file, buf: *const c_char, count: usize, _ppos: *mut bindings::loff_t, ) -> isize write() argument 221 write_only_write<T: Reader + Sync>( file: *mut bindings::file, buf: *const c_char, count: usize, _ppos: *mut bindings::loff_t, ) -> isize write_only_write() argument 255 blob_read<T: BinaryWriter>( file: *mut bindings::file, buf: *mut c_char, count: usize, ppos: *mut bindings::loff_t, ) -> isize blob_read() argument 310 blob_write<T: BinaryReader>( file: *mut bindings::file, buf: *const c_char, count: usize, ppos: *mut bindings::loff_t, ) -> isize blob_write() argument [all...] |
| /linux/drivers/platform/chrome/wilco_ec/ |
| H A D | debugfs.c | 48 static int parse_hex_sentence(const char *in, int isize, u8 *out, int osize) in parse_hex_sentence() argument 59 while (word_start < isize && n_parsed < osize) { in parse_hex_sentence() 61 while (word_start < isize && isspace(in[word_start])) in parse_hex_sentence() 64 if (word_start >= isize) in parse_hex_sentence() 69 while (word_end < isize && !isspace(in[word_end])) in parse_hex_sentence()
|
| /linux/include/net/ |
| H A D | slhc_vj.h | 178 int slhc_compress(struct slcompress *comp, unsigned char *icp, int isize, 180 int slhc_uncompress(struct slcompress *comp, unsigned char *icp, int isize); 181 int slhc_remember(struct slcompress *comp, unsigned char *icp, int isize);
|
| /linux/fs/romfs/ |
| H A D | mmap-nommu.c | 26 unsigned long isize, offset, maxpages, lpages; in romfs_get_unmapped_area() local 34 isize = i_size_read(inode); in romfs_get_unmapped_area() 37 maxpages = (isize + PAGE_SIZE - 1) >> PAGE_SHIFT; in romfs_get_unmapped_area()
|
| /linux/fs/quota/ |
| H A D | quota_v1.c | 134 loff_t isize; in v1_check_quota_file() local 137 isize = i_size_read(inode); in v1_check_quota_file() 138 if (!isize) in v1_check_quota_file() 140 blocks = isize >> BLOCK_SIZE_BITS; in v1_check_quota_file() 141 off = isize & (BLOCK_SIZE - 1); in v1_check_quota_file()
|
| /linux/include/linux/ |
| H A D | ppp-comp.h | 51 unsigned char *obuf, int isize, int osize); 71 int (*decompress) (void *state, unsigned char *ibuf, int isize,
|
| /linux/block/ |
| H A D | fops.c | 443 loff_t isize = i_size_read(inode); in blkdev_iomap_begin() local 445 if (offset >= isize) in blkdev_iomap_begin() 452 iomap->length = isize - iomap->offset; in blkdev_iomap_begin() 550 loff_t isize = i_size_read(wpc->inode); in blkdev_writeback_range() local 552 if (WARN_ON_ONCE(offset >= isize)) in blkdev_writeback_range() 559 error = blkdev_iomap_begin(wpc->inode, offset, isize - offset, in blkdev_writeback_range() 874 loff_t isize; in blkdev_fallocate() local 890 isize = bdev_nr_bytes(bdev); in blkdev_fallocate() 891 if (start >= isize) in blkdev_fallocate() 893 if (end >= isize) { in blkdev_fallocate() [all …]
|
| /linux/arch/arm/mm/ |
| H A D | alignment.c | 809 int isize = 4; in do_alignment() local 834 isize = 2; in do_alignment() 855 regs->ARM_pc += isize; in do_alignment() 935 regs->ARM_pc -= isize; in do_alignment() 965 isize << 1, in do_alignment() 966 isize == 2 ? tinstr : instr, instrptr); in do_alignment() 977 isize << 1, in do_alignment() 978 isize == 2 ? tinstr : instr, in do_alignment()
|
| /linux/rust/syn/ |
| H A D | buffer.rs | 28 End(isize, isize), 54 -(group_end_index as isize), in recursive_new() 55 -(group_offset as isize), in recursive_new() 76 entries.push(Entry::End(-(entries.len() as isize), 0)); in new2()
|
| /linux/arch/powerpc/sysdev/xics/ |
| H A D | xics-common.c | 489 const __be32 *isize; in xics_get_server_size() local 498 isize = of_get_property(np, "ibm,interrupt-server#-size", NULL); in xics_get_server_size() 499 if (isize) in xics_get_server_size() 500 xics_interrupt_server_size = be32_to_cpu(*isize); in xics_get_server_size()
|
| /linux/arch/mips/include/asm/octeon/ |
| H A D | cvmx-mixx-defs.h | 214 uint64_t isize:20; member 220 uint64_t isize:20; 227 uint64_t isize:20; member 235 uint64_t isize:20;
|
| /linux/rust/kernel/ |
| H A D | configfs.rs | 552 ) -> isize { in show() 566 Ok(size) => size as isize, in show() 567 Err(err) => err.to_errno() as isize, in show() 586 ) -> isize { in store() 604 Ok(()) => size as isize, in store() 605 Err(err) => err.to_errno() as isize, in store() 553 show( item: *mut bindings::config_item, page: *mut kernel::ffi::c_char, ) -> isize show() argument 587 store( item: *mut bindings::config_item, page: *const kernel::ffi::c_char, size: usize, ) -> isize store() argument
|
| H A D | module_param.rs | 106 impl_int_module_param!(isize); 181 make_param_ops!(PARAM_OPS_ISIZE, isize);
|
| /linux/arch/arm64/kernel/ |
| H A D | compat_alignment.c | 317 int isize = 4; in do_compat_alignment_fixup() local 335 isize = 2; in do_compat_alignment_fixup() 382 arm64_skip_faulting_instruction(regs, isize); in do_compat_alignment_fixup()
|
| /linux/tools/testing/selftests/powerpc/nx-gzip/ |
| H A D | README | 29 computed checksum abd15e8a isize 0000190d 30 stored checksum abd15e8a isize 0000190d
|
| /linux/fs/zonefs/ |
| H A D | zonefs.h | 261 void zonefs_i_size_write(struct inode *inode, loff_t isize); 281 int zonefs_file_truncate(struct inode *inode, loff_t isize);
|
| /linux/fs/ |
| H A D | remap_range.c | 302 loff_t isize = i_size_read(inode_in); in __generic_remap_file_range_prep() local 304 if ((remap_flags & REMAP_FILE_DEDUP) || pos_in == isize) in __generic_remap_file_range_prep() 306 if (pos_in > isize) in __generic_remap_file_range_prep() 308 *len = isize - pos_in; in __generic_remap_file_range_prep()
|
| /linux/rust/ |
| H A D | ffi.rs | 41 c_long = isize;
|
| /linux/fs/xfs/scrub/ |
| H A D | xfile.c | 53 loff_t isize, in xfile_create() argument 64 xf->file = shmem_kernel_file_setup(description, isize, in xfile_create()
|
| /linux/fs/jffs2/ |
| H A D | readinode.c | 746 if (unlikely(je32_to_cpu(rd->offset) > je32_to_cpu(rd->isize)) || in read_dnode() 1213 latest_node->isize = cpu_to_je32(0); in jffs2_do_read_inode_internal() 1248 new_size = jffs2_truncate_fragtree(c, &f->fragtree, je32_to_cpu(latest_node->isize)); in jffs2_do_read_inode_internal() 1249 if (new_size != je32_to_cpu(latest_node->isize)) { in jffs2_do_read_inode_internal() 1251 f->inocache->ino, je32_to_cpu(latest_node->isize), new_size); in jffs2_do_read_inode_internal() 1252 latest_node->isize = cpu_to_je32(new_size); in jffs2_do_read_inode_internal() 1261 if (!je32_to_cpu(latest_node->isize)) in jffs2_do_read_inode_internal() 1262 latest_node->isize = latest_node->dsize; in jffs2_do_read_inode_internal()
|
| /linux/fs/iomap/ |
| H A D | buffered-io.c | 292 loff_t isize = i_size_read(inode); in iomap_adjust_read_range() local 339 if (orig_pos <= isize && orig_pos + orig_plen > isize) { in iomap_adjust_read_range() 340 unsigned end = offset_in_folio(folio, isize - 1) >> block_bits; in iomap_adjust_read_range() 1805 u64 isize = i_size_read(inode); in iomap_writeback_handle_eof() local 1807 if (*end_pos > isize) { in iomap_writeback_handle_eof() 1808 size_t poff = offset_in_folio(folio, isize); in iomap_writeback_handle_eof() 1809 pgoff_t end_index = isize >> PAGE_SHIFT; in iomap_writeback_handle_eof() 1848 *end_pos = isize; in iomap_writeback_handle_eof()
|