Lines Matching defs:offset
98 static inline u8 config_readb(struct yenta_socket *socket, unsigned offset)
101 pci_read_config_byte(socket->dev, offset, &val);
102 debug("%04x %02x\n", socket, offset, val);
106 static inline u16 config_readw(struct yenta_socket *socket, unsigned offset)
109 pci_read_config_word(socket->dev, offset, &val);
110 debug("%04x %04x\n", socket, offset, val);
114 static inline u32 config_readl(struct yenta_socket *socket, unsigned offset)
117 pci_read_config_dword(socket->dev, offset, &val);
118 debug("%04x %08x\n", socket, offset, val);
122 static inline void config_writeb(struct yenta_socket *socket, unsigned offset, u8 val)
124 debug("%04x %02x\n", socket, offset, val);
125 pci_write_config_byte(socket->dev, offset, val);
128 static inline void config_writew(struct yenta_socket *socket, unsigned offset, u16 val)
130 debug("%04x %04x\n", socket, offset, val);
131 pci_write_config_word(socket->dev, offset, val);
134 static inline void config_writel(struct yenta_socket *socket, unsigned offset, u32 val)
136 debug("%04x %08x\n", socket, offset, val);
137 pci_write_config_dword(socket->dev, offset, val);
177 int offset = 0, i;
179 offset = snprintf(buf, PAGE_SIZE, "CB registers:");
183 offset += scnprintf(buf + offset, PAGE_SIZE - offset, "\n%02x:", i);
185 offset += scnprintf(buf + offset, PAGE_SIZE - offset, " %08x", val);
188 offset += scnprintf(buf + offset, PAGE_SIZE - offset, "\n\nExCA registers:");
193 memcpy(buf + offset, " -", 2);
194 offset += 2;
196 offset += scnprintf(buf + offset, PAGE_SIZE - offset, "\n%02x:", i);
199 offset += scnprintf(buf + offset, PAGE_SIZE - offset, " %02x", val);
201 buf[offset++] = '\n';
202 return offset;