Home
last modified time | relevance | path

Searched refs:u16 (Results 1 – 25 of 40) sorted by relevance

12

/system/nfc/src/include/
Dnfc_types.h57 #define UINT16_TO_STREAM(p, u16) \ argument
59 *(p)++ = (uint8_t)(u16); \
60 *(p)++ = (uint8_t)((u16) >> 8); \
81 #define STREAM_TO_UINT16(u16, p) \ argument
83 (u16) = ((uint16_t)(*(p)) + (((uint16_t)(*((p) + 1))) << 8)); \
122 #define UINT16_TO_BE_STREAM(p, u16) \ argument
124 *(p)++ = (uint8_t)((u16) >> 8); \
125 *(p)++ = (uint8_t)(u16); \
140 #define BE_STREAM_TO_UINT16(u16, p) \ argument
142 (u16) = (uint16_t)(((uint16_t)(*(p)) << 8) + (uint16_t)(*((p) + 1))); \
/system/bt/gd/rust/shim/src/
Dcontroller.rs124 acl_buffer_length: u16,
125 le_buffer_length: u16,
126 iso_buffer_length: u16,
127 le_suggested_default_data_length: u16,
128 le_max_advertising_data_length: u16,
131 acl_buffers: u16,
139 pub fn controller_get_le_maximum_tx_data_length(c: &Controller) -> u16 { in controller_get_le_maximum_tx_data_length() argument
143 pub fn controller_get_le_maximum_tx_time(c: &Controller) -> u16 { in controller_get_le_maximum_tx_time() argument
Dbridge.rs85 fn controller_get_acl_buffer_length(c: &Controller) -> u16; in controller_get_acl_buffer_length() argument
86 fn controller_get_le_buffer_length(c: &Controller) -> u16; in controller_get_le_buffer_length() argument
87 fn controller_get_iso_buffer_length(c: &Controller) -> u16; in controller_get_iso_buffer_length() argument
88 fn controller_get_le_suggested_default_data_length(c: &Controller) -> u16; in controller_get_le_suggested_default_data_length() argument
89 fn controller_get_le_maximum_tx_data_length(c: &Controller) -> u16; in controller_get_le_maximum_tx_data_length() argument
90 fn controller_get_le_maximum_tx_time(c: &Controller) -> u16; in controller_get_le_maximum_tx_time() argument
91 fn controller_get_le_max_advertising_data_length(c: &Controller) -> u16; in controller_get_le_max_advertising_data_length() argument
94 fn controller_get_acl_buffers(c: &Controller) -> u16; in controller_get_acl_buffers() argument
/system/nfc/src/nfc/include/
Dllcp_defs.h33 #define LLCP_GET_DSAP(u16) (((u16)&0xFC00) >> 10) argument
34 #define LLCP_GET_PTYPE(u16) (((u16)&0x03C0) >> 6) argument
35 #define LLCP_GET_SSAP(u16) (((u16)&0x003F)) argument
/system/core/libsparse/
Dsparse_defs.h25 #define __le16 u16
29 #define __be16 u16
33 #define __u16 u16
39 typedef unsigned short int u16; typedef
/system/bt/bta/test/
Dbta_dip_test.cc57 g_sub_attr.attr_value.v.u16 = 0x1200; in SetUp()
62 g_attr_spec_id.attr_value.v.u16 = 0x0103; in SetUp()
67 g_attr_vendor_id.attr_value.v.u16 = 0x18d1; in SetUp()
73 g_attr_vendor_id_src.attr_value.v.u16 = 1; in SetUp()
78 g_attr_vendor_product_id.attr_value.v.u16 = 0x1234; in SetUp()
83 g_attr_vendor_product_version.attr_value.v.u16 = 0x0100; in SetUp()
/system/bt/stack/include/
Dbt_types.h168 #define UINT16_TO_STREAM(p, u16) \ argument
170 *(p)++ = (uint8_t)(u16); \
171 *(p)++ = (uint8_t)((u16) >> 8); \
225 #define STREAM_TO_UINT16(u16, p) \ argument
227 (u16) = ((uint16_t)(*(p)) + (((uint16_t)(*((p) + 1))) << 8)); \
326 #define UINT16_TO_FIELD(p, u16) \ argument
328 *(uint8_t*)(p) = (uint8_t)(u16); \
329 *((uint8_t*)(p) + 1) = (uint8_t)((u16) >> 8); \
350 #define UINT16_TO_BE_STREAM(p, u16) \ argument
352 *(p)++ = (uint8_t)((u16) >> 8); \
[all …]
Dbtm_api_types.h145 #define BTM_COD_SERVICE_CLASS(u16, pd) \ argument
147 (u16) = (pd)[0]; \
148 (u16) <<= 8; \
149 (u16) += (pd)[1] & 0xE0; \
/system/bt/gd/rust/facade/src/
Dmain.rs52 let root_server_port = value_t!(matches, "root-server-port", u16).unwrap(); in async_main()
53 let grpc_port = value_t!(matches, "grpc-port", u16).unwrap(); in async_main()
54 let signal_port = value_t!(matches, "signal-port", u16).unwrap(); in async_main()
55 let rootcanal_port = value_t!(matches, "rootcanal-port", u16).ok(); in async_main()
74 async fn indicate_started(signal_port: u16) { in indicate_started() argument
Dlib.rs27 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()
117 grpc_port: u16, in create() argument
118 rootcanal_port: Option<u16>, in create() argument
/system/bt/stack/sdp/
Dsdp_api.cc259 *p_uuid = Uuid::From16Bit(p_sattr->attr_value.v.u16); in SDP_FindServiceUUIDInRec()
286 *p_uuid = Uuid::From16Bit(p_extra_sattr->attr_value.v.u16); in SDP_FindServiceUUIDInRec()
298 *p_uuid = Uuid::From16Bit(p_attr->attr_value.v.u16); in SDP_FindServiceUUIDInRec()
389 p_sattr->attr_value.v.u16, service_uuid); in SDP_FindServiceInDb()
391 if ((p_sattr->attr_value.v.u16 == UUID_SERVCLASS_HDP_SOURCE) || in SDP_FindServiceInDb()
392 (p_sattr->attr_value.v.u16 == UUID_SERVCLASS_HDP_SINK)) { in SDP_FindServiceInDb()
403 p_sattr->attr_value.v.u16 == service_uuid))) in SDP_FindServiceInDb()
424 && ((p_extra_sattr->attr_value.v.u16 == service_uuid) || in SDP_FindServiceInDb()
438 ((p_attr->attr_value.v.u16 == service_uuid) || service_uuid == 0)) in SDP_FindServiceInDb()
595 (p_sattr->attr_value.v.u16 == layer_uuid)) { in sdp_fill_proto_elem()
[all …]
Dsdp_utils.cc90 uint16_t uuid = p_ssattr->attr_value.v.u16; in sdpu_find_profile_version()
104 uint16_t version = version_attr->attr_value.v.u16; in sdpu_find_profile_version()
126 return p_first_attr->attr_value.v.u16; in sdpu_find_most_specific_service_uuid()
139 return p_extra_sattr->attr_value.v.u16; in sdpu_find_most_specific_service_uuid()
149 return p_attr->attr_value.v.u16; in sdpu_find_most_specific_service_uuid()
222 uint16_t supported_features = p_attr->attr_value.v.u16; in sdpu_log_attribute_metrics()
791 uint16_t u16; in sdpu_get_len_from_type() local
823 BE_STREAM_TO_UINT16(u16, p); in sdpu_get_len_from_type()
824 *p_len = u16; in sdpu_get_len_from_type()
947 if (len == 2) return uuid.As16Bit() == p_attr->attr_value.v.u16; in sdpu_compare_uuid_with_attr()
/system/bt/gd/rust/hci/src/
Dcontroller.rs89 acl_buffers -= le_buffers as u16; in provide_controller()
196 pub acl_buffer_length: u16,
197 pub acl_buffers: u16,
199 pub sco_buffers: u16,
200 pub le_buffer_length: u16,
202 pub iso_buffer_length: u16,
209 pub le_suggested_default_data_length: u16,
210 pub le_max_advertising_data_length: u16,
/system/core/trusty/utils/rpmb_dev/
Drpmb_protocol.h107 static inline uint16_t rpmb_get_u16(struct rpmb_u16 u16) { in rpmb_get_u16() argument
112 for (i = 0; i < sizeof(u16.byte); i++) in rpmb_get_u16()
113 val = val << 8 | u16.byte[i]; in rpmb_get_u16()
/system/bt/gd/rust/link/src/acl/
Dcore.rs33 handle: u16,
55 pub async fn register(&mut self, handle: u16, bt: Bluetooth) -> Connection { in register() argument
64 Register { handle: u16, bt: Bluetooth, fut: oneshot::Sender<Connection> },
67 const QCOM_DEBUG_HANDLE: u16 = 0xedc;
80 let mut connections: HashMap<u16, ConnectionInternal> = HashMap::new(); in provide_acl_dispatch()
84 let mut le_credits: u16 = controller.le_buffers.into(); in provide_acl_dispatch()
/system/bt/gd/rust/hal/src/
Drootcanal_hal.rs59 port: u16,
64 pub fn new(address: &str, port: u16) -> Self { in new()
104 let len: usize = (buffer[2] as u16 + ((buffer[3] as u16) << 8)).into(); in dispatch_incoming()
117 let len: usize = (buffer[2] as u16 + (((buffer[3] & 0x3f) as u16) << 8)).into(); in dispatch_incoming()
/system/libbase/
Dparseint_test.cpp197 uint16_t u16; in TEST() local
198 ASSERT_TRUE(android::base::ParseByteCount("63k", &u16)); in TEST()
199 ASSERT_EQ(63U * 1024, u16); in TEST()
200 ASSERT_TRUE(android::base::ParseByteCount("65535b", &u16)); in TEST()
201 ASSERT_EQ(65535U, u16); in TEST()
202 ASSERT_FALSE(android::base::ParseByteCount("65k", &u16)); in TEST()
/system/extras/ext4_utils/include/ext4_utils/
Dext4_utils.h81 typedef unsigned short int u16; typedef
94 u16 bg_flags;
/system/bt/gd/rust/hci/custom_types/
Dlib.rs78 ((self.bytes[2] as u16) << 4) | ((self.bytes[1] as u16) >> 4), in fmt()
/system/bt/bta/sdp/
Dbta_sdp_act.cc70 record->mns.hdr.l2cap_psm = p_attr->attr_value.v.u16; in bta_create_mns_sdp_record()
123 record->mas.hdr.l2cap_psm = p_attr->attr_value.v.u16; in bta_create_mas_sdp_record()
169 record->pse.hdr.l2cap_psm = p_attr->attr_value.v.u16; in bta_create_pse_sdp_record()
205 record->ops.hdr.l2cap_psm = p_attr->attr_value.v.u16; in bta_create_ops_sdp_record()
304 record->dip.spec_id = p_attr->attr_value.v.u16; in bta_create_dip_sdp_record()
310 record->dip.vendor = p_attr->attr_value.v.u16; in bta_create_dip_sdp_record()
317 record->dip.vendor_id_source = p_attr->attr_value.v.u16; in bta_create_dip_sdp_record()
323 record->dip.product = p_attr->attr_value.v.u16; in bta_create_dip_sdp_record()
330 record->dip.version = p_attr->attr_value.v.u16; in bta_create_dip_sdp_record()
/system/bt/gd/rust/link/src/acl/classic/
Dmod.rs145 …let connections: Arc<Mutex<HashMap<u16, ConnectionInternal>>> = Arc::new(Mutex::new(HashMap::new()… in provide_acl_manager()
256 handle: u16, in dispatch_to() argument
257 connections: &Arc<Mutex<HashMap<u16, ConnectionInternal>>>, in dispatch_to() argument
266 handle: u16, in run_connection() argument
270 connections: Arc<Mutex<HashMap<u16, ConnectionInternal>>>, in run_connection() argument
/system/bt/stack/hid/
Dhidh_api.cc178 p_nvi->rel_num = p_attr->attr_value.v.u16; in hidh_search_callback()
193 p_nvi->hpars_ver = p_attr->attr_value.v.u16; in hidh_search_callback()
199 p_nvi->sup_timeout = p_attr->attr_value.v.u16; in hidh_search_callback()
205 p_nvi->ssr_max_latency = p_attr->attr_value.v.u16; in hidh_search_callback()
212 p_nvi->ssr_min_tout = p_attr->attr_value.v.u16; in hidh_search_callback()
/system/security/keystore2/test_utils/
Dlib.rs38 let number: u16 = rand::random(); in new()
/system/bt/bta/hf_client/
Dbta_hf_client_sdp.cc259 client_cb->peer_features = p_attr->attr_value.v.u16; in bta_hf_client_sdp_find_attr()
270 if (p_attr->attr_value.v.u16 == 0x01) { in bta_hf_client_sdp_find_attr()
/system/bt/gd/rust/main/src/
Dlib.rs34 pub async fn set_rootcanal_port(&self, port: Option<u16>) { in set_rootcanal_port() argument

12