/linux-2.4.37.9/include/asm-alpha/ |
D | jensen.h | 94 __EXTERN_INLINE void jensen_set_hae(unsigned long addr) in jensen_set_hae() argument 97 addr >>= 25; in jensen_set_hae() 98 if (addr != alpha_mv.hae_cache) in jensen_set_hae() 99 set_hae(addr); in jensen_set_hae() 116 static inline unsigned int jensen_local_inb(unsigned long addr) in jensen_local_inb() argument 118 return 0xff & *(vuip)((addr << 9) + EISA_VL82C106); in jensen_local_inb() 121 static inline void jensen_local_outb(u8 b, unsigned long addr) in jensen_local_outb() argument 123 *(vuip)((addr << 9) + EISA_VL82C106) = b; in jensen_local_outb() 127 static inline unsigned int jensen_bus_inb(unsigned long addr) in jensen_bus_inb() argument 132 result = *(volatile int *)((addr << 7) + EISA_IO + 0x00); in jensen_bus_inb() [all …]
|
/linux-2.4.37.9/include/asm-ia64/sn/sn2/ |
D | io.h | 31 volatile unsigned char *addr; in __sn_inb() local 34 if ((addr = sn_io_addr(port))) { in __sn_inb() 35 ret = *addr; in __sn_inb() 37 sn_dma_flush((unsigned long)addr); in __sn_inb() 45 volatile unsigned short *addr; in __sn_inw() local 48 if ((addr = sn_io_addr(port))) { in __sn_inw() 49 ret = *addr; in __sn_inw() 51 sn_dma_flush((unsigned long)addr); in __sn_inw() 59 volatile unsigned int *addr; in __sn_inl() local 62 if ((addr = sn_io_addr(port))) { in __sn_inl() [all …]
|
/linux-2.4.37.9/arch/sparc/mm/ |
D | btfixup.c | 52 static void __init set_addr(unsigned int *addr, unsigned int q1, int fmangled, unsigned int value) in set_addr() argument 55 *addr = value; in set_addr() 58 if (*addr == 0x01000000) { in set_addr() 61 } else if (addr[-1] == *q) { in set_addr() 63 addr[-1] = value; in set_addr() 66 prom_printf(wrong_setaddr, addr-1, addr[-1], *addr, *q, value); in set_addr() 72 static __inline__ void set_addr(unsigned int *addr, unsigned int q1, int fmangled, unsigned int val… in set_addr() argument 74 *addr = value; in set_addr() 83 unsigned *addr; in btfixup() local 142 addr = (unsigned *)*q; in btfixup() [all …]
|
/linux-2.4.37.9/include/asm-parisc/ |
D | bitops.h | 36 unsigned long *addr = (unsigned long *) address; in set_bit() local 39 addr += (nr >> SHIFT_PER_LONG); in set_bit() 41 SPIN_LOCK_IRQSAVE(ATOMIC_HASH(addr), flags); in set_bit() 42 *addr |= mask; in set_bit() 43 SPIN_UNLOCK_IRQRESTORE(ATOMIC_HASH(addr), flags); in set_bit() 49 unsigned long *addr = (unsigned long *) address; in __set_bit() local 51 addr += (nr >> SHIFT_PER_LONG); in __set_bit() 53 *addr |= mask; in __set_bit() 59 unsigned long *addr = (unsigned long *) address; in clear_bit() local 62 addr += (nr >> SHIFT_PER_LONG); in clear_bit() [all …]
|
D | io.h | 40 extern void iounmap(void *addr); 47 extern __inline__ unsigned char __raw_readb(unsigned long addr) in __raw_readb() argument 56 : "=&r" (flags), "=r" (ret) : "r" (addr) ); in __raw_readb() 61 extern __inline__ unsigned short __raw_readw(unsigned long addr) in __raw_readw() argument 70 : "=&r" (flags), "=r" (ret) : "r" (addr) ); in __raw_readw() 75 extern __inline__ unsigned int __raw_readl(unsigned long addr) in __raw_readl() argument 81 : "=r" (ret) : "r" (addr) ); in __raw_readl() 86 extern __inline__ unsigned long long __raw_readq(unsigned long addr) in __raw_readq() argument 92 : "=r" (ret) : "r" (addr) ); in __raw_readq() 95 ret = ((u64) __raw_readl(addr)) << 32; in __raw_readq() [all …]
|
/linux-2.4.37.9/include/asm-sparc/ |
D | io.h | 31 static __inline__ u8 readb(unsigned long addr) in readb() argument 33 return *(volatile u8 *)addr; in readb() 36 static __inline__ u16 readw(unsigned long addr) in readw() argument 38 return flip_word(*(volatile u16 *)addr); in readw() 41 static __inline__ u32 readl(unsigned long addr) in readl() argument 43 return flip_dword(*(volatile u32 *)addr); in readl() 46 static __inline__ void writeb(u8 b, unsigned long addr) in writeb() argument 48 *(volatile u8 *)addr = b; in writeb() 51 static __inline__ void writew(u16 b, unsigned long addr) in writew() argument 53 *(volatile u16 *)addr = flip_word(b); in writew() [all …]
|
D | swift.h | 30 static inline void swift_inv_insn_tag(unsigned long addr) in swift_inv_insn_tag() argument 34 : "r" (addr), "i" (ASI_M_TXTC_TAG) in swift_inv_insn_tag() 39 static inline void swift_inv_data_tag(unsigned long addr) in swift_inv_data_tag() argument 43 : "r" (addr), "i" (ASI_M_DATAC_TAG) in swift_inv_data_tag() 49 unsigned long addr; in swift_flush_dcache() local 51 for (addr = 0; addr < 0x2000; addr += 0x10) in swift_flush_dcache() 52 swift_inv_data_tag(addr); in swift_flush_dcache() 57 unsigned long addr; in swift_flush_icache() local 59 for (addr = 0; addr < 0x4000; addr += 0x20) in swift_flush_icache() 60 swift_inv_insn_tag(addr); in swift_flush_icache() [all …]
|
/linux-2.4.37.9/include/asm-s390/ |
D | bitops.h | 55 static __inline__ void set_bit_cs(int nr, volatile void * addr) in set_bit_cs() argument 78 : "+a" (nr), "+a" (addr), "=&a" (bits), "=&d" (mask) : in set_bit_cs() 85 static __inline__ void clear_bit_cs(int nr, volatile void * addr) in clear_bit_cs() argument 110 : "+a" (nr), "+a" (addr), "=&a" (bits), "=&d" (mask) in clear_bit_cs() 117 static __inline__ void change_bit_cs(int nr, volatile void * addr) in change_bit_cs() argument 140 : "+a" (nr), "+a" (addr), "=&a" (bits), "=&d" (mask) : in change_bit_cs() 147 static __inline__ int test_and_set_bit_cs(int nr, volatile void * addr) in test_and_set_bit_cs() argument 171 : "+a" (nr), "+a" (addr), "=&a" (bits), "=&d" (mask) : in test_and_set_bit_cs() 179 static __inline__ int test_and_clear_bit_cs(int nr, volatile void * addr) in test_and_clear_bit_cs() argument 206 : "+a" (nr), "+a" (addr), "=&a" (bits), "=&d" (mask) in test_and_clear_bit_cs() [all …]
|
/linux-2.4.37.9/include/asm-s390x/ |
D | bitops.h | 59 static __inline__ void set_bit_cs(unsigned long nr, volatile void * addr) in set_bit_cs() argument 82 : "+a" (nr), "+a" (addr), "=&a" (bits), "=&d" (mask) : in set_bit_cs() 89 static __inline__ void clear_bit_cs(unsigned long nr, volatile void * addr) in clear_bit_cs() argument 113 : "+a" (nr), "+a" (addr), "=&a" (bits), "=&d" (mask) : in clear_bit_cs() 120 static __inline__ void change_bit_cs(unsigned long nr, volatile void * addr) in change_bit_cs() argument 143 : "+a" (nr), "+a" (addr), "=&a" (bits), "=&d" (mask) : in change_bit_cs() 151 test_and_set_bit_cs(unsigned long nr, volatile void * addr) in test_and_set_bit_cs() argument 175 : "+a" (nr), "+a" (addr), "=&a" (bits), "=&d" (mask) : in test_and_set_bit_cs() 184 test_and_clear_bit_cs(unsigned long nr, volatile void * addr) in test_and_clear_bit_cs() argument 208 : "+a" (nr), "+a" (addr), "=&a" (bits), "=&d" (mask) : in test_and_clear_bit_cs() [all …]
|
/linux-2.4.37.9/include/asm-mips/ |
D | r4kcache.h | 18 #define cache_op(op,addr) \ argument 26 : "i" (op), "m" (*(unsigned char *)(addr))) 28 static inline void flush_icache_line_indexed(unsigned long addr) in flush_icache_line_indexed() argument 30 cache_op(Index_Invalidate_I, addr); in flush_icache_line_indexed() 33 static inline void flush_dcache_line_indexed(unsigned long addr) in flush_dcache_line_indexed() argument 35 cache_op(Index_Writeback_Inv_D, addr); in flush_dcache_line_indexed() 38 static inline void flush_scache_line_indexed(unsigned long addr) in flush_scache_line_indexed() argument 40 cache_op(Index_Writeback_Inv_SD, addr); in flush_scache_line_indexed() 43 static inline void flush_icache_line(unsigned long addr) in flush_icache_line() argument 45 cache_op(Hit_Invalidate_I, addr); in flush_icache_line() [all …]
|
D | io.h | 24 #define bus_to_baddr(bus, addr) (bus_to_baddr[(bus)->number] + (addr)) argument 25 #define baddr_to_bus(bus, addr) ((addr) - bus_to_baddr[(bus)->number]) argument 28 #define bus_to_baddr(bus, addr) (addr) argument 29 #define baddr_to_bus(bus, addr) (addr) argument 114 extern void iounmap(void *addr); 121 #define readb(addr) (*(volatile unsigned char *)(addr)) argument 122 #define readw(addr) __ioswab16((*(volatile unsigned short *)(addr))) argument 123 #define readl(addr) __ioswab32((*(volatile unsigned int *)(addr))) argument 125 #define __raw_readb(addr) (*(volatile unsigned char *)(addr)) argument 126 #define __raw_readw(addr) (*(volatile unsigned short *)(addr)) argument [all …]
|
/linux-2.4.37.9/include/asm-mips64/ |
D | r4kcache.h | 18 #define cache_op(op,addr) \ argument 26 : "i" (op), "m" (*(unsigned char *)(addr))) 28 static inline void flush_icache_line_indexed(unsigned long addr) in flush_icache_line_indexed() argument 30 cache_op(Index_Invalidate_I, addr); in flush_icache_line_indexed() 33 static inline void flush_dcache_line_indexed(unsigned long addr) in flush_dcache_line_indexed() argument 35 cache_op(Index_Writeback_Inv_D, addr); in flush_dcache_line_indexed() 38 static inline void flush_scache_line_indexed(unsigned long addr) in flush_scache_line_indexed() argument 40 cache_op(Index_Writeback_Inv_SD, addr); in flush_scache_line_indexed() 43 static inline void flush_icache_line(unsigned long addr) in flush_icache_line() argument 45 cache_op(Hit_Invalidate_I, addr); in flush_icache_line() [all …]
|
D | io.h | 53 #define bus_to_baddr(bus, addr) (bus_to_baddr[(bus)->number] + (addr)) argument 54 #define baddr_to_bus(bus, addr) ((addr) - bus_to_baddr[(bus)->number]) argument 57 #define bus_to_baddr(bus, addr) (addr) argument 58 #define baddr_to_bus(bus, addr) (addr) argument 134 static inline void iounmap(void *addr) in iounmap() argument 143 #define readb(addr) (*(volatile unsigned char *)(addr)) argument 144 #define readw(addr) __ioswab16((*(volatile unsigned short *)(addr))) argument 145 #define readl(addr) __ioswab32((*(volatile unsigned int *)(addr))) argument 147 #define __raw_readb(addr) (*(volatile unsigned char *)(addr)) argument 148 #define __raw_readw(addr) (*(volatile unsigned short *)(addr)) argument [all …]
|
/linux-2.4.37.9/arch/i386/kernel/ |
D | mfgpt-compat.h | 52 #define IO_COND(addr, is_pio, is_mmio) do { \ argument 53 unsigned long port = (unsigned long)addr; \ 69 #define mmio_read16be(addr) be16_to_cpu(__raw_readw(addr)) argument 70 #define mmio_read32be(addr) be32_to_cpu(__raw_readl(addr)) argument 73 static inline unsigned int ioread8(void __iomem *addr) in ioread8() argument 75 IO_COND(addr, return inb(port), return readb(addr)); in ioread8() 78 static inline unsigned int ioread16(void __iomem *addr) in ioread16() argument 80 IO_COND(addr, return inw(port), return readw(addr)); in ioread16() 83 static inline unsigned int ioread16be(void __iomem *addr) in ioread16be() argument 85 IO_COND(addr, return pio_read16be(port), return mmio_read16be(addr)); in ioread16be() [all …]
|
/linux-2.4.37.9/include/asm-ppc64/ |
D | bitops.h | 44 static __inline__ int test_bit(unsigned long nr, __const__ volatile void *addr) in test_bit() argument 46 return (1UL & (((__const__ long *) addr)[nr >> 6] >> (nr & 63))); in test_bit() 49 static __inline__ void set_bit(unsigned long nr, volatile void *addr) in set_bit() argument 53 unsigned long *p = ((unsigned long *)addr) + (nr >> 6); in set_bit() 65 static __inline__ void clear_bit(unsigned long nr, volatile void *addr) in clear_bit() argument 69 unsigned long *p = ((unsigned long *)addr) + (nr >> 6); in clear_bit() 81 static __inline__ void change_bit(unsigned long nr, volatile void *addr) in change_bit() argument 85 unsigned long *p = ((unsigned long *)addr) + (nr >> 6); in change_bit() 97 static __inline__ int test_and_set_bit(unsigned long nr, volatile void *addr) in test_and_set_bit() argument 101 unsigned long *p = ((unsigned long *)addr) + (nr >> 6); in test_and_set_bit() [all …]
|
D | io.h | 37 #define readb(addr) iSeries_Read_Byte((void*)(addr)) argument 38 #define readw(addr) iSeries_Read_Word((void*)(addr)) argument 39 #define readl(addr) iSeries_Read_Long((void*)(addr)) argument 40 #define writeb(data, addr) iSeries_Write_Byte(data,((void*)(addr))) argument 41 #define writew(data, addr) iSeries_Write_Word(data,((void*)(addr))) argument 42 #define writel(data, addr) iSeries_Write_Long(data,((void*)(addr))) argument 46 #define inb(addr) readb(((unsigned long)(addr))) argument 47 #define inw(addr) readw(((unsigned long)(addr))) argument 48 #define inl(addr) readl(((unsigned long)(addr))) argument 49 #define outb(data,addr) writeb(data,((unsigned long)(addr))) argument [all …]
|
/linux-2.4.37.9/include/asm-sparc64/ |
D | bitops.h | 14 extern int test_and_set_bit(unsigned long nr, volatile void *addr); 15 extern int test_and_clear_bit(unsigned long nr, volatile void *addr); 16 extern int test_and_change_bit(unsigned long nr, volatile void *addr); 17 extern void set_bit(unsigned long nr, volatile void *addr); 18 extern void clear_bit(unsigned long nr, volatile void *addr); 19 extern void change_bit(unsigned long nr, volatile void *addr); 23 static __inline__ void __set_bit(int nr, volatile void *addr) in __set_bit() argument 27 m = ((unsigned long *)addr) + (nr >> 6); in __set_bit() 31 static __inline__ void __clear_bit(int nr, volatile void *addr) in __clear_bit() argument 35 m = ((unsigned long *)addr) + (nr >> 6); in __clear_bit() [all …]
|
/linux-2.4.37.9/include/asm-sh64/ |
D | io.h | 41 static inline unsigned char sh64_in8(unsigned long addr) in sh64_in8() argument 43 return *(volatile unsigned char *)addr; in sh64_in8() 46 static inline unsigned short sh64_in16(unsigned long addr) in sh64_in16() argument 48 return *(volatile unsigned short *)addr; in sh64_in16() 51 static inline unsigned long sh64_in32(unsigned long addr) in sh64_in32() argument 53 return *(volatile unsigned long *)addr; in sh64_in32() 56 static inline unsigned long long sh64_in64(unsigned long addr) in sh64_in64() argument 58 return *(volatile unsigned long long *)addr; in sh64_in64() 61 static inline void sh64_out8(unsigned char b, unsigned long addr) in sh64_out8() argument 63 *(volatile unsigned char *)addr = b; in sh64_out8() [all …]
|
D | bitops.h | 9 static __inline__ void set_bit(int nr, volatile void * addr) in set_bit() argument 12 volatile unsigned int *a = addr; in set_bit() 22 static __inline__ void __set_bit(int nr, volatile void * addr) in __set_bit() argument 25 volatile unsigned int *a = addr; in __set_bit() 37 static __inline__ void clear_bit(int nr, volatile void * addr) in clear_bit() argument 40 volatile unsigned int *a = addr; in clear_bit() 50 static __inline__ void __clear_bit(int nr, volatile void * addr) in __clear_bit() argument 53 volatile unsigned int *a = addr; in __clear_bit() 60 static __inline__ void change_bit(int nr, volatile void * addr) in change_bit() argument 63 volatile unsigned int *a = addr; in change_bit() [all …]
|
/linux-2.4.37.9/include/asm-ppc/ |
D | byteorder.h | 10 extern __inline__ unsigned ld_le16(const volatile unsigned short *addr) in ld_le16() argument 14 __asm__ __volatile__ ("lhbrx %0,0,%1" : "=r" (val) : "r" (addr), "m" (*addr)); in ld_le16() 18 extern __inline__ void st_le16(volatile unsigned short *addr, const unsigned val) in st_le16() argument 20 __asm__ __volatile__ ("sthbrx %1,0,%2" : "=m" (*addr) : "r" (val), "r" (addr)); in st_le16() 23 extern __inline__ unsigned ld_le32(const volatile unsigned *addr) in ld_le32() argument 27 __asm__ __volatile__ ("lwbrx %0,0,%1" : "=r" (val) : "r" (addr), "m" (*addr)); in ld_le32() 31 extern __inline__ void st_le32(volatile unsigned *addr, const unsigned val) in st_le32() argument 33 __asm__ __volatile__ ("stwbrx %1,0,%2" : "=m" (*addr) : "r" (val), "r" (addr)); in st_le32() 36 extern __inline__ unsigned long long ld_le64(const volatile unsigned long long *addr) in ld_le64() argument 38 unsigned char *taddr = (unsigned char *) addr; in ld_le64() [all …]
|
/linux-2.4.37.9/arch/sh/kernel/ |
D | io_bigsur.c | 58 void bigsur_port_map(u32 baseport, u32 nports, u32 addr, u8 shift) in bigsur_port_map() argument 63 baseport, nports, addr); in bigsur_port_map() 68 DPRINTK(" maplo[0x%x] = 0x%08x\n", port, addr); in bigsur_port_map() 69 bigsur_iomap_lo[port>>BIGSUR_IOMAP_LO_SHIFT] = addr; in bigsur_port_map() 71 addr += (1<<(BIGSUR_IOMAP_LO_SHIFT)); in bigsur_port_map() 77 DPRINTK(" maphi[0x%x] = 0x%08x\n", port, addr); in bigsur_port_map() 78 bigsur_iomap_hi[port>>BIGSUR_IOMAP_HI_SHIFT] = addr; in bigsur_port_map() 80 addr += (1<<(BIGSUR_IOMAP_HI_SHIFT)); in bigsur_port_map() 107 unsigned long addr = 0; in bigsur_isa_port2addr() local 111 if (PXSEG(port)) addr = port; in bigsur_isa_port2addr() [all …]
|
D | io_hd64465.c | 58 unsigned long addr, unsigned char shift) in hd64465_port_map() argument 63 baseport, nports, addr,endport); in hd64465_port_map() 68 DPRINTK(" maplo[0x%x] = 0x%08lx\n", port, addr); in hd64465_port_map() 69 hd64465_iomap_lo[port>>HD64465_IOMAP_LO_SHIFT] = addr; in hd64465_port_map() 71 addr += (1<<(HD64465_IOMAP_LO_SHIFT)); in hd64465_port_map() 77 DPRINTK(" maphi[0x%x] = 0x%08lx\n", port, addr); in hd64465_port_map() 78 hd64465_iomap_hi[port>>HD64465_IOMAP_HI_SHIFT] = addr; in hd64465_port_map() 80 addr += (1<<(HD64465_IOMAP_HI_SHIFT)); in hd64465_port_map() 108 unsigned long addr = 0; in hd64465_isa_port2addr() local 113 addr = hd64465_iomap_lo[port >> HD64465_IOMAP_LO_SHIFT]; in hd64465_isa_port2addr() [all …]
|
/linux-2.4.37.9/include/asm-arm/ |
D | bitops.h | 26 extern void set_bit(int nr, volatile void * addr); 28 static inline void __set_bit(int nr, volatile void *addr) in __set_bit() argument 30 ((unsigned char *) addr)[nr >> 3] |= (1U << (nr & 7)); in __set_bit() 33 extern void clear_bit(int nr, volatile void * addr); 35 static inline void __clear_bit(int nr, volatile void *addr) in __clear_bit() argument 37 ((unsigned char *) addr)[nr >> 3] &= ~(1U << (nr & 7)); in __clear_bit() 40 extern void change_bit(int nr, volatile void * addr); 42 static inline void __change_bit(int nr, volatile void *addr) in __change_bit() argument 44 ((unsigned char *) addr)[nr >> 3] ^= (1U << (nr & 7)); in __change_bit() 47 extern int test_and_set_bit(int nr, volatile void * addr); [all …]
|
/linux-2.4.37.9/include/asm-sh/ |
D | bitops.h | 9 static __inline__ void set_bit(int nr, volatile void * addr) in set_bit() argument 12 volatile unsigned int *a = addr; in set_bit() 22 static __inline__ void __set_bit(int nr, volatile void * addr) in __set_bit() argument 25 volatile unsigned int *a = addr; in __set_bit() 37 static __inline__ void clear_bit(int nr, volatile void * addr) in clear_bit() argument 40 volatile unsigned int *a = addr; in clear_bit() 50 static __inline__ void __clear_bit(int nr, volatile void * addr) in __clear_bit() argument 53 volatile unsigned int *a = addr; in __clear_bit() 60 static __inline__ void change_bit(int nr, volatile void * addr) in change_bit() argument 63 volatile unsigned int *a = addr; in change_bit() [all …]
|
/linux-2.4.37.9/arch/alpha/kernel/ |
D | core_irongate.c | 86 unsigned long addr; in mk_conf_addr() local 96 addr = (bus << 16) | (device_fn << 8) | where; in mk_conf_addr() 97 addr |= IRONGATE_CONF; in mk_conf_addr() 99 *pci_addr = addr; in mk_conf_addr() 100 DBG_CFG(("mk_conf_addr: returning pci_addr 0x%lx\n", addr)); in mk_conf_addr() 107 unsigned long addr; in irongate_read_config_byte() local 110 if (mk_conf_addr(dev, where, &addr, &type1)) in irongate_read_config_byte() 113 *value = __kernel_ldbu(*(vucp)addr); in irongate_read_config_byte() 120 unsigned long addr; in irongate_read_config_word() local 123 if (mk_conf_addr(dev, where, &addr, &type1)) in irongate_read_config_word() [all …]
|