Searched refs:blk (Results 1 – 6 of 6) sorted by relevance
/packages/modules/Virtualization/pvmfw/src/ |
D | gpt.rs | 25 use virtio_drivers::device::blk::SECTOR_SIZE; 78 pub fn read_block(&mut self, index: usize, blk: &mut [u8]) -> Result<()> { in read_block() 80 self.partitions.read_block(index, blk) in read_block() 83 pub fn write_block(&mut self, index: usize, blk: &[u8]) -> Result<()> { in write_block() 85 self.partitions.write_block(index, blk) in write_block() 106 let mut blk = [0; Self::LBA_SIZE]; in new() localVariable 107 device.read_blocks(Header::LBA, &mut blk).map_err(Error::FailedRead)?; in new() 108 let header = Header::read_from_prefix(blk.as_slice()).unwrap(); in new() 128 let mut blk = [0; Self::LBA_SIZE]; in get_partition_by_name() localVariable 132 self.read_block(i, &mut blk)?; in get_partition_by_name() [all …]
|
D | instance.rs | 112 let mut blk = [0; BLK_SIZE]; in get_recorded_entry() localVariable 113 if payload_size > blk.len() { in get_recorded_entry() 118 instance_img.read_block(payload_index, &mut blk).map_err(Error::FailedIo)?; in get_recorded_entry() 120 let payload = &blk[..payload_size]; in get_recorded_entry() 140 let mut blk = [0; BLK_SIZE]; in record_instance_entry() localVariable 143 assert!(plaintext.len() + aead_ctx.aead().max_overhead() < blk.len()); in record_instance_entry() 144 let encrypted = aead_ctx.seal(plaintext, /* nonce */ &[], /* ad */ &[], &mut blk)?; in record_instance_entry() 147 instance_img.write_block(payload_index, &blk).map_err(Error::FailedIo)?; in record_instance_entry() 150 header.write_to_prefix(blk.as_mut_slice()).unwrap(); in record_instance_entry() 151 blk[header.as_bytes().len()..].fill(0); in record_instance_entry() [all …]
|
/packages/modules/Bluetooth/system/embdrv/sbc/decoder/srce/ |
D | synthesis-sbc.c | 279 OI_UINT blk; in OI_SBC_SynthFrame_80() local 287 for (blk = blkstart; blk < blkstop; blk++) { in OI_SBC_SynthFrame_80() 318 OI_UINT blk; in OI_SBC_SynthFrame_4SB() local 326 for (blk = blkstart; blk < blkstop; blk++) { in OI_SBC_SynthFrame_4SB() 358 OI_UINT blk; in OI_SBC_SynthFrame_Enhanced() local 366 for (blk = blkstart; blk < blkstop; blk++) { in OI_SBC_SynthFrame_Enhanced()
|
/packages/modules/Virtualization/vmbase/example/src/ |
D | pci.rs | 74 let mut blk = pci::VirtIOBlk::<HalImpl>::new(transport).expect("failed to create blk driver"); in check_virtio_block_device() localVariable 75 info!("Found {} KiB block device.", blk.capacity() * SECTOR_SIZE_BYTES as u64 / 1024); in check_virtio_block_device() 78 assert_eq!(blk.capacity(), EXPECTED_SECTOR_COUNT as u64); in check_virtio_block_device() 81 blk.read_blocks(i, &mut data[i * SECTOR_SIZE_BYTES..(i + 1) * SECTOR_SIZE_BYTES]) in check_virtio_block_device() 90 assert_eq!(blk.capacity(), 0); in check_virtio_block_device() 92 assert_eq!(blk.read_blocks(0, &mut data), Err(Error::IoError)); in check_virtio_block_device()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | GridViewSpecial.java | 796 ImageBlock blk = mCache.get(row); in clearLoaderQueue() local 797 Assert(blk != null); // We won't reuse the block if it has pending in clearLoaderQueue() 799 blk.cancelRequest(col); in clearLoaderQueue() 836 ImageBlock blk = mCache.get(row); in tryToLoad() local 837 if (blk == null) { in tryToLoad() 839 blk = getEmptyBlock(); in tryToLoad() 840 blk.setRow(row); in tryToLoad() 841 blk.invalidate(); in tryToLoad() 842 mCache.put(row, blk); in tryToLoad() 844 return blk.loadImages(); in tryToLoad() [all …]
|
/packages/modules/Virtualization/vmbase/src/virtio/ |
D | pci.rs | 25 device::{blk, socket}, 80 pub type VirtIOBlk<T> = blk::VirtIOBlk<T, PciTransport>;
|