Lines Matching refs:offset

91 #define mk_config_addr(bus, dev, offset) \  argument
92 (((bus)<<16) | ((dev)<<8) | (offset & 0xfc))
94 #define mk_config_type1(bus, dev, offset) \ argument
95 mk_config_addr(bus, dev, offset) | 1;
98 unsigned char offset, unsigned char *val) in qspan_pcibios_read_config_byte() argument
119 *QS_CONFIG_ADDR = mk_config_addr(bus, dev_fn, offset); in qspan_pcibios_read_config_byte()
121 *QS_CONFIG_ADDR = mk_config_type1(bus, dev_fn, offset); in qspan_pcibios_read_config_byte()
130 offset ^= 0x03; in qspan_pcibios_read_config_byte()
131 cp = ((u_char *)&temp) + (offset & 0x03); in qspan_pcibios_read_config_byte()
137 unsigned char offset, unsigned short *val) in qspan_pcibios_read_config_word() argument
158 *QS_CONFIG_ADDR = mk_config_addr(bus, dev_fn, offset); in qspan_pcibios_read_config_word()
160 *QS_CONFIG_ADDR = mk_config_type1(bus, dev_fn, offset); in qspan_pcibios_read_config_word()
162 offset ^= 0x02; in qspan_pcibios_read_config_word()
170 sp = ((ushort *)&temp) + ((offset >> 1) & 1); in qspan_pcibios_read_config_word()
176 unsigned char offset, unsigned int *val) in qspan_pcibios_read_config_dword() argument
195 *QS_CONFIG_ADDR = mk_config_addr(bus, dev_fn, offset); in qspan_pcibios_read_config_dword()
197 *QS_CONFIG_ADDR = mk_config_type1(bus, dev_fn, offset); in qspan_pcibios_read_config_dword()
210 unsigned char offset, unsigned char val) in qspan_pcibios_write_config_byte() argument
221 qspan_pcibios_read_config_dword(bus, dev_fn, offset, &temp); in qspan_pcibios_write_config_byte()
223 offset ^= 0x03; in qspan_pcibios_write_config_byte()
224 cp = ((u_char *)&temp) + (offset & 0x03); in qspan_pcibios_write_config_byte()
235 *QS_CONFIG_ADDR = mk_config_addr(bus, dev_fn, offset); in qspan_pcibios_write_config_byte()
237 *QS_CONFIG_ADDR = mk_config_type1(bus, dev_fn, offset); in qspan_pcibios_write_config_byte()
250 unsigned char offset, unsigned short val) in qspan_pcibios_write_config_word() argument
261 qspan_pcibios_read_config_dword(bus, dev_fn, offset, &temp); in qspan_pcibios_write_config_word()
263 offset ^= 0x02; in qspan_pcibios_write_config_word()
264 sp = ((ushort *)&temp) + ((offset >> 1) & 1); in qspan_pcibios_write_config_word()
275 *QS_CONFIG_ADDR = mk_config_addr(bus, dev_fn, offset); in qspan_pcibios_write_config_word()
277 *QS_CONFIG_ADDR = mk_config_type1(bus, dev_fn, offset); in qspan_pcibios_write_config_word()
290 unsigned char offset, unsigned int val) in qspan_pcibios_write_config_dword() argument
307 *QS_CONFIG_ADDR = mk_config_addr(bus, dev_fn, offset); in qspan_pcibios_write_config_dword()
309 *QS_CONFIG_ADDR = mk_config_type1(bus, dev_fn, offset); in qspan_pcibios_write_config_dword()