Lines Matching refs:lm
108 lm: *const LinkManager, in link_manager_add_link()
111 let lm = ManuallyDrop::new(unsafe { Rc::from_raw(lm) }); localVariable
112 unsafe { lm.add_link(hci::Address::from(&*peer)).is_ok() }
126 lm: *const LinkManager, in link_manager_remove_link()
129 let lm = ManuallyDrop::new(unsafe { Rc::from_raw(lm) }); localVariable
130 unsafe { lm.remove_link(hci::Address::from(&*peer)).is_ok() }
140 pub unsafe extern "C" fn link_manager_tick(lm: *const LinkManager) { in link_manager_tick()
141 let lm = ManuallyDrop::new(unsafe { Rc::from_raw(lm) }); in link_manager_tick() localVariable
142 lm.as_ref().tick(); in link_manager_tick()
157 lm: *const LinkManager, in link_manager_ingest_hci()
161 let lm = ManuallyDrop::new(unsafe { Rc::from_raw(lm) }); in link_manager_ingest_hci() localVariable
165 lm.ingest_hci(packet).is_ok() in link_manager_ingest_hci()
185 lm: *const LinkManager, in link_manager_ingest_lmp()
190 let lm = ManuallyDrop::new(unsafe { Rc::from_raw(lm) }); localVariable
194 unsafe { lm.ingest_lmp(hci::Address::from(&*from), packet).is_ok() }
207 pub unsafe extern "C" fn link_manager_destroy(lm: *const LinkManager) { in link_manager_destroy()
209 let _ = Rc::from_raw(lm); in link_manager_destroy()