/packages/modules/Bluetooth/system/gd/rust/linux/utils/src/ |
D | socket.rs | 16 pub const HCI_DEV_NONE: u16 = 0xFFFF; 20 #[repr(u16)] 31 impl From<HciChannels> for u16 { implementation 40 hci_dev: u16, 41 hci_channel: u16, 57 opcode: u16, 58 index: u16, 59 len: u16, 81 impl From<MgmtCommandOpcode> for u16 { implementation 87 impl TryFrom<u16> for MgmtCommandOpcode { [all …]
|
/packages/modules/Bluetooth/system/gd/rust/topshim/src/profiles/ |
D | gatt.rs | 50 timestamp: u16, 60 feat_seln: u16, 61 list_logic_type: u16, 66 found_timeout: u16, 67 lost_timeout: u16, 69 num_of_tracking_entries: u16, 81 company: u16, 82 company_mask: u16, 114 advertising_event_properties: u16, 129 min_interval: u16, [all …]
|
D | socket.rs | 59 pub size: u16, 63 pub max_tx_packet_size: u16, 64 pub max_rx_packet_size: u16, 83 let (size_bytes, rest) = bytes.split_at(std::mem::size_of::<u16>()); in try_from() 84 if u16::from_ne_bytes(size_bytes.clone().try_into().unwrap()) in try_from() 85 != (CONNECT_COMPLETE_SIZE as u16) in try_from() 94 let (max_tx_packet_size_bytes, rest) = rest.split_at(std::mem::size_of::<u16>()); in try_from() 95 let (max_rx_packet_size_bytes, _unused) = rest.split_at(std::mem::size_of::<u16>()); in try_from() 109 max_tx_packet_size: u16::from_ne_bytes(max_tx_packet_size_bytes.try_into().unwrap()), in try_from() 110 max_rx_packet_size: u16::from_ne_bytes(max_rx_packet_size_bytes.try_into().unwrap()), in try_from() [all …]
|
/packages/modules/Bluetooth/system/bta/test/ |
D | bta_dip_test.cc | 65 g_sub_attr.attr_value.v.u16 = 0x1200; in SetUp() 70 g_attr_spec_id.attr_value.v.u16 = 0x0103; in SetUp() 75 g_attr_vendor_id.attr_value.v.u16 = 0x18d1; in SetUp() 81 g_attr_vendor_id_src.attr_value.v.u16 = 1; in SetUp() 86 g_attr_vendor_product_id.attr_value.v.u16 = 0x1234; in SetUp() 91 g_attr_vendor_product_version.attr_value.v.u16 = 0x0100; in SetUp() 133 g_attr_spec_id.attr_value.v.u16 = 0x0103; in TEST_F() 136 g_attr_vendor_id.attr_value.v.u16 = 0x18d1; in TEST_F() 139 g_attr_vendor_id_src.attr_value.v.u16 = 1; in TEST_F() 142 g_attr_vendor_product_id.attr_value.v.u16 = 0x1234; in TEST_F() [all …]
|
/packages/modules/Bluetooth/system/stack/include/ |
D | bt_types.h | 146 #define UINT16_TO_STREAM(p, u16) \ argument 148 *(p)++ = (uint8_t)(u16); \ 149 *(p)++ = (uint8_t)((u16) >> 8); \ 186 #define STREAM_TO_UINT16(u16, p) \ argument 188 (u16) = ((uint16_t)(*(p)) + (((uint16_t)(*((p) + 1))) << 8)); \ 267 #define UINT16_TO_BE_STREAM(p, u16) \ argument 269 *(p)++ = (uint8_t)((u16) >> 8); \ 270 *(p)++ = (uint8_t)(u16); \ 284 #define BE_STREAM_TO_UINT16(u16, p) \ argument 286 (u16) = (uint16_t)(((uint16_t)(*(p)) << 8) + (uint16_t)(*((p) + 1))); \ [all …]
|
D | bt_dev_class.h | 110 #define BTM_COD_SERVICE_CLASS(u16, pd) \ argument 112 (u16) = (pd)[0]; \ 113 (u16) <<= 8; \ 114 (u16) += (pd)[1] & 0xE0; \
|
/packages/modules/Bluetooth/tools/pdl/tests/generated/ |
D | packet_decl_mixed_scalars_enums_big_endian.rs | 101 impl From<Enum7> for u16 { implementation 125 impl TryFrom<u16> for Enum9 { 126 type Error = u16; 127 fn try_from(value: u16) -> std::result::Result<Self, Self::Error> { in try_from() 135 impl From<&Enum9> for u16 { implementation 143 impl From<Enum9> for u16 { implementation 150 u16::from(value) as Self in from() 155 u16::from(value) as Self in from() 160 u16::from(value) as Self in from() 165 u16::from(value) as Self in from() [all …]
|
D | packet_decl_mixed_scalars_enums_little_endian.rs | 101 impl From<Enum7> for u16 { implementation 125 impl TryFrom<u16> for Enum9 { 126 type Error = u16; 127 fn try_from(value: u16) -> std::result::Result<Self, Self::Error> { in try_from() 135 impl From<&Enum9> for u16 { implementation 143 impl From<Enum9> for u16 { implementation 150 u16::from(value) as Self in from() 155 u16::from(value) as Self in from() 160 u16::from(value) as Self in from() 165 u16::from(value) as Self in from() [all …]
|
D | packet_decl_complex_scalars_little_endian.rs | 57 e: u16, 73 pub e: u16, 124 let value = (self.a as u16) | ((self.b as u16) << 3) | ((self.c as u16) << 11); in write_to() 136 let value = self.e | ((self.f as u16) << 12); in write_to() 191 pub fn get_e(&self) -> u16 { in get_e() argument
|
D | packet_decl_complex_scalars_big_endian.rs | 57 e: u16, 73 pub e: u16, 124 let value = (self.a as u16) | ((self.b as u16) << 3) | ((self.c as u16) << 11); in write_to() 136 let value = self.e | ((self.f as u16) << 12); in write_to() 191 pub fn get_e(&self) -> u16 { in get_e() argument
|
D | packet_decl_child_packets_little_endian.rs | 58 impl TryFrom<u16> for Enum16 { 59 type Error = u16; 60 fn try_from(value: u16) -> std::result::Result<Self, Self::Error> { in try_from() 68 impl From<&Enum16> for u16 { implementation 76 impl From<Enum16> for u16 { implementation 83 u16::from(value) as Self in from() 88 u16::from(value) as Self in from() 93 u16::from(value) as Self in from() 98 u16::from(value) as Self in from() 216 buffer.put_u16_le(u16::from(self.b)); in write_to() [all …]
|
D | packet_decl_child_packets_big_endian.rs | 58 impl TryFrom<u16> for Enum16 { 59 type Error = u16; 60 fn try_from(value: u16) -> std::result::Result<Self, Self::Error> { in try_from() 68 impl From<&Enum16> for u16 { implementation 76 impl From<Enum16> for u16 { implementation 83 u16::from(value) as Self in from() 88 u16::from(value) as Self in from() 93 u16::from(value) as Self in from() 98 u16::from(value) as Self in from() 216 buffer.put_u16(u16::from(self.b)); in write_to() [all …]
|
D | struct_decl_complex_scalars_little_endian.rs | 57 pub e: u16, 108 let value = (self.a as u16) | ((self.b as u16) << 3) | ((self.c as u16) << 11); in write_to() 120 let value = self.e | ((self.f as u16) << 12); in write_to()
|
D | struct_decl_complex_scalars_big_endian.rs | 57 pub e: u16, 108 let value = (self.a as u16) | ((self.b as u16) << 3) | ((self.c as u16) << 11); in write_to() 120 let value = self.e | ((self.f as u16) << 12); in write_to()
|
/packages/modules/Bluetooth/system/rust/src/gatt/ |
D | ffi.rs | 78 conn_id: u16, in on_server_read() argument 80 attr_handle: u16, in on_server_read() argument 91 conn_id: u16, in on_server_write() argument 93 attr_handle: u16, in on_server_write() argument 103 fn on_execute(self: &GattServerCallbacks, conn_id: u16, trans_id: u32, execute: bool); in on_execute() argument 108 fn on_indication_sent_confirmation(self: &GattServerCallbacks, conn_id: u16, status: i32); in on_indication_sent_confirmation() argument 139 attribute_handle: u16, 142 extended_properties: u16, 144 permissions: u16, 172 fn remove_service(server_id: u8, service_handle: u16); in remove_service() argument [all …]
|
D | ids.rs | 8 pub struct ConnectionId(pub u16); 13 ConnectionId(((tcb_idx.0 as u16) << 8) + (server_id.0 as u16)) in new() 23 ServerId((self.0 & (u8::MAX as u16)) as u8) in get_server_id() 45 pub struct AttHandle(pub u16);
|
/packages/modules/Bluetooth/system/gd/rust/facade/src/ |
D | main.rs | 28 .value_parser(value_parser!(u16)) in clap_command() 34 .value_parser(value_parser!(u16)) in clap_command() 40 .value_parser(value_parser!(u16)) in clap_command() 43 .arg(Arg::new("rootcanal-port").long("rootcanal-port").value_parser(value_parser!(u16))) in clap_command() 52 let root_server_port = *matches.get_one::<u16>("root-server-port").unwrap(); in async_main() 53 let grpc_port = *matches.get_one::<u16>("grpc-port").unwrap(); in async_main() 54 let rootcanal_port = matches.get_one::<u16>("rootcanal-port").copied(); in async_main()
|
D | lib.rs | 27 grpc_port: u16, in create() argument 28 rootcanal_port: Option<u16>, in create() argument 77 async fn start(stack: Stack, req: StartStackRequest, grpc_port: u16) -> Self { in start() 114 grpc_port: u16, in create() argument 115 rootcanal_port: Option<u16>, in create() argument
|
/packages/modules/Bluetooth/system/stack/sdp/ |
D | sdp_api.cc | 270 *p_uuid = Uuid::From16Bit(p_sattr->attr_value.v.u16); in SDP_FindServiceUUIDInRec() 297 *p_uuid = Uuid::From16Bit(p_extra_sattr->attr_value.v.u16); in SDP_FindServiceUUIDInRec() 309 *p_uuid = Uuid::From16Bit(p_attr->attr_value.v.u16); in SDP_FindServiceUUIDInRec() 400 p_sattr->attr_value.v.u16, service_uuid); in SDP_FindServiceInDb() 402 if ((p_sattr->attr_value.v.u16 == UUID_SERVCLASS_HDP_SOURCE) || in SDP_FindServiceInDb() 403 (p_sattr->attr_value.v.u16 == UUID_SERVCLASS_HDP_SINK)) { in SDP_FindServiceInDb() 414 p_sattr->attr_value.v.u16 == service_uuid))) in SDP_FindServiceInDb() 435 && ((p_extra_sattr->attr_value.v.u16 == service_uuid) || in SDP_FindServiceInDb() 449 ((p_attr->attr_value.v.u16 == service_uuid) || service_uuid == 0)) in SDP_FindServiceInDb() 607 (p_sattr->attr_value.v.u16 == layer_uuid)) { in sdp_fill_proto_elem() [all …]
|
/packages/modules/Bluetooth/system/gd/rust/linux/stack/src/ |
D | bluetooth_gatt.rs | 595 min_ce_len: u16, in connection_parameter_update() argument 596 max_ce_len: u16, in connection_parameter_update() argument 851 id: service.instance_id as u16, in into_db() 854 attribute_handle: service.instance_id as u16, in into_db() 855 start_handle: service.instance_id as u16, in into_db() 864 id: char.instance_id as u16, in into_db() 867 attribute_handle: char.instance_id as u16, in into_db() 872 permissions: char.permissions as u16, in into_db() 877 id: desc.instance_id as u16, in into_db() 880 attribute_handle: desc.instance_id as u16, in into_db() [all …]
|
/packages/modules/Virtualization/pvmfw/src/ |
D | config.rs | 49 UnsupportedVersion(u16, u16), 107 pub const fn version(major: u16, minor: u16) -> u32 { in version() argument 111 pub const fn version_tuple(&self) -> (u16, u16) { in version_tuple() argument 112 ((self.version >> 16) as u16, self.version as u16) in version_tuple()
|
D | hvc.rs | 35 pub fn trng_version() -> trng::Result<(u16, u16)> { in trng_version() 39 Ok(((version >> 16) as u16, version as u16)) in trng_version()
|
/packages/modules/Bluetooth/system/gd/rust/stack/src/hci/ |
D | controller.rs | 90 acl_buffers -= le_buffers as u16; in provide_controller() 204 pub acl_buffer_length: u16, 205 pub acl_buffers: u16, 207 pub sco_buffers: u16, 208 pub le_buffer_length: u16, 210 pub iso_buffer_length: u16, 217 pub le_suggested_default_data_length: u16, 218 pub le_max_advertising_data_length: u16,
|
/packages/modules/Bluetooth/system/gd/rust/topshim/facade/src/ |
D | main.rs | 51 .value_parser(value_parser!(u16)) in clap_command() 57 .value_parser(value_parser!(u16)) in clap_command() 63 .value_parser(value_parser!(u16)) in clap_command() 66 .arg(Arg::new("rootcanal-port").long("rootcanal-port").value_parser(value_parser!(u16))) in clap_command() 81 let grpc_port = *matches.get_one::<u16>("grpc-port").unwrap(); in async_main() 82 let _rootcanal_port = matches.get_one::<u16>("rootcanal-port").cloned(); in async_main()
|
/packages/modules/Bluetooth/system/gd/rust/stack/src/link/acl/ |
D | core.rs | 34 handle: u16, 57 pub async fn register(&mut self, handle: u16, bt: Bluetooth) -> Connection { in register() argument 66 Register { handle: u16, bt: Bluetooth, fut: oneshot::Sender<Connection> }, 69 const QCOM_DEBUG_HANDLE: u16 = 0xedc; 82 let mut connections: HashMap<u16, ConnectionInternal> = HashMap::new(); in provide_acl_dispatch() 86 let mut le_credits: u16 = controller.le_buffers.into(); in provide_acl_dispatch()
|