Home
last modified time | relevance | path

Searched refs:__always_inline (Results 1 – 17 of 17) sorted by relevance

/DragonOS-0.1.2/kernel/src/arch/x86_64/math/
Dbitcount.h9 static __always_inline int __clz(uint32_t x) in __clz()
25 static __always_inline int __clzl(unsigned long x) in __clzl()
44 static __always_inline int __clzll(unsigned long long x) in __clzll()
57 static __always_inline int __ctz(uint32_t x) in __ctz()
63 static __always_inline int __ctzl(unsigned long x) in __ctzl()
/DragonOS-0.1.2/kernel/src/driver/interrupt/apic/
Dapic_timer.h21 static __always_inline void apic_timer_set_div(uint64_t divider) in apic_timer_set_div()
34 static __always_inline void apic_timer_set_init_cnt(uint32_t init_cnt) in apic_timer_set_init_cnt()
49 static __always_inline void apic_timer_set_LVT(uint32_t vector, uint32_t mask, uint32_t mode) in apic_timer_set_LVT()
58 static __always_inline void apic_timer_write_LVT(uint32_t value) in apic_timer_write_LVT()
70 static __always_inline uint32_t apic_timer_get_LVT() in apic_timer_get_LVT()
82 static __always_inline uint32_t apic_timer_get_current() in apic_timer_get_current()
Dapic.c30 static __always_inline void __send_eoi() in __send_eoi()
/DragonOS-0.1.2/kernel/src/common/
Dstddef.h9 #ifndef __always_inline
10 #define __always_inline __inline__ macro
Dglib.h62 static __always_inline ul ALIGN(const ul addr, const ul _align) in ALIGN()
284 static __always_inline void __write8b(uint64_t vaddr, uint64_t value) in __write8b()
298 static __always_inline void __write4b(uint64_t vaddr, uint32_t value) in __write4b()
312 static __always_inline uint64_t __read8b(uint64_t vaddr) in __read8b()
329 static __always_inline uint32_t __read4b(uint64_t vaddr) in __read4b()
Dsemaphore.h34 static __always_inline void semaphore_init(semaphore_t *sema, ul count) in semaphore_init()
Dcompiler.h49 static __always_inline void __read_once_size(void *dst, const volatile void *src, int size) in __read_once_size()
80 static __always_inline void __write_once_size(volatile void *dst, void *src, int size) in __write_once_size()
Dkfifo.h130 uint32_t __always_inline kfifo_in_locked(struct kfifo_t *fifo, const void *from, uint32_t size, spi… in kfifo_in_locked()
147 uint32_t __always_inline kfifo_out_locked(struct kfifo_t *fifo, void *to, uint32_t size, spinlock_t… in kfifo_out_locked()
/DragonOS-0.1.2/kernel/src/mm/
Dmmio-buddy.c25 static __always_inline void __buddy_add_region_obj(int index, struct __mmio_buddy_addr_region *regi… in __buddy_add_region_obj()
39 static __always_inline struct __mmio_buddy_addr_region *__mmio_buddy_create_region(uint64_t vaddr) in __mmio_buddy_create_region()
55 static __always_inline void __buddy_split(struct __mmio_buddy_addr_region *region, int exp) in __buddy_split()
71 static __always_inline int __buddy_merge_blocks(struct __mmio_buddy_addr_region *x, struct __mmio_b… in __buddy_merge_blocks()
95 static __always_inline struct __mmio_buddy_addr_region *__buddy_pop_region(int exp) in __buddy_pop_region()
114 static __always_inline struct __mmio_buddy_addr_region *__find_buddy(struct __mmio_buddy_addr_regio… in __find_buddy()
Dmmio-buddy.h53 static __always_inline void __mmio_buddy_release_addr_region(struct __mmio_buddy_addr_region *regio… in __mmio_buddy_release_addr_region()
Dslab.h69 static __always_inline void *kzalloc(size_t size, gfp_t gfp) in kzalloc()
/DragonOS-0.1.2/kernel/src/driver/hid/
Dhidparse.c23 static __always_inline const struct hid_usage_pages_string *hid_get_usage_page(const int u_page);
25 static __always_inline const struct hid_usage_types_string *hid_get_usage_type(
61 static __always_inline uint32_t __format_value(uint32_t value, uint8_t size) in __format_value()
93 static __always_inline void __pop_usage_stack(struct hid_parser *parser) in __pop_usage_stack()
374 static __always_inline const struct hid_usage_pages_string *hid_get_usage_page(const int u_page) in hid_get_usage_page()
392 static __always_inline const struct hid_usage_types_string *hid_get_usage_type( in hid_get_usage_type()
521 static __always_inline bool __find_object(struct hid_parser *parser, struct hid_data_t *data) in __find_object()
/DragonOS-0.1.2/kernel/src/driver/pci/
Dmsi.c21 static __always_inline struct pci_msix_cap_t __msi_read_msix_cap_list(struct msi_desc_t *msi_desc, … in __msi_read_msix_cap_list()
38 static __always_inline struct pci_msi_cap_t __msi_read_cap_list(struct msi_desc_t *msi_desc, uint32… in __msi_read_cap_list()
80 static __always_inline int __msix_map_table(struct pci_device_structure_header_t *pci_dev, in __msix_map_table()
109 static __always_inline void __msix_set_entry(struct msi_desc_t *msi_desc) in __msix_set_entry()
127 static __always_inline void __msix_clear_entry(struct pci_device_structure_header_t *pci_dev, uint1… in __msix_clear_entry()
/DragonOS-0.1.2/kernel/src/filesystem/devfs/
Ddevfs.c192 static __always_inline void __devfs_init_root_inode() in __devfs_init_root_inode()
206 static __always_inline void __devfs_init_root_dentry() in __devfs_init_root_dentry()
/DragonOS-0.1.2/kernel/src/filesystem/procfs/
Dprocfs.c419 static __always_inline void __procfs_init_root_inode() in __procfs_init_root_inode()
432 static __always_inline void __procfs_init_root_dentry() in __procfs_init_root_dentry()
/DragonOS-0.1.2/kernel/src/driver/usb/xhci/
Dxhci.c109 static __always_inline void xhci_get_trb(struct xhci_TRB_t *trb, const uint64_t address) in xhci_get_trb()
122 static __always_inline void xhci_set_trb(struct xhci_TRB_t *trb, const uint64_t address) in xhci_set_trb()
137 static __always_inline void __write_ep(int id, uint64_t slot_vaddr, int ep_num, struct xhci_ep_cont… in __write_ep()
150 static __always_inline void __read_from_ep(int id, uint64_t slot_vaddr, int ep_num, struct xhci_ep_… in __read_from_ep()
161 static __always_inline void __write_slot(const uint64_t vaddr, struct xhci_slot_context_t *slot_ctx) in __write_slot()
173 static __always_inline void __read_from_slot(struct xhci_slot_context_t *slot_ctx, uint64_t slot_va… in __read_from_slot()
185 static __always_inline void __xhci_write_doorbell(const int id, const uint16_t slot_id, const uint3… in __xhci_write_doorbell()
199 static __always_inline void __xhci_write_trb(struct xhci_ep_info_t *ep_info, struct xhci_TRB_t *trb) in __xhci_write_trb()
223 static __always_inline uint64_t xhci_get_device_context_vaddr(const int id, const int port_id) in xhci_get_device_context_vaddr()
/DragonOS-0.1.2/kernel/src/libs/
Didr.c213 static __always_inline void __idr_mark_full(struct idr *idp, int id, struct idr_layer **stk, int ma… 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()
294 static __always_inline void __idr_erase_full(struct idr *idp, int id, struct idr_layer **stk, int m… in __idr_erase_full()