Searched refs:to_bytes (Results 1 – 14 of 14) sorted by relevance
| /linux/drivers/md/ |
| H A D | dm-ebs-target.c | 72 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 D | dm-io.c | 370 len = min(len, to_bytes(remaining)); in do_region()
|
| H A D | dm-stripe.c | 263 bio->bi_iter.bi_size = to_bytes(end - begin); in stripe_map_range()
|
| H A D | dm-raid.c | 994 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 D | dm-clone-target.c | 452 bio->bi_iter.bi_size = to_bytes(len); in trim_bio()
|
| /linux/scripts/crypto/ |
| H A D | gen-hash-testvecs.py | 69 return m.to_bytes(16, byteorder='little') 92 return Ghash.reflect_bits_in_bytes(poly).to_bytes(16, byteorder='little') 144 return self.acc.to_bytes(16, byteorder='little') 282 h += (p % 2**64).to_bytes(8, byteorder='little')
|
| /linux/samples/rust/ |
| H A D | rust_debugfs_scoped.rs | 50 .retain(|device| device.name.to_bytes() != to_remove.to_bytes()); in create_file_write()
|
| /linux/rust/kernel/ |
| H A D | str.rs | 296 for &c in self.to_bytes() { in fmt() 378 BStr::from_bytes(self.to_bytes()) in as_ref()
|
| H A D | error.rs | 212 unsafe { core::str::from_utf8_unchecked(name.to_bytes()) }, in fmt()
|
| /linux/tools/perf/scripts/python/ |
| H A D | intel-pt-events.py | 144 s = payload.to_bytes(8, "little").decode("ascii").rstrip("\x00")
|
| /linux/tools/testing/selftests/drivers/net/ |
| H A D | xdp.py | |
| H A D | psp.py | 423 tx['key'] = (tx['key'][0] ^ 0xff).to_bytes(1, 'little') + tx['key'][1:]
|
| /linux/tools/testing/selftests/net/openvswitch/ |
| H A D | ovs-dpctl.py | 180 def to_bytes(mac): function 192 return to_bytes(mac_str), to_bytes(mask_str)
|
| /linux/rust/proc-macro2/ |
| H A D | fallback.rs | 1102 let mut bytes = string.to_bytes(); in c_string()
|