/packages/modules/Bluetooth/system/gd/rust/topshim/src/ |
D | metrics.rs | 16 fn adapter_state_changed(state: u32); in adapter_state_changed() argument 17 fn bond_create_attempt(bt_addr: RawAddress, device_type: u32); in bond_create_attempt() argument 20 device_type: u32, in bond_state_changed() argument 21 status: u32, in bond_state_changed() argument 22 bond_state: u32, in bond_state_changed() argument 27 device_type: u32, in device_info_report() argument 28 class_of_device: u32, in device_info_report() argument 29 appearance: u32, in device_info_report() argument 30 vendor_id: u32, in device_info_report() argument 31 vendor_id_src: u32, in device_info_report() argument [all …]
|
D | btif.rs | 23 #[repr(u32)] 36 #[repr(u32)] 56 #[repr(u32)] 77 #[repr(u32)] 91 #[repr(u32)] 113 #[repr(u32)] 126 #[repr(u32)] 135 #[repr(u32)] 161 impl From<u32> for BtPropertyType { 162 fn from(item: u32) -> Self { in from() [all …]
|
/packages/modules/Bluetooth/system/stack/include/ |
D | bt_types.h | 133 #define UINT32_TO_STREAM(p, u32) \ argument 135 *(p)++ = (uint8_t)(u32); \ 136 *(p)++ = (uint8_t)((u32) >> 8); \ 137 *(p)++ = (uint8_t)((u32) >> 16); \ 138 *(p)++ = (uint8_t)((u32) >> 24); \ 191 #define STREAM_TO_UINT24(u32, p) \ argument 193 (u32) = (((uint32_t)(*(p))) + ((((uint32_t)(*((p) + 1)))) << 8) + \ 197 #define STREAM_TO_UINT32(u32, p) \ argument 199 (u32) = (((uint32_t)(*(p))) + ((((uint32_t)(*((p) + 1)))) << 8) + \ 254 #define UINT32_TO_BE_STREAM(p, u32) \ argument [all …]
|
/packages/modules/Virtualization/libs/libfdt/src/ |
D | iterators.rs | 36 type Item = u32; 89 fn two_cells_to_bytes(cells: [u32; 2]) -> [u8; 2 * size_of::<u32>()] { in two_cells_to_bytes() argument 91 unsafe { core::mem::transmute::<[u32; 2], [u8; 2 * size_of::<u32>()]>(cells) } 99 … ) -> ([u8; Self::NUM_CELLS * size_of::<u32>()], Option<[u8; Self::NUM_CELLS * size_of::<u32>()]>) in to_cells() argument 102 two_cells_to_bytes([((self.addr >> 32) as u32).to_be(), (self.addr as u32).to_be()]); 105 Some(two_cells_to_bytes([((size >> 32) as u32).to_be(), (size as u32).to_be()])) 206 impl FromAddrCells for (u32, u64) { 231 impl AddressRange<(u32, u64), u64, u64> { 234 pub fn to_cells(&self) -> [u8; Self::SIZE_CELLS * size_of::<u32>()] { in to_cells() argument 237 ((self.addr.1 >> 32) as u32).to_be(), [all …]
|
/packages/modules/Bluetooth/system/embdrv/encoder_for_aptxhd/src/ |
D | QuantiseDifference.c | 29 tmp = tmp_acc.s32.h | (tmp_acc.u32.l >> 1); in BsearchLL() 36 tmp = tmp_acc.s32.h | (tmp_acc.u32.l >> 1); in BsearchLL() 43 tmp = tmp_acc.s32.h | (tmp_acc.u32.l >> 1); in BsearchLL() 50 tmp = tmp_acc.s32.h | (tmp_acc.u32.l >> 1); in BsearchLL() 56 tmp = tmp_acc.s32.h | (tmp_acc.u32.l >> 1); in BsearchLL() 63 tmp = tmp_acc.s32.h | (tmp_acc.u32.l >> 1); in BsearchLL() 70 tmp = tmp_acc.s32.h | (tmp_acc.u32.l >> 1); in BsearchLL() 77 tmp = tmp_acc.s32.h | (tmp_acc.u32.l >> 1); in BsearchLL() 95 tmp = tmp_acc.s32.h | (tmp_acc.u32.l >> 1); in BsearchHL() 102 tmp = tmp_acc.s32.h | (tmp_acc.u32.l >> 1); in BsearchHL() [all …]
|
/packages/modules/Virtualization/libs/devicemapper/src/ |
D | sys.rs | 49 pub version: [u32; 3], 50 pub data_size: u32, 51 pub data_start: u32, 52 pub target_count: u32, 55 pub event_nr: u32, 56 pub padding: u32, 66 pub const DM_VERSION_MAJOR: u32 = 4; 67 pub const DM_VERSION_MINOR: u32 = 0; 68 pub const DM_VERSION_PATCHLEVEL: u32 = 0; 75 pub struct Flag: u32 {
|
/packages/modules/Virtualization/libs/apkverify/src/ |
D | sigutil.rs | 29 const APK_SIG_BLOCK_MIN_SIZE: u32 = 32; 45 signing_block_offset: u32, 46 signing_block_size: u32, 47 central_directory_offset: u32, 48 central_directory_size: u32, 49 eocd_offset: u32, 50 eocd_size: u32, 71 pub fn find_signature(&mut self, block_id: u32) -> Result<Bytes> { in find_signature() 102 digester.digest(slice, CHUNK_HEADER_MID, chunk_size as u32)?.as_ref(), in compute_digest() 134 fn bytes(&mut self, offset: u32, size: u32) -> Result<Vec<u8>> { in bytes() argument [all …]
|
D | ziputil.rs | 31 const EOCD_SIGNATURE: u32 = 0x06054b50; 32 const ZIP64_MARK: u32 = 0xffffffff; 36 pub central_directory_offset: u32, 37 pub central_directory_size: u32, 38 pub eocd_offset: u32, 39 pub eocd_size: u32, 51 let eocd_offset = reader.stream_position()? as u32; in zip_sections() 74 eocd_size: eocd_size as u32, in zip_sections() 79 fn get_central_directory(buf: &[u8]) -> Result<(u32, u32)> { in get_central_directory() argument 88 pub fn set_central_directory_offset(buf: &mut [u8], value: u32) -> Result<()> { in set_central_directory_offset() [all …]
|
/packages/modules/Bluetooth/floss/hcidoc/src/ |
D | parser.rs | 15 version: u32, 16 data_type: u32, 23 const LINUX_SNOOP_MONITOR_TYPE: u32 = 2001; 38 let (version_bytes, rest) = rest.split_at(std::mem::size_of::<u32>()); in try_from() 39 let (data_type_bytes, _rest) = rest.split_at(std::mem::size_of::<u32>()); in try_from() 43 version: u32::from_be_bytes(version_bytes.try_into().unwrap()), in try_from() 44 data_type: u32::from_be_bytes(data_type_bytes.try_into().unwrap()), in try_from() 98 pub original_length: u32, 102 pub included_length: u32, 103 pub flags: u32, [all …]
|
/packages/modules/Virtualization/pvmfw/src/ |
D | gpt.rs | 157 revision: u32, 158 header_size: u32, 159 header_crc32: u32, 160 reserved0: u32, 167 entries_count: u32, 168 entry_size: u32, 169 entries_crc32: u32, 175 const REVISION_1_0: u32 = 1 << 16; 206 fn entries_count(&self) -> u32 { in entries_count() argument 207 u32::from_le(self.entries_count) in entries_count() [all …]
|
D | config.rs | 29 magic: u32, 31 version: u32, 33 total_size: u32, 35 flags: u32, 51 InvalidFlags(u32), 102 const MAGIC: u32 = u32::from_ne_bytes(*b"pvmf"); 103 const VERSION_1_0: u32 = Self::version(1, 0); 107 pub const fn version(major: u16, minor: u16) -> u32 { in version() argument 108 ((major as u32) << 16) | (minor as u32) in version() 176 offset: u32, [all …]
|
/packages/modules/Bluetooth/system/embdrv/encoder_for_aptx/src/ |
D | QuantiseDifference.c | 32 tmp = tmp_acc.s32.h | (tmp_acc.u32.l >> 1); in BsearchLL() 39 tmp = tmp_acc.s32.h | (tmp_acc.u32.l >> 1); in BsearchLL() 45 tmp = tmp_acc.s32.h | (tmp_acc.u32.l >> 1); in BsearchLL() 52 tmp = tmp_acc.s32.h | (tmp_acc.u32.l >> 1); in BsearchLL() 59 tmp = tmp_acc.s32.h | (tmp_acc.u32.l >> 1); in BsearchLL() 66 tmp = tmp_acc.s32.h | (tmp_acc.u32.l >> 1); in BsearchLL() 97 tmp = tmp_acc.s32.h | (tmp_acc.u32.l >> 1); in BsearchHH() 103 tmp = tmp_acc.s32.h | (tmp_acc.u32.l >> 1); in BsearchHH() 124 tmp = tmp_acc.s32.h | (tmp_acc.u32.l >> 1); in BsearchLH() 131 tmp = tmp_acc.s32.h | (tmp_acc.u32.l >> 1); in BsearchLH() [all …]
|
/packages/modules/Bluetooth/system/gd/rust/topshim/src/profiles/ |
D | a2dp.rs | 13 #[repr(u32)] 21 impl From<u32> for BtavConnectionState { 22 fn from(item: u32) -> Self { in from() 28 #[repr(u32)] 35 impl From<u32> for BtavAudioState { 36 fn from(item: u32) -> Self { in from() 42 #[repr(u32)] 175 status: u32, 190 fn connect(self: &A2dpIntf, bt_addr: RawAddress) -> u32; in connect() argument 191 fn disconnect(self: &A2dpIntf, bt_addr: RawAddress) -> u32; in disconnect() argument [all …]
|
D | hfp.rs | 14 #[repr(u32)] 23 impl From<u32> for BthfConnectionState { 24 fn from(item: u32) -> Self { in from() 30 #[repr(u32)] 38 impl From<u32> for BthfAudioState { 39 fn from(item: u32) -> Self { in from() 126 fn connect(self: Pin<&mut HfpIntf>, bt_addr: RawAddress) -> u32; in connect() argument 135 fn disconnect(self: Pin<&mut HfpIntf>, bt_addr: RawAddress) -> u32; in disconnect() argument 141 ) -> u32; in device_status_notification() argument 147 ) -> u32; in indicator_query_response() argument [all …]
|
/packages/modules/Bluetooth/system/gd/rust/linux/stack/src/ |
D | lib.rs | 81 MediaCallbackDisconnected(u32), 84 AdapterCallbackDisconnected(u32), 85 ConnectionCallbackDisconnected(u32), 96 SuspendCallbackRegistered(u32), 97 SuspendCallbackDisconnected(u32), 103 ScannerCallbackDisconnected(u32), 106 AdvertiserCallbackDisconnected(u32), 109 SocketManagerCallbackDisconnected(u32), 112 BatteryProviderManagerCallbackDisconnected(u32), 114 BatteryServiceCallbackDisconnected(u32), [all …]
|
D | callbacks.rs | 10 callbacks: HashMap<u32, Box<T>>, 12 disconnected_message: fn(u32) -> Message, 21 pub fn new(tx: Sender<Message>, disconnected_message: fn(u32) -> Message) -> Self { in new() 31 pub fn add_callback(&mut self, mut callback: Box<T>) -> u32 { in add_callback() argument 51 pub fn remove_callback(&mut self, id: u32) -> bool { in remove_callback() 65 pub fn get_by_id(&self, id: u32) -> Option<&Box<T>> { in get_by_id() 70 pub fn get_by_id_mut(&mut self, id: u32) -> Option<&mut Box<T>> { in get_by_id_mut()
|
D | battery_provider_manager.rs | 19 ) -> u32; in register_battery_provider() argument 23 fn unregister_battery_provider(&mut self, battery_provider_id: u32); in unregister_battery_provider() argument 26 fn set_battery_info(&mut self, battery_provider_id: u32, battery_set: BatterySet); in set_battery_info() argument 60 pub fn remove_battery_provider_callback(&mut self, battery_provider_id: u32) { in remove_battery_provider_callback() argument 69 ) -> u32 { in register_battery_provider() argument 73 fn unregister_battery_provider(&mut self, battery_provider_id: u32) { in unregister_battery_provider() argument 77 fn set_battery_info(&mut self, _battery_provider_id: u32, battery_set: BatterySet) { in set_battery_info() argument
|
/packages/modules/Virtualization/libs/hyp/src/hypervisor/ |
D | kvm.rs | 64 const ARM_SMCCC_KVM_FUNC_HYP_MEMINFO: u32 = 0xc6000002; 65 const ARM_SMCCC_KVM_FUNC_MEM_SHARE: u32 = 0xc6000003; 66 const ARM_SMCCC_KVM_FUNC_MEM_UNSHARE: u32 = 0xc6000004; 68 const VENDOR_HYP_KVM_MMIO_GUARD_INFO_FUNC_ID: u32 = 0xc6000005; 69 const VENDOR_HYP_KVM_MMIO_GUARD_ENROLL_FUNC_ID: u32 = 0xc6000006; 70 const VENDOR_HYP_KVM_MMIO_GUARD_MAP_FUNC_ID: u32 = 0xc6000007; 71 const VENDOR_HYP_KVM_MMIO_GUARD_UNMAP_FUNC_ID: u32 = 0xc6000008; 98 success_or_error_32(hvc64(VENDOR_HYP_KVM_MMIO_GUARD_MAP_FUNC_ID, args)[0] as u32) in mmio_guard_map() 155 fn checked_hvc64_expect_zero(function: u32, args: [u64; 17]) -> Result<()> { in checked_hvc64_expect_zero() argument 159 fn checked_hvc64(function: u32, args: [u64; 17]) -> Result<u64> { in checked_hvc64() argument
|
/packages/modules/Bluetooth/system/gd/rust/linux/service/src/ |
D | iface_bluetooth.rs | 56 impl_dbus_arg_from_into!(BtStatus, u32); 110 cod: u32, in on_ssp_request() argument 112 passkey: u32, in on_ssp_request() argument 117 fn on_pin_request(&mut self, remote_device: BluetoothDevice, cod: u32, min_16_digit: bool) { in on_pin_request() argument 125 fn on_bond_state_changed(&mut self, status: u32, address: String, state: u32) { in on_bond_state_changed() argument 173 service_name_length: u32, 188 mas_instance_id: u32, 189 supported_features: u32, 190 supported_message_types: u32, 196 supported_features: u32, [all …]
|
/packages/modules/Bluetooth/tools/pdl/tests/generated/ |
D | packet_decl_24bit_enum_big_endian.rs | 58 impl TryFrom<u32> for Foo { 59 type Error = u32; 60 fn try_from(value: u32) -> std::result::Result<Self, Self::Error> { in try_from() 68 impl From<&Foo> for u32 { implementation 76 impl From<Foo> for u32 { implementation 83 u32::from(value) as Self in from() 88 u32::from(value) as Self in from() 93 u32::from(value) as Self in from() 130 let x = Foo::try_from(bytes.get_mut().get_uint(3) as u32).map_err(|_| { in parse_inner() 134 value: bytes.get_mut().get_uint(3) as u32 as u64, in parse_inner() [all …]
|
D | packet_decl_24bit_enum_little_endian.rs | 58 impl TryFrom<u32> for Foo { 59 type Error = u32; 60 fn try_from(value: u32) -> std::result::Result<Self, Self::Error> { in try_from() 68 impl From<&Foo> for u32 { implementation 76 impl From<Foo> for u32 { implementation 83 u32::from(value) as Self in from() 88 u32::from(value) as Self in from() 93 u32::from(value) as Self in from() 130 let x = Foo::try_from(bytes.get_mut().get_uint_le(3) as u32).map_err(|_| { in parse_inner() 134 value: bytes.get_mut().get_uint_le(3) as u32 as u64, in parse_inner() [all …]
|
D | packet_decl_24bit_enum_array_little_endian.rs | 58 impl TryFrom<u32> for Foo { 59 type Error = u32; 60 fn try_from(value: u32) -> std::result::Result<Self, Self::Error> { in try_from() 68 impl From<&Foo> for u32 { implementation 76 impl From<Foo> for u32 { implementation 83 u32::from(value) as Self in from() 88 u32::from(value) as Self in from() 93 u32::from(value) as Self in from() 132 Foo::try_from(bytes.get_mut().get_uint_le(3) as u32).map_err(|_| { in parse_inner() 148 buffer.put_uint_le(u32::from(elem) as u64, 3); in write_to()
|
D | packet_decl_24bit_enum_array_big_endian.rs | 58 impl TryFrom<u32> for Foo { 59 type Error = u32; 60 fn try_from(value: u32) -> std::result::Result<Self, Self::Error> { in try_from() 68 impl From<&Foo> for u32 { implementation 76 impl From<Foo> for u32 { implementation 83 u32::from(value) as Self in from() 88 u32::from(value) as Self in from() 93 u32::from(value) as Self in from() 132 Foo::try_from(bytes.get_mut().get_uint(3) as u32).map_err(|_| { in parse_inner() 148 buffer.put_uint(u32::from(elem) as u64, 3); in write_to()
|
/packages/modules/Virtualization/libs/devicemapper/src/loopdevice/ |
D | sys.rs | 33 pub fd: u32, 34 pub block_size: u32, 50 pub lo_number: u32, 51 pub lo_encrypt_type: u32, 52 pub lo_encrypt_key_size: u32, 64 pub struct Flag: u32 {
|
/packages/modules/Virtualization/libs/fdtpci/src/ |
D | lib.rs | 99 pub bar_range: Range<u32>, 157 fn parse_ranges(pci_node: &FdtNode) -> Result<Range<u32>, PciError> { in parse_ranges() argument 162 .ranges::<(u32, u64), u64, u64>() in parse_ranges() 183 && bus_address + size < u32::MAX.into() in parse_ranges() 188 memory_address = u32::try_from(cpu_physical).unwrap(); in parse_ranges() 189 memory_size = u32::try_from(size).unwrap(); in parse_ranges() 202 pub struct PciMemoryFlags(pub u32); 229 impl From<u32> for PciRangeType { 230 fn from(value: u32) -> Self { in from()
|