Lines Matching defs:config
126 static void celleb_config_read_fake(unsigned char *config, int where,
129 char *p = config + where;
144 static void celleb_config_write_fake(unsigned char *config, int where,
147 char *p = config + where;
165 char *config;
174 config = get_fake_config_start(hose, devno, fn);
177 if (!config) {
182 celleb_config_read_fake(config, where, size, val);
192 char *config;
201 config = get_fake_config_start(hose, devno, fn);
203 if (!config)
217 celleb_config_write_fake(config, where, size,
230 celleb_config_write_fake(config, where, size, val);
247 unsigned char *config;
250 config = get_fake_config_start(hose, devno, fn);
253 if (!config || !res)
260 celleb_config_write_fake(config, PCI_BASE_ADDRESS_4, 4, val);
262 celleb_config_write_fake(config, PCI_BASE_ADDRESS_5, 4, val);
267 celleb_config_write_fake(config, PCI_BASE_ADDRESS_2, 4, val);
269 celleb_config_write_fake(config, PCI_BASE_ADDRESS_3, 4, val);
274 celleb_config_write_fake(config, PCI_BASE_ADDRESS_0, 4, val);
276 celleb_config_write_fake(config, PCI_BASE_ADDRESS_1, 4, val);
281 celleb_config_write_fake(config, PCI_COMMAND, 2, val);
293 unsigned char **config = NULL;
322 config = &private->fake_config[devno][fn];
323 *config = alloc_maybe_bootmem(size, GFP_KERNEL);
324 if (*config == NULL) {
329 pr_debug("PCI: fake config area assigned 0x%016lx\n",
330 (unsigned long)*config);
351 celleb_config_write_fake(*config, PCI_DEVICE_ID, 2, wi0[0] & 0xffff);
352 celleb_config_write_fake(*config, PCI_VENDOR_ID, 2, wi1[0] & 0xffff);
355 celleb_config_write_fake(*config, PCI_CLASS_PROG, 1, wi2[0] & 0xff);
356 celleb_config_write_fake(*config, PCI_CLASS_DEVICE, 2,
358 celleb_config_write_fake(*config, PCI_REVISION_ID, 1, wi3[0]);
376 celleb_config_write_fake(*config, PCI_INTERRUPT_PIN, 1, 1);
377 celleb_config_write_fake(*config, PCI_INTERRUPT_LINE, 1, val);
382 celleb_config_read_fake(*config,
390 celleb_config_write_fake(*config, PCI_HEADER_TYPE, 1,
397 if (config && *config)
398 kfree(*config);
403 if (config && *config) {
405 free_bootmem((unsigned long)(*config), size);