Changeset a660e9dc in rtems
- Timestamp:
-
09/08/22 08:37:05
(5 months ago)
- Author:
- Sebastian Huber <sebastian.huber@…>
- Branches:
- master
- Children:
- 88f4d44f
- Parents:
- 3803757
- git-author:
- Sebastian Huber <sebastian.huber@…> (09/08/22 08:37:05)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (09/19/22 07:09:22)
- Message:
-
Do not use RTEMS_INLINE_ROUTINE
Directly use "static inline" which is available in C99 and later. This brings
the RTEMS implementation closer to standard C.
Close #3935.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
-
r3803757
|
ra660e9dc
|
|
35 | 35 | |
36 | 36 | #include <rtems/score/basedefs.h> |
37 | | #define EDID_INLINE_ROUTINE RTEMS_INLINE_ROUTINE |
| 37 | #define EDID_INLINE_ROUTINE static inline |
38 | 38 | |
39 | 39 | /* VESA Enhanced Extended Display Identification Data (E-EDID) Proposed |
-
r3803757
|
ra660e9dc
|
|
67 | 67 | #if (((__RTEMS_MAJOR__ << 16) | (__RTEMS_MINOR__ << 8) | __RTEMS_REVISION__) >= 0x050000) |
68 | 68 | |
69 | | RTEMS_INLINE_ROUTINE void *grlib_malloc(size_t size) |
| 69 | static inline void *grlib_malloc(size_t size) |
70 | 70 | { |
71 | 71 | return rtems_malloc(size); |
72 | 72 | } |
73 | 73 | |
74 | | RTEMS_INLINE_ROUTINE void *grlib_calloc(size_t nelem, size_t elsize) |
| 74 | static inline void *grlib_calloc(size_t nelem, size_t elsize) |
75 | 75 | { |
76 | 76 | return rtems_calloc(nelem, elsize); |
… |
… |
|
79 | 79 | #else |
80 | 80 | |
81 | | RTEMS_INLINE_ROUTINE void *grlib_malloc(size_t size) |
| 81 | static inline void *grlib_malloc(size_t size) |
82 | 82 | { |
83 | 83 | return malloc(size); |
84 | 84 | } |
85 | 85 | |
86 | | RTEMS_INLINE_ROUTINE void *grlib_calloc(size_t nelem, size_t elsize) |
| 86 | static inline void *grlib_calloc(size_t nelem, size_t elsize) |
87 | 87 | { |
88 | 88 | return calloc(nelem, elsize); |
… |
… |
|
93 | 93 | #ifdef __sparc__ |
94 | 94 | |
95 | | RTEMS_INLINE_ROUTINE unsigned char grlib_read_uncached8(unsigned int address) |
| 95 | static inline unsigned char grlib_read_uncached8(unsigned int address) |
96 | 96 | { |
97 | 97 | unsigned char tmp; |
… |
… |
|
103 | 103 | } |
104 | 104 | |
105 | | RTEMS_INLINE_ROUTINE unsigned short grlib_read_uncached16(unsigned int addr) { |
| 105 | static inline unsigned short grlib_read_uncached16(unsigned int addr) { |
106 | 106 | unsigned short tmp; |
107 | 107 | __asm__ (" lduha [%1]1, %0 " |
… |
… |
|
113 | 113 | |
114 | 114 | |
115 | | RTEMS_INLINE_ROUTINE unsigned int grlib_read_uncached32(unsigned int address) |
| 115 | static inline unsigned int grlib_read_uncached32(unsigned int address) |
116 | 116 | { |
117 | 117 | unsigned int tmp; |
… |
… |
|
123 | 123 | } |
124 | 124 | |
125 | | RTEMS_INLINE_ROUTINE uint64_t grlib_read_uncached64(uint64_t *address) |
| 125 | static inline uint64_t grlib_read_uncached64(uint64_t *address) |
126 | 126 | { |
127 | 127 | uint64_t tmp; |
… |
… |
|
148 | 148 | } |
149 | 149 | |
150 | | RTEMS_INLINE_ROUTINE unsigned int grlib_read_uncached32(unsigned int address) |
| 150 | static inline unsigned int grlib_read_uncached32(unsigned int address) |
151 | 151 | { |
152 | 152 | unsigned int tmp = (*(volatile unsigned int *)(address)); |
-
r3803757
|
ra660e9dc
|
|
77 | 77 | /* Only the mc68030 has a data cache; it is writethrough only. */ |
78 | 78 | |
79 | | RTEMS_INLINE_ROUTINE void _CPU_cache_flush_1_data_line(const void * d_addr) {} |
80 | | RTEMS_INLINE_ROUTINE void _CPU_cache_flush_entire_data(void) {} |
81 | | |
82 | | RTEMS_INLINE_ROUTINE void _CPU_cache_invalidate_1_data_line( |
| 79 | static inline void _CPU_cache_flush_1_data_line(const void * d_addr) {} |
| 80 | static inline void _CPU_cache_flush_entire_data(void) {} |
| 81 | |
| 82 | static inline void _CPU_cache_invalidate_1_data_line( |
83 | 83 | const void * d_addr |
84 | 84 | ) |
… |
… |
|
89 | 89 | } |
90 | 90 | |
91 | | RTEMS_INLINE_ROUTINE void _CPU_cache_invalidate_entire_data(void) |
| 91 | static inline void _CPU_cache_invalidate_entire_data(void) |
92 | 92 | { |
93 | 93 | _CPU_CACR_OR( 0x00000800 ); |
94 | 94 | } |
95 | 95 | |
96 | | RTEMS_INLINE_ROUTINE void _CPU_cache_freeze_data(void) |
| 96 | static inline void _CPU_cache_freeze_data(void) |
97 | 97 | { |
98 | 98 | _CPU_CACR_OR( 0x00000200 ); |
99 | 99 | } |
100 | 100 | |
101 | | RTEMS_INLINE_ROUTINE void _CPU_cache_unfreeze_data(void) |
| 101 | static inline void _CPU_cache_unfreeze_data(void) |
102 | 102 | { |
103 | 103 | _CPU_CACR_AND( 0xFFFFFDFF ); |
104 | 104 | } |
105 | 105 | |
106 | | RTEMS_INLINE_ROUTINE void _CPU_cache_enable_data(void) |
| 106 | static inline void _CPU_cache_enable_data(void) |
107 | 107 | { |
108 | 108 | _CPU_CACR_OR( 0x00000100 ); |
109 | 109 | } |
110 | 110 | |
111 | | RTEMS_INLINE_ROUTINE void _CPU_cache_disable_data(void) |
| 111 | static inline void _CPU_cache_disable_data(void) |
112 | 112 | { |
113 | 113 | _CPU_CACR_AND( 0xFFFFFEFF ); |
… |
… |
|
118 | 118 | /* Both the 68020 and 68030 have instruction caches */ |
119 | 119 | |
120 | | RTEMS_INLINE_ROUTINE void _CPU_cache_invalidate_1_instruction_line( |
| 120 | static inline void _CPU_cache_invalidate_1_instruction_line( |
121 | 121 | const void * d_addr |
122 | 122 | ) |
… |
… |
|
127 | 127 | } |
128 | 128 | |
129 | | RTEMS_INLINE_ROUTINE void _CPU_cache_invalidate_entire_instruction(void) |
| 129 | static inline void _CPU_cache_invalidate_entire_instruction(void) |
130 | 130 | { |
131 | 131 | _CPU_CACR_OR( 0x00000008 ); |
132 | 132 | } |
133 | 133 | |
134 | | RTEMS_INLINE_ROUTINE void _CPU_cache_freeze_instruction(void) |
| 134 | static inline void _CPU_cache_freeze_instruction(void) |
135 | 135 | { |
136 | 136 | _CPU_CACR_OR( 0x00000002); |
137 | 137 | } |
138 | 138 | |
139 | | RTEMS_INLINE_ROUTINE void _CPU_cache_unfreeze_instruction(void) |
| 139 | static inline void _CPU_cache_unfreeze_instruction(void) |
140 | 140 | { |
141 | 141 | _CPU_CACR_AND( 0xFFFFFFFD ); |
142 | 142 | } |
143 | 143 | |
144 | | RTEMS_INLINE_ROUTINE void _CPU_cache_enable_instruction(void) |
| 144 | static inline void _CPU_cache_enable_instruction(void) |
145 | 145 | { |
146 | 146 | _CPU_CACR_OR( 0x00000001 ); |
147 | 147 | } |
148 | 148 | |
149 | | RTEMS_INLINE_ROUTINE void _CPU_cache_disable_instruction(void) |
| 149 | static inline void _CPU_cache_disable_instruction(void) |
150 | 150 | { |
151 | 151 | _CPU_CACR_AND( 0xFFFFFFFE ); |
… |
… |
|
156 | 156 | |
157 | 157 | /* Cannot be frozen */ |
158 | | RTEMS_INLINE_ROUTINE void _CPU_cache_freeze_data(void) {} |
159 | | RTEMS_INLINE_ROUTINE void _CPU_cache_unfreeze_data(void) {} |
160 | | RTEMS_INLINE_ROUTINE void _CPU_cache_freeze_instruction(void) {} |
161 | | RTEMS_INLINE_ROUTINE void _CPU_cache_unfreeze_instruction(void) {} |
162 | | |
163 | | RTEMS_INLINE_ROUTINE void _CPU_cache_flush_1_data_line( |
| 158 | static inline void _CPU_cache_freeze_data(void) {} |
| 159 | static inline void _CPU_cache_unfreeze_data(void) {} |
| 160 | static inline void _CPU_cache_freeze_instruction(void) {} |
| 161 | static inline void _CPU_cache_unfreeze_instruction(void) {} |
| 162 | |
| 163 | static inline void _CPU_cache_flush_1_data_line( |
164 | 164 | const void * d_addr |
165 | 165 | ) |
… |
… |
|
169 | 169 | } |
170 | 170 | |
171 | | RTEMS_INLINE_ROUTINE void _CPU_cache_invalidate_1_data_line( |
| 171 | static inline void _CPU_cache_invalidate_1_data_line( |
172 | 172 | const void * d_addr |
173 | 173 | ) |
… |
… |
|
177 | 177 | } |
178 | 178 | |
179 | | RTEMS_INLINE_ROUTINE void _CPU_cache_flush_entire_data(void) |
| 179 | static inline void _CPU_cache_flush_entire_data(void) |
180 | 180 | { |
181 | 181 | __asm__ volatile ( "cpusha %%dc" :: ); |
182 | 182 | } |
183 | 183 | |
184 | | RTEMS_INLINE_ROUTINE void _CPU_cache_invalidate_entire_data(void) |
| 184 | static inline void _CPU_cache_invalidate_entire_data(void) |
185 | 185 | { |
186 | 186 | __asm__ volatile ( "cinva %%dc" :: ); |
187 | 187 | } |
188 | 188 | |
189 | | RTEMS_INLINE_ROUTINE void _CPU_cache_enable_data(void) |
| 189 | static inline void _CPU_cache_enable_data(void) |
190 | 190 | { |
191 | 191 | _CPU_CACR_OR( 0x80000000 ); |
192 | 192 | } |
193 | 193 | |
194 | | RTEMS_INLINE_ROUTINE void _CPU_cache_disable_data(void) |
| 194 | static inline void _CPU_cache_disable_data(void) |
195 | 195 | { |
196 | 196 | _CPU_CACR_AND( 0x7FFFFFFF ); |
197 | 197 | } |
198 | 198 | |
199 | | RTEMS_INLINE_ROUTINE void _CPU_cache_invalidate_1_instruction_line( |
| 199 | static inline void _CPU_cache_invalidate_1_instruction_line( |
200 | 200 | const void * i_addr ) |
201 | 201 | { |
… |
… |
|
204 | 204 | } |
205 | 205 | |
206 | | RTEMS_INLINE_ROUTINE void _CPU_cache_invalidate_entire_instruction(void) |
| 206 | static inline void _CPU_cache_invalidate_entire_instruction(void) |
207 | 207 | { |
208 | 208 | __asm__ volatile ( "cinva %%ic" :: ); |
209 | 209 | } |
210 | 210 | |
211 | | RTEMS_INLINE_ROUTINE void _CPU_cache_enable_instruction(void) |
| 211 | static inline void _CPU_cache_enable_instruction(void) |
212 | 212 | { |
213 | 213 | _CPU_CACR_OR( 0x00008000 ); |
214 | 214 | } |
215 | 215 | |
216 | | RTEMS_INLINE_ROUTINE void _CPU_cache_disable_instruction(void) |
| 216 | static inline void _CPU_cache_disable_instruction(void) |
217 | 217 | { |
218 | 218 | _CPU_CACR_AND( 0xFFFF7FFF ); |
-
r3803757
|
ra660e9dc
|
|
35 | 35 | (rtems_irq_is_enabled) nullFunc}; |
36 | 36 | |
37 | | RTEMS_INLINE_ROUTINE void Install_tm27_vector(void (*_handler)(void)) |
| 37 | static inline void Install_tm27_vector(void (*_handler)(void)) |
38 | 38 | { |
39 | 39 | clockIrqData.hdl = _handler; |
-
r3803757
|
ra660e9dc
|
|
191 | 191 | extern int rtems_ne_driver_attach(struct rtems_bsdnet_ifconfig *, int); |
192 | 192 | |
193 | | RTEMS_INLINE_ROUTINE const char* bsp_cmdline_arg(const char* arg) |
| 193 | static inline const char* bsp_cmdline_arg(const char* arg) |
194 | 194 | { |
195 | 195 | return rtems_bsp_cmdline_get_param_raw(arg); |
-
r3803757
|
ra660e9dc
|
|
33 | 33 | (rtems_irq_is_enabled) nullFunc}; |
34 | 34 | |
35 | | RTEMS_INLINE_ROUTINE void Install_tm27_vector(void (*_handler)()) |
| 35 | static inline void Install_tm27_vector(void (*_handler)()) |
36 | 36 | { |
37 | 37 | clockIrqData.hdl = _handler; |
-
r3803757
|
ra660e9dc
|
|
33 | 33 | (rtems_irq_is_enabled) nullFunc}; |
34 | 34 | |
35 | | RTEMS_INLINE_ROUTINE void Install_tm27_vector(void (*_handler)()) |
| 35 | static inline void Install_tm27_vector(void (*_handler)()) |
36 | 36 | { |
37 | 37 | clockIrqData.hdl = _handler; |
-
r3803757
|
ra660e9dc
|
|
54 | 54 | #define IPI_INDEX_HIGH 2 |
55 | 55 | |
56 | | RTEMS_INLINE_ROUTINE void Install_tm27_vector(void (*handler)(rtems_vector_number)) |
| 56 | static inline void Install_tm27_vector(void (*handler)(rtems_vector_number)) |
57 | 57 | { |
58 | 58 | rtems_status_code sc; |
… |
… |
|
85 | 85 | } |
86 | 86 | |
87 | | RTEMS_INLINE_ROUTINE void qoriq_tm27_cause(uint32_t ipi_index) |
| 87 | static inline void qoriq_tm27_cause(uint32_t ipi_index) |
88 | 88 | { |
89 | 89 | uint32_t self = ppc_processor_id(); |
… |
… |
|
92 | 92 | } |
93 | 93 | |
94 | | RTEMS_INLINE_ROUTINE void Cause_tm27_intr(void) |
| 94 | static inline void Cause_tm27_intr(void) |
95 | 95 | { |
96 | 96 | qoriq_tm27_cause(IPI_INDEX_LOW); |
97 | 97 | } |
98 | 98 | |
99 | | RTEMS_INLINE_ROUTINE void Clear_tm27_intr(void) |
| 99 | static inline void Clear_tm27_intr(void) |
100 | 100 | { |
101 | 101 | /* Nothing to do */ |
102 | 102 | } |
103 | 103 | |
104 | | RTEMS_INLINE_ROUTINE inline void Lower_tm27_intr(void) |
| 104 | static inline inline void Lower_tm27_intr(void) |
105 | 105 | { |
106 | 106 | qoriq_tm27_cause(IPI_INDEX_HIGH); |
-
r3803757
|
ra660e9dc
|
|
40 | 40 | #define BSP_INTERRUPT_VECTOR_COUNT 1 |
41 | 41 | |
42 | | RTEMS_INLINE_ROUTINE rtems_status_code bsp_interrupt_set_affinity( |
| 42 | static inline rtems_status_code bsp_interrupt_set_affinity( |
43 | 43 | rtems_vector_number vector, |
44 | 44 | const Processor_mask *affinity |
… |
… |
|
50 | 50 | } |
51 | 51 | |
52 | | RTEMS_INLINE_ROUTINE rtems_status_code bsp_interrupt_get_affinity( |
| 52 | static inline rtems_status_code bsp_interrupt_get_affinity( |
53 | 53 | rtems_vector_number vector, |
54 | 54 | Processor_mask *affinity |
-
r3803757
|
ra660e9dc
|
|
58 | 58 | |
59 | 59 | |
60 | | RTEMS_INLINE_ROUTINE uint32_t xlite_uart_control(uint32_t base) |
| 60 | static inline uint32_t xlite_uart_control(uint32_t base) |
61 | 61 | { |
62 | 62 | uint32_t c = *((volatile uint32_t*)(base+CTRL_REG)); |
… |
… |
|
65 | 65 | |
66 | 66 | |
67 | | RTEMS_INLINE_ROUTINE uint32_t xlite_uart_status(uint32_t base) |
| 67 | static inline uint32_t xlite_uart_status(uint32_t base) |
68 | 68 | { |
69 | 69 | uint32_t c = *((volatile uint32_t*)(base+STAT_REG)); |
… |
… |
|
72 | 72 | |
73 | 73 | |
74 | | RTEMS_INLINE_ROUTINE uint32_t xlite_uart_read(uint32_t base) |
| 74 | static inline uint32_t xlite_uart_read(uint32_t base) |
75 | 75 | { |
76 | 76 | uint32_t c = *((volatile uint32_t*)(base+RECV_REG)); |
… |
… |
|
79 | 79 | |
80 | 80 | |
81 | | RTEMS_INLINE_ROUTINE void xlite_uart_write(uint32_t base, char ch) |
| 81 | static inline void xlite_uart_write(uint32_t base, char ch) |
82 | 82 | { |
83 | 83 | *(volatile uint32_t*)(base+TRAN_REG) = (uint32_t)ch; |
-
r3803757
|
ra660e9dc
|
|
26 | 26 | #define BSP_INTERRUPT_CUSTOM_VALID_VECTOR |
27 | 27 | |
28 | | RTEMS_INLINE_ROUTINE rtems_status_code bsp_interrupt_set_affinity( |
| 28 | static inline rtems_status_code bsp_interrupt_set_affinity( |
29 | 29 | rtems_vector_number vector, |
30 | 30 | const Processor_mask *affinity |
… |
… |
|
36 | 36 | } |
37 | 37 | |
38 | | RTEMS_INLINE_ROUTINE rtems_status_code bsp_interrupt_get_affinity( |
| 38 | static inline rtems_status_code bsp_interrupt_get_affinity( |
39 | 39 | rtems_vector_number vector, |
40 | 40 | Processor_mask *affinity |
-
r3803757
|
ra660e9dc
|
|
84 | 84 | } |
85 | 85 | |
86 | | RTEMS_INLINE_ROUTINE void assert_0s_from_bit(uint64_t entry, uint8_t bit_pos) |
| 86 | static inline void assert_0s_from_bit(uint64_t entry, uint8_t bit_pos) |
87 | 87 | { |
88 | 88 | /* Confirm that bit_pos:64 are all 0s */ |
-
r3803757
|
ra660e9dc
|
|
486 | 486 | |
487 | 487 | /*! Get parent bus */ |
488 | | RTEMS_INLINE_ROUTINE struct drvmgr_bus *drvmgr_get_parent( |
| 488 | static inline struct drvmgr_bus *drvmgr_get_parent( |
489 | 489 | struct drvmgr_dev *dev) |
490 | 490 | { |
… |
… |
|
496 | 496 | |
497 | 497 | /*! Get Driver of device */ |
498 | | RTEMS_INLINE_ROUTINE struct drvmgr_drv *drvmgr_get_drv(struct drvmgr_dev *dev) |
| 498 | static inline struct drvmgr_drv *drvmgr_get_drv(struct drvmgr_dev *dev) |
499 | 499 | { |
500 | 500 | if (dev) |
-
r3803757
|
ra660e9dc
|
|
135 | 135 | |
136 | 136 | /* Enable Memory in command register */ |
137 | | RTEMS_INLINE_ROUTINE void pci_mem_enable(pci_dev_t dev) |
| 137 | static inline void pci_mem_enable(pci_dev_t dev) |
138 | 138 | { |
139 | 139 | pci_modify_cmdsts(dev, PCIM_CMD_MEMEN, PCIM_CMD_MEMEN); |
140 | 140 | } |
141 | 141 | |
142 | | RTEMS_INLINE_ROUTINE void pci_mem_disable(pci_dev_t dev) |
| 142 | static inline void pci_mem_disable(pci_dev_t dev) |
143 | 143 | { |
144 | 144 | pci_modify_cmdsts(dev, PCIM_CMD_MEMEN, 0); |
145 | 145 | } |
146 | 146 | |
147 | | RTEMS_INLINE_ROUTINE void pci_io_enable(pci_dev_t dev) |
| 147 | static inline void pci_io_enable(pci_dev_t dev) |
148 | 148 | { |
149 | 149 | pci_modify_cmdsts(dev, PCIM_CMD_PORTEN, PCIM_CMD_PORTEN); |
150 | 150 | } |
151 | 151 | |
152 | | RTEMS_INLINE_ROUTINE void pci_io_disable(pci_dev_t dev) |
| 152 | static inline void pci_io_disable(pci_dev_t dev) |
153 | 153 | { |
154 | 154 | pci_modify_cmdsts(dev, PCIM_CMD_PORTEN, 0); |
155 | 155 | } |
156 | 156 | |
157 | | RTEMS_INLINE_ROUTINE void pci_master_enable(pci_dev_t dev) |
| 157 | static inline void pci_master_enable(pci_dev_t dev) |
158 | 158 | { |
159 | 159 | pci_modify_cmdsts(dev, PCIM_CMD_BUSMASTEREN, PCIM_CMD_BUSMASTEREN); |
160 | 160 | } |
161 | 161 | |
162 | | RTEMS_INLINE_ROUTINE void pci_master_disable(pci_dev_t dev) |
| 162 | static inline void pci_master_disable(pci_dev_t dev) |
163 | 163 | { |
164 | 164 | pci_modify_cmdsts(dev, PCIM_CMD_BUSMASTEREN, 0); |
… |
… |
|
186 | 186 | |
187 | 187 | /* Translate PCI address into CPU accessible address */ |
188 | | RTEMS_INLINE_ROUTINE int pci_pci2cpu(uint32_t *address, int type) |
| 188 | static inline int pci_pci2cpu(uint32_t *address, int type) |
189 | 189 | { |
190 | 190 | return pci_access_ops.translate(address, type, 0); |
… |
… |
|
192 | 192 | |
193 | 193 | /* Translate CPU accessible address into PCI address (for DMA) */ |
194 | | RTEMS_INLINE_ROUTINE int pci_cpu2pci(uint32_t *address, int type) |
| 194 | static inline int pci_cpu2pci(uint32_t *address, int type) |
195 | 195 | { |
196 | 196 | return pci_access_ops.translate(address, type, 1); |
… |
… |
|
199 | 199 | /*** Read/Write a register over PCI Memory Space ***/ |
200 | 200 | |
201 | | RTEMS_INLINE_ROUTINE uint8_t pci_ld8(volatile uint8_t *addr) |
| 201 | static inline uint8_t pci_ld8(volatile uint8_t *addr) |
202 | 202 | { |
203 | 203 | return *addr; |
204 | 204 | } |
205 | 205 | |
206 | | RTEMS_INLINE_ROUTINE void pci_st8(volatile uint8_t *addr, uint8_t val) |
| 206 | static inline void pci_st8(volatile uint8_t *addr, uint8_t val) |
207 | 207 | { |
208 | 208 | *addr = val; |
-
r3803757
|
ra660e9dc
|
|
54 | 54 | * arg Second argument to function isr |
55 | 55 | */ |
56 | | RTEMS_INLINE_ROUTINE int pci_interrupt_register(int irq, const char *info, |
| 56 | static inline int pci_interrupt_register(int irq, const char *info, |
57 | 57 | pci_isr isr, void *arg) |
58 | 58 | { |
… |
… |
|
69 | 69 | * arg Second argument to function isr |
70 | 70 | */ |
71 | | RTEMS_INLINE_ROUTINE int pci_interrupt_unregister(int irq, pci_isr isr, |
| 71 | static inline int pci_interrupt_unregister(int irq, pci_isr isr, |
72 | 72 | void *arg) |
73 | 73 | { |
… |
… |
|
86 | 86 | * arg Second argument to function isr |
87 | 87 | */ |
88 | | RTEMS_INLINE_ROUTINE void pci_interrupt_unmask(int irq) |
| 88 | static inline void pci_interrupt_unmask(int irq) |
89 | 89 | { |
90 | 90 | BSP_shared_interrupt_unmask(irq); |
… |
… |
|
102 | 102 | * arg Second argument to function isr |
103 | 103 | */ |
104 | | RTEMS_INLINE_ROUTINE void pci_interrupt_mask(int irq) |
| 104 | static inline void pci_interrupt_mask(int irq) |
105 | 105 | { |
106 | 106 | BSP_shared_interrupt_mask(irq); |
… |
… |
|
116 | 116 | * arg Second argument to function isr |
117 | 117 | */ |
118 | | RTEMS_INLINE_ROUTINE void pci_interrupt_clear(int irq) |
| 118 | static inline void pci_interrupt_clear(int irq) |
119 | 119 | { |
120 | 120 | BSP_shared_interrupt_clear(irq); |
-
r3803757
|
ra660e9dc
|
|
55 | 55 | * @copydoc _Timecounter_Bintime() |
56 | 56 | */ |
57 | | RTEMS_INLINE_ROUTINE void rtems_bsd_bintime( struct bintime *bt ) |
| 57 | static inline void rtems_bsd_bintime( struct bintime *bt ) |
58 | 58 | { |
59 | 59 | _Timecounter_Bintime( bt ); |
… |
… |
|
63 | 63 | * @copydoc _Timecounter_Nanotime() |
64 | 64 | */ |
65 | | RTEMS_INLINE_ROUTINE void rtems_bsd_nanotime( struct timespec *ts ) |
| 65 | static inline void rtems_bsd_nanotime( struct timespec *ts ) |
66 | 66 | { |
67 | 67 | _Timecounter_Nanotime( ts ); |
… |
… |
|
71 | 71 | * @copydoc _Timecounter_Microtime() |
72 | 72 | */ |
73 | | RTEMS_INLINE_ROUTINE void rtems_bsd_microtime( struct timeval *tv ) |
| 73 | static inline void rtems_bsd_microtime( struct timeval *tv ) |
74 | 74 | { |
75 | 75 | _Timecounter_Microtime( tv ); |
… |
… |
|
79 | 79 | * @copydoc _Timecounter_Binuptime() |
80 | 80 | */ |
81 | | RTEMS_INLINE_ROUTINE void rtems_bsd_binuptime( struct bintime *bt ) |
| 81 | static inline void rtems_bsd_binuptime( struct bintime *bt ) |
82 | 82 | { |
83 | 83 | _Timecounter_Binuptime( bt ); |
… |
… |
|
87 | 87 | * @copydoc _Timecounter_Nanouptime() |
88 | 88 | */ |
89 | | RTEMS_INLINE_ROUTINE void rtems_bsd_nanouptime( struct timespec *ts ) |
| 89 | static inline void rtems_bsd_nanouptime( struct timespec *ts ) |
90 | 90 | { |
91 | 91 | _Timecounter_Nanouptime( ts ); |
… |
… |
|
95 | 95 | * @copydoc _Timecounter_Microtime() |
96 | 96 | */ |
97 | | RTEMS_INLINE_ROUTINE void rtems_bsd_microuptime( struct timeval *tv ) |
| 97 | static inline void rtems_bsd_microuptime( struct timeval *tv ) |
98 | 98 | { |
99 | 99 | _Timecounter_Microuptime( tv ); |
… |
… |
|
103 | 103 | * @copydoc _Timecounter_Getbintime() |
104 | 104 | */ |
105 | | RTEMS_INLINE_ROUTINE void rtems_bsd_getbintime( struct bintime *bt ) |
| 105 | static inline void rtems_bsd_getbintime( struct bintime *bt ) |
106 | 106 | { |
107 | 107 | _Timecounter_Getbintime( bt ); |
… |
… |
|
111 | 111 | * @copydoc _Timecounter_Getnanotime() |
112 | 112 | */ |
113 | | RTEMS_INLINE_ROUTINE void rtems_bsd_getnanotime( struct timespec *ts ) |
| 113 | static inline void rtems_bsd_getnanotime( struct timespec *ts ) |
114 | 114 | { |
115 | 115 | _Timecounter_Getnanotime( ts ); |
… |
… |
|
119 | 119 | * @copydoc _Timecounter_Getmicrotime() |
120 | 120 | */ |
121 | | RTEMS_INLINE_ROUTINE void rtems_bsd_getmicrotime( struct timeval *tv ) |
| 121 | static inline void rtems_bsd_getmicrotime( struct timeval *tv ) |
122 | 122 | { |
123 | 123 | _Timecounter_Getmicrotime( tv ); |
… |
… |
|
127 | 127 | * @copydoc _Timecounter_Getbinuptime() |
128 | 128 | */ |
129 | | RTEMS_INLINE_ROUTINE void rtems_bsd_getbinuptime( struct bintime *bt ) |
| 129 | static inline void rtems_bsd_getbinuptime( struct bintime *bt ) |
130 | 130 | { |
131 | 131 | _Timecounter_Getbinuptime( bt ); |
… |
… |
|
135 | 135 | * @copydoc _Timecounter_Getnanouptime() |
136 | 136 | */ |
137 | | RTEMS_INLINE_ROUTINE void rtems_bsd_getnanouptime( struct timespec *ts ) |
| 137 | static inline void rtems_bsd_getnanouptime( struct timespec *ts ) |
138 | 138 | { |
139 | 139 | _Timecounter_Getnanouptime( ts ); |
… |
… |
|
143 | 143 | * @copydoc _Timecounter_Getmicrouptime() |
144 | 144 | */ |
145 | | RTEMS_INLINE_ROUTINE void rtems_bsd_getmicrouptime( struct timeval *tv ) |
| 145 | static inline void rtems_bsd_getmicrouptime( struct timeval *tv ) |
146 | 146 | { |
147 | 147 | _Timecounter_Getmicrouptime( tv ); |
-
r3803757
|
ra660e9dc
|
|
82 | 82 | * @return status code. |
83 | 83 | */ |
84 | | RTEMS_INLINE_ROUTINE int rtems_cbs_initialize ( void ) |
| 84 | static inline int rtems_cbs_initialize ( void ) |
85 | 85 | { |
86 | 86 | return _Scheduler_CBS_Initialize(); |
… |
… |
|
94 | 94 | * @return status code. |
95 | 95 | */ |
96 | | RTEMS_INLINE_ROUTINE int rtems_cbs_cleanup ( void ) |
| 96 | static inline int rtems_cbs_cleanup ( void ) |
97 | 97 | { |
98 | 98 | return _Scheduler_CBS_Cleanup(); |
… |
… |
|
106 | 106 | * @return status code. |
107 | 107 | */ |
108 | | RTEMS_INLINE_ROUTINE int rtems_cbs_create_server ( |
| 108 | static inline int rtems_cbs_create_server ( |
109 | 109 | rtems_cbs_parameters *params, |
110 | 110 | rtems_cbs_budget_overrun budget_overrun_callback, |
… |
… |
|
126 | 126 | * @return status code. |
127 | 127 | */ |
128 | | RTEMS_INLINE_ROUTINE int rtems_cbs_attach_thread ( |
| 128 | static inline int rtems_cbs_attach_thread ( |
129 | 129 | rtems_cbs_server_id server_id, |
130 | 130 | rtems_id task_id |
… |
… |
|
141 | 141 | * @return status code. |
142 | 142 | */ |
143 | | RTEMS_INLINE_ROUTINE int rtems_cbs_detach_thread ( |
| 143 | static inline int rtems_cbs_detach_thread ( |
144 | 144 | rtems_cbs_server_id server_id, |
145 | 145 | rtems_id task_id |
… |
… |
|
156 | 156 | * @return status code. |
157 | 157 | */ |
158 | | RTEMS_INLINE_ROUTINE int rtems_cbs_destroy_server ( |
| 158 | static inline int rtems_cbs_destroy_server ( |
159 | 159 | rtems_cbs_server_id server_id |
160 | 160 | ) |
… |
… |
|
171 | 171 | * @return status code. |
172 | 172 | */ |
173 | | RTEMS_INLINE_ROUTINE int rtems_cbs_get_server_id ( |
| 173 | static inline int rtems_cbs_get_server_id ( |
174 | 174 | rtems_id task_id, |
175 | 175 | rtems_cbs_server_id *server_id |
… |
… |
|
186 | 186 | * @return status code. |
187 | 187 | */ |
188 | | RTEMS_INLINE_ROUTINE int rtems_cbs_get_parameters ( |
| 188 | static inline int rtems_cbs_get_parameters ( |
189 | 189 | rtems_cbs_server_id server_id, |
190 | 190 | rtems_cbs_parameters *params |
… |
… |
|
201 | 201 | * @return status code. |
202 | 202 | */ |
203 | | RTEMS_INLINE_ROUTINE int rtems_cbs_set_parameters ( |
| 203 | static inline int rtems_cbs_set_parameters ( |
204 | 204 | rtems_cbs_server_id server_id, |
205 | 205 | rtems_cbs_parameters *params |
… |
… |
|
216 | 216 | * @return status code. |
217 | 217 | */ |
218 | | RTEMS_INLINE_ROUTINE int rtems_cbs_get_execution_time ( |
| 218 | static inline int rtems_cbs_get_execution_time ( |
219 | 219 | rtems_cbs_server_id server_id, |
220 | 220 | time_t *exec_time, |
… |
… |
|
232 | 232 | * @return status code. |
233 | 233 | */ |
234 | | RTEMS_INLINE_ROUTINE int rtems_cbs_get_remaining_budget ( |
| 234 | static inline int rtems_cbs_get_remaining_budget ( |
235 | 235 | rtems_cbs_server_id server_id, |
236 | 236 | time_t *remaining_budget |
… |
… |
|
248 | 248 | * @return status code. |
249 | 249 | */ |
250 | | RTEMS_INLINE_ROUTINE int rtems_cbs_get_approved_budget ( |
| 250 | static inline int rtems_cbs_get_approved_budget ( |
251 | 251 | rtems_cbs_server_id server_id, |
252 | 252 | time_t *appr_budget |
-
r3803757
|
ra660e9dc
|
|
167 | 167 | * @param[in] node_size is the size of each node |
168 | 168 | */ |
169 | | RTEMS_INLINE_ROUTINE void rtems_chain_initialize( |
| 169 | static inline void rtems_chain_initialize( |
170 | 170 | rtems_chain_control *the_chain, |
171 | 171 | void *starting_address, |
… |
… |
|
189 | 189 | * @param[in] the_chain is the chain to be initialized. |
190 | 190 | */ |
191 | | RTEMS_INLINE_ROUTINE void rtems_chain_initialize_empty( |
| 191 | static inline void rtems_chain_initialize_empty( |
192 | 192 | rtems_chain_control *the_chain |
193 | 193 | ) |
… |
… |
|
204 | 204 | * @param[in] node the node set to off chain. |
205 | 205 | */ |
206 | | RTEMS_INLINE_ROUTINE void rtems_chain_set_off_chain( |
| 206 | static inline void rtems_chain_set_off_chain( |
207 | 207 | rtems_chain_node *node |
208 | 208 | ) |
… |
… |
|
219 | 219 | * @param[in] the_node The chain node to initialize. |
220 | 220 | */ |
221 | | RTEMS_INLINE_ROUTINE void rtems_chain_initialize_node( |
| 221 | static inline void rtems_chain_initialize_node( |
222 | 222 | rtems_chain_node *node |
223 | 223 | ) |
… |
… |
|
237 | 237 | * @retval false The node is not off chain. |
238 | 238 | */ |
239 | | RTEMS_INLINE_ROUTINE bool rtems_chain_is_node_off_chain( |
| 239 | static inline bool rtems_chain_is_node_off_chain( |
240 | 240 | const rtems_chain_node *node |
241 | 241 | ) |
… |
… |
|
254 | 254 | * @retval false The chain node pointer is not NULL. |
255 | 255 | */ |
256 | | RTEMS_INLINE_ROUTINE bool rtems_chain_is_null_node( |
| 256 | static inline bool rtems_chain_is_null_node( |
257 | 257 | const rtems_chain_node *the_node |
258 | 258 | ) |
… |
… |
|
270 | 270 | * @return This method returns the permanent node of the chain. |
271 | 271 | */ |
272 | | RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_head( |
| 272 | static inline rtems_chain_node *rtems_chain_head( |
273 | 273 | rtems_chain_control *the_chain |
274 | 274 | ) |
… |
… |
|
286 | 286 | * @return This method returns the permanent head node of the chain. |
287 | 287 | */ |
288 | | RTEMS_INLINE_ROUTINE const rtems_chain_node *rtems_chain_immutable_head( |
| 288 | static inline const rtems_chain_node *rtems_chain_immutable_head( |
289 | 289 | const rtems_chain_control *the_chain |
290 | 290 | ) |
… |
… |
|
302 | 302 | * @return This method returns the permanent tail node of the chain. |
303 | 303 | */ |
304 | | RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_tail( |
| 304 | static inline rtems_chain_node *rtems_chain_tail( |
305 | 305 | rtems_chain_control *the_chain |
306 | 306 | ) |
… |
… |
|
318 | 318 | * @return This method returns the permanent tail node of the chain. |
319 | 319 | */ |
320 | | RTEMS_INLINE_ROUTINE const rtems_chain_node *rtems_chain_immutable_tail( |
| 320 | static inline const rtems_chain_node *rtems_chain_immutable_tail( |
321 | 321 | const rtems_chain_control *the_chain |
322 | 322 | ) |
… |
… |
|
335 | 335 | * @return This method returns the first node of the chain. |
336 | 336 | */ |
337 | | RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_first( |
| 337 | static inline rtems_chain_node *rtems_chain_first( |
338 | 338 | const rtems_chain_control *the_chain |
339 | 339 | ) |
… |
… |
|
352 | 352 | * @return This method returns the first node of the chain. |
353 | 353 | */ |
354 | | RTEMS_INLINE_ROUTINE const rtems_chain_node *rtems_chain_immutable_first( |
| 354 | static inline const rtems_chain_node *rtems_chain_immutable_first( |
355 | 355 | const rtems_chain_control *the_chain |
356 | 356 | ) |
… |
… |
|
369 | 369 | * @return This method returns the last node of the chain. |
370 | 370 | */ |
371 | | RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_last( |
| 371 | static inline rtems_chain_node *rtems_chain_last( |
372 | 372 | const rtems_chain_control *the_chain |
373 | 373 | ) |
… |
… |
|
386 | 386 | * @return This method returns the last node of the chain. |
387 | 387 | */ |
388 | | RTEMS_INLINE_ROUTINE const rtems_chain_node *rtems_chain_immutable_last( |
| 388 | static inline const rtems_chain_node *rtems_chain_immutable_last( |
389 | 389 | const rtems_chain_control *the_chain |
390 | 390 | ) |
… |
… |
|
402 | 402 | * @return This method returns the next node on the chain. |
403 | 403 | */ |
404 | | RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_next( |
| 404 | static inline rtems_chain_node *rtems_chain_next( |
405 | 405 | const rtems_chain_node *the_node |
406 | 406 | ) |
… |
… |
|
418 | 418 | * @return This method returns the next node on the chain. |
419 | 419 | */ |
420 | | RTEMS_INLINE_ROUTINE const rtems_chain_node *rtems_chain_immutable_next( |
| 420 | static inline const rtems_chain_node *rtems_chain_immutable_next( |
421 | 421 | const rtems_chain_node *the_node |
422 | 422 | ) |
… |
… |
|
434 | 434 | * @return This method returns the previous node on the chain. |
435 | 435 | */ |
436 | | RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_previous( |
| 436 | static inline rtems_chain_node *rtems_chain_previous( |
437 | 437 | const rtems_chain_node *the_node |
438 | 438 | ) |
… |
… |
|
450 | 450 | * @return This method returns the previous node on the chain. |
451 | 451 | */ |
452 | | RTEMS_INLINE_ROUTINE const rtems_chain_node *rtems_chain_immutable_previous( |
| 452 | static inline const rtems_chain_node *rtems_chain_immutable_previous( |
453 | 453 | const rtems_chain_node *the_node |
454 | 454 | ) |
… |
… |
|
469 | 469 | * @retval false @a left is not equal to @a right |
470 | 470 | */ |
471 | | RTEMS_INLINE_ROUTINE bool rtems_chain_are_nodes_equal( |
| 471 | static inline bool rtems_chain_are_nodes_equal( |
472 | 472 | const rtems_chain_node *left, |
473 | 473 | const rtems_chain_node *right |
… |
… |
|
488 | 488 | * @retval false The chain is not empty. |
489 | 489 | */ |
490 | | RTEMS_INLINE_ROUTINE bool rtems_chain_is_empty( |
| 490 | static inline bool rtems_chain_is_empty( |
491 | 491 | const rtems_chain_control *the_chain |
492 | 492 | ) |
… |
… |
|
507 | 507 | * @retval false @a the_node is not the first node on a chain. |
508 | 508 | */ |
509 | | RTEMS_INLINE_ROUTINE bool rtems_chain_is_first( |
| 509 | static inline bool rtems_chain_is_first( |
510 | 510 | const rtems_chain_node *the_node |
511 | 511 | ) |
… |
… |
|
525 | 525 | * @retval false @a the_node is not the last node on a chain |
526 | 526 | */ |
527 | | RTEMS_INLINE_ROUTINE bool rtems_chain_is_last( |
| 527 | static inline bool rtems_chain_is_last( |
528 | 528 | const rtems_chain_node *the_node |
529 | 529 | ) |
… |
… |
|
543 | 543 | * @retval false The chain has more than one nodes. |
544 | 544 | */ |
545 | | RTEMS_INLINE_ROUTINE bool rtems_chain_has_only_one_node( |
| 545 | static inline bool rtems_chain_has_only_one_node( |
546 | 546 | const rtems_chain_control *the_chain |
547 | 547 | ) |
… |
… |
|
562 | 562 | * @retval false @a the_node is not the head of @a the_chain. |
563 | 563 | */ |
564 | | RTEMS_INLINE_ROUTINE bool rtems_chain_is_head( |
| 564 | static inline bool rtems_chain_is_head( |
565 | 565 | const rtems_chain_control *the_chain, |
566 | 566 | const rtems_chain_node *the_node |
… |
… |
|
582 | 582 | * @retval false @a the_node is not the tail of @a the_chain. |
583 | 583 | */ |
584 | | RTEMS_INLINE_ROUTINE bool rtems_chain_is_tail( |
| 584 | static inline bool rtems_chain_is_tail( |
585 | 585 | const rtems_chain_control *the_chain, |
586 | 586 | const rtems_chain_node *the_node |
… |
… |
|
611 | 611 | * append operation. |
612 | 612 | */ |
613 | | RTEMS_INLINE_ROUTINE void rtems_chain_extract_unprotected( |
| 613 | static inline void rtems_chain_extract_unprotected( |
614 | 614 | rtems_chain_node *the_node |
615 | 615 | ) |
… |
… |
|
637 | 637 | * @brief See _Chain_Get_unprotected(). |
638 | 638 | */ |
639 | | RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get_unprotected( |
| 639 | static inline rtems_chain_node *rtems_chain_get_unprotected( |
640 | 640 | rtems_chain_control *the_chain |
641 | 641 | ) |
… |
… |
|
647 | 647 | * @brief See _Chain_Get_first_unprotected(). |
648 | 648 | */ |
649 | | RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get_first_unprotected( |
| 649 | static inline rtems_chain_node *rtems_chain_get_first_unprotected( |
650 | 650 | rtems_chain_control *the_chain |
651 | 651 | ) |
… |
… |
|
671 | 671 | * @brief See _Chain_Insert_unprotected(). |
672 | 672 | */ |
673 | | RTEMS_INLINE_ROUTINE void rtems_chain_insert_unprotected( |
| 673 | static inline void rtems_chain_insert_unprotected( |
674 | 674 | rtems_chain_node *after_node, |
675 | 675 | rtems_chain_node *the_node |
… |
… |
|
700 | 700 | * append operation. |
701 | 701 | */ |
702 | | RTEMS_INLINE_ROUTINE void rtems_chain_append_unprotected( |
| 702 | static inline void rtems_chain_append_unprotected( |
703 | 703 | rtems_chain_control *the_chain, |
704 | 704 | rtems_chain_node *the_node |
… |
… |
|
735 | 735 | * prepend operation. |
736 | 736 | */ |
737 | | RTEMS_INLINE_ROUTINE void rtems_chain_prepend_unprotected( |
| 737 | static inline void rtems_chain_prepend_unprotected( |
738 | 738 | rtems_chain_control *the_chain, |
739 | 739 | rtems_chain_node *the_node |
… |
… |
|
796 | 796 | * @return The node count of the chain. |
797 | 797 | */ |
798 | | RTEMS_INLINE_ROUTINE size_t rtems_chain_node_count_unprotected( |
| 798 | static inline size_t rtems_chain_node_count_unprotected( |
799 | 799 | const rtems_chain_control *chain |
800 | 800 | ) |
-
r3803757
|
ra660e9dc
|
|
55 | 55 | */ |
56 | 56 | |
57 | | RTEMS_INLINE_ROUTINE Extension_Control *_Extension_Allocate( void ) |
| 57 | static inline Extension_Control *_Extension_Allocate( void ) |
58 | 58 | { |
59 | 59 | return (Extension_Control *) _Objects_Allocate( &_Extension_Information ); |
60 | 60 | } |
61 | 61 | |
62 | | RTEMS_INLINE_ROUTINE void _Extension_Free ( |
| 62 | static inline void _Extension_Free ( |
63 | 63 | Extension_Control *the_extension |
64 | 64 | ) |
… |
… |
|
67 | 67 | } |
68 | 68 | |
69 | | RTEMS_INLINE_ROUTINE Extension_Control *_Extension_Get( Objects_Id id ) |
| 69 | static inline Extension_Control *_Extension_Get( Objects_Id id ) |
70 | 70 | { |
71 | 71 | return (Extension_Control *) |
-
r3803757
|
ra660e9dc
|
|
71 | 71 | ISR_LOCK_DECLARE( extern, _IO_Driver_registration_lock ) |
72 | 72 | |
73 | | RTEMS_INLINE_ROUTINE void _IO_Driver_registration_acquire( |
| 73 | static inline void _IO_Driver_registration_acquire( |
74 | 74 | ISR_lock_Context *lock_context |
75 | 75 | ) |
… |
… |
|
81 | 81 | } |
82 | 82 | |
83 | | RTEMS_INLINE_ROUTINE void _IO_Driver_registration_release( |
| 83 | static inline void _IO_Driver_registration_release( |
84 | 84 | ISR_lock_Context *lock_context |
85 | 85 | ) |
-
r3803757
|
ra660e9dc
|
|
1906 | 1906 | } rtems_termios_callbacks; |
1907 | 1907 | |
1908 | | RTEMS_INLINE_ROUTINE void rtems_termios_initialize( void ) |
| 1908 | static inline void rtems_termios_initialize( void ) |
1909 | 1909 | { |
1910 | 1910 | /* Nothing to do, provided for backward compatibility */ |
-
r3803757
|
ra660e9dc
|
|
130 | 130 | RTEMS_SECTION( ".rtemsrwset." #set ".content" ) |
131 | 131 | |
132 | | RTEMS_INLINE_ROUTINE uintptr_t _Linker_set_Obfuscate( const void *ptr ) |
| 132 | static inline uintptr_t _Linker_set_Obfuscate( const void *ptr ) |
133 | 133 | { |
134 | 134 | uintptr_t addr; |
-
r3803757
|
ra660e9dc
|
|
55 | 55 | * _Workspace_Malloc_initialize_separate(). |
56 | 56 | */ |
57 | | RTEMS_INLINE_ROUTINE Heap_Control *_Malloc_Initialize_for_multiple_areas( |
| 57 | static inline Heap_Control *_Malloc_Initialize_for_multiple_areas( |
58 | 58 | Heap_Control *heap |
59 | 59 | ) |
-
r3803757
|
ra660e9dc
|
|
55 | 55 | * area via _Memory_Get() to implement _Workspace_Malloc_initialize_separate(). |
56 | 56 | */ |
57 | | RTEMS_INLINE_ROUTINE Heap_Control *_Malloc_Initialize_for_one_area( |
| 57 | static inline Heap_Control *_Malloc_Initialize_for_one_area( |
58 | 58 | Heap_Control *heap |
59 | 59 | ) |
-
r3803757
|
ra660e9dc
|
|
344 | 344 | * @retval RTEMS_NO_MEMORY Not enough resources. |
345 | 345 | */ |
346 | | RTEMS_INLINE_ROUTINE rtems_status_code rtems_media_initialize(void) |
| 346 | static inline rtems_status_code rtems_media_initialize(void) |
347 | 347 | { |
348 | 348 | return RTEMS_SUCCESSFUL; |
-
r3803757
|
ra660e9dc
|
|
83 | 83 | } |
84 | 84 | |
85 | | RTEMS_INLINE_ROUTINE void _POSIX_Condition_variables_Initialize( |
| 85 | static inline void _POSIX_Condition_variables_Initialize( |
86 | 86 | POSIX_Condition_variables_Control *the_cond, |
87 | 87 | const pthread_condattr_t *the_attr |
… |
… |
|
103 | 103 | } |
104 | 104 | |
105 | | RTEMS_INLINE_ROUTINE void _POSIX_Condition_variables_Destroy( |
| 105 | static inline void _POSIX_Condition_variables_Destroy( |
106 | 106 | POSIX_Condition_variables_Control *the_cond |
107 | 107 | ) |
… |
… |
|
110 | 110 | } |
111 | 111 | |
112 | | RTEMS_INLINE_ROUTINE clockid_t _POSIX_Condition_variables_Get_clock( |
| 112 | static inline clockid_t _POSIX_Condition_variables_Get_clock( |
113 | 113 | unsigned long flags |
114 | 114 | ) |
… |
… |
|
121 | 121 | } |
122 | 122 | |
123 | | RTEMS_INLINE_ROUTINE Thread_Control *_POSIX_Condition_variables_Acquire( |
| 123 | static inline Thread_Control *_POSIX_Condition_variables_Acquire( |
124 | 124 | POSIX_Condition_variables_Control *the_cond, |
125 | 125 | Thread_queue_Context *queue_context |
… |
… |
|
141 | 141 | } |
142 | 142 | |
143 | | RTEMS_INLINE_ROUTINE void _POSIX_Condition_variables_Release( |
| 143 | static inline void _POSIX_Condition_variables_Release( |
144 | 144 | POSIX_Condition_variables_Control *the_cond, |
145 | 145 | Thread_queue_Context *queue_context |
-
r3803757
|
ra660e9dc
|
|
71 | 71 | */ |
72 | 72 | |
73 | | RTEMS_INLINE_ROUTINE POSIX_Keys_Control *_POSIX_Keys_Allocate( void ) |
| 73 | static inline POSIX_Keys_Control *_POSIX_Keys_Allocate( void ) |
74 | 74 | { |
75 | 75 | return (POSIX_Keys_Control *) _Objects_Allocate( &_POSIX_Keys_Information ); |
… |
… |
|
82 | 82 | * inactive chain of free keys control blocks. |
83 | 83 | */ |
84 | | RTEMS_INLINE_ROUTINE void _POSIX_Keys_Free( |
| 84 | static inline void _POSIX_Keys_Free( |
85 | 85 | POSIX_Keys_Control *the_key |
86 | 86 | ) |
… |
… |
|
89 | 89 | } |
90 | 90 | |
91 | | RTEMS_INLINE_ROUTINE POSIX_Keys_Control *_POSIX_Keys_Get( pthread_key_t key ) |
| 91 | static inline POSIX_Keys_Control *_POSIX_Keys_Get( pthread_key_t key ) |
92 | 92 | { |
93 | 93 | return (POSIX_Keys_Control *) |
… |
… |
|
95 | 95 | } |
96 | 96 | |
97 | | RTEMS_INLINE_ROUTINE void _POSIX_Keys_Key_value_acquire( |
| 97 | static inline void _POSIX_Keys_Key_value_acquire( |
98 | 98 | Thread_Control *the_thread, |
99 | 99 | ISR_lock_Context *lock_context |
… |
… |
|
103 | 103 | } |
104 | 104 | |
105 | | RTEMS_INLINE_ROUTINE void _POSIX_Keys_Key_value_release( |
| 105 | static inline void _POSIX_Keys_Key_value_release( |
106 | 106 | Thread_Control *the_thread, |
107 | 107 | ISR_lock_Context *lock_context |
… |
… |
|
113 | 113 | POSIX_Keys_Key_value_pair * _POSIX_Keys_Key_value_allocate( void ); |
114 | 114 | |
115 | | RTEMS_INLINE_ROUTINE void _POSIX_Keys_Key_value_free( |
| 115 | static inline void _POSIX_Keys_Key_value_free( |
116 | 116 | POSIX_Keys_Key_value_pair *key_value_pair |
117 | 117 | ) |
… |
… |
|
121 | 121 | } |
122 | 122 | |
123 | | RTEMS_INLINE_ROUTINE bool _POSIX_Keys_Key_value_equal( |
| 123 | static inline bool _POSIX_Keys_Key_value_equal( |
124 | 124 | const void *left, |
125 | 125 | const RBTree_Node *right |
… |
… |
|
135 | 135 | } |
136 | 136 | |
137 | | RTEMS_INLINE_ROUTINE bool _POSIX_Keys_Key_value_less( |
| 137 | static inline bool _POSIX_Keys_Key_value_less( |
138 | 138 | const void *left, |
139 | 139 | const RBTree_Node *right |
… |
… |
|
149 | 149 | } |
150 | 150 | |
151 | | RTEMS_INLINE_ROUTINE void *_POSIX_Keys_Key_value_map( RBTree_Node *node ) |
| 151 | static inline void *_POSIX_Keys_Key_value_map( RBTree_Node *node ) |
152 | 152 | { |
153 | 153 | return POSIX_KEYS_RBTREE_NODE_TO_KEY_VALUE_PAIR( node ); |
154 | 154 | } |
155 | 155 | |
156 | | RTEMS_INLINE_ROUTINE POSIX_Keys_Key_value_pair *_POSIX_Keys_Key_value_find( |
| 156 | static inline POSIX_Keys_Key_value_pair *_POSIX_Keys_Key_value_find( |
157 | 157 | pthread_key_t key, |
158 | 158 | const Thread_Control *the_thread |
… |
… |
|
168 | 168 | } |
169 | 169 | |
170 | | RTEMS_INLINE_ROUTINE void _POSIX_Keys_Key_value_insert( |
| 170 | static inline void _POSIX_Keys_Key_value_insert( |
171 | 171 | pthread_key_t key, |
172 | 172 | POSIX_Keys_Key_value_pair *key_value_pair, |
-
r3803757
|
ra660e9dc
|
|
100 | 100 | ); |
101 | 101 | |
102 | | RTEMS_INLINE_ROUTINE POSIX_Message_queue_Control * |
| 102 | static inline POSIX_Message_queue_Control * |
103 | 103 | _POSIX_Message_queue_Allocate_unprotected( void ) |
104 | 104 | { |
… |
… |
|
113 | 113 | * inactive chain of free message queue control blocks. |
114 | 114 | */ |
115 | | RTEMS_INLINE_ROUTINE void _POSIX_Message_queue_Free( |
| 115 | static inline void _POSIX_Message_queue_Free( |
116 | 116 | POSIX_Message_queue_Control *the_mq |
117 | 117 | ) |
… |
… |
|
121 | 121 | |
122 | 122 | |
123 | | RTEMS_INLINE_ROUTINE POSIX_Message_queue_Control *_POSIX_Message_queue_Get( |
| 123 | static inline POSIX_Message_queue_Control *_POSIX_Message_queue_Get( |
124 | 124 | Objects_Id id, |
125 | 125 | Thread_queue_Context *queue_context |
… |
… |
|
140 | 140 | * by the Score. |
141 | 141 | */ |
142 | | RTEMS_INLINE_ROUTINE CORE_message_queue_Submit_types |
| 142 | static inline CORE_message_queue_Submit_types |
143 | 143 | _POSIX_Message_queue_Priority_to_core( |
144 | 144 | unsigned int priority |
… |
… |
|
155 | 155 | * by the Score. |
156 | 156 | */ |
157 | | RTEMS_INLINE_ROUTINE unsigned int _POSIX_Message_queue_Priority_from_core( |
| 157 | static inline unsigned int _POSIX_Message_queue_Priority_from_core( |
158 | 158 | CORE_message_queue_Submit_types priority |
159 | 159 | ) |
… |
… |
|
166 | 166 | * @brief POSIX Message Queue Remove from Namespace |
167 | 167 | */ |
168 | | RTEMS_INLINE_ROUTINE void _POSIX_Message_queue_Namespace_remove ( |
| 168 | static inline void _POSIX_Message_queue_Namespace_remove ( |
169 | 169 | POSIX_Message_queue_Control *the_mq |
170 | 170 | ) |
… |
… |
|
176 | 176 | } |
177 | 177 | |
178 | | RTEMS_INLINE_ROUTINE POSIX_Message_queue_Control * |
| 178 | static inline POSIX_Message_queue_Control * |
179 | 179 | _POSIX_Message_queue_Get_by_name( |
180 | 180 | const char *name, |
-
r3803757
|
ra660e9dc
|
|
88 | 88 | extern const pthread_mutexattr_t _POSIX_Mutex_Default_attributes; |
89 | 89 | |
90 | | RTEMS_INLINE_ROUTINE Thread_Control *_POSIX_Mutex_Acquire( |
| 90 | static inline Thread_Control *_POSIX_Mutex_Acquire( |
91 | 91 | POSIX_Mutex_Control *the_mutex, |
92 | 92 | Thread_queue_Context *queue_context |
… |
… |
|
109 | 109 | } |
110 | 110 | |
111 | | RTEMS_INLINE_ROUTINE void _POSIX_Mutex_Release( |
| 111 | static inline void _POSIX_Mutex_Release( |
112 | 112 | POSIX_Mutex_Control *the_mutex, |
113 | 113 | Thread_queue_Context *queue_context |
… |
… |
|
120 | 120 | } |
121 | 121 | |
122 | | RTEMS_INLINE_ROUTINE POSIX_Mutex_Protocol _POSIX_Mutex_Get_protocol( |
| 122 | static inline POSIX_Mutex_Protocol _POSIX_Mutex_Get_protocol( |
123 | 123 | unsigned long flags |
124 | 124 | ) |
… |
… |
|
127 | 127 | } |
128 | 128 | |
129 | | RTEMS_INLINE_ROUTINE bool _POSIX_Mutex_Is_recursive( |
| 129 | static inline bool _POSIX_Mutex_Is_recursive( |
130 | 130 | unsigned long flags |
131 | 131 | ) |
… |
… |
|
134 | 134 | } |
135 | 135 | |
136 | | RTEMS_INLINE_ROUTINE Thread_Control *_POSIX_Mutex_Get_owner( |
| 136 | static inline Thread_Control *_POSIX_Mutex_Get_owner( |
137 | 137 | const POSIX_Mutex_Control *the_mutex |
138 | 138 | ) |
… |
… |
|
141 | 141 | } |
142 | 142 | |
143 | | RTEMS_INLINE_ROUTINE bool _POSIX_Mutex_Is_locked( |
| 143 | static inline bool _POSIX_Mutex_Is_locked( |
144 | 144 | const POSIX_Mutex_Control *the_mutex |
145 | 145 | ) |
… |
… |
|
156 | 156 | ); |
157 | 157 | |
158 | | RTEMS_INLINE_ROUTINE void _POSIX_Mutex_Set_owner( |
| 158 | static inline void _POSIX_Mutex_Set_owner( |
159 | 159 | POSIX_Mutex_Control *the_mutex, |
160 | 160 | Thread_Control *owner |
… |
… |
|
164 | 164 | } |
165 | 165 | |
166 | | RTEMS_INLINE_ROUTINE bool _POSIX_Mutex_Is_owner( |
| 166 | static inline bool _POSIX_Mutex_Is_owner( |
167 | 167 | const POSIX_Mutex_Control *the_mutex, |
168 | 168 | const Thread_Control *the_thread |
… |
… |
|
186 | 186 | } |
187 | 187 | |
188 | | RTEMS_INLINE_ROUTINE Status_Control _POSIX_Mutex_Seize( |
| 188 | static inline Status_Control _POSIX_Mutex_Seize( |
189 | 189 | POSIX_Mutex_Control *the_mutex, |
190 | 190 | unsigned long flags, |
… |
… |
|
223 | 223 | } |
224 | 224 | |
225 | | RTEMS_INLINE_ROUTINE Status_Control _POSIX_Mutex_Surrender( |
| 225 | static inline Status_Control _POSIX_Mutex_Surrender( |
226 | 226 | POSIX_Mutex_Control *the_mutex, |
227 | 227 | const Thread_queue_Operations *operations, |
… |
… |
|
266 | 266 | } |
267 | 267 | |
268 | | RTEMS_INLINE_ROUTINE const Scheduler_Control *_POSIX_Mutex_Get_scheduler( |
| 268 | static inline const Scheduler_Control *_POSIX_Mutex_Get_scheduler( |
269 | 269 | const POSIX_Mutex_Control *the_mutex |
270 | 270 | ) |
… |
… |
|
277 | 277 | } |
278 | 278 | |
279 | | RTEMS_INLINE_ROUTINE void _POSIX_Mutex_Set_priority( |
| 279 | static inline void _POSIX_Mutex_Set_priority( |
280 | 280 | POSIX_Mutex_Control *the_mutex, |
281 | 281 | Priority_Control priority_ceiling, |
… |
… |
|
302 | 302 | } |
303 | 303 | |
304 | | RTEMS_INLINE_ROUTINE Priority_Control _POSIX_Mutex_Get_priority( |
| 304 | static inline Priority_Control _POSIX_Mutex_Get_priority( |
305 | 305 | const POSIX_Mutex_Control *the_mutex |
306 | 306 | ) |
… |
… |
|
309 | 309 | } |
310 | 310 | |
311 | | RTEMS_INLINE_ROUTINE Status_Control _POSIX_Mutex_Ceiling_set_owner( |
| 311 | static inline Status_Control _POSIX_Mutex_Ceiling_set_owner( |
312 | 312 | POSIX_Mutex_Control *the_mutex, |
313 | 313 | Thread_Control *owner, |
… |
… |
|
348 | 348 | } |
349 | 349 | |
350 | | RTEMS_INLINE_ROUTINE Status_Control _POSIX_Mutex_Ceiling_seize( |
| 350 | static inline Status_Control _POSIX_Mutex_Ceiling_seize( |
351 | 351 | POSIX_Mutex_Control *the_mutex, |
352 | 352 | unsigned long flags, |
… |
… |
|
396 | 396 | } |
397 | 397 | |
398 | | RTEMS_INLINE_ROUTINE Status_Control _POSIX_Mutex_Ceiling_surrender( |
| 398 | static inline Status_Control _POSIX_Mutex_Ceiling_surrender( |
399 | 399 | POSIX_Mutex_Control *the_mutex, |
400 | 400 | Thread_Control *executing, |
-
r3803757
|
ra660e9dc
|
|
60 | 60 | extern const int _POSIX_Get_by_name_error_table[ 3 ]; |
61 | 61 | |
62 | | RTEMS_INLINE_ROUTINE int _POSIX_Get_by_name_error( |
| 62 | static inline int _POSIX_Get_by_name_error( |
63 | 63 | Objects_Get_by_name_error error |
64 | 64 | ) |
… |
… |
|
68 | 68 | } |
69 | 69 | |
70 | | RTEMS_INLINE_ROUTINE int _POSIX_Get_error( Status_Control status ) |
| 70 | static inline int _POSIX_Get_error( Status_Control status ) |
71 | 71 | { |
72 | 72 | return STATUS_GET_POSIX( status ); |
73 | 73 | } |
74 | 74 | |
75 | | RTEMS_INLINE_ROUTINE int _POSIX_Get_error_after_wait( |
| 75 | static inline int _POSIX_Get_error_after_wait( |
76 | 76 | const Thread_Control *executing |
77 | 77 | ) |
… |
… |
|
80 | 80 | } |
81 | 81 | |
82 | | RTEMS_INLINE_ROUTINE int _POSIX_Zero_or_minus_one_plus_errno( |
| 82 | static inline int _POSIX_Zero_or_minus_one_plus_errno( |
83 | 83 | Status_Control status |
84 | 84 | ) |
… |
… |
|
98 | 98 | * http://pubs.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html#tag_15_09_09 |
99 | 99 | */ |
100 | | RTEMS_INLINE_ROUTINE bool _POSIX_Is_valid_pshared( int pshared ) |
| 100 | static inline bool _POSIX_Is_valid_pshared( int pshared ) |
101 | 101 | { |
102 | 102 | return pshared == PTHREAD_PROCESS_PRIVATE || |
-
r3803757
|
ra660e9dc
|
|
69 | 69 | * @return The maximum POSIX API priority for this scheduler instance. |
70 | 70 | */ |
71 | | RTEMS_INLINE_ROUTINE int _POSIX_Priority_Get_maximum( |
| 71 | static inline int _POSIX_Priority_Get_maximum( |
72 | 72 | const Scheduler_Control *scheduler |
73 | 73 | ) |
-
r3803757
|
ra660e9dc
|
|
93 | 93 | */ |
94 | 94 | |
95 | | RTEMS_INLINE_ROUTINE void _POSIX_signals_Acquire( |
| 95 | static inline void _POSIX_signals_Acquire( |
96 | 96 | Thread_queue_Context *queue_context |
97 | 97 | ) |
… |
… |
|
100 | 100 | } |
101 | 101 | |
102 | | RTEMS_INLINE_ROUTINE void _POSIX_signals_Release( |
| 102 | static inline void _POSIX_signals_Release( |
103 | 103 | Thread_queue_Context *queue_context |
104 | 104 | ) |
-
r3803757
|
ra660e9dc
|
|
61 | 61 | extern const pthread_attr_t _POSIX_Threads_Default_attributes; |
62 | 62 | |
63 | | RTEMS_INLINE_ROUTINE void _POSIX_Threads_Copy_attributes( |
| 63 | static inline void _POSIX_Threads_Copy_attributes( |
64 | 64 | pthread_attr_t *dst_attr, |
65 | 65 | const pthread_attr_t *src_attr |
… |
… |
|
73 | 73 | } |
74 | 74 | |
75 | | RTEMS_INLINE_ROUTINE void _POSIX_Threads_Initialize_attributes( |
| 75 | static inline void _POSIX_Threads_Initialize_attributes( |
76 | 76 | pthread_attr_t *attr |
77 | 77 | ) |
… |
… |
|
83 | 83 | } |
84 | 84 | |
85 | | RTEMS_INLINE_ROUTINE void _POSIX_Threads_Get_sched_param_sporadic( |
| 85 | static inline void _POSIX_Threads_Get_sched_param_sporadic( |
86 | 86 | const Thread_Control *the_thread, |
87 | 87 | const Scheduler_Control *scheduler, |
-
r3803757
|
ra660e9dc
|
|
62 | 62 | |
63 | 63 | #if defined(RTEMS_POSIX_API) |
64 | | RTEMS_INLINE_ROUTINE void _POSIX_Threads_Sporadic_timer_insert( |
| 64 | static inline void _POSIX_Threads_Sporadic_timer_insert( |
65 | 65 | Thread_Control *the_thread, |
66 | 66 | POSIX_API_Control *api |
… |
… |
|
110 | 110 | ); |
111 | 111 | |
112 | | RTEMS_INLINE_ROUTINE Thread_Control *_POSIX_Threads_Allocate(void) |
| 112 | static inline Thread_Control *_POSIX_Threads_Allocate(void) |
113 | 113 | { |
114 | 114 | _Objects_Allocator_lock(); |
-
r3803757
|
ra660e9dc
|
|
55 | 55 | } POSIX_RWLock_Control; |
56 | 56 | |
57 | | RTEMS_INLINE_ROUTINE POSIX_RWLock_Control *_POSIX_RWLock_Get( |
| 57 | static inline POSIX_RWLock_Control *_POSIX_RWLock_Get( |
58 | 58 | pthread_rwlock_t *rwlock |
59 | 59 | ) |
-
r3803757
|
ra660e9dc
|
|
54 | 54 | #define POSIX_SEMAPHORE_MAGIC 0x5d367fe7UL |
55 | 55 | |
56 | | RTEMS_INLINE_ROUTINE POSIX_Semaphore_Control * |
| 56 | static inline POSIX_Semaphore_Control * |
57 | 57 | _POSIX_Semaphore_Allocate_unprotected( void ) |
58 | 58 | { |
… |
… |
|
67 | 67 | * inactive chain of free semaphore control blocks. |
68 | 68 | */ |
69 | | RTEMS_INLINE_ROUTINE void _POSIX_Semaphore_Free ( |
| 69 | static inline void _POSIX_Semaphore_Free ( |
70 | 70 | POSIX_Semaphore_Control *the_semaphore |
71 | 71 | ) |
… |
… |
|
74 | 74 | } |
75 | 75 | |
76 | | RTEMS_INLINE_ROUTINE POSIX_Semaphore_Control *_POSIX_Semaphore_Get( |
| 76 | static inline POSIX_Semaphore_Control *_POSIX_Semaphore_Get( |
77 | 77 | sem_t *sem |
78 | 78 | ) |
… |
… |
|
81 | 81 | } |
82 | 82 | |
83 | | RTEMS_INLINE_ROUTINE bool _POSIX_Semaphore_Is_named( const sem_t *sem ) |
| 83 | static inline bool _POSIX_Semaphore_Is_named( const sem_t *sem ) |
84 | 84 | { |
85 | 85 | return sem->_Semaphore._Queue._name != NULL; |
86 | 86 | } |
87 | 87 | |
88 | | RTEMS_INLINE_ROUTINE bool _POSIX_Semaphore_Is_busy( const sem_t *sem ) |
| 88 | static inline bool _POSIX_Semaphore_Is_busy( const sem_t *sem ) |
89 | 89 | { |
90 | 90 | return sem->_Semaphore._Queue._heads != NULL; |
91 | 91 | } |
92 | 92 | |
93 | | RTEMS_INLINE_ROUTINE void _POSIX_Semaphore_Initialize( |
| 93 | static inline void _POSIX_Semaphore_Initialize( |
94 | 94 | sem_t *sem, |
95 | 95 | const char *name, |
… |
… |
|
101 | 101 | } |
102 | 102 | |
103 | | RTEMS_INLINE_ROUTINE void _POSIX_Semaphore_Destroy( sem_t *sem ) |
| 103 | static inline void _POSIX_Semaphore_Destroy( sem_t *sem ) |
104 | 104 | { |
105 | 105 | sem->_flags = 0; |
… |
… |
|
117 | 117 | * @brief POSIX Semaphore Namespace Remove |
118 | 118 | */ |
119 | | RTEMS_INLINE_ROUTINE void _POSIX_Semaphore_Namespace_remove ( |
| 119 | static inline void _POSIX_Semaphore_Namespace_remove ( |
120 | 120 | POSIX_Semaphore_Control *the_semaphore |
121 | 121 | ) |
… |
… |
|
127 | 127 | } |
128 | 128 | |
129 | | RTEMS_INLINE_ROUTINE POSIX_Semaphore_Control *_POSIX_Semaphore_Get_by_name( |
| 129 | static inline POSIX_Semaphore_Control *_POSIX_Semaphore_Get_by_name( |
130 | 130 | const char *name, |
131 | 131 | size_t *name_length_p, |
-
r3803757
|
ra660e9dc
|
|
51 | 51 | */ |
52 | 52 | |
53 | | RTEMS_INLINE_ROUTINE POSIX_Shm_Control *_POSIX_Shm_Allocate_unprotected( void ) |
| 53 | static inline POSIX_Shm_Control *_POSIX_Shm_Allocate_unprotected( void ) |
54 | 54 | { |
55 | 55 | return (POSIX_Shm_Control *) |
… |
… |
|
62 | 62 | * This routine frees a shm control block. |
63 | 63 | */ |
64 | | RTEMS_INLINE_ROUTINE void _POSIX_Shm_Free ( |
| 64 | static inline void _POSIX_Shm_Free ( |
65 | 65 | POSIX_Shm_Control *the_shm |
66 | 66 | ) |
… |
… |
|
69 | 69 | } |
70 | 70 | |
71 | | RTEMS_INLINE_ROUTINE POSIX_Shm_Control *_POSIX_Shm_Get_by_name( |
| 71 | static inline POSIX_Shm_Control *_POSIX_Shm_Get_by_name( |
72 | 72 | const char *name, |
73 | 73 | size_t *name_length_p, |
… |
… |
|
83 | 83 | } |
84 | 84 | |
85 | | RTEMS_INLINE_ROUTINE void _POSIX_Shm_Update_atime( |
| 85 | static inline void _POSIX_Shm_Update_atime( |
86 | 86 | POSIX_Shm_Control *shm |
87 | 87 | ) |
… |
… |
|
92 | 92 | } |
93 | 93 | |
94 | | RTEMS_INLINE_ROUTINE void _POSIX_Shm_Update_mtime_ctime( |
| 94 | static inline void _POSIX_Shm_Update_mtime_ctime( |
95 | 95 | POSIX_Shm_Control *shm |
96 | 96 | ) |
-
r3803757
|
ra660e9dc
|
|
63 | 63 | } POSIX_Spinlock_Control; |
64 | 64 | |
65 | | RTEMS_INLINE_ROUTINE POSIX_Spinlock_Control *_POSIX_Spinlock_Get( |
| 65 | static inline POSIX_Spinlock_Control *_POSIX_Spinlock_Get( |
66 | 66 | pthread_spinlock_t *lock |
67 | 67 | ) |
-
r3803757
|
ra660e9dc
|
|
77 | 77 | * the inactive chain of free timer control blocks. |
78 | 78 | */ |
79 | | RTEMS_INLINE_ROUTINE POSIX_Timer_Control *_POSIX_Timer_Allocate( void ) |
| 79 | static inline POSIX_Timer_Control *_POSIX_Timer_Allocate( void ) |
80 | 80 | { |
81 | 81 | return (POSIX_Timer_Control *) _Objects_Allocate( &_POSIX_Timer_Information ); |
… |
… |
|
88 | 88 | * inactive chain of free timer control blocks. |
89 | 89 | */ |
90 | | RTEMS_INLINE_ROUTINE void _POSIX_Timer_Free ( |
| 90 | static inline void _POSIX_Timer_Free ( |
91 | 91 | POSIX_Timer_Control *the_timer |
92 | 92 | ) |
… |
… |
|
106 | 106 | * to OBJECTS_ERROR and the returned value is undefined. |
107 | 107 | */ |
108 | | RTEMS_INLINE_ROUTINE POSIX_Timer_Control *_POSIX_Timer_Get ( |
| 108 | static inline POSIX_Timer_Control *_POSIX_Timer_Get ( |
109 | 109 | timer_t id, |
110 | 110 | ISR_lock_Context *lock_context |
… |
… |
|
118 | 118 | } |
119 | 119 | |
120 | | RTEMS_INLINE_ROUTINE Per_CPU_Control *_POSIX_Timer_Acquire_critical( |
| 120 | static inline Per_CPU_Control *_POSIX_Timer_Acquire_critical( |
121 | 121 | POSIX_Timer_Control *ptimer, |
122 | 122 | ISR_lock_Context *lock_context |
… |
… |
|
131 | 131 | } |
132 | 132 | |
133 | | RTEMS_INLINE_ROUTINE void _POSIX_Timer_Release( |
| 133 | static inline void _POSIX_Timer_Release( |
134 | 134 | Per_CPU_Control *cpu, |
135 | 135 | ISR_lock_Context *lock_context |
-
r3803757
|
ra660e9dc
|
|
40 | 40 | const char *rtems_pty_initialize(rtems_pty_context *pty, uintptr_t unique); |
41 | 41 | |
42 | | RTEMS_INLINE_ROUTINE const char *rtems_pty_get_path(const rtems_pty_context *pty) |
| 42 | static inline const char *rtems_pty_get_path(const rtems_pty_context *pty) |
43 | 43 | { |
44 | 44 | return pty->name; |
-
r3803757
|
ra660e9dc
|
|
99 | 99 | * @return status code. |
100 | 100 | */ |
101 | | RTEMS_INLINE_ROUTINE qos_rv qres_init ( void ) |
| 101 | static inline qos_rv qres_init ( void ) |
102 | 102 | { |
103 | 103 | return _Scheduler_CBS_Initialize(); |
… |
… |
|
111 | 111 | * @return status code. |
112 | 112 | */ |
113 | | RTEMS_INLINE_ROUTINE qos_rv qres_cleanup ( void ) |
| 113 | static inline qos_rv qres_cleanup ( void ) |
114 | 114 | { |
115 | 115 | return _Scheduler_CBS_Cleanup(); |
… |
… |
|
123 | 123 | * @return status code. |
124 | 124 | */ |
125 | | RTEMS_INLINE_ROUTINE qos_rv qres_create_server ( |
| 125 | static inline qos_rv qres_create_server ( |
126 | 126 | qres_params_t *params, |
127 | 127 | qres_sid_t *server_id |
… |
… |
|
142 | 142 | * @return status code. |
143 | 143 | */ |
144 | | RTEMS_INLINE_ROUTINE qos_rv qres_attach_thread ( |
| 144 | static inline qos_rv qres_attach_thread ( |
145 | 145 | qres_sid_t server_id, |
146 | 146 | pid_t pid, |
… |
… |
|
158 | 158 | * @return status code. |
159 | 159 | */ |
160 | | RTEMS_INLINE_ROUTINE qos_rv qres_detach_thread ( |
| 160 | static inline qos_rv qres_detach_thread ( |
161 | 161 | qres_sid_t server_id, |
162 | 162 | pid_t pid, |
… |
… |
|
174 | 174 | * @return status code. |
175 | 175 | */ |
176 | | RTEMS_INLINE_ROUTINE qos_rv qres_destroy_server ( |
| 176 | static inline qos_rv qres_destroy_server ( |
177 | 177 | qres_sid_t server_id |
178 | 178 | ) |
… |
… |
|
189 | 189 | * @return status code. |
190 | 190 | */ |
191 | | RTEMS_INLINE_ROUTINE qos_rv qres_get_sid ( |
| 191 | static inline qos_rv qres_get_sid ( |
192 | 192 | pid_t pid, |
193 | 193 | tid_t task_id, |
… |
… |
|
205 | 205 | * @return status code. |
206 | 206 | */ |
207 | | RTEMS_INLINE_ROUTINE qos_rv qres_get_params ( |
| 207 | static inline qos_rv qres_get_params ( |
208 | 208 | qres_sid_t server_id, |
209 | 209 | qres_params_t *params |
… |
… |
|
223 | 223 | * @return status code. |
224 | 224 | */ |
225 | | RTEMS_INLINE_ROUTINE qos_rv qres_set_params ( |
| 225 | static inline qos_rv qres_set_params ( |
226 | 226 | qres_sid_t server_id, |
227 | 227 | qres_params_t *params |
… |
… |
|
241 | 241 | * @return status code. |
242 | 242 | */ |
243 | | RTEMS_INLINE_ROUTINE qos_rv qres_get_exec_time ( |
| 243 | static inline qos_rv qres_get_exec_time ( |
244 | 244 | qres_sid_t server_id, |
245 | 245 | qres_time_t *exec_time, |
… |
… |
|
257 | 257 | * @return status code. |
258 | 258 | */ |
259 | | RTEMS_INLINE_ROUTINE qos_rv qres_get_curr_budget ( |
| 259 | static inline qos_rv qres_get_curr_budget ( |
260 | 260 | qres_sid_t server_id, |
261 | 261 | qres_time_t *current_budget |
… |
… |
|
273 | 273 | * @return status code. |
274 | 274 | */ |
275 | | RTEMS_INLINE_ROUTINE qos_rv qres_get_appr_budget ( |
| 275 | static inline qos_rv qres_get_appr_budget ( |
276 | 276 | qres_sid_t server_id, |
277 | 277 | qres_time_t *appr_budget |
-
r3803757
|
ra660e9dc
|
|
140 | 140 | * This routine initializes @a the_rbtree to contain zero nodes. |
141 | 141 | */ |
142 | | RTEMS_INLINE_ROUTINE void rtems_rbtree_initialize_empty( |
| 142 | static inline void rtems_rbtree_initialize_empty( |
143 | 143 | rtems_rbtree_control *the_rbtree |
144 | 144 | ) |
… |
… |
|
153 | 153 | * indicating the @a node is not part of any rbtree. |
154 | 154 | */ |
155 | | RTEMS_INLINE_ROUTINE void rtems_rbtree_set_off_tree( |
| 155 | static inline void rtems_rbtree_set_off_tree( |
156 | 156 | rtems_rbtree_node *node |
157 | 157 | ) |
… |
… |
|
166 | 166 | * off rbtree if the next and previous fields are set to NULL. |
167 | 167 | */ |
168 | | RTEMS_INLINE_ROUTINE bool rtems_rbtree_is_node_off_tree( |
| 168 | static inline bool rtems_rbtree_is_node_off_tree( |
169 | 169 | const rtems_rbtree_node *node |
170 | 170 | ) |
… |
… |
|
178 | 178 | * This function returns a pointer to the root node of @a the_rbtree. |
179 | 179 | */ |
180 | | RTEMS_INLINE_ROUTINE rtems_rbtree_node *rtems_rbtree_root( |
| 180 | static inline rtems_rbtree_node *rtems_rbtree_root( |
181 | 181 | const rtems_rbtree_control *the_rbtree |
182 | 182 | ) |
… |
… |
|
188 | 188 | * @copydoc _RBTree_Minimum() |
189 | 189 | */ |
190 | | RTEMS_INLINE_ROUTINE rtems_rbtree_node *rtems_rbtree_min( |
| 190 | static inline rtems_rbtree_node *rtems_rbtree_min( |
191 | 191 | const rtems_rbtree_control *the_rbtree |
192 | 192 | ) |
… |
… |
|
198 | 198 | * @copydoc _RBTree_Maximum() |
199 | 199 | */ |
200 | | RTEMS_INLINE_ROUTINE rtems_rbtree_node *rtems_rbtree_max( |
| 200 | static inline rtems_rbtree_node *rtems_rbtree_max( |
201 | 201 | const rtems_rbtree_control *the_rbtree |
202 | 202 | ) |
… |
… |
|
210 | 210 | * This function returns a pointer to the left child node of @a the_node. |
211 | 211 | */ |
212 | | RTEMS_INLINE_ROUTINE rtems_rbtree_node *rtems_rbtree_left( |
| 212 | static inline rtems_rbtree_node *rtems_rbtree_left( |
213 | 213 | const rtems_rbtree_node *the_node |
214 | 214 | ) |
… |
… |
|
222 | 222 | * This function returns a pointer to the right child node of @a the_node. |
223 | 223 | */ |
224 | | RTEMS_INLINE_ROUTINE rtems_rbtree_node *rtems_rbtree_right( |
| 224 | static inline rtems_rbtree_node *rtems_rbtree_right( |
225 | 225 | const rtems_rbtree_node *the_node |
226 | 226 | ) |
… |
… |
|
232 | 232 | * @copydoc _RBTree_Parent() |
233 | 233 | */ |
234 | | RTEMS_INLINE_ROUTINE rtems_rbtree_node *rtems_rbtree_parent( |
| 234 | static inline rtems_rbtree_node *rtems_rbtree_parent( |
235 | 235 | const rtems_rbtree_node *the_node |
236 | 236 | ) |
… |
… |
|
245 | 245 | * false otherwise. |
246 | 246 | */ |
247 | | RTEMS_INLINE_ROUTINE bool rtems_rbtree_is_empty( |
| 247 | static inline bool rtems_rbtree_is_empty( |
248 | 248 | const rtems_rbtree_control *the_rbtree |
249 | 249 | ) |
… |
… |
|
258 | 258 | * and false otherwise. |
259 | 259 | */ |
260 | | RTEMS_INLINE_ROUTINE bool rtems_rbtree_is_min( |
| 260 | static inline bool rtems_rbtree_is_min( |
261 | 261 | const rtems_rbtree_control *the_rbtree, |
262 | 262 | const rtems_rbtree_node *the_node |
… |
… |
|
272 | 272 | * and false otherwise. |
273 | 273 | */ |
274 | | RTEMS_INLINE_ROUTINE bool rtems_rbtree_is_max( |
| 274 | static inline bool rtems_rbtree_is_max( |
275 | 275 | const rtems_rbtree_control *the_rbtree, |
276 | 276 | const rtems_rbtree_node *the_node |
… |
… |
|
283 | 283 | * @copydoc _RBTree_Is_root() |
284 | 284 | */ |
285 | | RTEMS_INLINE_ROUTINE bool rtems_rbtree_is_root( |
| 285 | static inline bool rtems_rbtree_is_root( |
286 | 286 | const rtems_rbtree_node *the_node |
287 | 287 | ) |
… |
… |
|
290 | 290 | } |
291 | 291 | |
292 | | RTEMS_INLINE_ROUTINE bool rtems_rbtree_is_equal( |
| 292 | static inline bool rtems_rbtree_is_equal( |
293 | 293 | rtems_rbtree_compare_result compare_result |
294 | 294 | ) |
… |
… |
|
297 | 297 | } |
298 | 298 | |
299 | | RTEMS_INLINE_ROUTINE bool rtems_rbtree_is_greater( |
| 299 | static inline bool rtems_rbtree_is_greater( |
300 | 300 | rtems_rbtree_compare_result compare_result |
301 | 301 | ) |
… |
… |
|
304 | 304 | } |
305 | 305 | |
306 | | RTEMS_INLINE_ROUTINE bool rtems_rbtree_is_lesser( |
| 306 | static inline bool rtems_rbtree_is_lesser( |
307 | 307 | rtems_rbtree_compare_result compare_result |
308 | 308 | ) |
… |
… |
|
335 | 335 | * @copydoc _RBTree_Predecessor() |
336 | 336 | */ |
337 | | RTEMS_INLINE_ROUTINE rtems_rbtree_node* rtems_rbtree_predecessor( |
| 337 | static inline rtems_rbtree_node* rtems_rbtree_predecessor( |
338 | 338 | const rtems_rbtree_node *node |
339 | 339 | ) |
… |
… |
|
345 | 345 | * @copydoc _RBTree_Successor() |
346 | 346 | */ |
347 | | RTEMS_INLINE_ROUTINE rtems_rbtree_node* rtems_rbtree_successor( |
| 347 | static inline rtems_rbtree_node* rtems_rbtree_successor( |
348 | 348 | const rtems_rbtree_node *node |
349 | 349 | ) |
… |
… |
|
355 | 355 | * @copydoc _RBTree_Extract() |
356 | 356 | */ |
357 | | RTEMS_INLINE_ROUTINE void rtems_rbtree_extract( |
| 357 | static inline void rtems_rbtree_extract( |
358 | 358 | rtems_rbtree_control *the_rbtree, |
359 | 359 | rtems_rbtree_node *the_node |
… |
… |
|
375 | 375 | * @retval node A node with the minimal key value on the tree. |
376 | 376 | */ |
377 | | RTEMS_INLINE_ROUTINE rtems_rbtree_node *rtems_rbtree_get_min( |
| 377 | static inline rtems_rbtree_node *rtems_rbtree_get_min( |
378 | 378 | rtems_rbtree_control *the_rbtree |
379 | 379 | ) |
… |
… |
|
400 | 400 | * @retval node A node with the maximal key value on the tree. |
401 | 401 | */ |
402 | | RTEMS_INLINE_ROUTINE rtems_rbtree_node *rtems_rbtree_get_max( |
| 402 | static inline rtems_rbtree_node *rtems_rbtree_get_max( |
403 | 403 | rtems_rbtree_control *the_rbtree |
404 | 404 | ) |
… |
… |
|
420 | 420 | * then NULL is returned. |
421 | 421 | */ |
422 | | RTEMS_INLINE_ROUTINE rtems_rbtree_node *rtems_rbtree_peek_min( |
| 422 | static inline rtems_rbtree_node *rtems_rbtree_peek_min( |
423 | 423 | const rtems_rbtree_control *the_rbtree |
424 | 424 | ) |
… |
… |
|
434 | 434 | * then NULL is returned. |
435 | 435 | */ |
436 | | RTEMS_INLINE_ROUTINE rtems_rbtree_node *rtems_rbtree_peek_max( |
| 436 | static inline rtems_rbtree_node *rtems_rbtree_peek_max( |
437 | 437 | const rtems_rbtree_control *the_rbtree |
438 | 438 | ) |
-
r3803757
|
ra660e9dc
|
|
113 | 113 | ); |
114 | 114 | |
115 | | RTEMS_INLINE_ROUTINE unsigned int _Record_Index( |
| 115 | static inline unsigned int _Record_Index( |
116 | 116 | const Record_Control *control, |
117 | 117 | unsigned int index |
… |
… |
|
121 | 121 | } |
122 | 122 | |
123 | | RTEMS_INLINE_ROUTINE unsigned int _Record_Head( const Record_Control *control ) |
| 123 | static inline unsigned int _Record_Head( const Record_Control *control ) |
124 | 124 | { |
125 | 125 | return _Atomic_Load_uint( &control->head, ATOMIC_ORDER_RELAXED ); |
126 | 126 | } |
127 | 127 | |
128 | | RTEMS_INLINE_ROUTINE unsigned int _Record_Tail( const Record_Control *control ) |
| 128 | static inline unsigned int _Record_Tail( const Record_Control *control ) |
129 | 129 | { |
130 | 130 | return control->tail; |
131 | 131 | } |
132 | 132 | |
133 | | RTEMS_INLINE_ROUTINE bool _Record_Is_overflow( |
| 133 | static inline bool _Record_Is_overflow( |
134 | 134 | const Record_Control *control, |
135 | 135 | unsigned int tail, |
… |
… |
|
140 | 140 | } |
141 | 141 | |
142 | | RTEMS_INLINE_ROUTINE unsigned int _Record_Capacity( |
| 142 | static inline unsigned int _Record_Capacity( |
143 | 143 | const Record_Control *control, |
144 | 144 | unsigned int tail, |
… |
… |
|
149 | 149 | } |
150 | 150 | |
151 | | RTEMS_INLINE_ROUTINE rtems_counter_ticks _Record_Now( void ) |
| 151 | static inline rtems_counter_ticks _Record_Now( void ) |
152 | 152 | { |
153 | 153 | return rtems_counter_read(); |
… |
… |
|
499 | 499 | * @param cpu_self The control of the current processor. |
500 | 500 | */ |
501 | | RTEMS_INLINE_ROUTINE void rtems_record_prepare_critical( |
| 501 | static inline void rtems_record_prepare_critical( |
502 | 502 | rtems_record_context *context, |
503 | 503 | const Per_CPU_Control *cpu_self |
… |
… |
|
525 | 525 | * @see rtems_record_produce(). |
526 | 526 | */ |
527 | | RTEMS_INLINE_ROUTINE void rtems_record_prepare( rtems_record_context *context ) |
| 527 | static inline void rtems_record_prepare( rtems_record_context *context ) |
528 | 528 | { |
529 | 529 | uint32_t level; |
… |
… |
|
550 | 550 | * @param data The record data for the item. |
551 | 551 | */ |
552 | | RTEMS_INLINE_ROUTINE void rtems_record_add( |
| 552 | static inline void rtems_record_add( |
553 | 553 | rtems_record_context *context, |
554 | 554 | rtems_record_event event, |
… |
… |
|
576 | 576 | * rtems_record_prepare_critical(). |
577 | 577 | */ |
578 | | RTEMS_INLINE_ROUTINE void rtems_record_commit_critical( rtems_record_context *context ) |
| 578 | static inline void rtems_record_commit_critical( rtems_record_context *context ) |
579 | 579 | { |
580 | 580 | _Atomic_Store_uint( |
… |
… |
|
590 | 590 | * @param context The record context initialized via rtems_record_prepare(). |
591 | 591 | */ |
592 | | RTEMS_INLINE_ROUTINE void rtems_record_commit( rtems_record_context *context ) |
| 592 | static inline void rtems_record_commit( rtems_record_context *context ) |
593 | 593 | { |
594 | 594 | rtems_record_commit_critical( context ); |
-
r3803757
|
ra660e9dc
|
|
81 | 81 | * passed in. The result is returned to the user. |
82 | 82 | */ |
83 | | RTEMS_INLINE_ROUTINE rtems_attribute _Attributes_Set ( |
| 83 | static inline rtems_attribute _Attributes_Set ( |
84 | 84 | rtems_attribute new_attributes, |
85 | 85 | rtems_attribute attribute_set |
… |
… |
|
96 | 96 | * passed in. The result is returned to the user. |
97 | 97 | */ |
98 | | RTEMS_INLINE_ROUTINE rtems_attribute _Attributes_Clear ( |
| 98 | static inline rtems_attribute _Attributes_Clear ( |
99 | 99 | rtems_attribute attribute_set, |
100 | 100 | rtems_attribute mask |
… |
… |
|
111 | 111 | * enabled in the attribute_set and FALSE otherwise. |
112 | 112 | */ |
113 | | RTEMS_INLINE_ROUTINE bool _Attributes_Is_floating_point( |
| 113 | static inline bool _Attributes_Is_floating_point( |
114 | 114 | rtems_attribute attribute_set |
115 | 115 | ) |
… |
… |
|
126 | 126 | * enabled in the attribute_set and FALSE otherwise. |
127 | 127 | */ |
128 | | RTEMS_INLINE_ROUTINE bool _Attributes_Is_global( |
| 128 | static inline bool _Attributes_Is_global( |
129 | 129 | rtems_attribute attribute_set |
130 | 130 | ) |
… |
… |
|
140 | 140 | * enabled in the attribute_set and FALSE otherwise. |
141 | 141 | */ |
142 | | RTEMS_INLINE_ROUTINE bool _Attributes_Is_priority( |
| 142 | static inline bool _Attributes_Is_priority( |
143 | 143 | rtems_attribute attribute_set |
144 | 144 | ) |
… |
… |
|
154 | 154 | * enabled in the attribute_set and FALSE otherwise. |
155 | 155 | */ |
156 | | RTEMS_INLINE_ROUTINE bool _Attributes_Is_binary_semaphore( |
| 156 | static inline bool _Attributes_Is_binary_semaphore( |
157 | 157 | rtems_attribute attribute_set |
158 | 158 | ) |
… |
… |
|
168 | 168 | * enabled in the attribute_set and FALSE otherwise. |
169 | 169 | */ |
170 | | RTEMS_INLINE_ROUTINE bool _Attributes_Is_simple_binary_semaphore( |
| 170 | static inline bool _Attributes_Is_simple_binary_semaphore( |
171 | 171 | rtems_attribute attribute_set |
172 | 172 | ) |
… |
… |
|
183 | 183 | * enabled in the attribute_set and FALSE otherwise. |
184 | 184 | */ |
185 | | RTEMS_INLINE_ROUTINE bool _Attributes_Is_counting_semaphore( |
| 185 | static inline bool _Attributes_Is_counting_semaphore( |
186 | 186 | rtems_attribute attribute_set |
187 | 187 | ) |
… |
… |
|
197 | 197 | * is enabled in the attribute_set and FALSE otherwise. |
198 | 198 | */ |
199 | | RTEMS_INLINE_ROUTINE bool _Attributes_Is_inherit_priority( |
| 199 | static inline bool _Attributes_Is_inherit_priority( |
200 | 200 | rtems_attribute attribute_set |
201 | 201 | ) |
… |
… |
|
211 | 211 | * RTEMS_MULTIPROCESSOR_RESOURCE_SHARING. |
212 | 212 | */ |
213 | | RTEMS_INLINE_ROUTINE bool _Attributes_Has_at_most_one_protocol( |
| 213 | static inline bool _Attributes_Has_at_most_one_protocol( |
214 | 214 | rtems_attribute attribute_set |
215 | 215 | ) |
… |
… |
|
228 | 228 | * is enabled in the attribute_set and FALSE otherwise. |
229 | 229 | */ |
230 | | RTEMS_INLINE_ROUTINE bool _Attributes_Is_priority_ceiling( |
| 230 | static inline bool _Attributes_Is_priority_ceiling( |
231 | 231 | rtems_attribute attribute_set |
232 | 232 | ) |
… |
… |
|
242 | 242 | * attribute is enabled in the attribute_set and FALSE otherwise. |
243 | 243 | */ |
244 | | RTEMS_INLINE_ROUTINE bool _Attributes_Is_multiprocessor_resource_sharing( |
| 244 | static inline bool _Attributes_Is_multiprocessor_resource_sharing( |
245 | 245 | rtems_attribute attribute_set |
246 | 246 | ) |
… |
… |
|
256 | 256 | * attribute is enabled in the attribute_set and FALSE otherwise. |
257 | 257 | */ |
258 | | RTEMS_INLINE_ROUTINE bool _Attributes_Is_barrier_automatic( |
| 258 | static inline bool _Attributes_Is_barrier_automatic( |
259 | 259 | rtems_attribute attribute_set |
260 | 260 | ) |
… |
… |
|
270 | 270 | * is enabled in the attribute_set and FALSE otherwise. |
271 | 271 | */ |
272 | | RTEMS_INLINE_ROUTINE bool _Attributes_Is_system_task( |
| 272 | static inline bool _Attributes_Is_system_task( |
273 | 273 | rtems_attribute attribute_set |
274 | 274 | ) |
-
r3803757
|
ra660e9dc
|
|
63 | 63 | * the inactive chain of free barrier control blocks. |
64 | 64 | */ |
65 | | RTEMS_INLINE_ROUTINE Barrier_Control *_Barrier_Allocate( void ) |
| 65 | static inline Barrier_Control *_Barrier_Allocate( void ) |
66 | 66 | { |
67 | 67 | return (Barrier_Control *) _Objects_Allocate( &_Barrier_Information ); |
… |
… |
|
74 | 74 | * inactive chain of free barrier control blocks. |
75 | 75 | */ |
76 | | RTEMS_INLINE_ROUTINE void _Barrier_Free ( |
| 76 | static inline void _Barrier_Free ( |
77 | 77 | Barrier_Control *the_barrier |
78 | 78 | ) |
… |
… |
|
82 | 82 | } |
83 | 83 | |
84 | | RTEMS_INLINE_ROUTINE Barrier_Control *_Barrier_Get( |
| 84 | static inline Barrier_Control *_Barrier_Get( |
85 | 85 | Objects_Id id, |
86 | 86 | Thread_queue_Context *queue_context |
-
r3803757
|
ra660e9dc
|
|
62 | 62 | * of free port control blocks. |
63 | 63 | */ |
64 | | RTEMS_INLINE_ROUTINE Dual_ported_memory_Control |
| 64 | static inline Dual_ported_memory_Control |
65 | 65 | *_Dual_ported_memory_Allocate ( void ) |
66 | 66 | { |
… |
… |
|
76 | 76 | * of free port control blocks. |
77 | 77 | */ |
78 | | RTEMS_INLINE_ROUTINE void _Dual_ported_memory_Free ( |
| 78 | static inline void _Dual_ported_memory_Free ( |
79 | 79 | Dual_ported_memory_Control *the_port |
80 | 80 | ) |
… |
… |
|
83 | 83 | } |
84 | 84 | |
85 | | RTEMS_INLINE_ROUTINE Dual_ported_memory_Control *_Dual_ported_memory_Get( |
| 85 | static inline Dual_ported_memory_Control *_Dual_ported_memory_Get( |
86 | 86 | Objects_Id id, |
87 | 87 | ISR_lock_Context *lock_context |
-
r3803757
|
ra660e9dc
|
|
124 | 124 | * @param event is the event control block to initialize. |
125 | 125 | */ |
126 | | RTEMS_INLINE_ROUTINE void _Event_Initialize( Event_Control *event ) |
| 126 | static inline void _Event_Initialize( Event_Control *event ) |
127 | 127 | { |
128 | 128 | event->pending_events = 0; |
… |
… |
|
137 | 137 | * otherwise false. |
138 | 138 | */ |
139 | | RTEMS_INLINE_ROUTINE bool _Event_sets_Is_empty( |
| 139 | static inline bool _Event_sets_Is_empty( |
140 | 140 | rtems_event_set the_event_set |
141 | 141 | ) |
… |
… |
|
151 | 151 | * @param the_event_set[in, out] is the event set. |
152 | 152 | */ |
153 | | RTEMS_INLINE_ROUTINE void _Event_sets_Post( |
| 153 | static inline void _Event_sets_Post( |
154 | 154 | rtems_event_set the_new_events, |
155 | 155 | rtems_event_set *the_event_set |
… |
… |
|
169 | 169 | * event set. |
170 | 170 | */ |
171 | | RTEMS_INLINE_ROUTINE rtems_event_set _Event_sets_Get( |
| 171 | static inline rtems_event_set _Event_sets_Get( |
172 | 172 | rtems_event_set the_event_set, |
173 | 173 | rtems_event_set the_event_condition |
… |
… |
|
187 | 187 | * mask. |
188 | 188 | */ |
189 | | RTEMS_INLINE_ROUTINE rtems_event_set _Event_sets_Clear( |
| 189 | static inline rtems_event_set _Event_sets_Clear( |
190 | 190 | rtems_event_set the_event_set, |
191 | 191 | rtems_event_set the_mask |
-
r3803757
|
ra660e9dc
|
|
98 | 98 | * the inactive chain of free message queue control blocks. |
99 | 99 | */ |
100 | | RTEMS_INLINE_ROUTINE void _Message_queue_Free ( |
| 100 | static inline void _Message_queue_Free ( |
101 | 101 | Message_queue_Control *the_message_queue |
102 | 102 | ) |
… |
… |
|
105 | 105 | } |
106 | 106 | |
107 | | RTEMS_INLINE_ROUTINE Message_queue_Control *_Message_queue_Get( |
| 107 | static inline Message_queue_Control *_Message_queue_Get( |
108 | 108 | Objects_Id id, |
109 | 109 | Thread_queue_Context *queue_context |
… |
… |
|
118 | 118 | } |
119 | 119 | |
120 | | RTEMS_INLINE_ROUTINE Message_queue_Control *_Message_queue_Allocate( void ) |
| 120 | static inline Message_queue_Control *_Message_queue_Allocate( void ) |
121 | 121 | { |
122 | 122 | return (Message_queue_Control *) |
-
r3803757
|
ra660e9dc
|
|
65 | 65 | * Signal Processing is disabled, and FALSE otherwise. |
66 | 66 | */ |
67 | | RTEMS_INLINE_ROUTINE bool _Modes_Is_asr_disabled ( |
| 67 | static inline bool _Modes_Is_asr_disabled ( |
68 | 68 | rtems_mode mode_set |
69 | 69 | ) |
… |
… |
|
78 | 78 | * is enabled, and FALSE otherwise. |
79 | 79 | */ |
80 | | RTEMS_INLINE_ROUTINE bool _Modes_Is_preempt ( |
| 80 | static inline bool _Modes_Is_preempt ( |
81 | 81 | rtems_mode mode_set |
82 | 82 | ) |
… |
… |
|
91 | 91 | * is enabled, and FALSE otherwise. |
92 | 92 | */ |
93 | | RTEMS_INLINE_ROUTINE bool _Modes_Is_timeslice ( |
| 93 | static inline bool _Modes_Is_timeslice ( |
94 | 94 | rtems_mode mode_set |
95 | 95 | ) |
… |
… |
|
103 | 103 | * This function returns the interrupt level portion of the mode_set. |
104 | 104 | */ |
105 | | RTEMS_INLINE_ROUTINE ISR_Level _Modes_Get_interrupt_level ( |
| 105 | static inline ISR_Level _Modes_Get_interrupt_level ( |
106 | 106 | rtems_mode mode_set |
107 | 107 | ) |
… |
… |
|
120 | 120 | * otherwise returns false. |
121 | 121 | */ |
122 | | RTEMS_INLINE_ROUTINE bool _Modes_Is_interrupt_level_supported( |
| 122 | static inline bool _Modes_Is_interrupt_level_supported( |
123 | 123 | rtems_mode mode_set |
124 | 124 | ) |
… |
… |
|
143 | 143 | * otherwise returns false. |
144 | 144 | */ |
145 | | RTEMS_INLINE_ROUTINE bool _Modes_Is_preempt_mode_supported( |
| 145 | static inline bool _Modes_Is_preempt_mode_supported( |
146 | 146 | rtems_mode mode_set, |
147 | 147 | const Thread_Control *the_thread |
… |
… |
|
163 | 163 | * @param[out] the_thread is the thread to apply the timeslice mode. |
164 | 164 | */ |
165 | | RTEMS_INLINE_ROUTINE void _Modes_Apply_timeslice_to_thread( |
| 165 | static inline void _Modes_Apply_timeslice_to_thread( |
166 | 166 | rtems_mode mode_set, |
167 | 167 | Thread_Control *the_thread |
-
r3803757
|
ra660e9dc
|
|
100 | 100 | offsetof(Message_queue_MP_Packet, buffer) |
101 | 101 | |
102 | | RTEMS_INLINE_ROUTINE bool _Message_queue_MP_Is_remote( Objects_Id id ) |
| 102 | static inline bool _Message_queue_MP_Is_remote( Objects_Id id ) |
103 | 103 | { |
104 | 104 | return _Objects_MP_Is_remote( id, &_Message_queue_Information ); |
-
r3803757
|
ra660e9dc
|
|
60 | 60 | * option_set, and FALSE otherwise. |
61 | 61 | */ |
62 | | RTEMS_INLINE_ROUTINE bool _Options_Is_no_wait ( |
| 62 | static inline bool _Options_Is_no_wait ( |
63 | 63 | rtems_option option_set |
64 | 64 | ) |
… |
… |
|
73 | 73 | * OPTION_SET, and FALSE otherwise. |
74 | 74 | */ |
75 | | RTEMS_INLINE_ROUTINE bool _Options_Is_any ( |
| 75 | static inline bool _Options_Is_any ( |
76 | 76 | rtems_option option_set |
77 | 77 | ) |
-
r3803757
|
ra660e9dc
|
|
63 | 63 | * @return See _Objects_Get(). |
64 | 64 | */ |
65 | | RTEMS_INLINE_ROUTINE Partition_Control *_Partition_Get( |
| 65 | static inline Partition_Control *_Partition_Get( |
66 | 66 | Objects_Id id, |
67 | 67 | ISR_lock_Context *lock_context |
… |
… |
|
82 | 82 | * @param[in, out] lock_context is the lock context set up by _Partition_Get(). |
83 | 83 | */ |
84 | | RTEMS_INLINE_ROUTINE void _Partition_Acquire_critical( |
| 84 | static inline void _Partition_Acquire_critical( |
85 | 85 | Partition_Control *the_partition, |
86 | 86 | ISR_lock_Context *lock_context |
… |
… |
|
97 | 97 | * @param[in, out] lock_context is the lock context set up by _Partition_Get(). |
98 | 98 | */ |
99 | | RTEMS_INLINE_ROUTINE void _Partition_Release( |
| 99 | static inline void _Partition_Release( |
100 | 100 | Partition_Control *the_partition, |
101 | 101 | ISR_lock_Context *lock_context |
-
r3803757
|
ra660e9dc
|
|
86 | 86 | } Partition_MP_Packet; |
87 | 87 | |
88 | | RTEMS_INLINE_ROUTINE bool _Partition_MP_Is_remote( Objects_Id id ) |
| 88 | static inline bool _Partition_MP_Is_remote( Objects_Id id ) |
89 | 89 | { |
90 | 90 | return _Objects_MP_Is_remote( id, &_Partition_Information ); |
-
r3803757
|
ra660e9dc
|
|
75 | 75 | * the inactive chain of free period control blocks. |
76 | 76 | */ |
77 | | RTEMS_INLINE_ROUTINE Rate_monotonic_Control *_Rate_monotonic_Allocate( void ) |
| 77 | static inline Rate_monotonic_Control *_Rate_monotonic_Allocate( void ) |
78 | 78 | { |
79 | 79 | return (Rate_monotonic_Control *) |
… |
… |
|
81 | 81 | } |
82 | 82 | |
83 | | RTEMS_INLINE_ROUTINE void _Rate_monotonic_Acquire_critical( |
| 83 | static inline void _Rate_monotonic_Acquire_critical( |
84 | 84 | Rate_monotonic_Control *the_period, |
85 | 85 | ISR_lock_Context *lock_context |
… |
… |
|
89 | 89 | } |
90 | 90 | |
91 | | RTEMS_INLINE_ROUTINE void _Rate_monotonic_Release( |
| 91 | static inline void _Rate_monotonic_Release( |
92 | 92 | Rate_monotonic_Control *the_period, |
93 | 93 | ISR_lock_Context *lock_context |
… |
… |
|
97 | 97 | } |
98 | 98 | |
99 | | RTEMS_INLINE_ROUTINE Rate_monotonic_Control *_Rate_monotonic_Get( |
| 99 | static inline Rate_monotonic_Control *_Rate_monotonic_Get( |
100 | 100 | Objects_Id id, |
101 | 101 | ISR_lock_Context *lock_context |
… |
… |
|
138 | 138 | ); |
139 | 139 | |
140 | | RTEMS_INLINE_ROUTINE void _Rate_monotonic_Reset_min_time( |
| 140 | static inline void _Rate_monotonic_Reset_min_time( |
141 | 141 | Timestamp_Control *min_time |
142 | 142 | ) |
… |
… |
|
145 | 145 | } |
146 | 146 | |
147 | | RTEMS_INLINE_ROUTINE void _Rate_monotonic_Reset_statistics( |
| 147 | static inline void _Rate_monotonic_Reset_statistics( |
148 | 148 | Rate_monotonic_Control *the_period |
149 | 149 | ) |
-
r3803757
|
ra660e9dc
|
|
67 | 67 | * the inactive chain of free region control blocks. |
68 | 68 | */ |
69 | | RTEMS_INLINE_ROUTINE Region_Control *_Region_Allocate( void ) |
| 69 | static inline Region_Control *_Region_Allocate( void ) |
70 | 70 | { |
71 | 71 | return (Region_Control *) _Objects_Allocate( &_Region_Information ); |
… |
… |
|
78 | 78 | * inactive chain of free region control blocks. |
79 | 79 | */ |
80 | | RTEMS_INLINE_ROUTINE void _Region_Free ( |
| 80 | static inline void _Region_Free ( |
81 | 81 | Region_Control *the_region |
82 | 82 | ) |
… |
… |
|
86 | 86 | } |
87 | 87 | |
88 | | RTEMS_INLINE_ROUTINE Region_Control *_Region_Get_and_lock( Objects_Id id ) |
| 88 | static inline Region_Control *_Region_Get_and_lock( Objects_Id id ) |
89 | 89 | { |
90 | 90 | Region_Control *the_region; |
… |
… |
|
104 | 104 | } |
105 | 105 | |
106 | | RTEMS_INLINE_ROUTINE void _Region_Unlock( Region_Control *the_region ) |
| 106 | static inline void _Region_Unlock( Region_Control *the_region ) |
107 | 107 | { |
108 | 108 | (void) the_region; |
… |
… |
|
117 | 117 | * Otherwise, it returns NULL. |
118 | 118 | */ |
119 | | RTEMS_INLINE_ROUTINE void *_Region_Allocate_segment ( |
| 119 | static inline void *_Region_Allocate_segment ( |
120 | 120 | Region_Control *the_region, |
121 | 121 | uintptr_t size |
… |
… |
|
130 | 130 | * This function frees the_segment to the_region. |
131 | 131 | */ |
132 | | RTEMS_INLINE_ROUTINE bool _Region_Free_segment ( |
| 132 | static inline bool _Region_Free_segment ( |
133 | 133 | Region_Control *the_region, |
134 | 134 | void *the_segment |
-
r3803757
|
ra660e9dc
|
|
79 | 79 | } Semaphore_Discipline; |
80 | 80 | |
81 | | RTEMS_INLINE_ROUTINE uintptr_t _Semaphore_Get_flags( |
| 81 | static inline uintptr_t _Semaphore_Get_flags( |
82 | 82 | const Semaphore_Control *the_semaphore |
83 | 83 | ) |
… |
… |
|
87 | 87 | } |
88 | 88 | |
89 | | RTEMS_INLINE_ROUTINE void _Semaphore_Set_flags( |
| 89 | static inline void _Semaphore_Set_flags( |
90 | 90 | Semaphore_Control *the_semaphore, |
91 | 91 | uintptr_t flags |
… |
… |
|
96 | 96 | } |
97 | 97 | |
98 | | RTEMS_INLINE_ROUTINE Semaphore_Variant _Semaphore_Get_variant( |
| 98 | static inline Semaphore_Variant _Semaphore_Get_variant( |
99 | 99 | uintptr_t flags |
100 | 100 | ) |
… |
… |
|
103 | 103 | } |
104 | 104 | |
105 | | RTEMS_INLINE_ROUTINE uintptr_t _Semaphore_Set_variant( |
| 105 | static inline uintptr_t _Semaphore_Set_variant( |
106 | 106 | uintptr_t flags, |
107 | 107 | Semaphore_Variant variant |
… |
… |
|
111 | 111 | } |
112 | 112 | |
113 | | RTEMS_INLINE_ROUTINE Semaphore_Discipline _Semaphore_Get_discipline( |
| 113 | static inline Semaphore_Discipline _Semaphore_Get_discipline( |
114 | 114 | uintptr_t flags |
115 | 115 | ) |
… |
… |
|
118 | 118 | } |
119 | 119 | |
120 | | RTEMS_INLINE_ROUTINE uintptr_t _Semaphore_Set_discipline( |
| 120 | static inline uintptr_t _Semaphore_Set_discipline( |
121 | 121 | uintptr_t flags, |
122 | 122 | Semaphore_Discipline discipline |
… |
… |
|
127 | 127 | |
128 | 128 | #if defined(RTEMS_MULTIPROCESSING) |
129 | | RTEMS_INLINE_ROUTINE bool _Semaphore_Is_global( |
| 129 | static inline bool _Semaphore_Is_global( |
130 | 130 | uintptr_t flags |
131 | 131 | ) |
… |
… |
|
134 | 134 | } |
135 | 135 | |
136 | | RTEMS_INLINE_ROUTINE uintptr_t _Semaphore_Make_global( uintptr_t flags ) |
| 136 | static inline uintptr_t _Semaphore_Make_global( uintptr_t flags ) |
137 | 137 | { |
138 | 138 | return flags | 0x10; |
… |
… |
|
140 | 140 | #endif |
141 | 141 | |
142 | | RTEMS_INLINE_ROUTINE const Thread_queue_Operations *_Semaphore_Get_operations( |
| 142 | static inline const Thread_queue_Operations *_Semaphore_Get_operations( |
143 | 143 | uintptr_t flags |
144 | 144 | ) |
… |
… |
|
164 | 164 | * the inactive chain of free semaphore control blocks. |
165 | 165 | */ |
166 | | RTEMS_INLINE_ROUTINE Semaphore_Control *_Semaphore_Allocate( void ) |
| 166 | static inline Semaphore_Control *_Semaphore_Allocate( void ) |
167 | 167 | { |
168 | 168 | return (Semaphore_Control *) _Objects_Allocate( &_Semaphore_Information ); |
… |
… |
|
176 | 176 | * inactive chain of free semaphore control blocks. |
177 | 177 | */ |
178 | | RTEMS_INLINE_ROUTINE void _Semaphore_Free ( |
| 178 | static inline void _Semaphore_Free ( |
179 | 179 | Semaphore_Control *the_semaphore |
180 | 180 | ) |
… |
… |
|
183 | 183 | } |
184 | 184 | |
185 | | RTEMS_INLINE_ROUTINE Semaphore_Control *_Semaphore_Get( |
| 185 | static inline Semaphore_Control *_Semaphore_Get( |
186 | 186 | Objects_Id id, |
187 | 187 | Thread_queue_Context *queue_context |
-
r3803757
|
ra660e9dc
|
|
84 | 84 | } Semaphore_MP_Packet; |
85 | 85 | |
86 | | RTEMS_INLINE_ROUTINE bool _Semaphore_MP_Is_remote( Objects_Id id ) |
| 86 | static inline bool _Semaphore_MP_Is_remote( Objects_Id id ) |
87 | 87 | { |
88 | 88 | return _Objects_MP_Is_remote( id, &_Semaphore_Information ); |
-
r3803757
|
ra660e9dc
|
|
64 | 64 | */ |
65 | 65 | |
66 | | RTEMS_INLINE_ROUTINE rtems_status_code _Status_Get( |
| 66 | static inline rtems_status_code _Status_Get( |
67 | 67 | Status_Control status |
68 | 68 | ) |
… |
… |
|
71 | 71 | } |
72 | 72 | |
73 | | RTEMS_INLINE_ROUTINE rtems_status_code _Status_Get_after_wait( |
| 73 | static inline rtems_status_code _Status_Get_after_wait( |
74 | 74 | const Thread_Control *executing |
75 | 75 | ) |
-
r3803757
|
ra660e9dc
|
|
76 | 76 | ); |
77 | 77 | |
78 | | RTEMS_INLINE_ROUTINE Thread_Control *_RTEMS_tasks_Allocate(void) |
| 78 | static inline Thread_Control *_RTEMS_tasks_Allocate(void) |
79 | 79 | { |
80 | 80 | _Objects_Allocator_lock(); |
… |
… |
|
100 | 100 | * @return The corresponding SuperCore priority. |
101 | 101 | */ |
102 | | RTEMS_INLINE_ROUTINE Priority_Control _RTEMS_Priority_To_core( |
| 102 | static inline Priority_Control _RTEMS_Priority_To_core( |
103 | 103 | const Scheduler_Control *scheduler, |
104 | 104 | rtems_task_priority priority, |
… |
… |
|
120 | 120 | * @return The corresponding RTEMS API priority. |
121 | 121 | */ |
122 | | RTEMS_INLINE_ROUTINE rtems_task_priority _RTEMS_Priority_From_core( |
| 122 | static inline rtems_task_priority _RTEMS_Priority_From_core( |
123 | 123 | const Scheduler_Control *scheduler, |
124 | 124 | Priority_Control priority |
-
r3803757
|
ra660e9dc
|
|
81 | 81 | * the inactive chain of free timer control blocks. |
82 | 82 | */ |
83 | | RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Allocate( void ) |
| 83 | static inline Timer_Control *_Timer_Allocate( void ) |
84 | 84 | { |
85 | 85 | return (Timer_Control *) _Objects_Allocate( &_Timer_Information ); |
… |
… |
|
92 | 92 | * inactive chain of free timer control blocks. |
93 | 93 | */ |
94 | | RTEMS_INLINE_ROUTINE void _Timer_Free ( |
| 94 | static inline void _Timer_Free ( |
95 | 95 | Timer_Control *the_timer |
96 | 96 | ) |
… |
… |
|
99 | 99 | } |
100 | 100 | |
101 | | RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Get( |
| 101 | static inline Timer_Control *_Timer_Get( |
102 | 102 | Objects_Id id, |
103 | 103 | ISR_lock_Context *lock_context |
… |
… |
|
111 | 111 | } |
112 | 112 | |
113 | | RTEMS_INLINE_ROUTINE Per_CPU_Control *_Timer_Acquire_critical( |
| 113 | static inline Per_CPU_Control *_Timer_Acquire_critical( |
114 | 114 | Timer_Control *the_timer, |
115 | 115 | ISR_lock_Context *lock_context |
… |
… |
|
124 | 124 | } |
125 | 125 | |
126 | | RTEMS_INLINE_ROUTINE void _Timer_Release( |
| 126 | static inline void _Timer_Release( |
127 | 127 | Per_CPU_Control *cpu, |
128 | 128 | ISR_lock_Context *lock_context |
… |
… |
|
133 | 133 | } |
134 | 134 | |
135 | | RTEMS_INLINE_ROUTINE bool _Timer_Is_interval_class( |
| 135 | static inline bool _Timer_Is_interval_class( |
136 | 136 | Timer_Classes the_class |
137 | 137 | ) |
… |
… |
|
143 | 143 | } |
144 | 144 | |
145 | | RTEMS_INLINE_ROUTINE bool _Timer_Is_on_task_class( |
| 145 | static inline bool _Timer_Is_on_task_class( |
146 | 146 | Timer_Classes the_class |
147 | 147 | ) |
… |
… |
|
153 | 153 | } |
154 | 154 | |
155 | | RTEMS_INLINE_ROUTINE Per_CPU_Watchdog_index _Timer_Watchdog_header_index( |
| 155 | static inline Per_CPU_Watchdog_index _Timer_Watchdog_header_index( |
156 | 156 | Timer_Classes the_class |
157 | 157 | ) |
… |
… |
|
160 | 160 | } |
161 | 161 | |
162 | | RTEMS_INLINE_ROUTINE Watchdog_Interval _Timer_Get_CPU_ticks( |
| 162 | static inline Watchdog_Interval _Timer_Get_CPU_ticks( |
163 | 163 | const Per_CPU_Control *cpu |
164 | 164 | ) |
… |
… |
|
200 | 200 | void _Timer_server_Routine_adaptor( Watchdog_Control *the_watchdog ); |
201 | 201 | |
202 | | RTEMS_INLINE_ROUTINE void _Timer_server_Acquire_critical( |
| 202 | static inline void _Timer_server_Acquire_critical( |
203 | 203 | Timer_server_Control *timer_server, |
204 | 204 | ISR_lock_Context *lock_context |
… |
… |
|
208 | 208 | } |
209 | 209 | |
210 | | RTEMS_INLINE_ROUTINE void _Timer_server_Release_critical( |
| 210 | static inline void _Timer_server_Release_critical( |
211 | 211 | Timer_server_Control *timer_server, |
212 | 212 | ISR_lock_Context *lock_context |
-
r3803757
|
ra660e9dc
|
|
70 | 70 | * @return This method returns the resulting address. |
71 | 71 | */ |
72 | | RTEMS_INLINE_ROUTINE void *_Addresses_Add_offset ( |
| 72 | static inline void *_Addresses_Add_offset ( |
73 | 73 | const void *base, |
74 | 74 | uintptr_t offset |
… |
… |
|
91 | 91 | */ |
92 | 92 | |
93 | | RTEMS_INLINE_ROUTINE void *_Addresses_Subtract_offset ( |
| 93 | static inline void *_Addresses_Subtract_offset ( |
94 | 94 | const void *base, |
95 | 95 | uintptr_t offset |
… |
… |
|
110 | 110 | * @return This method returns the resulting address. |
111 | 111 | */ |
112 | | RTEMS_INLINE_ROUTINE intptr_t _Addresses_Subtract( |
| 112 | static inline intptr_t _Addresses_Subtract( |
113 | 113 | const void *left, |
114 | 114 | const void *right |
… |
… |
|
130 | 130 | * @retval false The @a address is not aligned. |
131 | 131 | */ |
132 | | RTEMS_INLINE_ROUTINE bool _Addresses_Is_aligned( |
| 132 | static inline bool _Addresses_Is_aligned( |
133 | 133 | const void *address |
134 | 134 | ) |
… |
… |
|
153 | 153 | * @retval false The @a address is not within the memory range specified. |
154 | 154 | */ |
155 | | RTEMS_INLINE_ROUTINE bool _Addresses_Is_in_range ( |
| 155 | static inline bool _Addresses_Is_in_range ( |
156 | 156 | const void *address, |
157 | 157 | const void *base, |
… |
… |
|
175 | 175 | * @return Returns the aligned address. |
176 | 176 | */ |
177 | | RTEMS_INLINE_ROUTINE void *_Addresses_Align_up( |
| 177 | static inline void *_Addresses_Align_up( |
178 | 178 | void *address, |
179 | 179 | size_t alignment |
… |
… |
|
197 | 197 | * @return Returns the aligned address. |
198 | 198 | */ |
199 | | RTEMS_INLINE_ROUTINE void *_Addresses_Align_down( |
| 199 | static inline void *_Addresses_Align_down( |
200 | 200 | void *address, |
201 | 201 | size_t alignment |
-
r3803757
|
ra660e9dc
|
|
122 | 122 | * @param[out] node The node to set off chain. |
123 | 123 | */ |
124 | | RTEMS_INLINE_ROUTINE void _Chain_Set_off_chain( |
| 124 | static inline void _Chain_Set_off_chain( |
125 | 125 | Chain_Node *node |
126 | 126 | ) |
… |
… |
|
140 | 140 | * @param[out] the_node The chain node to initialize. |
141 | 141 | */ |
142 | | RTEMS_INLINE_ROUTINE void _Chain_Initialize_node( Chain_Node *the_node ) |
| 142 | static inline void _Chain_Initialize_node( Chain_Node *the_node ) |
143 | 143 | { |
144 | 144 | #if defined(RTEMS_DEBUG) |
… |
… |
|
160 | 160 | * @retval false The @a node is not off chain. |
161 | 161 | */ |
162 | | RTEMS_INLINE_ROUTINE bool _Chain_Is_node_off_chain( |
| 162 | static inline bool _Chain_Is_node_off_chain( |
163 | 163 | const Chain_Node *node |
164 | 164 | ) |
… |
… |
|
179 | 179 | * @retval false @a left and @a right are not equal. |
180 | 180 | */ |
181 | | RTEMS_INLINE_ROUTINE bool _Chain_Are_nodes_equal( |
| 181 | static inline bool _Chain_Are_nodes_equal( |
182 | 182 | const Chain_Node *left, |
183 | 183 | const Chain_Node *right |
… |
… |
|
196 | 196 | * @return This method returns the permanent head node of the chain. |
197 | 197 | */ |
198 | | RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Head( |
| 198 | static inline Chain_Node *_Chain_Head( |
199 | 199 | Chain_Control *the_chain |
200 | 200 | ) |
… |
… |
|
212 | 212 | * @return This method returns the permanent head node of the chain. |
213 | 213 | */ |
214 | | RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_head( |
| 214 | static inline const Chain_Node *_Chain_Immutable_head( |
215 | 215 | const Chain_Control *the_chain |
216 | 216 | ) |
… |
… |
|
228 | 228 | * @return This method returns the permanent tail node of the chain. |
229 | 229 | */ |
230 | | RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( |
| 230 | static inline Chain_Node *_Chain_Tail( |
231 | 231 | Chain_Control *the_chain |
232 | 232 | ) |
… |
… |
|
244 | 244 | * @return This method returns the permanent tail node of the chain. |
245 | 245 | */ |
246 | | RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_tail( |
| 246 | static inline const Chain_Node *_Chain_Immutable_tail( |
247 | 247 | const Chain_Control *the_chain |
248 | 248 | ) |
… |
… |
|
261 | 261 | * @return This method returns the first node of the chain. |
262 | 262 | */ |
263 | | RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First( |
| 263 | static inline Chain_Node *_Chain_First( |
264 | 264 | const Chain_Control *the_chain |
265 | 265 | ) |
… |
… |
|
278 | 278 | * @return This method returns the first node of the chain. |
279 | 279 | */ |
280 | | RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first( |
| 280 | static inline const Chain_Node *_Chain_Immutable_first( |
281 | 281 | const Chain_Control *the_chain |
282 | 282 | ) |
… |
… |
|
295 | 295 | * @return This method returns the last node of the chain. |
296 | 296 | */ |
297 | | RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Last( |
| 297 | static inline Chain_Node *_Chain_Last( |
298 | 298 | const Chain_Control *the_chain |
299 | 299 | ) |
… |
… |
|
312 | 312 | * @return This method returns the last node of the chain. |
313 | 313 | */ |
314 | | RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_last( |
| 314 | static inline const Chain_Node *_Chain_Immutable_last( |
315 | 315 | const Chain_Control *the_chain |
316 | 316 | ) |
… |
… |
|
328 | 328 | * @return This method returns the next node on the chain. |
329 | 329 | */ |
330 | | RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Next( |
| 330 | static inline Chain_Node *_Chain_Next( |
331 | 331 | const Chain_Node *the_node |
332 | 332 | ) |
… |
… |
|
344 | 344 | * @return This method returns the next node on the chain. |
345 | 345 | */ |
346 | | RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_next( |
| 346 | static inline const Chain_Node *_Chain_Immutable_next( |
347 | 347 | const Chain_Node *the_node |
348 | 348 | ) |
… |
… |
|
360 | 360 | * @return This method returns the previous node on the chain. |
361 | 361 | */ |
362 | | RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Previous( |
| 362 | static inline Chain_Node *_Chain_Previous( |
363 | 363 | const Chain_Node *the_node |
364 | 364 | ) |
… |
… |
|
376 | 376 | * @return This method returns the previous node on the chain. |
377 | 377 | */ |
378 | | RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_previous( |
| 378 | static inline const Chain_Node *_Chain_Immutable_previous( |
379 | 379 | const Chain_Node *the_node |
380 | 380 | ) |
… |
… |
|
394 | 394 | * @retval false There are nodes on @a the_chain. |
395 | 395 | */ |
396 | | RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( |
| 396 | static inline bool _Chain_Is_empty( |
397 | 397 | const Chain_Control *the_chain |
398 | 398 | ) |
… |
… |
|
414 | 414 | * @retval false @a the_node is not the first node on a chain. |
415 | 415 | */ |
416 | | RTEMS_INLINE_ROUTINE bool _Chain_Is_first( |
| 416 | static inline bool _Chain_Is_first( |
417 | 417 | const Chain_Node *the_node |
418 | 418 | ) |
… |
… |
|
433 | 433 | * @retval false @a the_node is not the last node on a chain. |
434 | 434 | */ |
435 | | RTEMS_INLINE_ROUTINE bool _Chain_Is_last( |
| 435 | static inline bool _Chain_Is_last( |
436 | 436 | const Chain_Node *the_node |
437 | 437 | ) |
… |
… |
|
451 | 451 | * @retval false There is more than one node on @a the_chain. |
452 | 452 | */ |
453 | | RTEMS_INLINE_ROUTINE bool _Chain_Has_only_one_node( |
| 453 | static inline bool _Chain_Has_only_one_node( |
454 | 454 | const Chain_Control *the_chain |
455 | 455 | ) |
… |
… |
|
471 | 471 | * @retval false @a the_node is not the head of @a the_chain. |
472 | 472 | */ |
473 | | RTEMS_INLINE_ROUTINE bool _Chain_Is_head( |
| 473 | static inline bool _Chain_Is_head( |
474 | 474 | const Chain_Control *the_chain, |
475 | 475 | const Chain_Node *the_node |
… |
… |
|
491 | 491 | * @retval false @a the_node is not the tail of @a the_chain. |
492 | 492 | */ |
493 | | RTEMS_INLINE_ROUTINE bool _Chain_Is_tail( |
| 493 | static inline bool _Chain_Is_tail( |
494 | 494 | const Chain_Control *the_chain, |
495 | 495 | const Chain_Node *the_node |
… |
… |
|
506 | 506 | * @param[out] the_chain The chain to be initialized. |
507 | 507 | */ |
508 | | RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( |
| 508 | static inline void _Chain_Initialize_empty( |
509 | 509 | Chain_Control *the_chain |
510 | 510 | ) |
… |
… |
|
529 | 529 | * @param[out] the_node The one and only node of the chain to be initialized. |
530 | 530 | */ |
531 | | RTEMS_INLINE_ROUTINE void _Chain_Initialize_one( |
| 531 | static inline void _Chain_Initialize_one( |
532 | 532 | Chain_Control *the_chain, |
533 | 533 | Chain_Node *the_node |
… |
… |
|
559 | 559 | * @param[out] the_node The node to be extracted. |
560 | 560 | */ |
561 | | RTEMS_INLINE_ROUTINE void _Chain_Extract_unprotected( |
| 561 | static inline void _Chain_Extract_unprotected( |
562 | 562 | Chain_Node *the_node |
563 | 563 | ) |
… |
… |
|
593 | 593 | * and always returns a node even if it is the Chain Tail. |
594 | 594 | */ |
595 | | RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_first_unprotected( |
| 595 | static inline Chain_Node *_Chain_Get_first_unprotected( |
596 | 596 | Chain_Control *the_chain |
597 | 597 | ) |
… |
… |
|
631 | 631 | * get operation. |
632 | 632 | */ |
633 | | RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected( |
| 633 | static inline Chain_Node *_Chain_Get_unprotected( |
634 | 634 | Chain_Control *the_chain |
635 | 635 | ) |
… |
… |
|
654 | 654 | * of the extract operation. |
655 | 655 | */ |
656 | | RTEMS_INLINE_ROUTINE void _Chain_Insert_unprotected( |
| 656 | static inline void _Chain_Insert_unprotected( |
657 | 657 | Chain_Node *after_node, |
658 | 658 | Chain_Node *the_node |
… |
… |
|
681 | 681 | * append operation. |
682 | 682 | */ |
683 | | RTEMS_INLINE_ROUTINE void _Chain_Append_unprotected( |
| 683 | static inline void _Chain_Append_unprotected( |
684 | 684 | Chain_Control *the_chain, |
685 | 685 | Chain_Node *the_node |
… |
… |
|
712 | 712 | * @see _Chain_Append_unprotected() and _Chain_Is_node_off_chain(). |
713 | 713 | */ |
714 | | RTEMS_INLINE_ROUTINE void _Chain_Append_if_is_off_chain_unprotected( |
| 714 | static inline void _Chain_Append_if_is_off_chain_unprotected( |
715 | 715 | Chain_Control *the_chain, |
716 | 716 | Chain_Node *the_node |
… |
… |
|
733 | 733 | * prepend operation. |
734 | 734 | */ |
735 | | RTEMS_INLINE_ROUTINE void _Chain_Prepend_unprotected( |
| 735 | static inline void _Chain_Prepend_unprotected( |
736 | 736 | Chain_Control *the_chain, |
737 | 737 | Chain_Node *the_node |
… |
… |
|
755 | 755 | * @retval false The chain contained at least one node before. |
756 | 756 | */ |
757 | | RTEMS_INLINE_ROUTINE bool _Chain_Append_with_empty_check_unprotected( |
| 757 | static inline bool _Chain_Append_with_empty_check_unprotected( |
758 | 758 | Chain_Control *the_chain, |
759 | 759 | Chain_Node *the_node |
… |
… |
|
781 | 781 | * @retval false The chain contained at least one node before. |
782 | 782 | */ |
783 | | RTEMS_INLINE_ROUTINE bool _Chain_Prepend_with_empty_check_unprotected( |
| 783 | static inline bool _Chain_Prepend_with_empty_check_unprotected( |
784 | 784 | Chain_Control *the_chain, |
785 | 785 | Chain_Node *the_node |
… |
… |
|
811 | 811 | * @retval false The chain contains at least one node now. |
812 | 812 | */ |
813 | | RTEMS_INLINE_ROUTINE bool _Chain_Get_with_empty_check_unprotected( |
| 813 | static inline bool _Chain_Get_with_empty_check_unprotected( |
814 | 814 | Chain_Control *the_chain, |
815 | 815 | Chain_Node **the_node |
… |
… |
|
866 | 866 | * @param order The order relation. |
867 | 867 | */ |
868 | | RTEMS_INLINE_ROUTINE void _Chain_Insert_ordered_unprotected( |
| 868 | static inline void _Chain_Insert_ordered_unprotected( |
869 | 869 | Chain_Control *the_chain, |
870 | 870 | Chain_Node *to_insert, |
… |
… |
|
955 | 955 | * @param[out] the_registry The chain iterator registry to be initialized. |
956 | 956 | */ |
957 | | RTEMS_INLINE_ROUTINE void _Chain_Iterator_registry_initialize( |
| 957 | static inline void _Chain_Iterator_registry_initialize( |
958 | 958 | Chain_Iterator_registry *the_registry |
959 | 959 | ) |
… |
… |
|
974 | 974 | * @param[out] the_node_to_extract The node that will be extracted. |
975 | 975 | */ |
976 | | RTEMS_INLINE_ROUTINE void _Chain_Iterator_registry_update( |
| 976 | static inline void _Chain_Iterator_registry_update( |
977 | 977 | Chain_Iterator_registry *the_registry, |
978 | 978 | Chain_Node *the_node_to_extract |
… |
… |
|
1061 | 1061 | * the linear time complexity in _Chain_Iterator_registry_update(). |
1062 | 1062 | */ |
1063 | | RTEMS_INLINE_ROUTINE void _Chain_Iterator_initialize( |
| 1063 | static inline void _Chain_Iterator_initialize( |
1064 | 1064 | Chain_Control *the_chain, |
1065 | 1065 | Chain_Iterator_registry *the_registry, |
… |
… |
|
1093 | 1093 | * @return The next node in the iterator direction |
1094 | 1094 | */ |
1095 | | RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Iterator_next( |
| 1095 | static inline Chain_Node *_Chain_Iterator_next( |
1096 | 1096 | const Chain_Iterator *the_iterator |
1097 | 1097 | ) |
… |
… |
|
1110 | 1110 | * @param[out] the_node The new iterator position. |
1111 | 1111 | */ |
1112 | | RTEMS_INLINE_ROUTINE void _Chain_Iterator_set_position( |
| 1112 | static inline void _Chain_Iterator_set_position( |
1113 | 1113 | Chain_Iterator *the_iterator, |
1114 | 1114 | Chain_Node *the_node |
… |
… |
|
1125 | 1125 | * @param[out] the_iterator The chain iterator. |
1126 | 1126 | */ |
1127 | | RTEMS_INLINE_ROUTINE void _Chain_Iterator_destroy( |
| 1127 | static inline void _Chain_Iterator_destroy( |
1128 | 1128 | Chain_Iterator *the_iterator |
1129 | 1129 | ) |
-
r3803757
|
ra660e9dc
|
|
90 | 90 | * @param[out] the_barrier The barrier to destroy. |
91 | 91 | */ |
92 | | RTEMS_INLINE_ROUTINE void _CORE_barrier_Destroy( |
| 92 | static inline void _CORE_barrier_Destroy( |
93 | 93 | CORE_barrier_Control *the_barrier |
94 | 94 | ) |
… |
… |
|
103 | 103 | * @param queue_context The thread queue context. |
104 | 104 | */ |
105 | | RTEMS_INLINE_ROUTINE void _CORE_barrier_Acquire_critical( |
| 105 | static inline void _CORE_barrier_Acquire_critical( |
106 | 106 | CORE_barrier_Control *the_barrier, |
107 | 107 | Thread_queue_Context *queue_context |
… |
… |
|
117 | 117 | * @param queue_context The thread queue context. |
118 | 118 | */ |
119 | | RTEMS_INLINE_ROUTINE void _CORE_barrier_Release( |
| 119 | static inline void _CORE_barrier_Release( |
120 | 120 | CORE_barrier_Control *the_barrier, |
121 | 121 | Thread_queue_Context *queue_context |
… |
… |
|
158 | 158 | * @return The number of unblocked threads. |
159 | 159 | */ |
160 | | RTEMS_INLINE_ROUTINE uint32_t _CORE_barrier_Surrender( |
| 160 | static inline uint32_t _CORE_barrier_Surrender( |
161 | 161 | CORE_barrier_Control *the_barrier, |
162 | 162 | Thread_queue_Context *queue_context |
… |
… |
|
177 | 177 | * @param queue_context The thread queue context. |
178 | 178 | */ |
179 | | RTEMS_INLINE_ROUTINE void _CORE_barrier_Flush( |
| 179 | static inline void _CORE_barrier_Flush( |
180 | 180 | CORE_barrier_Control *the_barrier, |
181 | 181 | Thread_queue_Context *queue_context |
-
r3803757
|
ra660e9dc
|
|
373 | 373 | * @retval STATUS_TIMEOUT A timeout occurred. |
374 | 374 | */ |
375 | | RTEMS_INLINE_ROUTINE Status_Control _CORE_message_queue_Send( |
| 375 | static inline Status_Control _CORE_message_queue_Send( |
376 | 376 | CORE_message_queue_Control *the_message_queue, |
377 | 377 | const void *buffer, |
… |
… |
|
409 | 409 | * @retval STATUS_TIMEOUT A timeout occurred. |
410 | 410 | */ |
411 | | RTEMS_INLINE_ROUTINE Status_Control _CORE_message_queue_Urgent( |
| 411 | static inline Status_Control _CORE_message_queue_Urgent( |
412 | 412 | CORE_message_queue_Control *the_message_queue, |
413 | 413 | const void *buffer, |
… |
… |
|
434 | 434 | * @param queue_context The thread queue context. |
435 | 435 | */ |
436 | | RTEMS_INLINE_ROUTINE void _CORE_message_queue_Acquire( |
| 436 | static inline void _CORE_message_queue_Acquire( |
437 | 437 | CORE_message_queue_Control *the_message_queue, |
438 | 438 | Thread_queue_Context *queue_context |
… |
… |
|
448 | 448 | * @param queue_context The thread queue context. |
449 | 449 | */ |
450 | | RTEMS_INLINE_ROUTINE void _CORE_message_queue_Acquire_critical( |
| 450 | static inline void _CORE_message_queue_Acquire_critical( |
451 | 451 | CORE_message_queue_Control *the_message_queue, |
452 | 452 | Thread_queue_Context *queue_context |
… |
… |
|
462 | 462 | * @param queue_context The thread queue context. |
463 | 463 | */ |
464 | | RTEMS_INLINE_ROUTINE void _CORE_message_queue_Release( |
| 464 | static inline void _CORE_message_queue_Release( |
465 | 465 | CORE_message_queue_Control *the_message_queue, |
466 | 466 | Thread_queue_Context *queue_context |
… |
… |
|
480 | 480 | * @param size The size of the source buffer. |
481 | 481 | */ |
482 | | RTEMS_INLINE_ROUTINE void _CORE_message_queue_Copy_buffer ( |
| 482 | static inline void _CORE_message_queue_Copy_buffer ( |
483 | 483 | const void *source, |
484 | 484 | void *destination, |
… |
… |
|
500 | 500 | * @retval NULL The inactive message buffer chain is empty. |
501 | 501 | */ |
502 | | RTEMS_INLINE_ROUTINE CORE_message_queue_Buffer * |
| 502 | static inline CORE_message_queue_Buffer * |
503 | 503 | _CORE_message_queue_Allocate_message_buffer ( |
504 | 504 | CORE_message_queue_Control *the_message_queue |
… |
… |
|
518 | 518 | * @param[out] the_message The message to be freed. |
519 | 519 | */ |
520 | | RTEMS_INLINE_ROUTINE void _CORE_message_queue_Free_message_buffer ( |
| 520 | static inline void _CORE_message_queue_Free_message_buffer ( |
521 | 521 | CORE_message_queue_Control *the_message_queue, |
522 | 522 | CORE_message_queue_Buffer *the_message |
… |
… |
|
539 | 539 | * disabled if no API requires it. |
540 | 540 | */ |
541 | | RTEMS_INLINE_ROUTINE int _CORE_message_queue_Get_message_priority ( |
| 541 | static inline int _CORE_message_queue_Get_message_priority ( |
542 | 542 | const CORE_message_queue_Buffer *the_message |
543 | 543 | ) |
… |
… |
|
561 | 561 | * @retval NULL The message queue is empty. |
562 | 562 | */ |
563 | | RTEMS_INLINE_ROUTINE |
| 563 | static inline |
564 | 564 | CORE_message_queue_Buffer *_CORE_message_queue_Get_pending_message ( |
565 | 565 | CORE_message_queue_Control *the_message_queue |
… |
… |
|
582 | 582 | * @retval false Notification is not enabled on this message queue. |
583 | 583 | */ |
584 | | RTEMS_INLINE_ROUTINE bool _CORE_message_queue_Is_notify_enabled ( |
| 584 | static inline bool _CORE_message_queue_Is_notify_enabled ( |
585 | 585 | CORE_message_queue_Control *the_message_queue |
586 | 586 | ) |
… |
… |
|
600 | 600 | */ |
601 | 601 | #if defined(RTEMS_SCORE_COREMSG_ENABLE_NOTIFICATION) |
602 | | RTEMS_INLINE_ROUTINE void _CORE_message_queue_Set_notify ( |
| 602 | static inline void _CORE_message_queue_Set_notify ( |
603 | 603 | CORE_message_queue_Control *the_message_queue, |
604 | 604 | CORE_message_queue_Notify_Handler the_handler |
… |
… |
|
628 | 628 | * @retval NULL There are pending messages or no thread waiting to receive. |
629 | 629 | */ |
630 | | RTEMS_INLINE_ROUTINE Thread_Control *_CORE_message_queue_Dequeue_receiver( |
| 630 | static inline Thread_Control *_CORE_message_queue_Dequeue_receiver( |
631 | 631 | CORE_message_queue_Control *the_message_queue, |
632 | 632 | const void *buffer, |
-
r3803757
|
ra660e9dc
|
|
66 | 66 | * @param[out] the_mutex The mutex to initialize. |
67 | 67 | */ |
68 | | RTEMS_INLINE_ROUTINE void _CORE_mutex_Initialize( |
| 68 | static inline void _CORE_mutex_Initialize( |
69 | 69 | CORE_mutex_Control *the_mutex |
70 | 70 | ) |
… |
… |
|
78 | 78 | * @param[out] the_mutex the mutex to destroy. |
79 | 79 | */ |
80 | | RTEMS_INLINE_ROUTINE void _CORE_mutex_Destroy( CORE_mutex_Control *the_mutex ) |
| 80 | static inline void _CORE_mutex_Destroy( CORE_mutex_Control *the_mutex ) |
81 | 81 | { |
82 | 82 | _Thread_queue_Destroy( &the_mutex->Wait_queue ); |
… |
… |
|
89 | 89 | * @param queue_context The queue context. |
90 | 90 | */ |
91 | | RTEMS_INLINE_ROUTINE void _CORE_mutex_Acquire_critical( |
| 91 | static inline void _CORE_mutex_Acquire_critical( |
92 | 92 | CORE_mutex_Control *the_mutex, |
93 | 93 | Thread_queue_Context *queue_context |
… |
… |
|
103 | 103 | * @param queue_context The queue context. |
104 | 104 | */ |
105 | | RTEMS_INLINE_ROUTINE void _CORE_mutex_Release( |
| 105 | static inline void _CORE_mutex_Release( |
106 | 106 | CORE_mutex_Control *the_mutex, |
107 | 107 | Thread_queue_Context *queue_context |
… |
… |
|
118 | 118 | * @return The owner of the mutex. |
119 | 119 | */ |
120 | | RTEMS_INLINE_ROUTINE Thread_Control *_CORE_mutex_Get_owner( |
| 120 | static inline Thread_Control *_CORE_mutex_Get_owner( |
121 | 121 | const CORE_mutex_Control *the_mutex |
122 | 122 | ) |
… |
… |
|
136 | 136 | * @retval false The mutex is not locked. |
137 | 137 | */ |
138 | | RTEMS_INLINE_ROUTINE bool _CORE_mutex_Is_locked( |
| 138 | static inline bool _CORE_mutex_Is_locked( |
139 | 139 | const CORE_mutex_Control *the_mutex |
140 | 140 | ) |
… |
… |
|
169 | 169 | * @param owner The new owner of the mutex. |
170 | 170 | */ |
171 | | RTEMS_INLINE_ROUTINE void _CORE_mutex_Set_owner( |
| 171 | static inline void _CORE_mutex_Set_owner( |
172 | 172 | CORE_mutex_Control *the_mutex, |
173 | 173 | Thread_Control *owner |
… |
… |
|
186 | 186 | * @retval false @a the_thread is not the owner of @a the_mutex. |
187 | 187 | */ |
188 | | RTEMS_INLINE_ROUTINE bool _CORE_mutex_Is_owner( |
| 188 | static inline bool _CORE_mutex_Is_owner( |
189 | 189 | const CORE_mutex_Control *the_mutex, |
190 | 190 | const Thread_Control *the_thread |
… |
… |
|
199 | 199 | * @param[out] the_mutex The recursive mutex to initialize. |
200 | 200 | */ |
201 | | RTEMS_INLINE_ROUTINE void _CORE_recursive_mutex_Initialize( |
| 201 | static inline void _CORE_recursive_mutex_Initialize( |
202 | 202 | CORE_recursive_mutex_Control *the_mutex |
203 | 203 | ) |
… |
… |
|
214 | 214 | * @return STATUS_SUCCESSFUL, this method is always successful. |
215 | 215 | */ |
216 | | RTEMS_INLINE_ROUTINE Status_Control _CORE_recursive_mutex_Seize_nested( |
| 216 | static inline Status_Control _CORE_recursive_mutex_Seize_nested( |
217 | 217 | CORE_recursive_mutex_Control *the_mutex |
218 | 218 | ) |
… |
… |
|
237 | 237 | * @retval STATUS_UNAVAILABLE The calling thread is not willing to wait. |
238 | 238 | */ |
239 | | RTEMS_INLINE_ROUTINE Status_Control _CORE_recursive_mutex_Seize( |
| 239 | static inline Status_Control _CORE_recursive_mutex_Seize( |
240 | 240 | CORE_recursive_mutex_Control *the_mutex, |
241 | 241 | const Thread_queue_Operations *operations, |
… |
… |
|
287 | 287 | * @retval STATUS_NOT_OWNER The executing thread does not own @a the_mutex. |
288 | 288 | */ |
289 | | RTEMS_INLINE_ROUTINE Status_Control _CORE_recursive_mutex_Surrender( |
| 289 | static inline Status_Control _CORE_recursive_mutex_Surrender( |
290 | 290 | CORE_recursive_mutex_Control *the_mutex, |
291 | 291 | const Thread_queue_Operations *operations, |
… |
… |
|
340 | 340 | * @param priority_ceiling The priority ceiling for the initialized mutex. |
341 | 341 | */ |
342 | | RTEMS_INLINE_ROUTINE void _CORE_ceiling_mutex_Initialize( |
| 342 | static inline void _CORE_ceiling_mutex_Initialize( |
343 | 343 | CORE_ceiling_mutex_Control *the_mutex, |
344 | 344 | const Scheduler_Control *scheduler, |
… |
… |
|
360 | 360 | * @return The scheduler of the mutex. If RTEMS_SMP is not defined, the first entry of the _Scheduler_Table is returned. |
361 | 361 | */ |
362 | | RTEMS_INLINE_ROUTINE const Scheduler_Control * |
| 362 | static inline const Scheduler_Control * |
363 | 363 | _CORE_ceiling_mutex_Get_scheduler( |
364 | 364 | const CORE_ceiling_mutex_Control *the_mutex |
… |
… |
|
378 | 378 | * @param priority_ceiling The new priority ceiling of the mutex. |
379 | 379 | */ |
380 | | RTEMS_INLINE_ROUTINE void _CORE_ceiling_mutex_Set_priority( |
| 380 | static inline void _CORE_ceiling_mutex_Set_priority( |
381 | 381 | CORE_ceiling_mutex_Control *the_mutex, |
382 | 382 | Priority_Control priority_ceiling |
… |
… |
|
413 | 413 | * @return The priority ceiling of @a the_mutex. |
414 | 414 | */ |
415 | | RTEMS_INLINE_ROUTINE Priority_Control _CORE_ceiling_mutex_Get_priority( |
| 415 | static inline Priority_Control _CORE_ceiling_mutex_Get_priority( |
416 | 416 | const CORE_ceiling_mutex_Control *the_mutex |
417 | 417 | ) |
… |
… |
|
431 | 431 | * is smaller than the priority of the ceiling mutex. |
432 | 432 | */ |
433 | | RTEMS_INLINE_ROUTINE Status_Control _CORE_ceiling_mutex_Set_owner( |
| 433 | static inline Status_Control _CORE_ceiling_mutex_Set_owner( |
434 | 434 | CORE_ceiling_mutex_Control *the_mutex, |
435 | 435 | Thread_Control *owner, |
… |
… |
|
485 | 485 | * @retval other Return value of @a nested. |
486 | 486 | */ |
487 | | RTEMS_INLINE_ROUTINE Status_Control _CORE_ceiling_mutex_Seize( |
| 487 | static inline Status_Control _CORE_ceiling_mutex_Seize( |
488 | 488 | CORE_ceiling_mutex_Control *the_mutex, |
489 | 489 | Thread_Control *executing, |
… |
… |
|
545 | 545 | * @retval STATUS_NOT_OWNER The executing thread is not the owner of @a the_mutex. |
546 | 546 | */ |
547 | | RTEMS_INLINE_ROUTINE Status_Control _CORE_ceiling_mutex_Surrender( |
| 547 | static inline Status_Control _CORE_ceiling_mutex_Surrender( |
548 | 548 | CORE_ceiling_mutex_Control *the_mutex, |
549 | 549 | Thread_Control *executing, |
-
r3803757
|
ra660e9dc
|
|
125 | 125 | * @param[out] the_rwlock is the RWLock to destroy. |
126 | 126 | */ |
127 | | RTEMS_INLINE_ROUTINE void _CORE_RWLock_Destroy( |
| 127 | static inline void _CORE_RWLock_Destroy( |
128 | 128 | CORE_RWLock_Control *the_rwlock |
129 | 129 | ) |
… |
… |
|
140 | 140 | * @return The executing thread. |
141 | 141 | */ |
142 | | RTEMS_INLINE_ROUTINE Thread_Control *_CORE_RWLock_Acquire( |
| 142 | static inline Thread_Control *_CORE_RWLock_Acquire( |
143 | 143 | CORE_RWLock_Control *the_rwlock, |
144 | 144 | Thread_queue_Context *queue_context |
… |
… |
|
166 | 166 | * @param queue_context The thread queue context. |
167 | 167 | */ |
168 | | RTEMS_INLINE_ROUTINE void _CORE_RWLock_Release( |
| 168 | static inline void _CORE_RWLock_Release( |
169 | 169 | CORE_RWLock_Control *the_rwlock, |
170 | 170 | Thread_queue_Context *queue_context |
-
r3803757
|
ra660e9dc
|
|
82 | 82 | * @param queue_context The thread queue context. |
83 | 83 | */ |
84 | | RTEMS_INLINE_ROUTINE void _CORE_semaphore_Acquire_critical( |
| 84 | static inline void _CORE_semaphore_Acquire_critical( |
85 | 85 | CORE_semaphore_Control *the_semaphore, |
86 | 86 | Thread_queue_Context *queue_context |
… |
… |
|
98 | 98 | * @param queue_context The thread queue context. |
99 | 99 | */ |
100 | | RTEMS_INLINE_ROUTINE void _CORE_semaphore_Release( |
| 100 | static inline void _CORE_semaphore_Release( |
101 | 101 | CORE_semaphore_Control *the_semaphore, |
102 | 102 | Thread_queue_Context *queue_context |
… |
… |
|
115 | 115 | * @param queue_context The thread queue context. |
116 | 116 | */ |
117 | | RTEMS_INLINE_ROUTINE void _CORE_semaphore_Destroy( |
| 117 | static inline void _CORE_semaphore_Destroy( |
118 | 118 | CORE_semaphore_Control *the_semaphore, |
119 | 119 | const Thread_queue_Operations *operations, |
… |
… |
|
146 | 146 | * @retval STATUS_MAXIMUM_COUNT_EXCEEDED The maximum number of units was exceeded. |
147 | 147 | */ |
148 | | RTEMS_INLINE_ROUTINE Status_Control _CORE_semaphore_Surrender( |
| 148 | static inline Status_Control _CORE_semaphore_Surrender( |
149 | 149 | CORE_semaphore_Control *the_semaphore, |
150 | 150 | const Thread_queue_Operations *operations, |
… |
… |
|
188 | 188 | * @return the current count of this semaphore. |
189 | 189 | */ |
190 | | RTEMS_INLINE_ROUTINE uint32_t _CORE_semaphore_Get_count( |
| 190 | static inline uint32_t _CORE_semaphore_Get_count( |
191 | 191 | const CORE_semaphore_Control *the_semaphore |
192 | 192 | ) |
… |
… |
|
215 | 215 | * @retval STATUS_TIMEOUT A timeout occurred. |
216 | 216 | */ |
217 | | RTEMS_INLINE_ROUTINE Status_Control _CORE_semaphore_Seize( |
| 217 | static inline Status_Control _CORE_semaphore_Seize( |
218 | 218 | CORE_semaphore_Control *the_semaphore, |
219 | 219 | const Thread_queue_Operations *operations, |
-
r3803757
|
ra660e9dc
|
|
69 | 69 | * @param node_size The node size. |
70 | 70 | */ |
71 | | RTEMS_INLINE_ROUTINE void _Freechain_Initialize( |
| 71 | static inline void _Freechain_Initialize( |
72 | 72 | Freechain_Control *freechain, |
73 | 73 | void *initial_nodes, |
… |
… |
|
89 | 89 | * @param freechain The freechain control. |
90 | 90 | */ |
91 | | RTEMS_INLINE_ROUTINE bool _Freechain_Is_empty( |
| 91 | static inline bool _Freechain_Is_empty( |
92 | 92 | const Freechain_Control *freechain |
93 | 93 | ) |
… |
… |
|
103 | 103 | * @param freechain The freechain control. |
104 | 104 | */ |
105 | | RTEMS_INLINE_ROUTINE void *_Freechain_Pop( Freechain_Control *freechain ) |
| 105 | static inline void *_Freechain_Pop( Freechain_Control *freechain ) |
106 | 106 | { |
107 | 107 | return _Chain_Get_first_unprotected( &freechain->Free ); |
… |
… |
|
114 | 114 | * @param node The node to push back. The node shall not be @c NULL. |
115 | 115 | */ |
116 | | void RTEMS_INLINE_ROUTINE _Freechain_Push( |
| 116 | void static inline _Freechain_Push( |
117 | 117 | Freechain_Control *freechain, |
118 | 118 | void *node |
-
r3803757
|
ra660e9dc
|
|
85 | 85 | * @return Returns the hash value as a NUL-terminated string. |
86 | 86 | */ |
87 | | RTEMS_INLINE_ROUTINE const char *_Hash_Get_string( const Hash_Control *hash ) |
| 87 | static inline const char *_Hash_Get_string( const Hash_Control *hash ) |
88 | 88 | { |
89 | 89 | return &hash->chars[ 0 ]; |
… |
… |
|
115 | 115 | * @param[out] context is the hash context to initialize. |
116 | 116 | */ |
117 | | RTEMS_INLINE_ROUTINE void _Hash_Initialize( Hash_Context *context ) |
| 117 | static inline void _Hash_Initialize( Hash_Context *context ) |
118 | 118 | { |
119 | 119 | SHA256_Init( &context->Context ); |
… |
… |
|
129 | 129 | * @param size is the size of the data in bytes. |
130 | 130 | */ |
131 | | RTEMS_INLINE_ROUTINE void _Hash_Add_data( |
| 131 | static inline void _Hash_Add_data( |
132 | 132 | Hash_Context *context, |
133 | 133 | const void *begin, |
… |
… |
|
145 | 145 | * @param str is the string to add. |
146 | 146 | */ |
147 | | RTEMS_INLINE_ROUTINE void _Hash_Add_string( |
| 147 | static inline void _Hash_Add_string( |
148 | 148 | Hash_Context *context, |
149 | 149 | const char *str |
-
r3803757
|
ra660e9dc
|
|
432 | 432 | * @return The @a value aligned to the given @a alignment, rounded up. |
433 | 433 | */ |
434 | | RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_up( |
| 434 | static inline uintptr_t _Heap_Align_up( |
435 | 435 | uintptr_t value, |
436 | 436 | uintptr_t alignment |
… |
… |
|
453 | 453 | * @return The minimal Heap Block size for the given @a page_size. |
454 | 454 | */ |
455 | | RTEMS_INLINE_ROUTINE uintptr_t _Heap_Min_block_size( uintptr_t page_size ) |
| 455 | static inline uintptr_t _Heap_Min_block_size( uintptr_t page_size ) |
456 | 456 | { |
457 | 457 | return _Heap_Align_up( sizeof( Heap_Block ), page_size ); |
… |
… |
|
465 | 465 | * @return The worst case overhead to manage a memory area. |
466 | 466 | */ |
467 | | RTEMS_INLINE_ROUTINE uintptr_t _Heap_Area_overhead( |
| 467 | static inline uintptr_t _Heap_Area_overhead( |
468 | 468 | uintptr_t page_size |
469 | 469 | ) |
… |
… |
|
494 | 494 | * @return The size with administration and alignment overhead for one allocation. |
495 | 495 | */ |
496 | | RTEMS_INLINE_ROUTINE uintptr_t _Heap_Size_with_overhead( |
| 496 | static inline uintptr_t _Heap_Size_with_overhead( |
497 | 497 | uintptr_t page_size, |
498 | 498 | uintptr_t size, |
-
r3803757
|
ra660e9dc
|
|
157 | 157 | * @retval NULL No memory is available of the parameters are inconsistent. |
158 | 158 | */ |
159 | | RTEMS_INLINE_ROUTINE void *_Heap_Allocate_aligned( |
| 159 | static inline void *_Heap_Allocate_aligned( |
160 | 160 | Heap_Control *heap, |
161 | 161 | uintptr_t size, |
… |
… |
|
178 | 178 | * @retval NULL No memory is available of the parameters are inconsistent. |
179 | 179 | */ |
180 | | RTEMS_INLINE_ROUTINE void *_Heap_Allocate( Heap_Control *heap, uintptr_t size ) |
| 180 | static inline void *_Heap_Allocate( Heap_Control *heap, uintptr_t size ) |
181 | 181 | { |
182 | 182 | return _Heap_Allocate_aligned_with_boundary( heap, size, 0, 0 ); |
… |
… |
|
441 | 441 | * @param fraction The fraction is one divided by this fraction value. |
442 | 442 | */ |
443 | | RTEMS_INLINE_ROUTINE void _Heap_Protection_set_delayed_free_fraction( |
| 443 | static inline void _Heap_Protection_set_delayed_free_fraction( |
444 | 444 | Heap_Control *heap, |
445 | 445 | uintptr_t fraction |
… |
… |
|
461 | 461 | * @return The head of the free list. |
462 | 462 | */ |
463 | | RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_head( Heap_Control *heap ) |
| 463 | static inline Heap_Block *_Heap_Free_list_head( Heap_Control *heap ) |
464 | 464 | { |
465 | 465 | return &heap->free_list; |
… |
… |
|
473 | 473 | * @return The tail of the free list. |
474 | 474 | */ |
475 | | RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_tail( Heap_Control *heap ) |
| 475 | static inline Heap_Block *_Heap_Free_list_tail( Heap_Control *heap ) |
476 | 476 | { |
477 | 477 | return &heap->free_list; |
… |
… |
|
485 | 485 | * @return The first block of the free list. |
486 | 486 | */ |
487 | | RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap ) |
| 487 | static inline Heap_Block *_Heap_Free_list_first( Heap_Control *heap ) |
488 | 488 | { |
489 | 489 | return _Heap_Free_list_head(heap)->next; |
… |
… |
|
497 | 497 | * @return The last block of the free list. |
498 | 498 | */ |
499 | | RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_last( Heap_Control *heap ) |
| 499 | static inline Heap_Block *_Heap_Free_list_last( Heap_Control *heap ) |
500 | 500 | { |
501 | 501 | return _Heap_Free_list_tail(heap)->prev; |
… |
… |
|
507 | 507 | * @param block The block to be removed. |
508 | 508 | */ |
509 | | RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block ) |
| 509 | static inline void _Heap_Free_list_remove( Heap_Block *block ) |
510 | 510 | { |
511 | 511 | Heap_Block *next = block->next; |
… |
… |
|
522 | 522 | * @param new_block The block that should replace @a old_block. |
523 | 523 | */ |
524 | | RTEMS_INLINE_ROUTINE void _Heap_Free_list_replace( |
| 524 | static inline void _Heap_Free_list_replace( |
525 | 525 | Heap_Block *old_block, |
526 | 526 | Heap_Block *new_block |
… |
… |
|
543 | 543 | * @param new_block The block to be inserted after @a block_before. |
544 | 544 | */ |
545 | | RTEMS_INLINE_ROUTINE void _Heap_Free_list_insert_after( |
| 545 | static inline void _Heap_Free_list_insert_after( |
546 | 546 | Heap_Block *block_before, |
547 | 547 | Heap_Block *new_block |
… |
… |
|
562 | 562 | * @param new_block The block to be inserted before @a block_before. |
563 | 563 | */ |
564 | | RTEMS_INLINE_ROUTINE void _Heap_Free_list_insert_before( |
| 564 | static inline void _Heap_Free_list_insert_before( |
565 | 565 | Heap_Block *block_next, |
566 | 566 | Heap_Block *new_block |
… |
… |
|
584 | 584 | * @retval false The value is not aligned to the given alignment. |
585 | 585 | */ |
586 | | RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned( |
| 586 | static inline bool _Heap_Is_aligned( |
587 | 587 | uintptr_t value, |
588 | 588 | uintptr_t alignment |
… |
… |
|
600 | 600 | * @return The aligned value, truncated. |
601 | 601 | */ |
602 | | RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( |
| 602 | static inline uintptr_t _Heap_Align_down( |
603 | 603 | uintptr_t value, |
604 | 604 | uintptr_t alignment |
… |
… |
|
616 | 616 | * @return The address of the block which is @a offset away from @a block. |
617 | 617 | */ |
618 | | RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( |
| 618 | static inline Heap_Block *_Heap_Block_at( |
619 | 619 | const Heap_Block *block, |
620 | 620 | uintptr_t offset |
… |
… |
|
631 | 631 | * @return The address of the previous block. |
632 | 632 | */ |
633 | | RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Prev_block( |
| 633 | static inline Heap_Block *_Heap_Prev_block( |
634 | 634 | const Heap_Block *block |
635 | 635 | ) |
… |
… |
|
645 | 645 | * @return The first address after the heap header. |
646 | 646 | */ |
647 | | RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block( |
| 647 | static inline uintptr_t _Heap_Alloc_area_of_block( |
648 | 648 | const Heap_Block *block |
649 | 649 | ) |
… |
… |
|
660 | 660 | * @return The Starting address of the corresponding block of the allocatable area. |
661 | 661 | */ |
662 | | RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_of_alloc_area( |
| 662 | static inline Heap_Block *_Heap_Block_of_alloc_area( |
663 | 663 | uintptr_t alloc_begin, |
664 | 664 | uintptr_t page_size |
… |
… |
|
676 | 676 | * @return The block size. |
677 | 677 | */ |
678 | | RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block ) |
| 678 | static inline uintptr_t _Heap_Block_size( const Heap_Block *block ) |
679 | 679 | { |
680 | 680 | return block->size_and_flag & ~HEAP_PREV_BLOCK_USED; |
… |
… |
|
687 | 687 | * @param size The new size of the block. |
688 | 688 | */ |
689 | | RTEMS_INLINE_ROUTINE void _Heap_Block_set_size( |
| 689 | static inline void _Heap_Block_set_size( |
690 | 690 | Heap_Block *block, |
691 | 691 | uintptr_t size |
… |
… |
|
706 | 706 | * @retval false The previous block is not used. |
707 | 707 | */ |
708 | | RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block ) |
| 708 | static inline bool _Heap_Is_prev_used( const Heap_Block *block ) |
709 | 709 | { |
710 | 710 | return block->size_and_flag & HEAP_PREV_BLOCK_USED; |
… |
… |
|
719 | 719 | * @retval false The block is not used. |
720 | 720 | */ |
721 | | RTEMS_INLINE_ROUTINE bool _Heap_Is_used( |
| 721 | static inline bool _Heap_Is_used( |
722 | 722 | const Heap_Block *block |
723 | 723 | ) |
… |
… |
|
737 | 737 | * @retval false The block is not free. |
738 | 738 | */ |
739 | | RTEMS_INLINE_ROUTINE bool _Heap_Is_free( |
| 739 | static inline bool _Heap_Is_free( |
740 | 740 | const Heap_Block *block |
741 | 741 | ) |
… |
… |
|
753 | 753 | * @retval false The block is not part of the heap. |
754 | 754 | */ |
755 | | RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap( |
| 755 | static inline bool _Heap_Is_block_in_heap( |
756 | 756 | const Heap_Control *heap, |
757 | 757 | const Heap_Block *block |
… |
… |
|
775 | 775 | * @param[in, out] heap The heap to set the last block size of. |
776 | 776 | */ |
777 | | RTEMS_INLINE_ROUTINE void _Heap_Set_last_block_size( Heap_Control *heap ) |
| 777 | static inline void _Heap_Set_last_block_size( Heap_Control *heap ) |
778 | 778 | { |
779 | 779 | _Heap_Block_set_size( |
… |
… |
|
792 | 792 | * @return The size of the allocatable area in @a heap in bytes. |
793 | 793 | */ |
794 | | RTEMS_INLINE_ROUTINE uintptr_t _Heap_Get_size( const Heap_Control *heap ) |
| 794 | static inline uintptr_t _Heap_Get_size( const Heap_Control *heap ) |
795 | 795 | { |
796 | 796 | return heap->stats.size; |
… |
… |
|
806 | 806 | * @retval b If b >= a |
807 | 807 | */ |
808 | | RTEMS_INLINE_ROUTINE uintptr_t _Heap_Max( uintptr_t a, uintptr_t b ) |
| 808 | static inline uintptr_t _Heap_Max( uintptr_t a, uintptr_t b ) |
809 | 809 | { |
810 | 810 | return a > b ? a : b; |
… |
… |
|
820 | 820 | * @retval b If b <= a |
821 | 821 | */ |
822 | | RTEMS_INLINE_ROUTINE uintptr_t _Heap_Min( uintptr_t a, uintptr_t b ) |
| 822 | static inline uintptr_t _Heap_Min( uintptr_t a, uintptr_t b ) |
823 | 823 | { |
824 | 824 | return a < b ? a : b; |
-
r3803757
|
ra660e9dc
|
|
173 | 173 | * @param level The ISR level. |
174 | 174 | */ |
175 | | RTEMS_INLINE_ROUTINE void _ISR_lock_Context_set_level( |
| 175 | static inline void _ISR_lock_Context_set_level( |
176 | 176 | ISR_lock_Context *context, |
177 | 177 | ISR_Level level |
-
r3803757
|
ra660e9dc
|
|
116 | 116 | * @return The memory area count. |
117 | 117 | */ |
118 | | RTEMS_INLINE_ROUTINE size_t _Memory_Get_count( |
| 118 | static inline size_t _Memory_Get_count( |
119 | 119 | const Memory_Information *information |
120 | 120 | ) |
… |
… |
|
131 | 131 | * @return The memory area of the specified index. |
132 | 132 | */ |
133 | | RTEMS_INLINE_ROUTINE Memory_Area *_Memory_Get_area( |
| 133 | static inline Memory_Area *_Memory_Get_area( |
134 | 134 | const Memory_Information *information, |
135 | 135 | size_t index |
… |
… |
|
147 | 147 | * @param end The end of the memory area. |
148 | 148 | */ |
149 | | RTEMS_INLINE_ROUTINE void _Memory_Initialize( |
| 149 | static inline void _Memory_Initialize( |
150 | 150 | Memory_Area *area, |
151 | 151 | void *begin, |
… |
… |
|
165 | 165 | * @param size The size of the memory area in bytes. |
166 | 166 | */ |
167 | | RTEMS_INLINE_ROUTINE void _Memory_Initialize_by_size( |
| 167 | static inline void _Memory_Initialize_by_size( |
168 | 168 | Memory_Area *area, |
169 | 169 | void *begin, |
… |
… |
|
183 | 183 | * @return The memory area begin. |
184 | 184 | */ |
185 | | RTEMS_INLINE_ROUTINE const void *_Memory_Get_begin( const Memory_Area *area ) |
| 185 | static inline const void *_Memory_Get_begin( const Memory_Area *area ) |
186 | 186 | { |
187 | 187 | return area->begin; |
… |
… |
|
194 | 194 | * @param begin The memory area begin. |
195 | 195 | */ |
196 | | RTEMS_INLINE_ROUTINE void _Memory_Set_begin( |
| 196 | static inline void _Memory_Set_begin( |
197 | 197 | Memory_Area *area, |
198 | 198 | const void *begin |
… |
… |
|
209 | 209 | * @return The memory area end. |
210 | 210 | */ |
211 | | RTEMS_INLINE_ROUTINE const void *_Memory_Get_end( const Memory_Area *area ) |
| 211 | static inline const void *_Memory_Get_end( const Memory_Area *area ) |
212 | 212 | { |
213 | 213 | return area->end; |
… |
… |
|
220 | 220 | * @param end The memory area end. |
221 | 221 | */ |
222 | | RTEMS_INLINE_ROUTINE void _Memory_Set_end( |
| 222 | static inline void _Memory_Set_end( |
223 | 223 | Memory_Area *area, |
224 | 224 | const void *end |
… |
… |
|
235 | 235 | * @return The memory area size in bytes. |
236 | 236 | */ |
237 | | RTEMS_INLINE_ROUTINE uintptr_t _Memory_Get_size( const Memory_Area *area ) |
| 237 | static inline uintptr_t _Memory_Get_size( const Memory_Area *area ) |
238 | 238 | { |
239 | 239 | return (uintptr_t) area->end - (uintptr_t) area->begin; |
… |
… |
|
247 | 247 | * @return The free memory area begin the memory area. |
248 | 248 | */ |
249 | | RTEMS_INLINE_ROUTINE void *_Memory_Get_free_begin( const Memory_Area *area ) |
| 249 | static inline void *_Memory_Get_free_begin( const Memory_Area *area ) |
250 | 250 | { |
251 | 251 | return area->free; |
… |
… |
|
258 | 258 | * @param begin The free memory area begin the memory area. |
259 | 259 | */ |
260 | | RTEMS_INLINE_ROUTINE void _Memory_Set_free_begin( |
| 260 | static inline void _Memory_Set_free_begin( |
261 | 261 | Memory_Area *area, |
262 | 262 | void *begin |
… |
… |
|
273 | 273 | * @return The free memory area size in bytes of the memory area. |
274 | 274 | */ |
275 | | RTEMS_INLINE_ROUTINE uintptr_t _Memory_Get_free_size( const Memory_Area *area ) |
| 275 | static inline uintptr_t _Memory_Get_free_size( const Memory_Area *area ) |
276 | 276 | { |
277 | 277 | return (uintptr_t) area->end - (uintptr_t) area->free; |
… |
… |
|
286 | 286 | * area. |
287 | 287 | */ |
288 | | RTEMS_INLINE_ROUTINE void _Memory_Consume( |
| 288 | static inline void _Memory_Consume( |
289 | 289 | Memory_Area *area, |
290 | 290 | uintptr_t consume |
-
r3803757
|
ra660e9dc
|
|
338 | 338 | */ |
339 | 339 | |
340 | | RTEMS_INLINE_ROUTINE bool _Mp_packet_Is_valid_packet_class ( |
| 340 | static inline bool _Mp_packet_Is_valid_packet_class ( |
341 | 341 | MP_packet_Classes the_packet_class |
342 | 342 | ) |
-
r3803757
|
ra660e9dc
|
|
65 | 65 | * @param queue_context The thread queue context. |
66 | 66 | */ |
67 | | RTEMS_INLINE_ROUTINE void _MRSP_Acquire_critical( |
| 67 | static inline void _MRSP_Acquire_critical( |
68 | 68 | MRSP_Control *mrsp, |
69 | 69 | Thread_queue_Context *queue_context |
… |
… |
|
79 | 79 | * @param queue_context The thread queue context. |
80 | 80 | */ |
81 | | RTEMS_INLINE_ROUTINE void _MRSP_Release( |
| 81 | static inline void _MRSP_Release( |
82 | 82 | MRSP_Control *mrsp, |
83 | 83 | Thread_queue_Context *queue_context |
… |
… |
|
94 | 94 | * @return The owner of the Mrsp control. |
95 | 95 | */ |
96 | | RTEMS_INLINE_ROUTINE Thread_Control *_MRSP_Get_owner( |
| 96 | static inline Thread_Control *_MRSP_Get_owner( |
97 | 97 | const MRSP_Control *mrsp |
98 | 98 | ) |
… |
… |
|
107 | 107 | * @param owner The desired new owner for @a mrsp. |
108 | 108 | */ |
109 | | RTEMS_INLINE_ROUTINE void _MRSP_Set_owner( |
| 109 | static inline void _MRSP_Set_owner( |
110 | 110 | MRSP_Control *mrsp, |
111 | 111 | Thread_Control *owner |
… |
… |
|
123 | 123 | * @return The priority of the MrsP control. |
124 | 124 | */ |
125 | | RTEMS_INLINE_ROUTINE Priority_Control _MRSP_Get_priority( |
| 125 | static inline Priority_Control _MRSP_Get_priority( |
126 | 126 | const MRSP_Control *mrsp, |
127 | 127 | const Scheduler_Control *scheduler |
… |
… |
|
141 | 141 | * @param new_priority The new priority for the MrsP control |
142 | 142 | */ |
143 | | RTEMS_INLINE_ROUTINE void _MRSP_Set_priority( |
| 143 | static inline void _MRSP_Set_priority( |
144 | 144 | MRSP_Control *mrsp, |
145 | 145 | const Scheduler_Control *scheduler, |
… |
… |
|
166 | 166 | * exceeds the ceiling priority. |
167 | 167 | */ |
168 | | RTEMS_INLINE_ROUTINE Status_Control _MRSP_Raise_priority( |
| 168 | static inline Status_Control _MRSP_Raise_priority( |
169 | 169 | MRSP_Control *mrsp, |
170 | 170 | Thread_Control *thread, |
… |
… |
|
208 | 208 | * @param queue_context The thread queue context. |
209 | 209 | */ |
210 | | RTEMS_INLINE_ROUTINE void _MRSP_Remove_priority( |
| 210 | static inline void _MRSP_Remove_priority( |
211 | 211 | Thread_Control *thread, |
212 | 212 | Priority_Node *priority_node, |
… |
… |
|
230 | 230 | * @param ceiling_priority The node to be replaced. |
231 | 231 | */ |
232 | | RTEMS_INLINE_ROUTINE void _MRSP_Replace_priority( |
| 232 | static inline void _MRSP_Replace_priority( |
233 | 233 | MRSP_Control *mrsp, |
234 | 234 | Thread_Control *thread, |
… |
… |
|
258 | 258 | * thread exceeds the ceiling priority. |
259 | 259 | */ |
260 | | RTEMS_INLINE_ROUTINE Status_Control _MRSP_Claim_ownership( |
| 260 | static inline Status_Control _MRSP_Claim_ownership( |
261 | 261 | MRSP_Control *mrsp, |
262 | 262 | Thread_Control *executing, |
… |
… |
|
301 | 301 | * @retval STATUS_NO_MEMORY There is not enough memory to allocate. |
302 | 302 | */ |
303 | | RTEMS_INLINE_ROUTINE Status_Control _MRSP_Initialize( |
| 303 | static inline Status_Control _MRSP_Initialize( |
304 | 304 | MRSP_Control *mrsp, |
305 | 305 | const Scheduler_Control *scheduler, |
… |
… |
|
362 | 362 | * @retval STATUS_TIMEOUT A timeout occurred. |
363 | 363 | */ |
364 | | RTEMS_INLINE_ROUTINE Status_Control _MRSP_Wait_for_ownership( |
| 364 | static inline Status_Control _MRSP_Wait_for_ownership( |
365 | 365 | MRSP_Control *mrsp, |
366 | 366 | Thread_Control *executing, |
… |
… |
|
440 | 440 | * thread exceeds the ceiling priority of the mutex. |
441 | 441 | */ |
442 | | RTEMS_INLINE_ROUTINE Status_Control _MRSP_Seize( |
| 442 | static inline Status_Control _MRSP_Seize( |
443 | 443 | MRSP_Control *mrsp, |
444 | 444 | Thread_Control *executing, |
… |
… |
|
479 | 479 | * @retval STATUS_NOT_OWNER The executing thread does not own the MrsP control. |
480 | 480 | */ |
481 | | RTEMS_INLINE_ROUTINE Status_Control _MRSP_Surrender( |
| 481 | static inline Status_Control _MRSP_Surrender( |
482 | 482 | MRSP_Control *mrsp, |
483 | 483 | Thread_Control *executing, |
… |
… |
|
531 | 531 | * it cannot be destroyed. |
532 | 532 | */ |
533 | | RTEMS_INLINE_ROUTINE Status_Control _MRSP_Can_destroy( MRSP_Control *mrsp ) |
| 533 | static inline Status_Control _MRSP_Can_destroy( MRSP_Control *mrsp ) |
534 | 534 | { |
535 | 535 | if ( _MRSP_Get_owner( mrsp ) != NULL ) { |
… |
… |
|
546 | 546 | * @param queue_context The thread queue context. |
547 | 547 | */ |
548 | | RTEMS_INLINE_ROUTINE void _MRSP_Destroy( |
| 548 | static inline void _MRSP_Destroy( |
549 | 549 | MRSP_Control *mrsp, |
550 | 550 | Thread_queue_Context *queue_context |
-
r3803757
|
ra660e9dc
|
|
274 | 274 | * @return An object Id constructed from the arguments. |
275 | 275 | */ |
276 | | RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API( |
| 276 | static inline Objects_APIs _Objects_Get_API( |
277 | 277 | Objects_Id id |
278 | 278 | ) |
… |
… |
|
288 | 288 | * @return The class portion of the ID. |
289 | 289 | */ |
290 | | RTEMS_INLINE_ROUTINE uint32_t _Objects_Get_class( |
| 290 | static inline uint32_t _Objects_Get_class( |
291 | 291 | Objects_Id id |
292 | 292 | ) |
… |
… |
|
303 | 303 | * @return Returns the node portion of an object ID. |
304 | 304 | */ |
305 | | RTEMS_INLINE_ROUTINE uint32_t _Objects_Get_node( |
| 305 | static inline uint32_t _Objects_Get_node( |
306 | 306 | Objects_Id id |
307 | 307 | ) |
… |
… |
|
317 | 317 | * @return Returns the index portion of the specified object ID. |
318 | 318 | */ |
319 | | RTEMS_INLINE_ROUTINE Objects_Maximum _Objects_Get_index( |
| 319 | static inline Objects_Maximum _Objects_Get_index( |
320 | 320 | Objects_Id id |
321 | 321 | ) |
-
r3803757
|
ra660e9dc
|
|
397 | 397 | * @retval false The object does not have a string name. |
398 | 398 | */ |
399 | | RTEMS_INLINE_ROUTINE bool _Objects_Has_string_name( |
| 399 | static inline bool _Objects_Has_string_name( |
400 | 400 | const Objects_Information *information |
401 | 401 | ) |
… |
… |
|
472 | 472 | * @param[out] the_object The object to operate upon. |
473 | 473 | */ |
474 | | RTEMS_INLINE_ROUTINE void _Objects_Namespace_remove_u32( |
| 474 | static inline void _Objects_Namespace_remove_u32( |
475 | 475 | const Objects_Information *information, |
476 | 476 | Objects_Control *the_object |
… |
… |
|
524 | 524 | * @return The number of objects per block of @a information. |
525 | 525 | */ |
526 | | RTEMS_INLINE_ROUTINE Objects_Maximum _Objects_Extend_size( |
| 526 | static inline Objects_Maximum _Objects_Extend_size( |
527 | 527 | const Objects_Information *information |
528 | 528 | ) |
… |
… |
|
539 | 539 | * @retval false The specified api value is not valid. |
540 | 540 | */ |
541 | | RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid( |
| 541 | static inline bool _Objects_Is_api_valid( |
542 | 542 | uint32_t the_api |
543 | 543 | ) |
… |
… |
|
557 | 557 | * @retval false The specified node is not the local node. |
558 | 558 | */ |
559 | | RTEMS_INLINE_ROUTINE bool _Objects_Is_local_node( |
| 559 | static inline bool _Objects_Is_local_node( |
560 | 560 | uint32_t node |
561 | 561 | ) |
… |
… |
|
574 | 574 | * @note On a single processor configuration, this always returns true. |
575 | 575 | */ |
576 | | RTEMS_INLINE_ROUTINE bool _Objects_Is_local_id( |
| 576 | static inline bool _Objects_Is_local_id( |
577 | 577 | #if defined(RTEMS_MULTIPROCESSING) |
578 | 578 | Objects_Id id |
… |
… |
|
598 | 598 | * @retval false The specified object IDs are not equal. |
599 | 599 | */ |
600 | | RTEMS_INLINE_ROUTINE bool _Objects_Are_ids_equal( |
| 600 | static inline bool _Objects_Are_ids_equal( |
601 | 601 | Objects_Id left, |
602 | 602 | Objects_Id right |
… |
… |
|
615 | 615 | * @return The corresponding ID with the minimum index. |
616 | 616 | */ |
617 | | RTEMS_INLINE_ROUTINE Objects_Id _Objects_Get_minimum_id( Objects_Id id ) |
| 617 | static inline Objects_Id _Objects_Get_minimum_id( Objects_Id id ) |
618 | 618 | { |
619 | 619 | id &= ~OBJECTS_INDEX_MASK; |
… |
… |
|
629 | 629 | * @return The maximum index of the specified object class. |
630 | 630 | */ |
631 | | RTEMS_INLINE_ROUTINE Objects_Maximum _Objects_Get_maximum_index( |
| 631 | static inline Objects_Maximum _Objects_Get_maximum_index( |
632 | 632 | const Objects_Information *information |
633 | 633 | ) |
… |
… |
|
642 | 642 | * @retval object An inactive object. |
643 | 643 | */ |
644 | | RTEMS_INLINE_ROUTINE Objects_Control *_Objects_Get_inactive( |
| 644 | static inline Objects_Control *_Objects_Get_inactive( |
645 | 645 | Objects_Information *information |
646 | 646 | ) |
… |
… |
|
658 | 658 | * @retval false The automatic object extension (unlimited objects) is not enabled. |
659 | 659 | */ |
660 | | RTEMS_INLINE_ROUTINE Objects_Maximum _Objects_Is_auto_extend( |
| 660 | static inline Objects_Maximum _Objects_Is_auto_extend( |
661 | 661 | const Objects_Information *information |
662 | 662 | ) |
… |
… |
|
679 | 679 | */ |
680 | 680 | |
681 | | RTEMS_INLINE_ROUTINE void _Objects_Set_local_object( |
| 681 | static inline void _Objects_Set_local_object( |
682 | 682 | const Objects_Information *information, |
683 | 683 | uint32_t index, |
… |
… |
|
712 | 712 | */ |
713 | 713 | |
714 | | RTEMS_INLINE_ROUTINE void _Objects_Invalidate_Id( |
| 714 | static inline void _Objects_Invalidate_Id( |
715 | 715 | const Objects_Information *information, |
716 | 716 | Objects_Control *the_object |
… |
… |
|
739 | 739 | * @return Returns the identifier of the object which is now valid. |
740 | 740 | */ |
741 | | RTEMS_INLINE_ROUTINE Objects_Id _Objects_Open_u32( |
| 741 | static inline Objects_Id _Objects_Open_u32( |
742 | 742 | const Objects_Information *information, |
743 | 743 | Objects_Control *the_object, |
… |
… |
|
770 | 770 | * @param name is the name of the object to open. |
771 | 771 | */ |
772 | | RTEMS_INLINE_ROUTINE void _Objects_Open_string( |
| 772 | static inline void _Objects_Open_string( |
773 | 773 | const Objects_Information *information, |
774 | 774 | Objects_Control *the_object, |
… |
… |
|
803 | 803 | * @see _Objects_Allocator_unlock() and _Objects_Allocate(). |
804 | 804 | */ |
805 | | RTEMS_INLINE_ROUTINE void _Objects_Allocator_lock( void ) |
| 805 | static inline void _Objects_Allocator_lock( void ) |
806 | 806 | { |
807 | 807 | _RTEMS_Lock_allocator(); |
… |
… |
|
815 | 815 | * executing thread was restarted or deleted in the mean-time. |
816 | 816 | */ |
817 | | RTEMS_INLINE_ROUTINE void _Objects_Allocator_unlock( void ) |
| 817 | static inline void _Objects_Allocator_unlock( void ) |
818 | 818 | { |
819 | 819 | _RTEMS_Unlock_allocator(); |
… |
… |
|
826 | 826 | * @retval false The allocato is not the owner of the object allocator mutex. |
827 | 827 | */ |
828 | | RTEMS_INLINE_ROUTINE bool _Objects_Allocator_is_owner( void ) |
| 828 | static inline bool _Objects_Allocator_is_owner( void ) |
829 | 829 | { |
830 | 830 | return _RTEMS_Allocator_is_owner(); |
… |
… |
|
846 | 846 | * @see _Objects_Allocate() and _Objects_Free(). |
847 | 847 | */ |
848 | | RTEMS_INLINE_ROUTINE Objects_Control *_Objects_Allocate_unprotected( |
| 848 | static inline Objects_Control *_Objects_Allocate_unprotected( |
849 | 849 | Objects_Information *information |
850 | 850 | ) |
… |
… |
|
902 | 902 | * @endcode |
903 | 903 | */ |
904 | | RTEMS_INLINE_ROUTINE void _Objects_Free( |
| 904 | static inline void _Objects_Free( |
905 | 905 | Objects_Information *information, |
906 | 906 | Objects_Control *the_object |
… |
… |
|
923 | 923 | * @retval false Otherwise. |
924 | 924 | */ |
925 | | RTEMS_INLINE_ROUTINE bool _Objects_Is_in_allocated_block( |
| 925 | static inline bool _Objects_Is_in_allocated_block( |
926 | 926 | Objects_Maximum index, |
927 | 927 | Objects_Maximum objects_per_block |
… |
… |
|
940 | 940 | * @param the_object The object to activate. |
941 | 941 | */ |
942 | | RTEMS_INLINE_ROUTINE void _Objects_Activate_unlimited( |
| 942 | static inline void _Objects_Activate_unlimited( |
943 | 943 | Objects_Information *information, |
944 | 944 | Objects_Control *the_object |
… |
… |
|
972 | 972 | * @param extend The object information extend handler. |
973 | 973 | */ |
974 | | RTEMS_INLINE_ROUTINE Objects_Control *_Objects_Allocate_with_extend( |
| 974 | static inline Objects_Control *_Objects_Allocate_with_extend( |
975 | 975 | Objects_Information *information, |
976 | 976 | void ( *extend )( Objects_Information * ) |
-
r3803757
|
ra660e9dc
|
|
756 | 756 | } |
757 | 757 | |
758 | | RTEMS_INLINE_ROUTINE void _Per_CPU_Acquire_all( |
| 758 | static inline void _Per_CPU_Acquire_all( |
759 | 759 | ISR_lock_Context *lock_context |
760 | 760 | ) |
… |
… |
|
783 | 783 | } |
784 | 784 | |
785 | | RTEMS_INLINE_ROUTINE void _Per_CPU_Release_all( |
| 785 | static inline void _Per_CPU_Release_all( |
786 | 786 | ISR_lock_Context *lock_context |
787 | 787 | ) |
… |
… |
|
960 | 960 | * @return The thread control block of the executing thread. |
961 | 961 | */ |
962 | | RTEMS_INLINE_ROUTINE struct _Thread_Control *_Thread_Get_executing( void ) |
| 962 | static inline struct _Thread_Control *_Thread_Get_executing( void ) |
963 | 963 | { |
964 | 964 | struct _Thread_Control *executing; |
-
r3803757
|
ra660e9dc
|
|
73 | 73 | * @see _Priority_Bits_index() and _Priority_Mask(). |
74 | 74 | */ |
75 | | RTEMS_INLINE_ROUTINE unsigned int _Bitfield_Find_first_bit( |
| 75 | static inline unsigned int _Bitfield_Find_first_bit( |
76 | 76 | unsigned int value |
77 | 77 | ) |
… |
… |
|
103 | 103 | * @return The priority bit mask. |
104 | 104 | */ |
105 | | RTEMS_INLINE_ROUTINE Priority_bit_map_Word _Priority_Mask( |
| 105 | static inline Priority_bit_map_Word _Priority_Mask( |
106 | 106 | unsigned int bit_number |
107 | 107 | ) |
… |
… |
|
122 | 122 | * @return The corresponding array index into the priority bit map. |
123 | 123 | */ |
124 | | RTEMS_INLINE_ROUTINE unsigned int _Priority_Bits_index( |
| 124 | static inline unsigned int _Priority_Bits_index( |
125 | 125 | unsigned int bit_number |
126 | 126 | ) |
… |
… |
|
140 | 140 | * @return The major portion of the priority. |
141 | 141 | */ |
142 | | RTEMS_INLINE_ROUTINE unsigned int _Priority_Major( unsigned int the_priority ) |
| 142 | static inline unsigned int _Priority_Major( unsigned int the_priority ) |
143 | 143 | { |
144 | 144 | return the_priority / 16; |
… |
… |
|
152 | 152 | * @return The minor portion of the priority. |
153 | 153 | */ |
154 | | RTEMS_INLINE_ROUTINE unsigned int _Priority_Minor( unsigned int the_priority ) |
| 154 | static inline unsigned int _Priority_Minor( unsigned int the_priority ) |
155 | 155 | { |
156 | 156 | return the_priority % 16; |
… |
… |
|
162 | 162 | * @param[out] bit_map The bit map to initialize. |
163 | 163 | */ |
164 | | RTEMS_INLINE_ROUTINE void _Priority_bit_map_Initialize( |
| 164 | static inline void _Priority_bit_map_Initialize( |
165 | 165 | Priority_bit_map_Control *bit_map |
166 | 166 | ) |
… |
… |
|
177 | 177 | * @param bit_map_info The information with which to alter @a bit_map. |
178 | 178 | */ |
179 | | RTEMS_INLINE_ROUTINE void _Priority_bit_map_Add ( |
| 179 | static inline void _Priority_bit_map_Add ( |
180 | 180 | Priority_bit_map_Control *bit_map, |
181 | 181 | Priority_bit_map_Information *bit_map_info |
… |
… |
|
194 | 194 | * @param bit_map_info The information with which to alter @a bit_map. |
195 | 195 | */ |
196 | | RTEMS_INLINE_ROUTINE void _Priority_bit_map_Remove ( |
| 196 | static inline void _Priority_bit_map_Remove ( |
197 | 197 | Priority_bit_map_Control *bit_map, |
198 | 198 | Priority_bit_map_Information *bit_map_info |
… |
… |
|
211 | 211 | * @return The highest portion of the bitmap. |
212 | 212 | */ |
213 | | RTEMS_INLINE_ROUTINE unsigned int _Priority_bit_map_Get_highest( |
| 213 | static inline unsigned int _Priority_bit_map_Get_highest( |
214 | 214 | const Priority_bit_map_Control *bit_map |
215 | 215 | ) |
… |
… |
|
233 | 233 | * @retval false The Priority queue bit map is not empty. |
234 | 234 | */ |
235 | | RTEMS_INLINE_ROUTINE bool _Priority_bit_map_Is_empty( |
| 235 | static inline bool _Priority_bit_map_Is_empty( |
236 | 236 | const Priority_bit_map_Control *bit_map |
237 | 237 | ) |
… |
… |
|
249 | 249 | * of the bit map information. |
250 | 250 | */ |
251 | | RTEMS_INLINE_ROUTINE void _Priority_bit_map_Initialize_information( |
| 251 | static inline void _Priority_bit_map_Initialize_information( |
252 | 252 | Priority_bit_map_Control *bit_map, |
253 | 253 | Priority_bit_map_Information *bit_map_info, |
-
r3803757
|
ra660e9dc
|
|
79 | 79 | * @param[out] actions The actions to be initialized empty. |
80 | 80 | */ |
81 | | RTEMS_INLINE_ROUTINE void _Priority_Actions_initialize_empty( |
| 81 | static inline void _Priority_Actions_initialize_empty( |
82 | 82 | Priority_Actions *actions |
83 | 83 | ) |
… |
… |
|
94 | 94 | * @param type The action type for the @a actions to be initialized. |
95 | 95 | */ |
96 | | RTEMS_INLINE_ROUTINE void _Priority_Actions_initialize_one( |
| 96 | static inline void _Priority_Actions_initialize_one( |
97 | 97 | Priority_Actions *actions, |
98 | 98 | Priority_Aggregation *aggregation, |
… |
… |
|
118 | 118 | * @retval false The priority actions @a actions is empty. |
119 | 119 | */ |
120 | | RTEMS_INLINE_ROUTINE bool _Priority_Actions_is_empty( |
| 120 | static inline bool _Priority_Actions_is_empty( |
121 | 121 | const Priority_Actions *actions |
122 | 122 | ) |
… |
… |
|
132 | 132 | * @return The former actions of @a actions that were moved. |
133 | 133 | */ |
134 | | RTEMS_INLINE_ROUTINE Priority_Aggregation *_Priority_Actions_move( |
| 134 | static inline Priority_Aggregation *_Priority_Actions_move( |
135 | 135 | Priority_Actions *actions |
136 | 136 | ) |
… |
… |
|
150 | 150 | * @param[out] aggregation The actions to add to @a actions. |
151 | 151 | */ |
152 | | RTEMS_INLINE_ROUTINE void _Priority_Actions_add( |
| 152 | static inline void _Priority_Actions_add( |
153 | 153 | Priority_Actions *actions, |
154 | 154 | Priority_Aggregation *aggregation |
… |
… |
|
171 | 171 | * @param priority The priority to initialize @a node to. |
172 | 172 | */ |
173 | | RTEMS_INLINE_ROUTINE void _Priority_Node_initialize( |
| 173 | static inline void _Priority_Node_initialize( |
174 | 174 | Priority_Node *node, |
175 | 175 | Priority_Control priority |
… |
… |
|
186 | 186 | * @param priority The new priority for @a node. |
187 | 187 | */ |
188 | | RTEMS_INLINE_ROUTINE void _Priority_Node_set_priority( |
| 188 | static inline void _Priority_Node_set_priority( |
189 | 189 | Priority_Node *node, |
190 | 190 | Priority_Control priority |
… |
… |
|
199 | 199 | * @param[in, out] node The priority node to set inactive. |
200 | 200 | */ |
201 | | RTEMS_INLINE_ROUTINE void _Priority_Node_set_inactive( |
| 201 | static inline void _Priority_Node_set_inactive( |
202 | 202 | Priority_Node *node |
203 | 203 | ) |
… |
… |
|
214 | 214 | * @retval false The priority node is inactive. |
215 | 215 | */ |
216 | | RTEMS_INLINE_ROUTINE bool _Priority_Node_is_active( |
| 216 | static inline bool _Priority_Node_is_active( |
217 | 217 | const Priority_Node *node |
218 | 218 | ) |
… |
… |
|
226 | 226 | * @param[out] aggregation The priority aggregaton to initialize empty. |
227 | 227 | */ |
228 | | RTEMS_INLINE_ROUTINE void _Priority_Initialize_empty( |
| 228 | static inline void _Priority_Initialize_empty( |
229 | 229 | Priority_Aggregation *aggregation |
230 | 230 | ) |
… |
… |
|
247 | 247 | * @param node The priority node to initialize @a aggregation with. |
248 | 248 | */ |
249 | | RTEMS_INLINE_ROUTINE void _Priority_Initialize_one( |
| 249 | static inline void _Priority_Initialize_one( |
250 | 250 | Priority_Aggregation *aggregation, |
251 | 251 | Priority_Node *node |
… |
… |
|
271 | 271 | * @retval false The priority aggregation is not empty. |
272 | 272 | */ |
273 | | RTEMS_INLINE_ROUTINE bool _Priority_Is_empty( |
| 273 | static inline bool _Priority_Is_empty( |
274 | 274 | const Priority_Aggregation *aggregation |
275 | 275 | ) |
… |
… |
|
285 | 285 | * @return The priority of @a aggregation. |
286 | 286 | */ |
287 | | RTEMS_INLINE_ROUTINE Priority_Control _Priority_Get_priority( |
| 287 | static inline Priority_Control _Priority_Get_priority( |
288 | 288 | const Priority_Aggregation *aggregation |
289 | 289 | ) |
… |
… |
|
299 | 299 | * @return The scheduler of @a aggregation. |
300 | 300 | */ |
301 | | RTEMS_INLINE_ROUTINE const Scheduler_Control *_Priority_Get_scheduler( |
| 301 | static inline const Scheduler_Control *_Priority_Get_scheduler( |
302 | 302 | const Priority_Aggregation *aggregation |
303 | 303 | ) |
… |
… |
|
317 | 317 | * @return The minimum node of @a aggregation |
318 | 318 | */ |
319 | | RTEMS_INLINE_ROUTINE Priority_Node *_Priority_Get_minimum_node( |
| 319 | static inline Priority_Node *_Priority_Get_minimum_node( |
320 | 320 | const Priority_Aggregation *aggregation |
321 | 321 | ) |
… |
… |
|
330 | 330 | * @param node The new priority node for @a aggregation. |
331 | 331 | */ |
332 | | RTEMS_INLINE_ROUTINE void _Priority_Set_action_node( |
| 332 | static inline void _Priority_Set_action_node( |
333 | 333 | Priority_Aggregation *aggregation, |
334 | 334 | Priority_Node *node |
… |
… |
|
344 | 344 | * @param type The new action type for @a aggregation. |
345 | 345 | */ |
346 | | RTEMS_INLINE_ROUTINE void _Priority_Set_action_type( |
| 346 | static inline void _Priority_Set_action_type( |
347 | 347 | Priority_Aggregation *aggregation, |
348 | 348 | Priority_Action_type type |
… |
… |
|
360 | 360 | * @param type The new action type for @a aggregation. |
361 | 361 | */ |
362 | | RTEMS_INLINE_ROUTINE void _Priority_Set_action( |
| 362 | static inline void _Priority_Set_action( |
363 | 363 | Priority_Aggregation *aggregation, |
364 | 364 | Priority_Node *node, |
… |
… |
|
379 | 379 | * is no next action. |
380 | 380 | */ |
381 | | RTEMS_INLINE_ROUTINE Priority_Aggregation *_Priority_Get_next_action( |
| 381 | static inline Priority_Aggregation *_Priority_Get_next_action( |
382 | 382 | const Priority_Aggregation *aggregation |
383 | 383 | ) |
… |
… |
|
396 | 396 | * @retval false The priority on the left hand side of the comparison is greater of equal. |
397 | 397 | */ |
398 | | RTEMS_INLINE_ROUTINE bool _Priority_Less( |
| 398 | static inline bool _Priority_Less( |
399 | 399 | const void *left, |
400 | 400 | const RBTree_Node *right |
… |
… |
|
423 | 423 | * @retval false The inserted node with its priority is not the minimum of the RBTree. |
424 | 424 | */ |
425 | | RTEMS_INLINE_ROUTINE bool _Priority_Plain_insert( |
| 425 | static inline bool _Priority_Plain_insert( |
426 | 426 | Priority_Aggregation *aggregation, |
427 | 427 | Priority_Node *node, |
… |
… |
|
445 | 445 | * @param node The node to be extracted. |
446 | 446 | */ |
447 | | RTEMS_INLINE_ROUTINE void _Priority_Plain_extract( |
| 447 | static inline void _Priority_Plain_extract( |
448 | 448 | Priority_Aggregation *aggregation, |
449 | 449 | Priority_Node *node |
… |
… |
|
462 | 462 | * @param node The node that has a new priority and will be reinserted in the aggregation. |
463 | 463 | */ |
464 | | RTEMS_INLINE_ROUTINE void _Priority_Plain_changed( |
| 464 | static inline void _Priority_Plain_changed( |
465 | 465 | Priority_Aggregation *aggregation, |
466 | 466 | Priority_Node *node |
… |
… |
|
500 | 500 | * @param arg Is ignored by the method. |
501 | 501 | */ |
502 | | RTEMS_INLINE_ROUTINE void _Priority_Change_nothing( |
| 502 | static inline void _Priority_Change_nothing( |
503 | 503 | Priority_Aggregation *aggregation, |
504 | 504 | Priority_Group_order group_order, |
… |
… |
|
522 | 522 | * @param arg Is ignored by the method. |
523 | 523 | */ |
524 | | RTEMS_INLINE_ROUTINE void _Priority_Remove_nothing( |
| 524 | static inline void _Priority_Remove_nothing( |
525 | 525 | Priority_Aggregation *aggregation, |
526 | 526 | Priority_Actions *actions, |
… |
… |
|
546 | 546 | * minimum. |
547 | 547 | */ |
548 | | RTEMS_INLINE_ROUTINE void _Priority_Non_empty_insert( |
| 548 | static inline void _Priority_Non_empty_insert( |
549 | 549 | Priority_Aggregation *aggregation, |
550 | 550 | Priority_Node *node, |
… |
… |
|
577 | 577 | * @param arg The arguments for @a change. |
578 | 578 | */ |
579 | | RTEMS_INLINE_ROUTINE void _Priority_Insert( |
| 579 | static inline void _Priority_Insert( |
580 | 580 | Priority_Aggregation *aggregation, |
581 | 581 | Priority_Node *node, |
… |
… |
|
611 | 611 | * @param arg The arguments for @a remove and @a change. |
612 | 612 | */ |
613 | | RTEMS_INLINE_ROUTINE void _Priority_Extract( |
| 613 | static inline void _Priority_Extract( |
614 | 614 | Priority_Aggregation *aggregation, |
615 | 615 | Priority_Node *node, |
… |
… |
|
651 | 651 | * @param arg The arguments for @a change. |
652 | 652 | */ |
653 | | RTEMS_INLINE_ROUTINE void _Priority_Extract_non_empty( |
| 653 | static inline void _Priority_Extract_non_empty( |
654 | 654 | Priority_Aggregation *aggregation, |
655 | 655 | Priority_Node *node, |
… |
… |
|
686 | 686 | * @param arg The arguments for @a change. |
687 | 687 | */ |
688 | | RTEMS_INLINE_ROUTINE void _Priority_Changed( |
| 688 | static inline void _Priority_Changed( |
689 | 689 | Priority_Aggregation *aggregation, |
690 | 690 | Priority_Node *node, |
… |
… |
|
722 | 722 | * from @a victim. |
723 | 723 | */ |
724 | | RTEMS_INLINE_ROUTINE void _Priority_Replace( |
| 724 | static inline void _Priority_Replace( |
725 | 725 | Priority_Aggregation *aggregation, |
726 | 726 | Priority_Node *victim, |
-
r3803757
|
ra660e9dc
|
|
129 | 129 | * @param[out] mask The mask to set to zero. |
130 | 130 | */ |
131 | | RTEMS_INLINE_ROUTINE void _Processor_mask_Zero( Processor_mask *mask ) |
| 131 | static inline void _Processor_mask_Zero( Processor_mask *mask ) |
132 | 132 | { |
133 | 133 | __BIT_ZERO( CPU_MAXIMUM_PROCESSORS, mask ); |
… |
… |
|
142 | 142 | * @retval false The mask is not zero. |
143 | 143 | */ |
144 | | RTEMS_INLINE_ROUTINE bool _Processor_mask_Is_zero( const Processor_mask *mask ) |
| 144 | static inline bool _Processor_mask_Is_zero( const Processor_mask *mask ) |
145 | 145 | { |
146 | 146 | return __BIT_EMPTY( CPU_MAXIMUM_PROCESSORS, mask ); |
… |
… |
|
152 | 152 | * @param[out] mask The mask to fill |
153 | 153 | */ |
154 | | RTEMS_INLINE_ROUTINE void _Processor_mask_Fill( Processor_mask *mask ) |
| 154 | static inline void _Processor_mask_Fill( Processor_mask *mask ) |
155 | 155 | { |
156 | 156 | __BIT_FILL( CPU_MAXIMUM_PROCESSORS, mask ); |
… |
… |
|
163 | 163 | * @param src The mask to copy to @a dst. |
164 | 164 | */ |
165 | | RTEMS_INLINE_ROUTINE void _Processor_mask_Assign( |
| 165 | static inline void _Processor_mask_Assign( |
166 | 166 | Processor_mask *dst, const Processor_mask *src |
167 | 167 | ) |
… |
… |
|
176 | 176 | * @param index The index of the bit that shall be set. |
177 | 177 | */ |
178 | | RTEMS_INLINE_ROUTINE void _Processor_mask_Set( |
| 178 | static inline void _Processor_mask_Set( |
179 | 179 | Processor_mask *mask, |
180 | 180 | uint32_t index |
… |
… |
|
190 | 190 | * @param index The index of the bit that shall be cleared. |
191 | 191 | */ |
192 | | RTEMS_INLINE_ROUTINE void _Processor_mask_Clear( |
| 192 | static inline void _Processor_mask_Clear( |
193 | 193 | Processor_mask *mask, |
194 | 194 | uint32_t index |
… |
… |
|
207 | 207 | * @retval false The specified index bit is not set. |
208 | 208 | */ |
209 | | RTEMS_INLINE_ROUTINE bool _Processor_mask_Is_set( |
| 209 | static inline bool _Processor_mask_Is_set( |
210 | 210 | const Processor_mask *mask, |
211 | 211 | uint32_t index |
… |
… |
|
224 | 224 | * @retval false The processor sets a and b are not equal. |
225 | 225 | */ |
226 | | RTEMS_INLINE_ROUTINE bool _Processor_mask_Is_equal( |
| 226 | static inline bool _Processor_mask_Is_equal( |
227 | 227 | const Processor_mask *a, |
228 | 228 | const Processor_mask *b |
… |
… |
|
242 | 242 | * @retval false The intersection of the processor sets a and b is empty. |
243 | 243 | */ |
244 | | RTEMS_INLINE_ROUTINE bool _Processor_mask_Has_overlap( |
| 244 | static inline bool _Processor_mask_Has_overlap( |
245 | 245 | const Processor_mask *a, |
246 | 246 | const Processor_mask *b |
… |
… |
|
260 | 260 | * @retval false @a small is not a subset of @a big. |
261 | 261 | */ |