Home
last modified time | relevance | path

Searched refs:to_bytes (Results 1 – 20 of 20) sorted by relevance

/linux/samples/rust/
H A Drust_configfs.rs96 let data = container.message.to_bytes();
165 let data = c"Hello Baz\n".to_bytes();
187 let data = c"Hello GC\n".to_bytes();
H A Drust_debugfs_scoped.rs50 .retain(|device| device.name.to_bytes() != to_remove.to_bytes()); in remove_file_write()
/linux/drivers/md/
H A Ddm-ebs-target.c72 unsigned int buf_off = to_bytes(__block_mod(iter->bi_sector, ec->u_bs)); in __ebs_rw_bvec()
277 to_bytes(tmp1) > PAGE_SIZE) { in ebs_ctr()
317 ec->bufio = dm_bufio_client_create(ec->dev->bdev, to_bytes(ec->u_bs), 1, in ebs_ctr()
435 limits->logical_block_size = to_bytes(ec->e_bs); in ebs_io_hints()
436 limits->physical_block_size = to_bytes(ec->u_bs); in ebs_io_hints()
H A Ddm-io.c370 len = min(len, to_bytes(remaining)); in do_region()
H A Ddm-stripe.c263 bio->bi_iter.bi_size = to_bytes(end - begin); in stripe_map_range()
H A Ddm-raid.c994 rs->md.bitmap_info.chunksize = to_bytes(region_size); in validate_region_size()
3816 unsigned int chunk_size_bytes = to_bytes(rs->md.chunk_sectors); in raid_io_hints()
4077 mddev->bitmap_info.chunksize != to_bytes(rs->requested_bitmap_chunk_sectors)))) { in raid_preresume()
4078 int chunksize = to_bytes(rs->requested_bitmap_chunk_sectors) ?: mddev->bitmap_info.chunksize; in raid_preresume()
H A Ddm-clone-target.c452 bio->bi_iter.bi_size = to_bytes(len); in trim_bio()
H A Ddm.c651 clone->bi_iter.bi_size = to_bytes(*len); in alloc_tio()
/linux/scripts/crypto/
H A Dgen-hash-testvecs.py51 return m.to_bytes(16, byteorder='little')
80 return self.acc.to_bytes(16, byteorder='little')
211 h += (p % 2**64).to_bytes(8, byteorder='little')
/linux/rust/kernel/
H A Dstr.rs295 for &c in self.to_bytes() { in fmt()
375 BStr::from_bytes(self.to_bytes()) in as_ref()
H A Derror.rs211 unsafe { core::str::from_utf8_unchecked(name.to_bytes()) }, in fmt()
/linux/include/linux/
H A Ddevice-mapper.h753 static inline unsigned long to_bytes(sector_t n) in to_bytes() function
/linux/tools/perf/scripts/python/
H A Dintel-pt-events.py144 s = payload.to_bytes(8, "little").decode("ascii").rstrip("\x00")
/linux/tools/testing/selftests/drivers/net/
H A Dxdp.py146 hex_str = value.to_bytes(4, byteorder='little', signed=True)
H A Dpsp.py423 tx['key'] = (tx['key'][0] ^ 0xff).to_bytes(1, 'little') + tx['key'][1:]
/linux/tools/testing/selftests/net/openvswitch/
H A Dovs-dpctl.py181 def to_bytes(mac): function
193 return to_bytes(mac_str), to_bytes(mask_str)
/linux/drivers/gpu/drm/
H A Ddrm_panic_qr.rs971 &Segment::Binary(url_cstr.to_bytes()), in drm_panic_qr_generate()
/linux/drivers/md/dm-vdo/
H A Ddm-vdo-target.c712 size_t logical_bytes = to_bytes(ti->len); in parse_device_config()
1454 u64 logical_size = to_bytes(ti->len); in vdo_initialize()
H A Ddata-vio.c539 data_vio->offset = to_bytes(bio->bi_iter.bi_sector & VDO_SECTORS_PER_BLOCK_MASK); in launch_bio()
/linux/rust/proc-macro2/
H A Dfallback.rs1102 let mut bytes = string.to_bytes(); in c_string()