Home
last modified time | relevance | path

Searched refs:item (Results 1 – 9 of 9) sorted by relevance

/DragonOS-0.1.9/kernel/src/driver/base/char/
Dmod.rs60 if let Some(item) = chardevs.get(index as usize) { in find_dynamic_major()
61 if item.is_empty() { in find_dynamic_major()
72 for item in chardevss { in find_dynamic_major()
73 if item.device_number().major().data() == index { in find_dynamic_major()
150 for (index, item) in items.iter().enumerate() { in __register_chardev_region()
152 match item.device_number().major().cmp(&major) { in __register_chardev_region()
158 if item.device_number().minor() + item.minorct() <= baseminor { in __register_chardev_region()
161 if item.base_minor() >= baseminor + minorct { in __register_chardev_region()
187 for (index, item) in items.iter().enumerate() { in __unregister_chardev_region()
188 if item.device_number() == device_number && item.minorct() == minorct { in __unregister_chardev_region()
/DragonOS-0.1.9/kernel/src/driver/hid/
Dhidparse.c130 parser->item = parser->report_desc[parser->pos++]; in hid_parse()
133 …memcpy(&parser->value, &parser->report_desc[parser->pos], item_size[parser->item & HID_SIZE_MASK]); in hid_parse()
139 if (i < item_size[parser->item & HID_SIZE_MASK]) in hid_parse()
146 parser->pos += item_size[parser->item & HID_SIZE_MASK]; in hid_parse()
149 switch (parser->item & HID_ITEM_MASK) in hid_parse()
162 if ((parser->item & HID_SIZE_MASK) > 2) // item大小为32字节 in hid_parse()
241 parser->data.type = (uint8_t)(parser->item & HID_ITEM_MASK); in hid_parse()
244 … __get_report_offset(parser, parser->data.report_id, (uint8_t)(parser->item & HID_ITEM_MASK)); in hid_parse()
270 if ((parser->item & HID_ITEM_MASK) == HID_ITEM_FEATURE) in hid_parse()
272 else if ((parser->item & HID_ITEM_MASK) == HID_ITEM_INPUT) in hid_parse()
[all …]
/DragonOS-0.1.9/kernel/src/driver/base/block/
Dblock_device.rs346 if let Some(item) = blockdevs.get(index as usize) { in find_dynamic_major()
347 if item.is_empty() { in find_dynamic_major()
359 for item in blockdevss { in find_dynamic_major()
360 if item.device_number().major() == Major::new(index as u32) { in find_dynamic_major()
437 for (index, item) in items.iter().enumerate() { in __register_blockdev_region()
439 match item.device_number().major().cmp(&major) { in __register_blockdev_region()
445 if item.device_number().minor() + item.minorct() <= baseminor { in __register_blockdev_region()
448 if item.base_minor() >= baseminor + minorct { in __register_blockdev_region()
474 for (index, item) in items.iter().enumerate() { in __unregister_blockdev_region()
475 if item.device_number() == device_number && item.minorct() == minorct { in __unregister_blockdev_region()
/DragonOS-0.1.9/kernel/src/libs/intertrait/macros/src/
Ditem_impl.rs48 .filter_map(|item| { in fully_bound_trait()
49 if let ImplItem::Type(assoc_ty) = item { in fully_bound_trait()
/DragonOS-0.1.9/kernel/src/net/
Dnet_core.rs193 let item = handle_guard.get(&handle); in send_event() localVariable
194 if item.is_none() { in send_event()
198 let handle_item = item.unwrap(); in send_event()
/DragonOS-0.1.9/kernel/src/common/
Dhid.h131 uint8_t item; // 暂存当前的item member
/DragonOS-0.1.9/kernel/src/net/event_poll/
Dmod.rs575 for item in push_back { in ep_send_events()
576 ep_guard.ep_add_ready(item); in ep_send_events()
646 .extract_if(|item| Arc::ptr_eq(item, &epitem)); in ep_remove()
/DragonOS-0.1.9/kernel/src/libs/intertrait/
DREADME.md64 ### `#[cast_to]` to `impl` item
114 // Only in an item position due to the current limitation in the stable Rust.
/DragonOS-0.1.9/kernel/src/net/socket/
Dsockets.rs836 let item = handle_guard.remove(&old_handle.0).unwrap(); in accept() localVariable
838 handle_guard.insert(new_handle.0, item); in accept()