Lines Matching defs:__C
85 #define __C(A,B) __CONCAT(A,B)
89 int __C(CHIP,_mem_map)(void *, bus_addr_t, bus_size_t, int,
91 void __C(CHIP,_mem_unmap)(void *, bus_space_handle_t,
93 int __C(CHIP,_mem_subregion)(void *, bus_space_handle_t,
96 int __C(CHIP,_mem_translate)(void *, bus_addr_t, bus_size_t,
98 int __C(CHIP,_mem_get_window)(void *, int,
102 int __C(CHIP,_mem_alloc)(void *, bus_addr_t, bus_addr_t,
105 void __C(CHIP,_mem_free)(void *, bus_space_handle_t,
109 void * __C(CHIP,_mem_vaddr)(void *, bus_space_handle_t);
112 paddr_t __C(CHIP,_mem_mmap)(void *, bus_addr_t, off_t, int, int);
115 static inline void __C(CHIP,_mem_barrier)(void *, bus_space_handle_t,
119 static inline uint8_t __C(CHIP,_mem_read_1)(void *, bus_space_handle_t,
121 static inline uint16_t __C(CHIP,_mem_read_2)(void *, bus_space_handle_t,
123 static inline uint32_t __C(CHIP,_mem_read_4)(void *, bus_space_handle_t,
125 static inline uint64_t __C(CHIP,_mem_read_8)(void *, bus_space_handle_t,
129 void __C(CHIP,_mem_read_multi_1)(void *, bus_space_handle_t,
131 void __C(CHIP,_mem_read_multi_2)(void *, bus_space_handle_t,
133 void __C(CHIP,_mem_read_multi_4)(void *, bus_space_handle_t,
135 void __C(CHIP,_mem_read_multi_8)(void *, bus_space_handle_t,
139 void __C(CHIP,_mem_read_region_1)(void *, bus_space_handle_t,
141 void __C(CHIP,_mem_read_region_2)(void *, bus_space_handle_t,
143 void __C(CHIP,_mem_read_region_4)(void *, bus_space_handle_t,
145 void __C(CHIP,_mem_read_region_8)(void *, bus_space_handle_t,
149 static inline void __C(CHIP,_mem_write_1)(void *, bus_space_handle_t,
151 static inline void __C(CHIP,_mem_write_2)(void *, bus_space_handle_t,
153 static inline void __C(CHIP,_mem_write_4)(void *, bus_space_handle_t,
155 static inline void __C(CHIP,_mem_write_8)(void *, bus_space_handle_t,
159 void __C(CHIP,_mem_write_multi_1)(void *, bus_space_handle_t,
161 void __C(CHIP,_mem_write_multi_2)(void *, bus_space_handle_t,
163 void __C(CHIP,_mem_write_multi_4)(void *, bus_space_handle_t,
165 void __C(CHIP,_mem_write_multi_8)(void *, bus_space_handle_t,
169 void __C(CHIP,_mem_write_region_1)(void *, bus_space_handle_t,
171 void __C(CHIP,_mem_write_region_2)(void *, bus_space_handle_t,
173 void __C(CHIP,_mem_write_region_4)(void *, bus_space_handle_t,
175 void __C(CHIP,_mem_write_region_8)(void *, bus_space_handle_t,
179 void __C(CHIP,_mem_set_multi_1)(void *, bus_space_handle_t,
181 void __C(CHIP,_mem_set_multi_2)(void *, bus_space_handle_t,
183 void __C(CHIP,_mem_set_multi_4)(void *, bus_space_handle_t,
185 void __C(CHIP,_mem_set_multi_8)(void *, bus_space_handle_t,
189 void __C(CHIP,_mem_set_region_1)(void *, bus_space_handle_t,
191 void __C(CHIP,_mem_set_region_2)(void *, bus_space_handle_t,
193 void __C(CHIP,_mem_set_region_4)(void *, bus_space_handle_t,
195 void __C(CHIP,_mem_set_region_8)(void *, bus_space_handle_t,
199 void __C(CHIP,_mem_copy_region_1)(void *, bus_space_handle_t,
201 void __C(CHIP,_mem_copy_region_2)(void *, bus_space_handle_t,
203 void __C(CHIP,_mem_copy_region_4)(void *, bus_space_handle_t,
205 void __C(CHIP,_mem_copy_region_8)(void *, bus_space_handle_t,
210 __C(CHIP,_mem_ex_storage)[EXTENT_FIXED_STORAGE_SIZE(8) / sizeof(long)];
211 #define CHIP_MEM_EX_STORE(v) (__C(CHIP,_mem_ex_storage))
212 #define CHIP_MEM_EX_STORE_SIZE(v) (sizeof __C(CHIP,_mem_ex_storage))
216 __C(CHIP,_bus_mem_init)(
230 t->abs_map = __C(CHIP,_mem_map);
231 t->abs_unmap = __C(CHIP,_mem_unmap);
232 t->abs_subregion = __C(CHIP,_mem_subregion);
234 t->abs_translate = __C(CHIP,_mem_translate);
235 t->abs_get_window = __C(CHIP,_mem_get_window);
238 t->abs_alloc = __C(CHIP,_mem_alloc);
239 t->abs_free = __C(CHIP,_mem_free);
242 t->abs_vaddr = __C(CHIP,_mem_vaddr);
245 t->abs_mmap = __C(CHIP,_mem_mmap);
248 t->abs_barrier = __C(CHIP,_mem_barrier);
251 t->abs_r_1 = __C(CHIP,_mem_read_1);
252 t->abs_r_2 = __C(CHIP,_mem_read_2);
253 t->abs_r_4 = __C(CHIP,_mem_read_4);
254 t->abs_r_8 = __C(CHIP,_mem_read_8);
257 t->abs_rm_1 = __C(CHIP,_mem_read_multi_1);
258 t->abs_rm_2 = __C(CHIP,_mem_read_multi_2);
259 t->abs_rm_4 = __C(CHIP,_mem_read_multi_4);
260 t->abs_rm_8 = __C(CHIP,_mem_read_multi_8);
263 t->abs_rr_1 = __C(CHIP,_mem_read_region_1);
264 t->abs_rr_2 = __C(CHIP,_mem_read_region_2);
265 t->abs_rr_4 = __C(CHIP,_mem_read_region_4);
266 t->abs_rr_8 = __C(CHIP,_mem_read_region_8);
269 t->abs_w_1 = __C(CHIP,_mem_write_1);
270 t->abs_w_2 = __C(CHIP,_mem_write_2);
271 t->abs_w_4 = __C(CHIP,_mem_write_4);
272 t->abs_w_8 = __C(CHIP,_mem_write_8);
275 t->abs_wm_1 = __C(CHIP,_mem_write_multi_1);
276 t->abs_wm_2 = __C(CHIP,_mem_write_multi_2);
277 t->abs_wm_4 = __C(CHIP,_mem_write_multi_4);
278 t->abs_wm_8 = __C(CHIP,_mem_write_multi_8);
281 t->abs_wr_1 = __C(CHIP,_mem_write_region_1);
282 t->abs_wr_2 = __C(CHIP,_mem_write_region_2);
283 t->abs_wr_4 = __C(CHIP,_mem_write_region_4);
284 t->abs_wr_8 = __C(CHIP,_mem_write_region_8);
287 t->abs_sm_1 = __C(CHIP,_mem_set_multi_1);
288 t->abs_sm_2 = __C(CHIP,_mem_set_multi_2);
289 t->abs_sm_4 = __C(CHIP,_mem_set_multi_4);
290 t->abs_sm_8 = __C(CHIP,_mem_set_multi_8);
293 t->abs_sr_1 = __C(CHIP,_mem_set_region_1);
294 t->abs_sr_2 = __C(CHIP,_mem_set_region_2);
295 t->abs_sr_4 = __C(CHIP,_mem_set_region_4);
296 t->abs_sr_8 = __C(CHIP,_mem_set_region_8);
299 t->abs_c_1 = __C(CHIP,_mem_copy_region_1);
300 t->abs_c_2 = __C(CHIP,_mem_copy_region_2);
301 t->abs_c_4 = __C(CHIP,_mem_copy_region_4);
302 t->abs_c_8 = __C(CHIP,_mem_copy_region_8);
304 ex = extent_create(__S(__C(CHIP,_bus_mem)), 0x0UL, 0xffffffffUL,
312 __C(CHIP,_mem_translate)(
325 __C(CHIP,_mem_get_window)(
343 panic(__S(__C(CHIP,_mem_get_window)) ": invalid window %d",
351 __C(CHIP,_mem_map)(
385 __C(CHIP,_mem_unmap)(
411 __S(__C(CHIP,_mem_unmap)), memaddr, memaddr + memsize - 1,
420 __C(CHIP,_mem_subregion)(
433 __C(CHIP,_mem_alloc)(
475 __C(CHIP,_mem_free)(
482 __C(CHIP,_mem_unmap)(v, bsh, size, 1);
486 __C(CHIP,_mem_vaddr)(
495 __C(CHIP,_mem_mmap)(
507 __C(CHIP,_mem_barrier)(
522 __C(CHIP,_mem_read_1)(
535 __C(CHIP,_mem_read_2)(
545 panic(__S(__C(CHIP,_mem_read_2)) ": addr 0x%lx not aligned",
553 __C(CHIP,_mem_read_4)(
563 panic(__S(__C(CHIP,_mem_read_4)) ": addr 0x%lx not aligned",
571 __C(CHIP,_mem_read_8)(
580 panic("%s not implemented", __S(__C(CHIP,_mem_read_8)));
585 __C(__C(CHIP,_mem_read_multi_),BYTES)( \
594 __C(CHIP,_mem_barrier)(v, h, o, sizeof *a, \
596 *a++ = __C(__C(CHIP,_mem_read_),BYTES)(v, h, o); \
606 __C(__C(CHIP,_mem_read_region_),BYTES)( \
615 *a++ = __C(__C(CHIP,_mem_read_),BYTES)(v, h, o); \
625 __C(CHIP,_mem_write_1)(
639 __C(CHIP,_mem_write_2)(
650 panic(__S(__C(CHIP,_mem_write_2)) ": addr 0x%lx not aligned",
658 __C(CHIP,_mem_write_4)(
669 panic(__S(__C(CHIP,_mem_write_4)) ": addr 0x%lx not aligned",
677 __C(CHIP,_mem_write_8)(
685 panic("%s not implemented", __S(__C(CHIP,_mem_write_8)));
691 __C(__C(CHIP,_mem_write_multi_),BYTES)( \
700 __C(__C(CHIP,_mem_write_),BYTES)(v, h, o, *a++); \
701 __C(CHIP,_mem_barrier)(v, h, o, sizeof *a, \
712 __C(__C(CHIP,_mem_write_region_),BYTES)( \
721 __C(__C(CHIP,_mem_write_),BYTES)(v, h, o, *a++); \
732 __C(__C(CHIP,_mem_set_multi_),BYTES)( \
741 __C(__C(CHIP,_mem_write_),BYTES)(v, h, o, val); \
742 __C(CHIP,_mem_barrier)(v, h, o, sizeof val, \
753 __C(__C(CHIP,_mem_set_region_),BYTES)( \
762 __C(__C(CHIP,_mem_write_),BYTES)(v, h, o, val); \
773 __C(__C(CHIP,_mem_copy_region_),BYTES)( \
786 __C(__C(CHIP,_mem_write_),BYTES)(v, h2, o2 + o, \
787 __C(__C(CHIP,_mem_read_),BYTES)(v, h1, o1 + o)); \
792 __C(__C(CHIP,_mem_write_),BYTES)(v, h2, o2 + o, \
793 __C(__C(CHIP,_mem_read_),BYTES)(v, h1, o1 + o)); \