Lines Matching refs:base
12 static inline void nsp32_write1(unsigned int base, in nsp32_write1() argument
16 outb(val, (base + index)); in nsp32_write1()
19 static inline unsigned char nsp32_read1(unsigned int base, in nsp32_read1() argument
22 return inb(base + index); in nsp32_read1()
25 static inline void nsp32_write2(unsigned int base, in nsp32_write2() argument
29 outw(val, (base + index)); in nsp32_write2()
32 static inline unsigned short nsp32_read2(unsigned int base, in nsp32_read2() argument
35 return inw(base + index); in nsp32_read2()
38 static inline void nsp32_write4(unsigned int base, in nsp32_write4() argument
42 outl(val, (base + index)); in nsp32_write4()
45 static inline unsigned long nsp32_read4(unsigned int base, in nsp32_read4() argument
48 return inl(base + index); in nsp32_read4()
53 static inline void nsp32_mmio_write1(unsigned long base, in nsp32_mmio_write1() argument
59 ptr = (unsigned char *)(base + NSP32_MMIO_OFFSET + index); in nsp32_mmio_write1()
64 static inline unsigned char nsp32_mmio_read1(unsigned long base, in nsp32_mmio_read1() argument
69 ptr = (unsigned char *)(base + NSP32_MMIO_OFFSET + index); in nsp32_mmio_read1()
74 static inline void nsp32_mmio_write2(unsigned long base, in nsp32_mmio_write2() argument
80 ptr = (unsigned short *)(base + NSP32_MMIO_OFFSET + index); in nsp32_mmio_write2()
85 static inline unsigned short nsp32_mmio_read2(unsigned long base, in nsp32_mmio_read2() argument
90 ptr = (unsigned short *)(base + NSP32_MMIO_OFFSET + index); in nsp32_mmio_read2()
95 static inline void nsp32_mmio_write4(unsigned long base, in nsp32_mmio_write4() argument
101 ptr = (unsigned long *)(base + NSP32_MMIO_OFFSET + index); in nsp32_mmio_write4()
106 static inline unsigned long nsp32_mmio_read4(unsigned long base, in nsp32_mmio_read4() argument
111 ptr = (unsigned long *)(base + NSP32_MMIO_OFFSET + index); in nsp32_mmio_read4()
118 static inline unsigned char nsp32_index_read1(unsigned int base, in nsp32_index_read1() argument
121 outb(reg, base + INDEX_REG); in nsp32_index_read1()
122 return inb(base + DATA_REG_LOW); in nsp32_index_read1()
125 static inline void nsp32_index_write1(unsigned int base, in nsp32_index_write1() argument
129 outb(reg, base + INDEX_REG ); in nsp32_index_write1()
130 outb(val, base + DATA_REG_LOW); in nsp32_index_write1()
133 static inline unsigned short nsp32_index_read2(unsigned int base, in nsp32_index_read2() argument
136 outb(reg, base + INDEX_REG); in nsp32_index_read2()
137 return inw(base + DATA_REG_LOW); in nsp32_index_read2()
140 static inline void nsp32_index_write2(unsigned int base, in nsp32_index_write2() argument
144 outb(reg, base + INDEX_REG ); in nsp32_index_write2()
145 outw(val, base + DATA_REG_LOW); in nsp32_index_write2()
148 static inline unsigned long nsp32_index_read4(unsigned int base, in nsp32_index_read4() argument
153 outb(reg, base + INDEX_REG); in nsp32_index_read4()
154 l = inw(base + DATA_REG_LOW); in nsp32_index_read4()
155 h = inw(base + DATA_REG_HI ); in nsp32_index_read4()
160 static inline void nsp32_index_write4(unsigned int base, in nsp32_index_write4() argument
169 outb(reg, base + INDEX_REG ); in nsp32_index_write4()
170 outw(l, base + DATA_REG_LOW); in nsp32_index_write4()
171 outw(h, base + DATA_REG_HI ); in nsp32_index_write4()
176 static inline unsigned char nsp32_mmio_index_read1(unsigned long base, in nsp32_mmio_index_read1() argument
181 index_ptr = (unsigned short *)(base + NSP32_MMIO_OFFSET + INDEX_REG); in nsp32_mmio_index_read1()
182 data_ptr = (unsigned short *)(base + NSP32_MMIO_OFFSET + DATA_REG_LOW); in nsp32_mmio_index_read1()
188 static inline void nsp32_mmio_index_write1(unsigned long base, in nsp32_mmio_index_write1() argument
194 index_ptr = (unsigned short *)(base + NSP32_MMIO_OFFSET + INDEX_REG); in nsp32_mmio_index_write1()
195 data_ptr = (unsigned short *)(base + NSP32_MMIO_OFFSET + DATA_REG_LOW); in nsp32_mmio_index_write1()
201 static inline unsigned short nsp32_mmio_index_read2(unsigned long base, in nsp32_mmio_index_read2() argument
206 index_ptr = (unsigned short *)(base + NSP32_MMIO_OFFSET + INDEX_REG); in nsp32_mmio_index_read2()
207 data_ptr = (unsigned short *)(base + NSP32_MMIO_OFFSET + DATA_REG_LOW); in nsp32_mmio_index_read2()
213 static inline void nsp32_mmio_index_write2(unsigned long base, in nsp32_mmio_index_write2() argument
219 index_ptr = (unsigned short *)(base + NSP32_MMIO_OFFSET + INDEX_REG); in nsp32_mmio_index_write2()
220 data_ptr = (unsigned short *)(base + NSP32_MMIO_OFFSET + DATA_REG_LOW); in nsp32_mmio_index_write2()
228 static inline void nsp32_multi_read4(unsigned int base, in nsp32_multi_read4() argument
233 insl(base + reg, buf, count); in nsp32_multi_read4()
236 static inline void nsp32_fifo_read(unsigned int base, in nsp32_fifo_read() argument
240 nsp32_multi_read4(base, FIFO_DATA_LOW, buf, count); in nsp32_fifo_read()
243 static inline void nsp32_multi_write4(unsigned int base, in nsp32_multi_write4() argument
248 outsl(base + reg, buf, count); in nsp32_multi_write4()
251 static inline void nsp32_fifo_write(unsigned int base, in nsp32_fifo_write() argument
255 nsp32_multi_write4(base, FIFO_DATA_LOW, buf, count); in nsp32_fifo_write()