Home
last modified time | relevance | path

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

/openbmc/u-boot/board/synopsys/hsdk/
H A Dheaderize-hsdk.py86 file.write(arc_id.to_bytes(2, byteorder='little'))
87 file.write(uboot_img_size.to_bytes(4, byteorder='little'))
88 file.write(check_sum.to_bytes(1, byteorder='little'))
89 file.write(image_copy_adr.to_bytes(4, byteorder='little'))
90 file.write(magic1.to_bytes(5, byteorder='big'))
91 file.write(jump_address.to_bytes(4, byteorder='little'))
92 for i in range(12): file.write(0xFF.to_bytes(1, byteorder='little'))
93 for byte in magic2: file.write(byte.to_bytes(36, byteorder='big'))
95 file.write(0xFF.to_bytes(1, byteorder='little'))
96 file.write(flash_address.to_bytes(4, byteorder='little'))
[all …]
/openbmc/u-boot/board/synopsys/axs10x/
H A Dheaderize-axs.py98 jmpchk_sum = sum(jump_address.to_bytes(4, byteorder='big'))
106 file.write(arc_id.to_bytes(2, byteorder='little'))
107 file.write(uboot_img_size.to_bytes(4, byteorder='little'))
108 file.write(check_sum.to_bytes(1, byteorder='little'))
109 file.write(image_copy_adr.to_bytes(4, byteorder='little'))
110 file.write(magic1.to_bytes(5, byteorder='big'))
111 for i in range(16): file.write(0x00.to_bytes(1, byteorder='little'))
112 for byte in magic2: file.write(byte.to_bytes(36, byteorder='big'))
114 file.write(0x00.to_bytes(1, byteorder='little'))
116 file.write(jump_address.to_bytes(4, byteorder='little'))
/openbmc/qemu/tests/qemu-iotests/
H A Dfat16.py165 + self.attributes.to_bytes(1, "little")
166 + self.reserved.to_bytes(1, "little")
167 + self.create_time_tenth.to_bytes(1, "little")
168 + self.create_time.to_bytes(2, "little")
169 + self.create_date.to_bytes(2, "little")
170 + self.last_access_date.to_bytes(2, "little")
171 + (self.cluster >> 16).to_bytes(2, "little")
172 + self.last_mod_time.to_bytes(2, "little")
173 + self.last_mod_date.to_bytes(2, "little")
174 + (self.cluster & 0xFFFF).to_bytes(2, "little")
[all …]
/openbmc/openbmc/meta-arm/meta-arm-bsp/recipes-bsp/trusted-firmware-a/files/tc/
H A Dgenerate_metadata.py14 fp.write(value.to_bytes(4, byteorder='little'))
43 fp.write(crc.to_bytes(4, byteorder='little') + content)
/openbmc/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()
428 limits->logical_block_size = to_bytes(ec->e_bs); in ebs_io_hints()
429 limits->physical_block_size = to_bytes(ec->u_bs); in ebs_io_hints()
H A Ddm-stripe.c262 bio->bi_iter.bi_size = to_bytes(end - begin); in stripe_map_range()
H A Ddm-io.c370 len = min(len, to_bytes(remaining)); in do_region()
H A Ddm-raid.c988 rs->md.bitmap_info.chunksize = to_bytes(region_size); in validate_region_size()
3781 unsigned int chunk_size_bytes = to_bytes(rs->md.chunk_sectors); in raid_io_hints()
4001 mddev->bitmap_info.chunksize != to_bytes(rs->requested_bitmap_chunk_sectors)))) { in raid_preresume()
4002 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.c650 clone->bi_iter.bi_size = to_bytes(*len); in alloc_tio()
/openbmc/bmcweb/redfish-core/include/utils/
H A Dip_utils.hpp59 boost::asio::ip::address_v4::bytes_type maskBytes = addr.to_bytes(); in ipv4VerifyIpAndGetBitcount()
/openbmc/qemu/scripts/
H A Dfeature_to_c.py26 sys.stdout.write(c.to_bytes(1, 'big').decode())
/openbmc/pldm/platform-mc/
H A Dterminus.cpp335 .to_bytes(u16NameString); in parseSensorAuxiliaryNamesPDR()
395 .to_bytes(u16NameString); in parseEntityAuxiliaryNamesPDR()
/openbmc/pldm/tools/fw-update/
H A Dpldm_fwup_pkg_creator.py78 us_bytes = time.microsecond.to_bytes(3, byteorder="little")
/openbmc/linux/include/linux/
H A Ddevice-mapper.h716 static inline unsigned long to_bytes(sector_t n) in to_bytes() function
/openbmc/linux/tools/testing/selftests/net/openvswitch/
H A Dovs-dpctl.py175 def to_bytes(mac): function
187 return to_bytes(mac_str), to_bytes(mask_str)
/openbmc/linux/tools/perf/scripts/python/
H A Dintel-pt-events.py144 s = payload.to_bytes(8, "little").decode("ascii").rstrip("\x00")
/openbmc/linux/fs/reiserfs/
H A Dfix_node.c376 int to, int to_bytes, short *snum012, int flow) in get_num_ver() argument
449 end_bytes = (to_bytes != -1) ? to_bytes : 0; in get_num_ver()
/openbmc/openbmc/poky/scripts/lib/wic/plugins/imager/
H A Ddirect.py531 img.write(identifier.to_bytes(4, 'little'))
/openbmc/pldm/pldmtool/
H A Dpldm_platform_cmd.cpp979 .to_bytes(u16NameString); in printAuxNamePDR()
/openbmc/openbmc/poky/bitbake/lib/bb/
H A Drunqueue.py1359 msg.extend(len(pickled_data).to_bytes(4, 'big'))