• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/ieee1394/

Lines Matching refs:host

4  * Low level (host adapter) management.
47 * hpsb_ref_host - increase reference count for host controller.
48 * @host: the host controller
50 * Increase the reference count for the specified host controller.
51 * When holding a reference to a host, the memory allocated for the
52 * host struct will not be freed and the host is guaranteed to be in a
54 * be removed (PCMCIA), but the host struct will remain valid.
57 int hpsb_ref_host(struct hpsb_host *host)
65 if (host == list_entry(lh, struct hpsb_host, host_list)) {
66 host->driver->devctl(host, MODIFY_USAGE, 1);
67 host->refcount++;
78 * hpsb_unref_host - decrease reference count for host controller.
79 * @host: the host controller
81 * Decrease the reference count for the specified host controller.
86 void hpsb_unref_host(struct hpsb_host *host)
90 host->driver->devctl(host, MODIFY_USAGE, 0);
93 host->refcount--;
95 if (!host->refcount && host->is_shutdown)
96 kfree(host);
101 * hpsb_alloc_host - allocate a new host controller.
102 * @drv: the driver that will manage the host controller
106 * fields. If the driver needs to store per host data, as drivers
149 void hpsb_add_host(struct hpsb_host *host)
154 list_add_tail(&host->host_list, &hosts);
157 highlevel_add_host(host);
158 host->driver->devctl(host, RESET_BUS, 0);
161 void hpsb_remove_host(struct hpsb_host *host)
165 host->is_shutdown = 1;
166 host->driver = &dummy_driver;
167 highlevel_remove_host(host);
170 list_del(&host->host_list);
175 * This function calls the given function for every host currently registered.
180 struct hpsb_host *host;
184 host = list_entry(lh, struct hpsb_host, host_list);
185 function(host);