Home
last modified time | relevance | path

Searched refs:Ordering (Results 1 – 10 of 10) sorted by relevance

/tools/netsim/rust/daemon/src/wireless/
Duwb.rs28 use std::sync::atomic::{AtomicBool, AtomicI32, Ordering};
71 let _ = self.tx_count.fetch_add(1, Ordering::SeqCst); in handle_request()
75 self.state.store(true, Ordering::SeqCst); in reset()
76 self.tx_count.store(0, Ordering::SeqCst); in reset()
77 self.rx_count.store(0, Ordering::SeqCst); in reset()
83 state: self.state.load(Ordering::SeqCst).into(), in get()
84 tx_count: self.tx_count.load(Ordering::SeqCst), in get()
85 rx_count: self.rx_count.load(Ordering::SeqCst), in get()
97 self.state.store(patch_state, Ordering::SeqCst); in patch()
148 rx_count.fetch_add(1, Ordering::SeqCst); in new()
Dbluetooth.rs30 use std::sync::atomic::{AtomicBool, Ordering};
73 let last_state: bool = enabled.swap(state, Ordering::SeqCst); in patch_state()
101 self.low_energy_enabled.store(true, Ordering::SeqCst); in reset()
102 self.classic_enabled.store(true, Ordering::SeqCst); in reset()
111 state: self.low_energy_enabled.load(Ordering::SeqCst).into(), in get()
118 state: self.classic_enabled.load(Ordering::SeqCst).into(), in get()
Dwifi.rs26 use std::sync::atomic::Ordering;
112 chip_proto.mut_wifi().state = Some(client.enabled.load(Ordering::Relaxed)); in get()
113 chip_proto.mut_wifi().tx_count = client.tx_count.load(Ordering::Relaxed) as i32; in get()
114 chip_proto.mut_wifi().rx_count = client.rx_count.load(Ordering::Relaxed) as i32; in get()
/tools/asuite/adevice/src/
Ddevice.rs12 use std::cmp::Ordering;
396 fn mkdir_comes_first_rm_dfs(a: &AdbCommand, b: &AdbCommand) -> Ordering { in mkdir_comes_first_rm_dfs() argument
408 return Ordering::Less; in mkdir_comes_first_rm_dfs()
411 return Ordering::Greater; in mkdir_comes_first_rm_dfs()
423 return Ordering::Less; in mkdir_comes_first_rm_dfs()
426 return Ordering::Greater; in mkdir_comes_first_rm_dfs()
428 Ordering::Equal in mkdir_comes_first_rm_dfs()
436 use core::cmp::Ordering;
512 Ordering::Less, in deeper_rms_come_first()
519 Ordering::Greater, in deeper_rms_come_first()
[all …]
/tools/netsim/rust/daemon/src/devices/
Ddevice.rs30 use std::sync::atomic::{AtomicBool, Ordering};
78 device.visible = Some(self.visible.load(Ordering::SeqCst)); in get()
91 self.visible.store(patch.visible.unwrap(), Ordering::SeqCst); in patch()
211 self.visible.store(true, Ordering::SeqCst); in reset()
225 use std::sync::atomic::{AtomicU32, Ordering};
235 let chip_id_1 = ChipIdentifier(IDS.fetch_add(1, Ordering::SeqCst)); in create_test_device()
236 let chip_id_2 = ChipIdentifier(IDS.fetch_add(1, Ordering::SeqCst)); in create_test_device()
Dchip.rs31 use std::sync::atomic::{AtomicU32, Ordering};
97 ChipIdentifier(self.ids.fetch_add(1, Ordering::SeqCst)) in next_id()
Ddevices_handler.rs64 use std::sync::atomic::{AtomicU32, Ordering};
111 DeviceIdentifier(self.ids.fetch_add(1, Ordering::SeqCst)) in next_id()
1202 assert!(!device.visible.load(Ordering::SeqCst)); in test_patch_device()
1329 assert!(!device.visible.load(Ordering::SeqCst)); in test_reset()
1342 assert!(device.visible.load(Ordering::SeqCst)); in test_reset()
/tools/netsim/rust/daemon/src/bluetooth/
Dmocked.rs26 use std::sync::atomic::{AtomicU32, Ordering};
36 FacadeIdentifier(IDS.fetch_add(1, Ordering::SeqCst)) in next_id()
Dbeacon.rs402 use std::sync::atomic::{AtomicU32, Ordering};
419 ChipIdentifier(TEST_GUID_GENERATOR.fetch_add(1, Ordering::SeqCst)) in next_id()
/tools/netsim/rust/daemon/src/wifi/
Dmedium.rs24 use std::sync::atomic::{AtomicBool, AtomicU32, Ordering};
118 client.enabled.store(true, Ordering::Relaxed); in reset()
119 client.tx_count.store(0, Ordering::Relaxed); in reset()
120 client.rx_count.store(0, Ordering::Relaxed); in reset()
304 client.enabled.store(enabled, Ordering::Relaxed); in set_enabled()
316 .load(Ordering::Relaxed)) in enabled()
334 .fetch_add(1, Ordering::Relaxed); in incr_tx()
345 .fetch_add(1, Ordering::Relaxed); in incr_rx()