Lines Matching refs:BITS
340 #define __BS_TYPENAME(BITS) __CONCAT3(uint,BITS,_t)
347 #define __BS_ADDR(t, h, offset, BITS, BYTES) \
348 ((volatile __CONCAT3(u_int,BITS,_t) *) \
360 #define __bus_space_read(BYTES,BITS) \
361 static __inline __CONCAT3(u_int,BITS,_t) \
365 return (*__BS_ADDR(bst, bsh, offset, BITS, BYTES)); \
382 #define __bus_space_read_multi(BYTES,BITS) \
385 __BS_TYPENAME(BITS) *, size_t); \
392 __BS_TYPENAME(BITS) *a, \
416 #define __bus_space_read_region(BYTES,BITS) \
419 __BS_TYPENAME(BITS) *, size_t); \
426 __BS_TYPENAME(BITS) *a, \
451 #define __bus_space_write(BYTES,BITS) \
455 bus_size_t offset, __CONCAT3(u_int,BITS,_t) data) \
457 *__BS_ADDR(bst, bsh, offset, BITS, BYTES) = data; \
475 #define __bus_space_write_multi(BYTES,BITS) \
478 const __BS_TYPENAME(BITS) *, size_t); \
485 const __BS_TYPENAME(BITS) *a, \
508 #define __bus_space_write_region(BYTES,BITS) \
511 const __BS_TYPENAME(BITS) *, size_t); \
518 const __BS_TYPENAME(BITS) *a, \
543 #define __bus_space_set_multi(BYTES,BITS) \
546 __BS_TYPENAME(BITS), size_t); \
553 __BS_TYPENAME(BITS) v, \
576 #define __bus_space_set_region(BYTES,BITS) \
579 __BS_TYPENAME(BITS), size_t); \
586 __BS_TYPENAME(BITS) v, \
670 #define __BS_BSWAP(bst, val, BITS) \
671 ((bst->bs_bswap) ? __CONCAT(bswap,BITS)(val) : (val))
674 #define __bus_space_read_stream(BYTES,BITS) \
675 static __inline __BS_TYPENAME(BITS) \
679 register __BS_TYPENAME(BITS) val = \
682 return __BS_BSWAP(bst, val, BITS); \
690 #define __bus_space_write_stream(BYTES,BITS) \
694 bus_size_t offset, __CONCAT3(u_int,BITS,_t) data) \
696 *__BS_ADDR(bst, bsh, offset, BITS, BYTES) = \
697 __BS_BSWAP(bst, data, BITS); \