Home
last modified time | relevance | path

Searched refs:u32 (Results 1 – 25 of 43) sorted by relevance

12

/tools/netsim/rust/daemon/src/
Dffi.rs43 fn handle_request_cxx(chip_id: u32, packet: &CxxVector<u8>, packet_type: u8); in handle_request_cxx() argument
46 fn handle_response_cxx(chip_id: u32, packet: &CxxVector<u8>, packet_type: u8); in handle_response_cxx() argument
55 fn register_grpc_transport(chip_id: u32); in register_grpc_transport() argument
58 fn unregister_grpc_transport(chip_id: u32); in unregister_grpc_transport() argument
67 fn HandleResponseCxx(chip_id: u32, packet: &Vec<u8>, packet_type: u8); in HandleResponseCxx() argument
79 fn GetGrpcPort(self: &GrpcServer) -> u32; in GetGrpcPort() argument
84 netsim_grpc_port: u32, in RunGrpcServerCxx() argument
99 fn StreamPackets(server: &String) -> u32; in StreamPackets() argument
106 stream_id: u32, in ReadPacketResponseLoop() argument
107 read_fn: fn(stream_id: u32, proto_bytes: &[u8]), in ReadPacketResponseLoop() argument
[all …]
Dservice.rs110 fn run_grpc_server(&mut self) -> Option<u32> { in run_grpc_server() argument
113 env::var("NETSIM_GRPC_PORT").map(|val| val.parse::<u32>().unwrap_or(0)).unwrap_or(0); in run_grpc_server()
147 fn write_ports_to_ini(&self, grpc_port: u32, web_port: Option<u16>) { in write_ports_to_ini() argument
203 pub fn new_test_beacon(idx: u32, interval: u64) { in new_test_beacon() argument
/tools/netsim/rust/daemon/src/captures/
Dpcap_util.rs72 u32::MAX, // snaplen in write_pcap_header()
73 link_type as u32 in write_pcap_header()
111 packet_type: u32, in wrap_bt_packet() argument
114 let header: Vec<u8> = be_vec![packet_direction as u32, packet_type as u8]; in wrap_bt_packet()
130 timestamp.as_secs() as u32, // seconds in append_record()
132 length as u32, // Captured Packet Length in append_record()
133 length as u32 // Original Packet Length in append_record()
150 let block_total_length: u32 = (packet.len() + packet_data_padding + 32) as u32; in append_record_pcapng()
156 timestamp.as_secs() as u32, // seconds in append_record_pcapng()
158 packet.len() as u32, // Captured Packet Length in append_record_pcapng()
[all …]
Dcaptures_handler.rs98 let time_display = TimeDisplay::new(capture.seconds, capture.nanos as u32); in handle_capture_get()
177 .parse::<u32>() in get_id()
242 packet_type: u32, in handle_packet() argument
291 pub fn host_to_controller(chip_id: ChipIdentifier, packet: &Bytes, packet_type: u32) { in host_to_controller() argument
301 pub fn controller_to_host(chip_id: ChipIdentifier, packet: &Bytes, packet_type: u32) { in controller_to_host() argument
/tools/netsim/rust/daemon/src/wifi/
Dmedium.rs28 const RX_RATE: u32 = 0;
29 const SIGNAL: u32 = 4294967246; // -50
47 client_id: u32,
56 fn new(client_id: u32, addr: MacAddress, hwsim_addr: MacAddress) -> Self { in new() argument
82 clients: RwLock<HashMap<u32, Client>>,
89 type HwsimCmdCallback = fn(u32, &Bytes);
104 pub fn add(&self, client_id: u32) { in add() argument
111 pub fn remove(&self, client_id: u32) { in remove() argument
116 pub fn reset(&self, client_id: u32) { in reset() argument
124 pub fn get(&self, client_id: u32) -> Option<Client> { in get()
[all …]
Dhwsim_attr_set.rs60 flags: Option<u32>,
61 rx_rate_idx: Option<u32>,
62 signal: Option<u32>,
64 freq: Option<u32>,
75 pub flags: Option<u32>,
76 pub rx_rate_idx: Option<u32>,
77 pub signal: Option<u32>,
79 pub freq: Option<u32>,
135 pub fn flags(&mut self, flags: u32) -> &mut Self { in flags()
141 pub fn rx_rate(&mut self, rx_rate_idx: u32) -> &mut Self { in rx_rate()
[all …]
Dframe.rs34 pub flags: Option<u32>,
37 pub signal: Option<u32>,
38 pub freq: Option<u32>,
/tools/netsim/rust/proto/src/
Dstats.rs215 self.special_fields.cached_size().set(my_size as u32); in compute_size()
354 pub device_id: ::std::option::Option<u32>,
387 pub fn device_id(&self) -> u32 { in device_id() argument
400 pub fn set_device_id(&mut self, v: u32) { in set_device_id() argument
644 self.special_fields.cached_size().set(my_size as u32); in compute_size()
816 pub get_version: ::std::option::Option<u32>,
818 pub create_device: ::std::option::Option<u32>,
820 pub delete_chip: ::std::option::Option<u32>,
822 pub patch_device: ::std::option::Option<u32>,
824 pub reset: ::std::option::Option<u32>,
[all …]
Dfrontend.rs95 self.special_fields.cached_size().set(my_size as u32); in compute_size()
218 self.special_fields.cached_size().set(my_size as u32); in compute_size()
341 self.special_fields.cached_size().set(my_size as u32); in compute_size()
401 pub id: u32,
463 self.special_fields.cached_size().set(my_size as u32); in compute_size()
586 self.special_fields.cached_size().set(my_size as u32); in compute_size()
723 self.special_fields.cached_size().set(my_size as u32); in compute_size()
851 self.special_fields.cached_size().set(my_size as u32); in compute_size()
1092 self.special_fields.cached_size().set(my_size as u32); in compute_size()
1190 pub id: u32,
[all …]
/tools/netsim/rust/daemon/src/transport/
Dgrpc.rs33 chip_id: u32,
43 pub fn register_grpc_transport(chip_id: u32) { in register_grpc_transport() argument
48 pub fn unregister_grpc_transport(chip_id: u32) { in unregister_grpc_transport() argument
Dfd.rs78 fd_in: u32,
80 fd_out: u32,
281 unsafe fn connector_fd_reader(fd_rx: i32, kind: ChipKindEnum, stream_id: u32) -> JoinHandle<()> { in connector_fd_reader()
345 static ref CONNECTOR_FILES: Arc<RwLock<HashMap<u32, File>>> =
350 fn connector_grpc_read_callback(stream_id: u32, proto_bytes: &[u8]) { in connector_grpc_read_callback() argument
371 fn connector_grpc_reader(chip_kind: u32, stream_id: u32, file_in: File) -> JoinHandle<()> { in connector_grpc_reader() argument
386 if (chip_kind != ChipKindEnum::BLUETOOTH as u32) in connector_grpc_reader()
387 && (chip_kind != ChipKindEnum::UWB as u32) in connector_grpc_reader()
441 handles.push(connector_grpc_reader(chip.kind as u32, stream_id, file_in)); in run_fd_connector()
/tools/netsim/rust/cli/src/
Dffi.rs19 fn handle_error(&self, error_code: u32, error_message: &str) { in handle_error() argument
29 fn handle_error(&self, error_code: u32, error_message: &str); in handle_error() argument
53 fn handle_error(&self, error_code: u32, error_message: &str); in handle_error() argument
Dfile_handler.rs35 fn handle_error(&self, error_code: u32, error_message: &str) { in handle_error() argument
/tools/security/remote_provisioning/hwtrust/src/rkp/
Ddevice_info.rs33 pub system_patch_level: u32,
35 pub boot_patch_level: u32,
37 pub vendor_patch_level: u32,
129 impl TryFrom<u32> for DeviceInfoVersion {
132 fn try_from(i: u32) -> Result<Self, Self::Error> { in try_from()
/tools/netsim/rust/daemon/src/bluetooth/
Dchip.rs35 pub facade_id: u32,
39 facade_id: u32, in create_add_rust_device_result() argument
/tools/netsim/rust/common/src/util/
Dos_utils.rs32 const DEFAULT_HCI_PORT: u32 = 6402;
130 pub fn get_hci_port(hci_port_flag: u32, instance: u16) -> u32 { in get_hci_port() argument
139 netsim_hci_port.parse::<u32>().unwrap() in get_hci_port()
141 DEFAULT_HCI_PORT + (instance as u32) in get_hci_port()
Dtime_display.rs27 nsecs: u32,
37 pub fn new(secs: i64, nsecs: u32) -> TimeDisplay { in new()
/tools/netsim/pdl/
Dmac80211_hwsim.pdl95 * @HWSIM_ATTR_CHANNELS: u32 attribute used with the %HWSIM_CMD_CREATE_RADIO
97 * @HWSIM_ATTR_RADIO_ID: u32 attribute used with %HWSIM_CMD_DESTROY_RADIO
101 * @HWSIM_ATTR_REG_CUSTOM_REG: custom regulatory domain index (u32 attribute)
115 * @HWSIM_ATTR_IFTYPE_SUPPORT: u32 attribute of supported interface types bits
116 * @HWSIM_ATTR_CIPHER_SUPPORT: u32 array of supported cipher types
/tools/netsim/rust/daemon/src/wireless/
Dwifi.rs42 request_sender: std::sync::mpsc::Sender<(u32, Bytes)>,
48 let (request_sender, rx) = std::sync::mpsc::channel::<(u32, Bytes)>(); in new()
138 fn medium_callback(id: u32, packet: &Bytes) { in medium_callback() argument
Dble_beacon.rs103 facade_id: FacadeIdentifier(u32::MAX), in new()
104 chip_id: ChipIdentifier(u32::MAX), in new()
Dpacket.rs103 pub fn handle_response_cxx(chip_id: u32, packet: &cxx::CxxVector<u8>, packet_type: u8) { in handle_response_cxx() argument
163 pub fn handle_request_cxx(chip_id: u32, packet: &cxx::CxxVector<u8>, packet_type: u8) { in handle_request_cxx() argument
/tools/netsim/rust/daemon/src/devices/
Dchip.rs38 pub struct ChipIdentifier(pub u32);
40 pub struct FacadeIdentifier(pub u32);
54 const INITIAL_CHIP_ID: u32 = 1000;
92 fn new(start: u32) -> Self { in new()
Ddevices_handler.rs74 const INITIAL_DEVICE_ID: u32 = 1;
204 device_id: u32,
205 chip_id: u32,
210 pub fn get_device_id(&self) -> u32 { in get_device_id() argument
214 pub fn get_chip_id(&self) -> u32 { in get_chip_id() argument
259 device_id: u32::MAX, in add_chip_cxx()
260 chip_id: u32::MAX, in add_chip_cxx()
287 device_id: u32::MAX, in add_chip_cxx()
288 chip_id: u32::MAX, in add_chip_cxx()
308 Box::new(AddChipResultCxx { device_id: u32::MAX, chip_id: u32::MAX, is_error: true }) in add_chip_cxx()
[all …]
/tools/asuite/adevice/tests/common/
Dfakes.rs58 wait_called: RefCell<u32>,
83 pub fn wait_calls(&self) -> u32 { in wait_calls() argument
/tools/netsim/rust/daemon/src/grpc_server/
Dserver.rs25 pub fn start(port: u32) -> (Server, u16) { in start()

12