Searched refs:DescriptorState (Results 1 – 3 of 3) sorted by relevance
| /linux/drivers/android/binder/range_alloc/ |
| H A D | array.rs | 13 use crate::range_alloc::{DescriptorState, FreedRange, Range}; 75 if let DescriptorState::Reserved(_) = range.state { in debug_print() 141 state: DescriptorState::new(is_oneway, debug_id, pid), in reserve_new() 192 if let DescriptorState::Allocated(_) = range.state { in reservation_abort() 232 let DescriptorState::Reserved(reservation) = &range.state else { in reservation_commit() localVariable 236 range.state = DescriptorState::Allocated(reservation.clone().allocate(data.take())); in reservation_commit() 248 let DescriptorState::Allocated(allocation) = &mut range.state else { in reserve_existing() localVariable 254 range.state = DescriptorState::Reserved(allocation.reservation.clone()); in reserve_existing() 260 if let DescriptorState::Allocated(allocation) = &mut range.state { in take_for_each()
|
| H A D | tree.rs | 14 use crate::range_alloc::{DescriptorState, FreedRange, Range}; 131 DescriptorState::Reserved(_res) => { in debug_print() 134 DescriptorState::Allocated(_alloc) => { in debug_print() 181 DescriptorState::new(is_oneway, debug_id, pid), in reserve_new() 229 Some((DescriptorState::Reserved(reservation), free_node_res)) => { in reservation_abort() 313 Some((DescriptorState::Reserved(reservation), free_node_res)) => ( in reservation_commit() 315 DescriptorState::Allocated(reservation.allocate(data.take())), in reservation_commit() 338 Some((DescriptorState::Allocated(allocation), free_node_res)) => { in reserve_existing() 342 Some((DescriptorState::Reserved(reservation), free_node_res)), in reserve_existing() 363 if let Some((DescriptorState::Allocated(allocation), _)) = &mut desc.state { in take_for_each() [all …]
|
| H A D | mod.rs | 13 enum DescriptorState<T> { enum 18 impl<T> DescriptorState<T> { implementation 20 DescriptorState::Reserved(Reservation { in new() 29 DescriptorState::Reserved(inner) => inner.pid, in pid() 30 DescriptorState::Allocated(inner) => inner.reservation.pid, in pid() 36 DescriptorState::Reserved(inner) => inner.is_oneway, in is_oneway() 37 DescriptorState::Allocated(inner) => inner.reservation.is_oneway, in is_oneway() 102 state: DescriptorState<T>,
|