/DragonOS-0.1.2/kernel/src/driver/pci/ |
D | pci.c | 40 uint32_t pci_read_config(uchar bus, uchar slot, uchar func, uchar offset) in pci_read_config() argument 44 uint lfunc = ((uint)func) & 7; in pci_read_config() 64 uint pci_write_config(uchar bus, uchar slot, uchar func, uchar offset, uint32_t data) in pci_write_config() argument 68 uint lfunc = ((uint)func) & 7; in pci_write_config() 88 …ice_header(struct pci_device_structure_general_device_t *header, uchar bus, uchar slot, uchar func) in pci_read_general_device_header() argument 91 header->BAR0 = pci_read_config(bus, slot, func, 0x10); in pci_read_general_device_header() 92 header->BAR1 = pci_read_config(bus, slot, func, 0x14); in pci_read_general_device_header() 93 header->BAR2 = pci_read_config(bus, slot, func, 0x18); in pci_read_general_device_header() 94 header->BAR3 = pci_read_config(bus, slot, func, 0x1c); in pci_read_general_device_header() 95 header->BAR4 = pci_read_config(bus, slot, func, 0x20); in pci_read_general_device_header() [all …]
|
D | msi.c | 25 …i_read_config(msi_desc->pci_dev->bus, msi_desc->pci_dev->device, msi_desc->pci_dev->func, cap_off); in __msi_read_msix_cap_list() 32 …pci_read_config(msi_desc->pci_dev->bus, msi_desc->pci_dev->device, msi_desc->pci_dev->func, cap_of… in __msi_read_msix_cap_list() 34 …pci_read_config(msi_desc->pci_dev->bus, msi_desc->pci_dev->device, msi_desc->pci_dev->func, cap_of… in __msi_read_msix_cap_list() 42 …i_read_config(msi_desc->pci_dev->bus, msi_desc->pci_dev->device, msi_desc->pci_dev->func, cap_off); in __msi_read_cap_list() 48 …pci_read_config(msi_desc->pci_dev->bus, msi_desc->pci_dev->device, msi_desc->pci_dev->func, cap_of… in __msi_read_cap_list() 53 …_config(msi_desc->pci_dev->bus, msi_desc->pci_dev->device, msi_desc->pci_dev->func, cap_off + 0x8); in __msi_read_cap_list() 61 …_data = pci_read_config(msi_desc->pci_dev->bus, msi_desc->pci_dev->device, msi_desc->pci_dev->func, in __msi_read_cap_list() 66 …pci_read_config(msi_desc->pci_dev->bus, msi_desc->pci_dev->device, msi_desc->pci_dev->func, cap_of… in __msi_read_cap_list() 68 …pci_read_config(msi_desc->pci_dev->bus, msi_desc->pci_dev->device, msi_desc->pci_dev->func, cap_of… in __msi_read_cap_list() 94 uint32_t bar = pci_read_config(pci_dev->bus, pci_dev->device, pci_dev->func, bar_off); in __msix_map_table() [all …]
|
D | pci.h | 32 uint8_t func; member 179 uint32_t pci_read_config(uchar bus, uchar slot, uchar func, uchar offset); 190 uint pci_write_config(uchar bus, uchar slot, uchar func, uchar offset, uint32_t data); 201 void *pci_read_header(int *type, uchar bus, uchar slot, uchar func, bool add_to_list);
|
/DragonOS-0.1.2/kernel/src/ktest/ |
D | ktest.c | 11 pid_t ktest_start(int (*func)(void* arg), void* arg) in ktest_start() 13 return kernel_thread(func, arg, 0); in ktest_start()
|
D | ktest.h | 16 pid_t ktest_start(int (*func)(void* arg), void* arg);
|
/DragonOS-0.1.2/kernel/src/time/ |
D | timer.c | 50 tmp->func(tmp->data); in do_timer_softirq() 75 void timer_func_init(struct timer_func_list_t *timer_func, void (*func)(void *data), void *data, ui… in timer_func_init() 78 timer_func->func = func; in timer_func_init() 91 void timer_func_init_us(struct timer_func_list_t *timer_func, void (*func)(void *data), void *data,… in timer_func_init_us() 94 timer_func->func = func; in timer_func_init_us()
|
D | timer.h | 29 void (*func)(void *data); member 42 void timer_func_init(struct timer_func_list_t *timer_func, void (*func)(void *data), void *data, ui… 52 void timer_func_init_us(struct timer_func_list_t *timer_func, void (*func)(void *data), void *data,…
|
/DragonOS-0.1.2/user/apps/shell/ |
D | cmd_help.c | 6 void (*func)(); member 18 help_table[i].func(); in shell_help()
|
D | cmd.h | 14 int (*func)(int argc, char **argv); member
|
D | cmd.c | 110 shell_cmds[index].func(argc, argv); in shell_run_built_in_command()
|
/DragonOS-0.1.2/kernel/src/process/ |
D | ptrace.h | 28 unsigned long func; member
|
/DragonOS-0.1.2/docs/kernel/ktest/ |
D | ktest-framework.md | 68 `pid_t ktest_start(uint64_t (*func)(uint64_t arg), uint64_t arg)` 76 **func**
|
/DragonOS-0.1.2/docs/community/code_contribution/ |
D | coding-style.md | 126 void *func(char* s, int **p);
|
/DragonOS-0.1.2/kernel/src/driver/usb/xhci/ |
D | xhci.c | 2090 … dev_hdr->header.bus, dev_hdr->header.device, dev_hdr->header.func, dev_hdr->header.Vendor_ID, in xhci_init() 2105 …32_t tmp = pci_read_config(dev_hdr->header.bus, dev_hdr->header.device, dev_hdr->header.func, 0x4); in xhci_init() 2108 … pci_write_config(dev_hdr->header.bus, dev_hdr->header.device, dev_hdr->header.func, 0x4, tmp); in xhci_init() 2152 …2_t tmp = pci_read_config(dev_hdr->header.bus, dev_hdr->header.device, dev_hdr->header.func, 0x60); in xhci_init() 2154 … pci_write_config(dev_hdr->header.bus, dev_hdr->header.device, dev_hdr->header.func, 0x60, tmp); in xhci_init() 2157 …if (((pci_read_config(dev_hdr->header.bus, dev_hdr->header.device, dev_hdr->header.func, 0) & 0xff… in xhci_init() 2158 …(((pci_read_config(dev_hdr->header.bus, dev_hdr->header.device, dev_hdr->header.func, 0) >> 16) & … in xhci_init() 2160 …((pci_read_config(dev_hdr->header.bus, dev_hdr->header.device, dev_hdr->header.func, 8) & 0xff) ==… in xhci_init() 2163 …pci_write_config(dev_hdr->header.bus, dev_hdr->header.device, dev_hdr->header.func, 0xd8, 0xffffff… in xhci_init() 2164 …pci_write_config(dev_hdr->header.bus, dev_hdr->header.device, dev_hdr->header.func, 0xd0, 0xffffff… in xhci_init() [all …]
|