Lines Matching refs:__C
85 #define __C(A,B) __CONCAT(A,B)
89 int __C(CHIP,_io_map)(void *, bus_addr_t, bus_size_t, int,
91 void __C(CHIP,_io_unmap)(void *, bus_space_handle_t,
93 int __C(CHIP,_io_subregion)(void *, bus_space_handle_t,
96 int __C(CHIP,_io_translate)(void *, bus_addr_t, bus_size_t,
98 int __C(CHIP,_io_get_window)(void *, int,
102 int __C(CHIP,_io_alloc)(void *, bus_addr_t, bus_addr_t,
105 void __C(CHIP,_io_free)(void *, bus_space_handle_t,
109 void * __C(CHIP,_io_vaddr)(void *, bus_space_handle_t);
112 paddr_t __C(CHIP,_io_mmap)(void *, bus_addr_t, off_t, int, int);
115 static inline void __C(CHIP,_io_barrier)(void *, bus_space_handle_t,
119 static inline uint8_t __C(CHIP,_io_read_1)(void *, bus_space_handle_t,
121 static inline uint16_t __C(CHIP,_io_read_2)(void *, bus_space_handle_t,
123 static inline uint32_t __C(CHIP,_io_read_4)(void *, bus_space_handle_t,
125 static inline uint64_t __C(CHIP,_io_read_8)(void *, bus_space_handle_t,
129 void __C(CHIP,_io_read_multi_1)(void *, bus_space_handle_t,
131 void __C(CHIP,_io_read_multi_2)(void *, bus_space_handle_t,
133 void __C(CHIP,_io_read_multi_4)(void *, bus_space_handle_t,
135 void __C(CHIP,_io_read_multi_8)(void *, bus_space_handle_t,
139 void __C(CHIP,_io_read_region_1)(void *, bus_space_handle_t,
141 void __C(CHIP,_io_read_region_2)(void *, bus_space_handle_t,
143 void __C(CHIP,_io_read_region_4)(void *, bus_space_handle_t,
145 void __C(CHIP,_io_read_region_8)(void *, bus_space_handle_t,
149 static inline void __C(CHIP,_io_write_1)(void *, bus_space_handle_t,
151 static inline void __C(CHIP,_io_write_2)(void *, bus_space_handle_t,
153 static inline void __C(CHIP,_io_write_4)(void *, bus_space_handle_t,
155 static inline void __C(CHIP,_io_write_8)(void *, bus_space_handle_t,
159 void __C(CHIP,_io_write_multi_1)(void *, bus_space_handle_t,
161 void __C(CHIP,_io_write_multi_2)(void *, bus_space_handle_t,
163 void __C(CHIP,_io_write_multi_4)(void *, bus_space_handle_t,
165 void __C(CHIP,_io_write_multi_8)(void *, bus_space_handle_t,
169 void __C(CHIP,_io_write_region_1)(void *, bus_space_handle_t,
171 void __C(CHIP,_io_write_region_2)(void *, bus_space_handle_t,
173 void __C(CHIP,_io_write_region_4)(void *, bus_space_handle_t,
175 void __C(CHIP,_io_write_region_8)(void *, bus_space_handle_t,
179 void __C(CHIP,_io_set_multi_1)(void *, bus_space_handle_t,
181 void __C(CHIP,_io_set_multi_2)(void *, bus_space_handle_t,
183 void __C(CHIP,_io_set_multi_4)(void *, bus_space_handle_t,
185 void __C(CHIP,_io_set_multi_8)(void *, bus_space_handle_t,
189 void __C(CHIP,_io_set_region_1)(void *, bus_space_handle_t,
191 void __C(CHIP,_io_set_region_2)(void *, bus_space_handle_t,
193 void __C(CHIP,_io_set_region_4)(void *, bus_space_handle_t,
195 void __C(CHIP,_io_set_region_8)(void *, bus_space_handle_t,
199 void __C(CHIP,_io_copy_region_1)(void *, bus_space_handle_t,
201 void __C(CHIP,_io_copy_region_2)(void *, bus_space_handle_t,
203 void __C(CHIP,_io_copy_region_4)(void *, bus_space_handle_t,
205 void __C(CHIP,_io_copy_region_8)(void *, bus_space_handle_t,
210 __C(CHIP,_io_ex_storage)[EXTENT_FIXED_STORAGE_SIZE(8) / sizeof(long)];
211 #define CHIP_IO_EX_STORE(v) (__C(CHIP, _io_ex_storage))
212 #define CHIP_IO_EX_STORE_SIZE(v) (sizeof __C(CHIP, _io_ex_storage))
216 __C(CHIP,_bus_io_init)(
230 t->abs_map = __C(CHIP,_io_map);
231 t->abs_unmap = __C(CHIP,_io_unmap);
232 t->abs_subregion = __C(CHIP,_io_subregion);
234 t->abs_translate = __C(CHIP,_io_translate);
235 t->abs_get_window = __C(CHIP,_io_get_window);
238 t->abs_alloc = __C(CHIP,_io_alloc);
239 t->abs_free = __C(CHIP,_io_free);
242 t->abs_vaddr = __C(CHIP,_io_vaddr);
245 t->abs_mmap = __C(CHIP,_io_mmap);
248 t->abs_barrier = __C(CHIP,_io_barrier);
251 t->abs_r_1 = __C(CHIP,_io_read_1);
252 t->abs_r_2 = __C(CHIP,_io_read_2);
253 t->abs_r_4 = __C(CHIP,_io_read_4);
254 t->abs_r_8 = __C(CHIP,_io_read_8);
257 t->abs_rm_1 = __C(CHIP,_io_read_multi_1);
258 t->abs_rm_2 = __C(CHIP,_io_read_multi_2);
259 t->abs_rm_4 = __C(CHIP,_io_read_multi_4);
260 t->abs_rm_8 = __C(CHIP,_io_read_multi_8);
263 t->abs_rr_1 = __C(CHIP,_io_read_region_1);
264 t->abs_rr_2 = __C(CHIP,_io_read_region_2);
265 t->abs_rr_4 = __C(CHIP,_io_read_region_4);
266 t->abs_rr_8 = __C(CHIP,_io_read_region_8);
269 t->abs_w_1 = __C(CHIP,_io_write_1);
270 t->abs_w_2 = __C(CHIP,_io_write_2);
271 t->abs_w_4 = __C(CHIP,_io_write_4);
272 t->abs_w_8 = __C(CHIP,_io_write_8);
275 t->abs_wm_1 = __C(CHIP,_io_write_multi_1);
276 t->abs_wm_2 = __C(CHIP,_io_write_multi_2);
277 t->abs_wm_4 = __C(CHIP,_io_write_multi_4);
278 t->abs_wm_8 = __C(CHIP,_io_write_multi_8);
281 t->abs_wr_1 = __C(CHIP,_io_write_region_1);
282 t->abs_wr_2 = __C(CHIP,_io_write_region_2);
283 t->abs_wr_4 = __C(CHIP,_io_write_region_4);
284 t->abs_wr_8 = __C(CHIP,_io_write_region_8);
287 t->abs_sm_1 = __C(CHIP,_io_set_multi_1);
288 t->abs_sm_2 = __C(CHIP,_io_set_multi_2);
289 t->abs_sm_4 = __C(CHIP,_io_set_multi_4);
290 t->abs_sm_8 = __C(CHIP,_io_set_multi_8);
293 t->abs_sr_1 = __C(CHIP,_io_set_region_1);
294 t->abs_sr_2 = __C(CHIP,_io_set_region_2);
295 t->abs_sr_4 = __C(CHIP,_io_set_region_4);
296 t->abs_sr_8 = __C(CHIP,_io_set_region_8);
299 t->abs_c_1 = __C(CHIP,_io_copy_region_1);
300 t->abs_c_2 = __C(CHIP,_io_copy_region_2);
301 t->abs_c_4 = __C(CHIP,_io_copy_region_4);
302 t->abs_c_8 = __C(CHIP,_io_copy_region_8);
304 ex = extent_create(__S(__C(CHIP,_bus_io)), 0x0UL, 0xffffffffUL,
312 __C(CHIP,_io_translate)(
327 return (__C(CHIP,_io_get_window)(v, 0, abst));
331 __C(CHIP,_io_get_window)(
349 panic(__S(__C(CHIP,_io_get_window)) ": invalid window %d",
357 __C(CHIP,_io_map)(
371 error = __C(CHIP,_io_translate)(v, ioaddr, iosize, flags, &abst);
398 __C(CHIP,_io_unmap)(
423 __S(__C(CHIP,_io_unmap)), ioaddr, ioaddr + iosize - 1,
432 __C(CHIP,_io_subregion)(
445 __C(CHIP,_io_alloc)(
489 error = __C(CHIP,_io_translate)(v, ioaddr, size, flags, &abst);
503 __C(CHIP,_io_free)(
510 __C(CHIP,_io_unmap)(v, bsh, size, 1);
514 __C(CHIP,_io_vaddr)(
526 __C(CHIP,_io_mmap)(
539 __C(CHIP,_io_barrier)(
554 __C(CHIP,_io_read_1)(
567 __C(CHIP,_io_read_2)(
577 panic(__S(__C(CHIP,_io_read_2)) ": addr 0x%lx not aligned",
585 __C(CHIP,_io_read_4)(
595 panic(__S(__C(CHIP,_io_read_4)) ": addr 0x%lx not aligned",
603 __C(CHIP,_io_read_8)(
610 panic("%s not implemented", __S(__C(CHIP,_io_read_8)));
615 __C(__C(CHIP,_io_read_multi_),BYTES)( \
624 __C(CHIP,_io_barrier)(v, h, o, sizeof *a, \
626 *a++ = __C(__C(CHIP,_io_read_),BYTES)(v, h, o); \
636 __C(__C(CHIP,_io_read_region_),BYTES)( \
645 *a++ = __C(__C(CHIP,_io_read_),BYTES)(v, h, o); \
655 __C(CHIP,_io_write_1)(
669 __C(CHIP,_io_write_2)(
680 panic(__S(__C(CHIP,_io_write_2)) ": addr 0x%lx not aligned",
688 __C(CHIP,_io_write_4)(
699 panic(__S(__C(CHIP,_io_write_4)) ": addr 0x%lx not aligned",
707 __C(CHIP,_io_write_8)(
715 panic("%s not implemented", __S(__C(CHIP,_io_write_8)));
721 __C(__C(CHIP,_io_write_multi_),BYTES)( \
730 __C(__C(CHIP,_io_write_),BYTES)(v, h, o, *a++); \
731 __C(CHIP,_io_barrier)(v, h, o, sizeof *a, \
742 __C(__C(CHIP,_io_write_region_),BYTES)( \
751 __C(__C(CHIP,_io_write_),BYTES)(v, h, o, *a++); \
762 __C(__C(CHIP,_io_set_multi_),BYTES)( \
771 __C(__C(CHIP,_io_write_),BYTES)(v, h, o, val); \
772 __C(CHIP,_io_barrier)(v, h, o, sizeof val, \
783 __C(__C(CHIP,_io_set_region_),BYTES)( \
792 __C(__C(CHIP,_io_write_),BYTES)(v, h, o, val); \
803 __C(__C(CHIP,_io_copy_region_),BYTES)( \
816 __C(__C(CHIP,_io_write_),BYTES)(v, h2, o2 + o, \
817 __C(__C(CHIP,_io_read_),BYTES)(v, h1, o1 + o)); \
822 __C(__C(CHIP,_io_write_),BYTES)(v, h2, o2 + o, \
823 __C(__C(CHIP,_io_read_),BYTES)(v, h1, o1 + o)); \