Home
last modified time | relevance | path

Searched defs:ptr (Results 1 – 22 of 22) sorted by relevance

/DragonOS-0.1.2/kernel/src/common/
Derr.h15 static inline long __must_check IS_ERR(const void* ptr) in IS_ERR()
27 static inline long __must_check IS_ERR_OR_NULL(const void* ptr) in IS_ERR_OR_NULL()
43 static inline long __must_check PTR_ERR(void * ptr) in PTR_ERR()
Dlist.h137 #define list_entry(ptr, type, member) container_of(ptr, type, member) argument
147 #define list_first_entry(ptr, type, member) list_entry((ptr)->next, type, member) argument
157 #define list_first_entry_or_null(ptr, type, member) (!list_empty(ptr) ? list_entry((ptr)->next, typ… argument
167 #define list_last_entry(ptr, type, member) list_entry((ptr)->prev, type, member) argument
177 #define list_last_entry_or_full(ptr, type, member) (!list_empty(ptr) ? list_entry((ptr)->prev, type… argument
201 #define list_for_each(ptr, head) \ argument
210 #define list_for_each_prev(ptr, head) \ argument
221 #define list_for_each_safe(ptr, n, head) \ argument
232 #define list_for_each_prev_safe(ptr, n, head) \ argument
Didr.h111 #define for_each_idr_entry(idp, id, ptr) \ argument
120 #define for_each_idr_entry_continue(idp, id, ptr) \ argument
Dglib.h27 #define container_of(ptr, type, member) \ argument
/DragonOS-0.1.2/kernel/src/ktest/
Dtest-idr.c82 int *ptr = idr_find(&k_idr, a[i]); in ktest_idr_case1() local
155 int *ptr = idr_find(&k_idr, a[i]); in ktest_idr_case1() local
206 int *ptr = idr_find(&k_idr, i); in ktest_idr_case2() local
220 int *ptr = idr_find(&k_idr, i); in ktest_idr_case2() local
231 int *ptr = idr_find(&k_idr, i); in ktest_idr_case2() local
244 int *ptr = idr_find(&k_idr, i); in ktest_idr_case2() local
283 int *ptr = idr_find(&k_idr, i); in ktest_idr_case3() local
292 int *ptr = idr_find_next_getid(&k_idr, i - 1, &nextid); in ktest_idr_case3() local
310 int *ptr = idr_find(&k_idr, i); in ktest_idr_case3() local
324 int *ptr = idr_find_next_getid(&k_idr, i - 1, &nextid); in ktest_idr_case3() local
[all …]
/DragonOS-0.1.2/kernel/src/driver/pci/
Dmsi.c111 uint64_t *ptr = in __msix_set_entry() local
129 uint64_t *ptr = (uint64_t *)(pci_dev->msix_mmio_vaddr + pci_dev->msix_offset + msi_index * 16); in __msix_clear_entry() local
148 struct pci_device_structure_header_t *ptr = msi_desc->pci_dev; in pci_enable_msi() local
233 struct pci_device_structure_header_t *ptr = (struct pci_device_structure_header_t *)header; in pci_start_msi() local
291 struct pci_device_structure_header_t *ptr = (struct pci_device_structure_header_t *)header; in pci_disable_msi() local
Dpci.c435 …struct pci_device_structure_header_t *ptr = container_of(pci_device_structure_list, struct pci_dev… in pci_init() local
485 …struct pci_device_structure_header_t *ptr = container_of(pci_device_structure_list, struct pci_dev… in pci_get_device_structure() local
/DragonOS-0.1.2/user/libs/libc/src/
Dmalloc.c76 malloc_mem_chunk_t *ptr = malloc_free_list; in malloc_query_free_chunk_bf() local
111 malloc_mem_chunk_t *ptr = malloc_free_list; in malloc_query_free_chunk_ff() local
178 malloc_mem_chunk_t *ptr = malloc_free_list->next; in malloc_merge_free_chunk() local
216 malloc_mem_chunk_t *ptr = malloc_free_list; in malloc_insert_free_list() local
377 void free(void *ptr) in free()
/DragonOS-0.1.2/kernel/src/libs/libELF/
Delf.c12 Elf32_Ehdr *ptr = (Elf32_Ehdr *)ehdr; in elf_check() local
/DragonOS-0.1.2/docs/kernel/core_api/
Dkernel_api.md131 #### 描
135 #### 参
151 #### 描
155 #### 参
161 #### 描
165 #### 参
171 #### 描
175 #### 参
181 #### 描
185 #### 参
[all …]
/DragonOS-0.1.2/kernel/src/libs/libUI/
Dscreen_manager.c248 …struct scm_ui_framework_t *ptr = container_of(list_next(&scm_framework_list), struct scm_ui_framew… in scm_enable_double_buffer() local
315 …struct scm_ui_framework_t *ptr = container_of(list_next(&scm_framework_list), struct scm_ui_framew… in scm_reinit() local
/DragonOS-0.1.2/kernel/src/
Dmain.c109 uchar *ptr = (uchar *)kzalloc(STACK_SIZE, 0) + STACK_SIZE; in system_initialize() local
/DragonOS-0.1.2/kernel/src/arch/x86_64/include/asm/
Dcmpxchg.h80 #define arch_try_cmpxchg(ptr, old_ptr, new_ptr) \ argument
/DragonOS-0.1.2/kernel/src/filesystem/devfs/
Dchardev.c55 char *ptr = devname + strlen(chardev_name_prefix[private_info->sub_type]); in __devfs_chardev_register() local
/DragonOS-0.1.2/kernel/src/libs/
Didr.c357 static int __idr_get_new_above_int(struct idr *idp, void *ptr, int starting_id) in __idr_get_new_above_int()
383 int idr_alloc(struct idr *idp, void *ptr, int *id) in idr_alloc()
657 void *ptr = idr_find_next_getid(idp, start_id, &nextid); in idr_find_next() local
671 int idr_replace_get_old(struct idr *idp, void *ptr, int id, void **old_ptr) in idr_replace_get_old()
716 int idr_replace(struct idr *idp, void *ptr, int id) in idr_replace()
Dlz4.c276 static int LZ4_isAligned(const void *ptr, size_t alignment) in LZ4_isAligned()
363 static U16 LZ4_read16(const void *ptr) { return ((const unalign *)ptr)->u16; } in LZ4_read16()
364 static U32 LZ4_read32(const void *ptr) { return ((const unalign *)ptr)->u32; } in LZ4_read32()
365 static reg_t LZ4_read_ARCH(const void *ptr) { return ((const unalign *)ptr)->uArch; } in LZ4_read_ARCH()
1459 const BYTE *ptr; in LZ4_compress_generic_validated() local
/DragonOS-0.1.2/kernel/src/mm/
Dvma.c156 struct vm_area_struct *ptr = mm->vmas; in vma_insert() local
Dmmio-buddy.c149 … struct __mmio_buddy_addr_region *ptr = container_of(list, struct __mmio_buddy_addr_region, list); in __buddy_merge() local
Dmm.c37 int8_t mm_check_page_table(uint64_t *ptr) in mm_check_page_table()
/DragonOS-0.1.2/kernel/src/driver/usb/xhci/
Dxhci.c205 struct xhci_TRB_normal_t *ptr = (struct xhci_TRB_normal_t *)(ep_info->current_ep_ring_vaddr); in __xhci_write_trb() local
1476 struct usb_interface_desc *ptr = (struct usb_interface_desc *)(in_buf + pos); in xhci_get_interface_desc() local
1981 struct xhci_TRB_normal_t *ptr = (struct xhci_TRB_normal_t *)xhci_hc[id].cmd_trb_vaddr; in xhci_send_command() local
2040 struct usb_hid_desc *ptr = (struct usb_hid_desc *)(full_conf + pos); in xhci_get_hid_descriptor() local
/DragonOS-0.1.2/kernel/src/filesystem/VFS/
DVFS.c118 struct List *ptr = &dentry->subdirs_list; in vfs_search_dentry_list() local
/DragonOS-0.1.2/kernel/src/ipc/
Dsignal.rs369 let ptr = &sigpending::convert_ref(&(*pcb).sig_pending).unwrap().signal; in has_sig_pending() localVariable