• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/ieee1394/

Lines Matching refs:host

4  * Low level (host adapter) management.
35 struct hpsb_host *host =
37 int generation = host->csr.generation + 1;
44 CSR_SET_BUS_INFO_GENERATION(host->csr.rom, generation);
45 if (csr1212_generate_csr_image(host->csr.rom) != CSR1212_SUCCESS) {
48 CSR_SET_BUS_INFO_GENERATION(host->csr.rom,
49 host->csr.generation);
53 host->csr.generation = generation;
55 host->update_config_rom = 0;
56 if (host->driver->set_hw_config_rom)
57 host->driver->set_hw_config_rom(host,
58 host->csr.rom->bus_info_data);
60 host->csr.gen_timestamp[host->csr.generation] = jiffies;
61 hpsb_reset_bus(host, SHORT_RESET);
86 static int alloc_hostnum_cb(struct hpsb_host *host, void *__data)
90 if (host->id == *hostnum)
99 * hpsb_alloc_host - allocate a new host controller.
100 * @drv: the driver that will manage the host controller
104 * fields. If the driver needs to store per host data, as drivers
157 snprintf(h->device.bus_id, BUS_ID_SIZE, "fw-host%d", h->id);
161 snprintf(h->class_dev.class_id, BUS_ID_SIZE, "fw-host%d", h->id);
178 int hpsb_add_host(struct hpsb_host *host)
180 if (hpsb_default_host_entry(host))
183 highlevel_add_host(host);
187 void hpsb_resume_host(struct hpsb_host *host)
189 if (host->driver->set_hw_config_rom)
190 host->driver->set_hw_config_rom(host,
191 host->csr.rom->bus_info_data);
192 host->driver->devctl(host, RESET_BUS, SHORT_RESET);
195 void hpsb_remove_host(struct hpsb_host *host)
197 host->is_shutdown = 1;
199 cancel_delayed_work(&host->delayed_reset);
202 host->driver = &dummy_driver;
203 highlevel_remove_host(host);
205 class_device_unregister(&host->class_dev);
206 device_unregister(&host->device);
210 * hpsb_update_config_rom_image - updates configuration ROM image of a host
212 * Updates the configuration ROM image of a host. rom_version must be the
214 * host does not support config-rom-update, it will return -%EINVAL.
217 int hpsb_update_config_rom_image(struct hpsb_host *host)
220 int next_gen = host->csr.generation + 1;
222 if (!host->update_config_rom)
230 cancel_delayed_work(&host->delayed_reset);
234 if (time_before(jiffies, host->csr.gen_timestamp[next_gen] + 60 * HZ))
238 (60 * HZ) + host->csr.gen_timestamp[next_gen] - jiffies;
244 PREPARE_DELAYED_WORK(&host->delayed_reset, delayed_reset_bus);
245 schedule_delayed_work(&host->delayed_reset, reset_delay);