Lines Matching defs:__C
92 #define __C(A,B) __CONCAT(A,B)
96 int __C(CHIP,_mem_map)(void *, bus_addr_t, bus_size_t, int,
98 void __C(CHIP,_mem_unmap)(void *, bus_space_handle_t,
100 int __C(CHIP,_mem_subregion)(void *, bus_space_handle_t,
103 int __C(CHIP,_mem_translate)(void *, bus_addr_t, bus_size_t,
105 int __C(CHIP,_mem_get_window)(void *, int,
109 int __C(CHIP,_mem_alloc)(void *, bus_addr_t, bus_addr_t,
112 void __C(CHIP,_mem_free)(void *, bus_space_handle_t,
116 void * __C(CHIP,_mem_vaddr)(void *, bus_space_handle_t);
119 paddr_t __C(CHIP,_mem_mmap)(void *, bus_addr_t, off_t, int, int);
122 static inline void __C(CHIP,_mem_barrier)(void *, bus_space_handle_t,
126 static inline uint8_t __C(CHIP,_mem_read_1)(void *, bus_space_handle_t,
128 static inline uint16_t __C(CHIP,_mem_read_2)(void *, bus_space_handle_t,
130 static inline uint32_t __C(CHIP,_mem_read_4)(void *, bus_space_handle_t,
132 static inline uint64_t __C(CHIP,_mem_read_8)(void *, bus_space_handle_t,
136 void __C(CHIP,_mem_read_multi_1)(void *, bus_space_handle_t,
138 void __C(CHIP,_mem_read_multi_2)(void *, bus_space_handle_t,
140 void __C(CHIP,_mem_read_multi_4)(void *, bus_space_handle_t,
142 void __C(CHIP,_mem_read_multi_8)(void *, bus_space_handle_t,
146 void __C(CHIP,_mem_read_region_1)(void *, bus_space_handle_t,
148 void __C(CHIP,_mem_read_region_2)(void *, bus_space_handle_t,
150 void __C(CHIP,_mem_read_region_4)(void *, bus_space_handle_t,
152 void __C(CHIP,_mem_read_region_8)(void *, bus_space_handle_t,
156 static inline void __C(CHIP,_mem_write_1)(void *, bus_space_handle_t,
158 static inline void __C(CHIP,_mem_write_2)(void *, bus_space_handle_t,
160 static inline void __C(CHIP,_mem_write_4)(void *, bus_space_handle_t,
162 static inline void __C(CHIP,_mem_write_8)(void *, bus_space_handle_t,
166 void __C(CHIP,_mem_write_multi_1)(void *, bus_space_handle_t,
168 void __C(CHIP,_mem_write_multi_2)(void *, bus_space_handle_t,
170 void __C(CHIP,_mem_write_multi_4)(void *, bus_space_handle_t,
172 void __C(CHIP,_mem_write_multi_8)(void *, bus_space_handle_t,
176 void __C(CHIP,_mem_write_region_1)(void *, bus_space_handle_t,
178 void __C(CHIP,_mem_write_region_2)(void *, bus_space_handle_t,
180 void __C(CHIP,_mem_write_region_4)(void *, bus_space_handle_t,
182 void __C(CHIP,_mem_write_region_8)(void *, bus_space_handle_t,
186 void __C(CHIP,_mem_set_multi_1)(void *, bus_space_handle_t,
188 void __C(CHIP,_mem_set_multi_2)(void *, bus_space_handle_t,
190 void __C(CHIP,_mem_set_multi_4)(void *, bus_space_handle_t,
192 void __C(CHIP,_mem_set_multi_8)(void *, bus_space_handle_t,
196 void __C(CHIP,_mem_set_region_1)(void *, bus_space_handle_t,
198 void __C(CHIP,_mem_set_region_2)(void *, bus_space_handle_t,
200 void __C(CHIP,_mem_set_region_4)(void *, bus_space_handle_t,
202 void __C(CHIP,_mem_set_region_8)(void *, bus_space_handle_t,
206 void __C(CHIP,_mem_copy_region_1)(void *, bus_space_handle_t,
208 void __C(CHIP,_mem_copy_region_2)(void *, bus_space_handle_t,
210 void __C(CHIP,_mem_copy_region_4)(void *, bus_space_handle_t,
212 void __C(CHIP,_mem_copy_region_8)(void *, bus_space_handle_t,
218 __C(CHIP,_dmem_ex_storage)[EXTENT_FIXED_STORAGE_SIZE(8) / sizeof(long)];
219 #define CHIP_D_MEM_EX_STORE(v) (__C(CHIP,_dmem_ex_storage))
220 #define CHIP_D_MEM_EX_STORE_SIZE(v) (sizeof __C(CHIP,_dmem_ex_storage))
226 __C(CHIP,_smem_ex_storage)[EXTENT_FIXED_STORAGE_SIZE(8) / sizeof(long)];
227 #define CHIP_S_MEM_EX_STORE(v) (__C(CHIP,_smem_ex_storage))
228 #define CHIP_S_MEM_EX_STORE_SIZE(v) (sizeof __C(CHIP,_smem_ex_storage))
240 __C(CHIP,_bus_mem_init)(bus_space_tag_t t, void *v)
255 t->abs_map = __C(CHIP,_mem_map);
256 t->abs_unmap = __C(CHIP,_mem_unmap);
257 t->abs_subregion = __C(CHIP,_mem_subregion);
259 t->abs_translate = __C(CHIP,_mem_translate);
260 t->abs_get_window = __C(CHIP,_mem_get_window);
263 t->abs_alloc = __C(CHIP,_mem_alloc);
264 t->abs_free = __C(CHIP,_mem_free);
267 t->abs_vaddr = __C(CHIP,_mem_vaddr);
270 t->abs_mmap = __C(CHIP,_mem_mmap);
273 t->abs_barrier = __C(CHIP,_mem_barrier);
276 t->abs_r_1 = __C(CHIP,_mem_read_1);
277 t->abs_r_2 = __C(CHIP,_mem_read_2);
278 t->abs_r_4 = __C(CHIP,_mem_read_4);
279 t->abs_r_8 = __C(CHIP,_mem_read_8);
282 t->abs_rm_1 = __C(CHIP,_mem_read_multi_1);
283 t->abs_rm_2 = __C(CHIP,_mem_read_multi_2);
284 t->abs_rm_4 = __C(CHIP,_mem_read_multi_4);
285 t->abs_rm_8 = __C(CHIP,_mem_read_multi_8);
288 t->abs_rr_1 = __C(CHIP,_mem_read_region_1);
289 t->abs_rr_2 = __C(CHIP,_mem_read_region_2);
290 t->abs_rr_4 = __C(CHIP,_mem_read_region_4);
291 t->abs_rr_8 = __C(CHIP,_mem_read_region_8);
294 t->abs_w_1 = __C(CHIP,_mem_write_1);
295 t->abs_w_2 = __C(CHIP,_mem_write_2);
296 t->abs_w_4 = __C(CHIP,_mem_write_4);
297 t->abs_w_8 = __C(CHIP,_mem_write_8);
300 t->abs_wm_1 = __C(CHIP,_mem_write_multi_1);
301 t->abs_wm_2 = __C(CHIP,_mem_write_multi_2);
302 t->abs_wm_4 = __C(CHIP,_mem_write_multi_4);
303 t->abs_wm_8 = __C(CHIP,_mem_write_multi_8);
306 t->abs_wr_1 = __C(CHIP,_mem_write_region_1);
307 t->abs_wr_2 = __C(CHIP,_mem_write_region_2);
308 t->abs_wr_4 = __C(CHIP,_mem_write_region_4);
309 t->abs_wr_8 = __C(CHIP,_mem_write_region_8);
312 t->abs_sm_1 = __C(CHIP,_mem_set_multi_1);
313 t->abs_sm_2 = __C(CHIP,_mem_set_multi_2);
314 t->abs_sm_4 = __C(CHIP,_mem_set_multi_4);
315 t->abs_sm_8 = __C(CHIP,_mem_set_multi_8);
318 t->abs_sr_1 = __C(CHIP,_mem_set_region_1);
319 t->abs_sr_2 = __C(CHIP,_mem_set_region_2);
320 t->abs_sr_4 = __C(CHIP,_mem_set_region_4);
321 t->abs_sr_8 = __C(CHIP,_mem_set_region_8);
324 t->abs_c_1 = __C(CHIP,_mem_copy_region_1);
325 t->abs_c_2 = __C(CHIP,_mem_copy_region_2);
326 t->abs_c_4 = __C(CHIP,_mem_copy_region_4);
327 t->abs_c_8 = __C(CHIP,_mem_copy_region_8);
331 dex = extent_create(__S(__C(CHIP,_bus_dmem)), 0x0UL,
354 sex = extent_create(__S(__C(CHIP,_bus_smem)), 0x0UL,
410 static int __C(CHIP,_xlate_addr_to_dense_handle)(void *,
412 static int __C(CHIP,_xlate_dense_handle_to_addr)(void *,
415 static int __C(CHIP,_xlate_addr_to_sparse_handle)(void *,
417 static int __C(CHIP,_xlate_sparse_handle_to_addr)(void *,
422 __C(CHIP,_xlate_addr_to_dense_handle)(void *v, bus_addr_t memaddr,
439 __C(CHIP,_xlate_dense_handle_to_addr)(void *v, bus_space_handle_t memh,
458 __C(CHIP,_xlate_addr_to_sparse_handle)(void *v, bus_addr_t memaddr,
499 __C(CHIP,_xlate_sparse_handle_to_addr)(void *v, bus_space_handle_t memh,
533 __C(CHIP,_mem_translate)(void *v, bus_addr_t memaddr, bus_size_t memlen,
542 __C(CHIP,_mem_get_window)(void *v, int window,
608 __C(CHIP,_mem_map)(void *v, bus_addr_t memaddr, bus_size_t memsize,
626 if (!__C(CHIP,_xlate_addr_to_dense_handle)(v, memaddr, NULL)) {
648 if (!__C(CHIP,_xlate_addr_to_sparse_handle)(v, memaddr, NULL)) {
695 if (didd && !__C(CHIP,_xlate_addr_to_dense_handle)(v, memaddr, &dh)) {
698 printf("%s: window[1]=0x%lx-0x%lx\n", __S(__C(CHIP,_mem_map)),
702 __S(__C(CHIP,_mem_map)), memaddr);
706 if (dids && !__C(CHIP,_xlate_addr_to_sparse_handle)(v, memaddr, &sh)) {
709 printf("%s: window[1]=0x%lx-0x%lx\n", __S(__C(CHIP,_mem_map)),
713 printf("%s: window[2]=0x%lx-0x%lx\n", __S(__C(CHIP,_mem_map)),
717 printf("%s: window[3]=0x%lx-0x%lx\n", __S(__C(CHIP,_mem_map)),
721 __S(__C(CHIP,_mem_map)), memaddr);
742 __S(__C(CHIP,_mem_map)), memaddr,
754 __S(__C(CHIP,_mem_map)), memaddr,
774 __C(CHIP,_mem_unmap)(void *v, bus_space_handle_t memh,
800 haves = __C(CHIP,_xlate_sparse_handle_to_addr)(v, memh,
804 haved = __C(CHIP,_xlate_dense_handle_to_addr)(v, memh,
810 __S(__C(CHIP,_mem_unmap)), sparse ? "sparse" : "dense",
818 haved = __C(CHIP,_xlate_addr_to_dense_handle)(v, memaddr,
821 haves = __C(CHIP,_xlate_addr_to_sparse_handle)(v, memaddr,
836 __S(__C(CHIP,_mem_map)), memaddr,
843 __S(__C(CHIP,_mem_map)), memaddr,
849 __C(CHIP,_mem_subregion)(void *v, bus_space_handle_t memh,
858 __C(CHIP,_mem_alloc)(void *v, bus_addr_t rstart, bus_addr_t rend,
864 panic("%s not implemented", __S(__C(CHIP,_mem_alloc)));
868 __C(CHIP,_mem_free)(void *v, bus_space_handle_t bsh, bus_size_t size)
872 panic("%s not implemented", __S(__C(CHIP,_mem_free)));
876 __C(CHIP,_mem_vaddr)(void *v, bus_space_handle_t bsh)
890 __C(CHIP,_mem_mmap)(void *v, bus_addr_t addr, off_t off, int prot, int flags)
897 if (__C(CHIP,_xlate_addr_to_dense_handle)(v, addr + off, &dh)) {
902 if (__C(CHIP,_xlate_addr_to_sparse_handle)(v, addr + off, &sh)) {
919 __C(CHIP,_mem_barrier)(void *v, bus_space_handle_t h,
930 __C(CHIP,_mem_read_1)(void *v, bus_space_handle_t memh, bus_size_t off)
955 __C(CHIP,_mem_read_2)(void *v, bus_space_handle_t memh, bus_size_t off)
980 __C(CHIP,_mem_read_4)(void *v, bus_space_handle_t memh, bus_size_t off)
1009 __C(CHIP,_mem_read_8)(void *v, bus_space_handle_t memh, bus_size_t off)
1020 panic("%s not implemented", __S(__C(CHIP,_mem_read_8)));
1025 __C(__C(CHIP,_mem_read_multi_),BYTES)(void *v, bus_space_handle_t h, bus_size_t o, TYPE *a, bus_size_t c) \
1029 __C(CHIP,_mem_barrier)(v, h, o, sizeof *a, \
1031 *a++ = __C(__C(CHIP,_mem_read_),BYTES)(v, h, o); \
1041 __C(__C(CHIP,_mem_read_region_),BYTES)(void *v, bus_space_handle_t h, bus_size_t o, TYPE *a, bus_size_t c) \
1045 *a++ = __C(__C(CHIP,_mem_read_),BYTES)(v, h, o); \
1055 __C(CHIP,_mem_write_1)(void *v, bus_space_handle_t memh, bus_size_t off, uint8_t val)
1078 __C(CHIP,_mem_write_2)(void *v, bus_space_handle_t memh, bus_size_t off, uint16_t val)
1101 __C(CHIP,_mem_write_4)(void *v, bus_space_handle_t memh, bus_size_t off, uint32_t val)
1124 __C(CHIP,_mem_write_8)(void *v, bus_space_handle_t memh, bus_size_t off, uint64_t val)
1135 __S(__C(CHIP,_mem_write_8)));
1142 __C(__C(CHIP,_mem_write_multi_),BYTES)(void *v, bus_space_handle_t h, bus_size_t o, const TYPE *a, bus_size_t c) \
1146 __C(__C(CHIP,_mem_write_),BYTES)(v, h, o, *a++); \
1147 __C(CHIP,_mem_barrier)(v, h, o, sizeof *a, \
1158 __C(__C(CHIP,_mem_write_region_),BYTES)(void *v, bus_space_handle_t h, bus_size_t o, const TYPE *a, bus_size_t c) \
1162 __C(__C(CHIP,_mem_write_),BYTES)(v, h, o, *a++); \
1173 __C(__C(CHIP,_mem_set_multi_),BYTES)(void *v, bus_space_handle_t h, bus_size_t o, TYPE val, bus_size_t c) \
1177 __C(__C(CHIP,_mem_write_),BYTES)(v, h, o, val); \
1178 __C(CHIP,_mem_barrier)(v, h, o, sizeof val, \
1189 __C(__C(CHIP,_mem_set_region_),BYTES)(void *v, bus_space_handle_t h, bus_size_t o, TYPE val, bus_size_t c) \
1193 __C(__C(CHIP,_mem_write_),BYTES)(v, h, o, val); \
1204 __C(__C(CHIP,_mem_copy_region_),BYTES)(void *v, bus_space_handle_t h1, bus_size_t o1, bus_space_handle_t h2, bus_size_t o2, bus_size_t c) \
1216 __C(__C(CHIP,_mem_write_),BYTES)(v, h2, o2 + o, \
1217 __C(__C(CHIP,_mem_read_),BYTES)(v, h1, o1 + o)); \
1221 __C(__C(CHIP,_mem_write_),BYTES)(v, h2, o2 + o, \
1222 __C(__C(CHIP,_mem_read_),BYTES)(v, h1, o1 + o)); \