Home
last modified time | relevance | path

Searched refs:id (Results 1 – 19 of 19) sorted by relevance

/DragonOS-0.1.2/kernel/src/driver/usb/xhci/
Dinternal.h13 #define xhci_read_cap_reg32(id, offset) (__read4b(xhci_hc[id].vbase + (offset))) argument
14 #define xhci_get_ptr_cap_reg32(id, offset) ((uint32_t *)(xhci_hc[id].vbase + (offset))) argument
15 #define xhci_write_cap_reg32(id, offset, value) (__write4b(xhci_hc[id].vbase + (offset), (value))) argument
17 #define xhci_read_cap_reg64(id, offset) (__read8b(xhci_hc[id].vbase + (offset))) argument
18 #define xhci_get_ptr_reg64(id, offset) ((uint64_t *)(xhci_hc[id].vbase + (offset))) argument
19 #define xhci_write_cap_reg64(id, offset, value) (__write8b(xhci_hc[id].vbase + (offset), (value))) argument
21 #define xhci_read_op_reg8(id, offset) (*(uint8_t *)(xhci_hc[id].vbase_op + (offset))) argument
22 #define xhci_get_ptr_op_reg8(id, offset) ((uint8_t *)(xhci_hc[id].vbase_op + (offset))) argument
23 #define xhci_write_op_reg8(id, offset, value) (*(uint8_t *)(xhci_hc[id].vbase_op + (offset)) = (uin… argument
25 #define xhci_read_op_reg32(id, offset) (__read4b(xhci_hc[id].vbase_op + (offset))) argument
[all …]
Dxhci.c29 static int xhci_hc_stop(int id);
30 static int xhci_hc_reset(int id);
31 static int xhci_hc_stop_legacy(int id);
32 static int xhci_hc_start_sched(int id);
33 static int xhci_hc_stop_sched(int id);
34 static uint32_t xhci_hc_get_protocol_offset(int id, uint32_t list_off, const int version, uint32_t …
36 static int xhci_hc_pair_ports(int id);
40 static int xhci_hc_init_intr(int id);
41 static int xhci_hc_start_ports(int id);
43 static int xhci_send_command(int id, struct xhci_TRB_t *trb, const bool do_ring);
[all …]
/DragonOS-0.1.2/kernel/src/common/
Didr.h86 int idr_alloc(struct idr *idp, void *ptr, int *id);
87 void *idr_remove(struct idr *idp, int id);
90 void *idr_find(struct idr *idp, int id);
93 int idr_replace_get_old(struct idr *idp, void *ptr, int id, void **oldptr);
94 int idr_replace(struct idr *idp, void *ptr, int id);
97 bool idr_count(struct idr *idp, int id);
111 #define for_each_idr_entry(idp, id, ptr) \ argument
112 …for (id = -1, ptr = idr_find_next_getid(idp, id, &id); ptr != NULL || !idr_count(idp, id); ptr = i…
120 #define for_each_idr_entry_continue(idp, id, ptr) \ argument
121 …(ptr = idr_find_next_getid(idp, id - 1, &id); ptr != NULL || !idr_count(idp, id); ptr = idr_find_n…
[all …]
Dcompletion.h39 int id; member
/DragonOS-0.1.2/docs/kernel/core_api/
Ddata_structures.md260 …emsp; ida的主要作用是分配+管理id. 它能分配一个最小的, 未被分配出去的id. 当您需要管理某个数据结构时, 可能需要使用id来区分不同的目标. 这个时候, ida将会是很好的选择. …
323 `bool ida_count(struct ida *ida_p, int id)`
334 **id**
345 `void ida_remove(struct ida *ida_p, int id)`
356 **id**
358    您要删除的id.
369   释放一个IDA所有的空间, 同时删除ida的所有已经分配的id.(所以您不用担心删除id之后, ida还会占用大量空间.)
402    idr是一个基于radix-tree的ID-pointer的数据结构. 该数据结构提供了建id与数据指针绑定的功能, 它的主要功能有以下4个:
448 `int idr_alloc(struct idr *idp, void *ptr, int *id)`
464 **id**
[all …]
/DragonOS-0.1.2/kernel/src/libs/
Didr.c166 int64_t id = 0; in __idr_get_empty_slot() local
183 id = (id << IDR_BITS) | pos; in __idr_get_empty_slot()
202 return id; in __idr_get_empty_slot()
213 static __always_inline void __idr_mark_full(struct idr *idp, int id, struct idr_layer **stk, int ma… in __idr_mark_full() argument
215 int64_t __id = (int64_t)id; in __idr_mark_full()
248 static __always_inline int __idr_get_path(struct idr *idp, int id, struct idr_layer **stk) in __idr_get_path() argument
250 int64_t __id = (int64_t)id; in __idr_get_path()
294 static __always_inline void __idr_erase_full(struct idr *idp, int id, struct idr_layer **stk, int m… in __idr_erase_full() argument
296 int64_t __id = (int64_t)id; in __idr_erase_full()
364 int64_t id = __idr_get_empty_slot(idp, stk); in __idr_get_new_above_int() local
[all …]
/DragonOS-0.1.2/docs/userland/libc/apis/api-list/
Dunistd.md13 传入文件id,缓冲区,以及字节数
19 传入文件id,缓冲区,字节数
25 传入文件id,偏移量,调整模式
Ddirent.md11 ``int fd`` : 文件夹id(不推荐修改)
Dfcntl.md10 传入文件路径,和文件类型(详细请看下面的宏定义),将文件打开并返回文件id
/DragonOS-0.1.2/kernel/src/ktest/
Dtest-idr.c42 int id = __lowbit_id(i), chk_id = -1; in ktest_idr_case0() local
49 assert(id == chk_id); in ktest_idr_case0()
91 int *id = idr_remove(&k_idr, a[i]); in ktest_idr_case1() local
92 assert(id != NULL); in ktest_idr_case1()
93 assert(*id == i); in ktest_idr_case1()
100 int *id = idr_remove(&k_idr, a[i]); in ktest_idr_case1() local
101 assert(id != NULL); in ktest_idr_case1()
102 assert(*id == i); in ktest_idr_case1()
126 int *id = idr_remove(&k_idr, a[i]); in ktest_idr_case1() local
127 assert(id != NULL); in ktest_idr_case1()
[all …]
/DragonOS-0.1.2/tools/
Dumount_virt_disk.sh2 uid=`id -u`
Dmount_virt_disk.sh2 uid=`id -u`
/DragonOS-0.1.2/docs/kernel/process_management/
Dpcb.md22 进程id
/DragonOS-0.1.2/kernel/src/libs/libUI/
Dscreen_manager.h45 uint16_t id; member
Dtextui.h96 uint32_t id; // 窗口id member
Dscreen_manager.c144 ui->id = scm_ui_max_id++; in scm_register_alloc()
180 ui->id = scm_ui_max_id++; in scm_register()
Dtextui-render.c75 if (window->id != __textui_get_current_window_id()) in textui_refresh_characters()
Dtextui.c40 window->id = __window_max_id++; in __textui_init_window()
125 return __private_info.current_window->id; in __textui_get_current_window_id()
/DragonOS-0.1.2/kernel/src/sched/
Dcompletion.c296 waiter_data[i].id = -i; // waiter in __test_completion()
305 worker_data[i].id = i; // worker in __test_completion()