Home
last modified time | relevance | path

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

/DragonOS-0.1.8/kernel/src/driver/base/char/
Dmod.rs131 if let Some(item) = chardevs.0.get(index) { in find_dynamic_major()
132 if item.is_empty() { in find_dynamic_major()
141 for item in chardevss { in find_dynamic_major()
142 if item.device_number().major() == index { in find_dynamic_major()
215 for (index, item) in items.iter().enumerate() { in __register_chardev_region()
217 match item.device_number().major().cmp(&major) { in __register_chardev_region()
223 if item.device_number().minor() + item.minorct() <= baseminor { in __register_chardev_region()
226 if item.base_minor() >= baseminor + minorct { in __register_chardev_region()
253 for (index, item) in items.iter().enumerate() { in __unregister_chardev_region()
254 if item.device_number() == device_number && item.minorct() == minorct { in __unregister_chardev_region()
/DragonOS-0.1.8/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.8/kernel/src/common/
Dhid.h131 uint8_t item; // 暂存当前的item member
/DragonOS-0.1.8/kernel/src/libs/
Didr.c69 struct idr_layer *item = idp->free_list; in __get_from_free_list() local
71 if (item == NULL) in __get_from_free_list()
79 item->ary[0] = NULL; // 记得清空原来的数据 in __get_from_free_list()
85 return item; in __get_from_free_list()