Home
last modified time | relevance | path

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

123

/packages/modules/Bluetooth/system/gd/rust/topshim/src/profiles/
Dgatt.rs47 timestamp: u16,
57 feat_seln: u16,
58 list_logic_type: u16,
63 found_timeout: u16,
64 lost_timeout: u16,
66 num_of_tracking_entries: u16,
78 company: u16,
79 company_mask: u16,
88 advertising_event_properties: u16,
102 min_interval: u16,
[all …]
Dsdp.rs196 spec_id: u16,
197 vendor: u16,
198 vendor_id_source: u16,
199 product: u16,
200 version: u16,
/packages/modules/Bluetooth/system/stack/include/
Dbt_types.h146 #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 …]
Dbt_dev_class.h104 #define BTM_COD_SERVICE_CLASS(u16, pd) \ argument
106 (u16) = (pd)[0]; \
107 (u16) <<= 8; \
108 (u16) += (pd)[1] & 0xE0; \
Dhcimsgs.h347 #define HCID_GET_HANDLE(u16) (uint16_t)((u16)&HCI_DATA_HANDLE_MASK) argument
351 #define HCID_GET_EVENT(u16) \ argument
352 (uint8_t)(((u16) >> HCI_DATA_EVENT_OFFSET) & HCI_DATA_EVENT_MASK)
/packages/modules/Bluetooth/system/gd/rust/shim/src/
Dcontroller.rs125 acl_buffer_length: u16,
126 le_buffer_length: u16,
127 iso_buffer_length: u16,
128 le_suggested_default_data_length: u16,
129 le_max_advertising_data_length: u16,
132 acl_buffers: u16,
140 pub fn controller_get_le_maximum_tx_data_length(c: &Controller) -> u16 { in controller_get_le_maximum_tx_data_length() argument
144 pub fn controller_get_le_maximum_tx_time(c: &Controller) -> u16 { in controller_get_le_maximum_tx_time() argument
Dbridge.rs90 fn controller_get_acl_buffer_length(c: &Controller) -> u16; in controller_get_acl_buffer_length() argument
91 fn controller_get_le_buffer_length(c: &Controller) -> u16; in controller_get_le_buffer_length() argument
92 fn controller_get_iso_buffer_length(c: &Controller) -> u16; in controller_get_iso_buffer_length() argument
93 fn controller_get_le_suggested_default_data_length(c: &Controller) -> u16; in controller_get_le_suggested_default_data_length() argument
94 fn controller_get_le_maximum_tx_data_length(c: &Controller) -> u16; in controller_get_le_maximum_tx_data_length() argument
95 fn controller_get_le_maximum_tx_time(c: &Controller) -> u16; in controller_get_le_maximum_tx_time() argument
96 fn controller_get_le_max_advertising_data_length(c: &Controller) -> u16; in controller_get_le_max_advertising_data_length() argument
99 fn controller_get_acl_buffers(c: &Controller) -> u16; in controller_get_acl_buffers() argument
/packages/modules/Bluetooth/system/stack/sdp/
Dsdp_api.cc264 *p_uuid = Uuid::From16Bit(p_sattr->attr_value.v.u16); in SDP_FindServiceUUIDInRec()
291 *p_uuid = Uuid::From16Bit(p_extra_sattr->attr_value.v.u16); in SDP_FindServiceUUIDInRec()
303 *p_uuid = Uuid::From16Bit(p_attr->attr_value.v.u16); in SDP_FindServiceUUIDInRec()
394 p_sattr->attr_value.v.u16, service_uuid); in SDP_FindServiceInDb()
396 if ((p_sattr->attr_value.v.u16 == UUID_SERVCLASS_HDP_SOURCE) || in SDP_FindServiceInDb()
397 (p_sattr->attr_value.v.u16 == UUID_SERVCLASS_HDP_SINK)) { in SDP_FindServiceInDb()
408 p_sattr->attr_value.v.u16 == service_uuid))) in SDP_FindServiceInDb()
429 && ((p_extra_sattr->attr_value.v.u16 == service_uuid) || in SDP_FindServiceInDb()
443 ((p_attr->attr_value.v.u16 == service_uuid) || service_uuid == 0)) in SDP_FindServiceInDb()
601 (p_sattr->attr_value.v.u16 == layer_uuid)) { in sdp_fill_proto_elem()
[all …]
Dsdp_utils.cc104 uint16_t uuid = p_ssattr->attr_value.v.u16; in sdpu_find_profile_version()
118 uint16_t version = version_attr->attr_value.v.u16; in sdpu_find_profile_version()
143 return p_first_attr->attr_value.v.u16; in sdpu_find_most_specific_service_uuid()
156 return p_extra_sattr->attr_value.v.u16; in sdpu_find_most_specific_service_uuid()
166 return p_attr->attr_value.v.u16; in sdpu_find_most_specific_service_uuid()
239 uint16_t supported_features = p_attr->attr_value.v.u16; in sdpu_log_attribute_metrics()
961 uint16_t u16; in sdpu_get_len_from_type() local
993 BE_STREAM_TO_UINT16(u16, p); in sdpu_get_len_from_type()
994 *p_len = u16; in sdpu_get_len_from_type()
1117 if (len == 2) return uuid.As16Bit() == p_attr->attr_value.v.u16; in sdpu_compare_uuid_with_attr()
/packages/modules/Bluetooth/system/gd/rust/linux/stack/src/
Dbluetooth_gatt.rs256 min_ce_len: u16, in connection_parameter_update() argument
257 max_ce_len: u16, in connection_parameter_update() argument
645 phy_options as u16, in client_set_preferred_phy()
699 handle as u16, in read_characteristic()
728 start_handle as u16, in read_using_characteristic_uuid()
729 end_handle as u16, in read_using_characteristic_uuid()
758 handle as u16, in write_characteristic()
777 handle as u16, in read_descriptor()
799 handle as u16, in write_descriptor()
817 handle as u16, in register_for_notification()
[all …]
/packages/modules/Bluetooth/system/bta/test/
Dbta_dip_test.cc65 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()
/packages/modules/Bluetooth/system/gd/rust/stack/src/hci/
Dcontroller.rs90 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/stack/src/link/acl/
Dcore.rs34 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()
/packages/modules/Bluetooth/system/gd/rust/facade/src/
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()
114 grpc_port: u16, in create() argument
115 rootcanal_port: Option<u16>, in create() argument
Dmain.rs49 let root_server_port = value_t!(matches, "root-server-port", u16).unwrap(); in async_main()
50 let grpc_port = value_t!(matches, "grpc-port", u16).unwrap(); in async_main()
51 let rootcanal_port = value_t!(matches, "rootcanal-port", u16).ok(); in async_main()
/packages/modules/Bluetooth/system/gd/rust/stack/src/hal/
Drootcanal_hal.rs71 port: u16,
76 pub fn new(address: &str, port: u16) -> Self { in new()
117 let len: usize = (buffer[2] as u16 + ((buffer[3] as u16) << 8)).into(); in dispatch_incoming()
130 let len: usize = (buffer[2] as u16 + (((buffer[3] & 0x3f) as u16) << 8)).into(); in dispatch_incoming()
/packages/modules/Bluetooth/system/bta/sdp/
Dbta_sdp_act.cc73 record->mns.hdr.l2cap_psm = p_attr->attr_value.v.u16; in bta_create_mns_sdp_record()
126 record->mas.hdr.l2cap_psm = p_attr->attr_value.v.u16; in bta_create_mas_sdp_record()
172 record->pse.hdr.l2cap_psm = p_attr->attr_value.v.u16; in bta_create_pse_sdp_record()
208 record->ops.hdr.l2cap_psm = p_attr->attr_value.v.u16; in bta_create_ops_sdp_record()
307 record->dip.spec_id = p_attr->attr_value.v.u16; in bta_create_dip_sdp_record()
313 record->dip.vendor = p_attr->attr_value.v.u16; in bta_create_dip_sdp_record()
320 record->dip.vendor_id_source = p_attr->attr_value.v.u16; in bta_create_dip_sdp_record()
326 record->dip.product = p_attr->attr_value.v.u16; in bta_create_dip_sdp_record()
333 record->dip.version = p_attr->attr_value.v.u16; in bta_create_dip_sdp_record()
/packages/modules/Bluetooth/tools/rootcanal/lmp/src/
Dffi.rs13 get_handle: unsafe extern "C" fn(user: *mut (), address: *const [u8; 6]) -> u16,
14 get_address: unsafe extern "C" fn(user: *mut (), handle: u16, result: *mut [u8; 6]),
22 pub(crate) fn get_address(&self, handle: u16) -> hci::Address { in get_address()
28 pub(crate) fn get_handle(&self, addr: hci::Address) -> u16 { in get_handle() argument
/packages/modules/Virtualization/authfs/src/file/
Ddir.rs31 const MAX_ENTRIES: u16 = 100; // Arbitrary limit
72 pub fn number_of_entries(&self) -> u16 { in number_of_entries() argument
73 self.entries.len() as u16 // limited to MAX_ENTRIES in number_of_entries()
216 pub fn number_of_entries(&self) -> u16 { in number_of_entries() argument
217 self.0.len() as u16 // limited to MAX_ENTRIES in number_of_entries()
/packages/modules/Bluetooth/system/gd/rust/stack/src/link/acl/classic/
Dmod.rs151 …let connections: Arc<Mutex<HashMap<u16, ConnectionInternal>>> = Arc::new(Mutex::new(HashMap::new()… in provide_acl_manager()
262 handle: u16, in dispatch_to() argument
263 connections: &Arc<Mutex<HashMap<u16, ConnectionInternal>>>, in dispatch_to() argument
272 handle: u16, in run_connection() argument
276 connections: Arc<Mutex<HashMap<u16, ConnectionInternal>>>, in run_connection() argument
/packages/modules/Bluetooth/system/stack/hid/
Dhidh_api.cc180 p_nvi->rel_num = p_attr->attr_value.v.u16; in hidh_search_callback()
195 p_nvi->hpars_ver = p_attr->attr_value.v.u16; in hidh_search_callback()
201 p_nvi->sup_timeout = p_attr->attr_value.v.u16; in hidh_search_callback()
207 p_nvi->ssr_max_latency = p_attr->attr_value.v.u16; in hidh_search_callback()
214 p_nvi->ssr_min_tout = p_attr->attr_value.v.u16; in hidh_search_callback()
/packages/modules/Bluetooth/system/bta/av/
Dbta_av_act.cc387 uint16_t u16; in bta_av_group_navi_supported() local
392 BE_STREAM_TO_UINT16(u16, p_ptr); in bta_av_group_navi_supported()
396 if (u16 <= AVRC_PDU_PREV_GROUP) ret = AVRC_RSP_IMPL_STBL; in bta_av_group_navi_supported()
398 if (u16 <= AVRC_PDU_PREV_GROUP) in bta_av_group_navi_supported()
723 uint16_t u16; in bta_av_chk_notif_evt_id() local
726 BE_STREAM_TO_UINT16(u16, p); in bta_av_chk_notif_evt_id()
728 if ((u16 != 5) || (p_vendor->vendor_len != 9)) { in bta_av_chk_notif_evt_id()
758 uint16_t u16; in bta_av_proc_meta_cmd() local
800 BE_STREAM_TO_UINT16(u16, p); in bta_av_proc_meta_cmd()
801 if (u16 != 1) { in bta_av_proc_meta_cmd()
[all …]
/packages/modules/Bluetooth/system/gd/rust/packets/
Dcustom_types.rs78 ((self.bytes[2] as u16) << 4) | ((self.bytes[1] as u16) >> 4), in fmt()
/packages/modules/Bluetooth/system/gd/rust/topshim/facade/src/
Dmain.rs71 let grpc_port = value_t!(matches, "grpc-port", u16).unwrap(); in async_main()
72 let _rootcanal_port = value_t!(matches, "rootcanal-port", u16).ok(); in async_main()
/packages/modules/Bluetooth/system/bta/hf_client/
Dbta_hf_client_sdp.cc274 client_cb->peer_features = p_attr->attr_value.v.u16; in bta_hf_client_sdp_find_attr()
285 if (p_attr->attr_value.v.u16 == 0x01) { in bta_hf_client_sdp_find_attr()

123