Lines Matching defs:state
26 struct pci_probe_state *state = &dev->state.pci;
29 state->advance = 1;
30 state->dev.driver = 0;
31 state->dev.bus = 0;
32 state->dev.devfn = 0;
36 if ((dev->how_probe != PROBE_AWAKE) && state->advance) {
37 find_pci(dev->type, &state->dev);
40 state->advance = 1;
42 if (state->dev.driver == 0)
47 if (state->dev.romaddr != ((unsigned long) rom.rom_segment << 4)) {
55 dev->devid.vendor_id = htons(state->dev.vendor);
56 dev->devid.device_id = htons(state->dev.dev_id);
59 printf("[%s]", state->dev.name);
60 if (state->dev.driver->probe(dev, &state->dev)) {
61 state->advance = (dev->index == -1);
78 struct isa_probe_state *state = &dev->state.isa;
81 state->advance = 0;
82 state->driver = isa_drivers;
87 if ((dev->how_probe != PROBE_AWAKE) && state->advance) {
88 state->driver++;
91 state->advance = 1;
93 if (state->driver >= isa_drivers_end)
96 if (state->driver->type != dev->type)
102 printf("[%s]", state->driver->name);
106 if (state->driver->probe(dev, state->driver->ioaddrs)) {
107 state->advance = (dev->index == -1);
135 memset(&dev->state, 0, sizeof(dev->state));