Lines Matching refs:host
33 struct hpsb_host *host; member
52 struct hpsb_host *host) in hl_get_hostinfo() argument
57 if (!hl || !host) in hl_get_hostinfo()
63 if (hi->host == host) in hl_get_hostinfo()
75 void *hpsb_get_hostinfo(struct hpsb_highlevel *hl, struct hpsb_host *host) in hpsb_get_hostinfo() argument
77 struct hl_host_info *hi = hl_get_hostinfo(hl, host); in hpsb_get_hostinfo()
87 void *hpsb_create_hostinfo(struct hpsb_highlevel *hl, struct hpsb_host *host, in hpsb_create_hostinfo() argument
94 hi = hl_get_hostinfo(hl, host); in hpsb_create_hostinfo()
113 hi->host = host; in hpsb_create_hostinfo()
123 int hpsb_set_hostinfo(struct hpsb_highlevel *hl, struct hpsb_host *host, in hpsb_set_hostinfo() argument
128 hi = hl_get_hostinfo(hl, host); in hpsb_set_hostinfo()
144 void hpsb_destroy_hostinfo(struct hpsb_highlevel *hl, struct hpsb_host *host) in hpsb_destroy_hostinfo() argument
148 hi = hl_get_hostinfo(hl, host); in hpsb_destroy_hostinfo()
161 void hpsb_set_hostinfo_key(struct hpsb_highlevel *hl, struct hpsb_host *host, unsigned long key) in hpsb_set_hostinfo_key() argument
165 hi = hl_get_hostinfo(hl, host); in hpsb_set_hostinfo_key()
173 unsigned long hpsb_get_hostinfo_key(struct hpsb_highlevel *hl, struct hpsb_host *host) in hpsb_get_hostinfo_key() argument
177 hi = hl_get_hostinfo(hl, host); in hpsb_get_hostinfo_key()
212 struct hpsb_host *host = NULL; in hpsb_get_host_bykey() local
221 host = hi->host; in hpsb_get_host_bykey()
227 return host; in hpsb_get_host_bykey()
248 struct hpsb_host *host = list_entry(lh, struct hpsb_host, host_list); in hpsb_register_highlevel() local
249 hl->add_host(host); in hpsb_register_highlevel()
278 struct hpsb_host *host = list_entry(lh, struct hpsb_host, host_list); in hpsb_unregister_highlevel() local
280 hl->remove_host(host); in hpsb_unregister_highlevel()
281 hpsb_destroy_hostinfo(hl, host); in hpsb_unregister_highlevel()
363 int hpsb_listen_channel(struct hpsb_highlevel *hl, struct hpsb_host *host, in hpsb_listen_channel() argument
371 if (host->iso_listen_count[channel]++ == 0) { in hpsb_listen_channel()
372 return host->driver->devctl(host, ISO_LISTEN_CHANNEL, channel); in hpsb_listen_channel()
378 void hpsb_unlisten_channel(struct hpsb_highlevel *hl, struct hpsb_host *host, in hpsb_unlisten_channel() argument
386 if (--host->iso_listen_count[channel] == 0) { in hpsb_unlisten_channel()
387 host->driver->devctl(host, ISO_UNLISTEN_CHANNEL, channel); in hpsb_unlisten_channel()
392 void highlevel_add_host(struct hpsb_host *host) in highlevel_add_host() argument
401 hl->add_host(host); in highlevel_add_host()
406 void highlevel_remove_host(struct hpsb_host *host) in highlevel_remove_host() argument
416 hl->remove_host(host); in highlevel_remove_host()
417 hpsb_destroy_hostinfo(hl, host); in highlevel_remove_host()
423 void highlevel_host_reset(struct hpsb_host *host) in highlevel_host_reset() argument
433 hl->host_reset(host); in highlevel_host_reset()
438 void highlevel_iso_receive(struct hpsb_host *host, void *data, in highlevel_iso_receive() argument
451 hl->iso_receive(host, channel, data, length); in highlevel_iso_receive()
458 void highlevel_fcp_request(struct hpsb_host *host, int nodeid, int direction, in highlevel_fcp_request() argument
471 hl->fcp_request(host, nodeid, direction, cts, data, in highlevel_fcp_request()
479 int highlevel_read(struct hpsb_host *host, int nodeid, void *data, in highlevel_read() argument
497 rcode = as->op->read(host, nodeid, data, in highlevel_read()
525 int highlevel_write(struct hpsb_host *host, int nodeid, int destid, in highlevel_write() argument
543 rcode = as->op->write(host, nodeid, destid, in highlevel_write()
572 int highlevel_lock(struct hpsb_host *host, int nodeid, quadlet_t *store, in highlevel_lock() argument
587 rcode = as->op->lock(host, nodeid, store, addr, in highlevel_lock()
605 int highlevel_lock64(struct hpsb_host *host, int nodeid, octlet_t *store, in highlevel_lock64() argument
620 rcode = as->op->lock64(host, nodeid, store, in highlevel_lock64()