Home
last modified time | relevance | path

Searched refs:host (Results 1 – 25 of 362) sorted by relevance

12345678910>>...15

/linux-2.4.37.9/drivers/acorn/scsi/
Dacornscsi.c200 static void acornscsi_done(AS_Host *host, Scsi_Cmnd **SCpntp, unsigned int result);
201 static int acornscsi_reconnect_finish(AS_Host *host);
202 static void acornscsi_dma_cleanup(AS_Host *host);
203 static void acornscsi_abortcmd(AS_Host *host, unsigned char tag);
250 void acornscsi_dumpdma(AS_Host *host, char *where) in acornscsi_dumpdma() argument
254 mode = dmac_read(host->dma.io_port, MODECON); in acornscsi_dumpdma()
255 addr = dmac_address(host->dma.io_port); in acornscsi_dumpdma()
256 len = dmac_read(host->dma.io_port, TXCNTHI) << 8 | in acornscsi_dumpdma()
257 dmac_read(host->dma.io_port, TXCNTLO); in acornscsi_dumpdma()
260 host->host->host_no, where, in acornscsi_dumpdma()
[all …]
Dpowertec.c120 powertecscsi_terminator_ctl(struct Scsi_Host *host, int on_off) in powertecscsi_terminator_ctl() argument
122 struct powertec_info *info = (struct powertec_info *)host->hostdata; in powertecscsi_terminator_ctl()
149 powertecscsi_dma_setup(struct Scsi_Host *host, Scsi_Pointer *SCp, in powertecscsi_dma_setup() argument
152 struct powertec_info *info = (struct powertec_info *)host->hostdata; in powertecscsi_dma_setup()
153 int dmach = host->dma_channel; in powertecscsi_dma_setup()
190 powertecscsi_dma_stop(struct Scsi_Host *host, Scsi_Pointer *SCp) in powertecscsi_dma_stop() argument
192 if (host->dma_channel != NO_DMA) in powertecscsi_dma_stop()
193 disable_dma(host->dma_channel); in powertecscsi_dma_stop()
201 const char *powertecscsi_info(struct Scsi_Host *host) in powertecscsi_info() argument
203 struct powertec_info *info = (struct powertec_info *)host->hostdata; in powertecscsi_info()
[all …]
Dcumana_2.c131 cumanascsi_2_terminator_ctl(struct Scsi_Host *host, int on_off) in cumanascsi_2_terminator_ctl() argument
133 struct cumanascsi2_info *info = (struct cumanascsi2_info *)host->hostdata; in cumanascsi_2_terminator_ctl()
165 cumanascsi_2_dma_setup(struct Scsi_Host *host, Scsi_Pointer *SCp, in cumanascsi_2_dma_setup() argument
168 struct cumanascsi2_info *info = (struct cumanascsi2_info *)host->hostdata; in cumanascsi_2_dma_setup()
169 int dmach = host->dma_channel; in cumanascsi_2_dma_setup()
216 cumanascsi_2_dma_pseudo(struct Scsi_Host *host, Scsi_Pointer *SCp, in cumanascsi_2_dma_pseudo() argument
219 struct cumanascsi2_info *info = (struct cumanascsi2_info *)host->hostdata; in cumanascsi_2_dma_pseudo()
289 cumanascsi_2_dma_stop(struct Scsi_Host *host, Scsi_Pointer *SCp) in cumanascsi_2_dma_stop() argument
291 struct cumanascsi2_info *info = (struct cumanascsi2_info *)host->hostdata; in cumanascsi_2_dma_stop()
292 if (host->dma_channel != NO_DMA) { in cumanascsi_2_dma_stop()
[all …]
Deesox.c130 eesoxscsi_terminator_ctl(struct Scsi_Host *host, int on_off) in eesoxscsi_terminator_ctl() argument
132 struct eesoxscsi_info *info = (struct eesoxscsi_info *)host->hostdata; in eesoxscsi_terminator_ctl()
166 eesoxscsi_dma_setup(struct Scsi_Host *host, Scsi_Pointer *SCp, in eesoxscsi_dma_setup() argument
169 struct eesoxscsi_info *info = (struct eesoxscsi_info *)host->hostdata; in eesoxscsi_dma_setup()
170 int dmach = host->dma_channel; in eesoxscsi_dma_setup()
348 eesoxscsi_dma_pseudo(struct Scsi_Host *host, Scsi_Pointer *SCp, in eesoxscsi_dma_pseudo() argument
351 unsigned int base = host->io_port; in eesoxscsi_dma_pseudo()
365 eesoxscsi_dma_stop(struct Scsi_Host *host, Scsi_Pointer *SCp) in eesoxscsi_dma_stop() argument
367 if (host->dma_channel != NO_DMA) in eesoxscsi_dma_stop()
368 disable_dma(host->dma_channel); in eesoxscsi_dma_stop()
[all …]
Darxescsi.c77 arxescsi_dma_setup(struct Scsi_Host *host, Scsi_Pointer *SCp, in arxescsi_dma_setup() argument
159 void arxescsi_dma_pseudo(struct Scsi_Host *host, Scsi_Pointer *SCp, in arxescsi_dma_pseudo() argument
162 struct arxescsi_info *info = (struct arxescsi_info *)host->hostdata; in arxescsi_dma_pseudo()
168 io = __ioaddr(host->io_port); in arxescsi_dma_pseudo()
245 static void arxescsi_dma_stop(struct Scsi_Host *host, Scsi_Pointer *SCp) in arxescsi_dma_stop() argument
258 const char *arxescsi_info(struct Scsi_Host *host) in arxescsi_info() argument
260 struct arxescsi_info *info = (struct arxescsi_info *)host->hostdata; in arxescsi_info()
264 host->hostt->name, info->info.scsi.type, info->ec->slot_no, in arxescsi_info()
288 struct Scsi_Host *host; in arxescsi_proc_info() local
292 host = scsi_host_hn_get(host_no); in arxescsi_proc_info()
[all …]
/linux-2.4.37.9/fs/lockd/
Dhost.c62 nlm_match_host(struct nlm_host *host, struct svc_client *clnt, in nlm_match_host() argument
66 return host->h_exportent == clnt; in nlm_match_host()
67 return nlm_cmp_addr(&host->h_addr, sin); in nlm_match_host()
77 struct nlm_host *host, **hp; in nlm_lookup_host() local
100 for (hp = &nlm_hosts[hash]; (host = *hp); hp = &host->h_next) { in nlm_lookup_host()
101 if (proto && host->h_proto != proto) in nlm_lookup_host()
103 if (version && host->h_version != version) in nlm_lookup_host()
106 if (nlm_match_host(host, clnt, sin)) { in nlm_lookup_host()
108 *hp = host->h_next; in nlm_lookup_host()
109 host->h_next = nlm_hosts[hash]; in nlm_lookup_host()
[all …]
Dclntlock.c51 nlmclnt_block(struct nlm_host *host, struct file_lock *fl, u32 *statp) in nlmclnt_block() argument
57 block.b_host = host; in nlmclnt_block()
65 pstate = host->h_state; in nlmclnt_block()
92 if (pstate == host->h_state && (err = nlmclnt_cancel(host, fl)) < 0) in nlmclnt_block()
140 void nlmclnt_mark_reclaim(struct nlm_host *host) in nlmclnt_mark_reclaim() argument
152 if (fl->fl_u.nfs_fl.host != host) in nlmclnt_mark_reclaim()
165 void nlmclnt_prepare_reclaim(struct nlm_host *host, u32 newstate) in nlmclnt_prepare_reclaim() argument
167 host->h_monitored = 0; in nlmclnt_prepare_reclaim()
168 host->h_nsmstate = newstate; in nlmclnt_prepare_reclaim()
169 host->h_state++; in nlmclnt_prepare_reclaim()
[all …]
Dsvc4proc.c34 struct nlm_host *host = NULL; in nlm4svc_retrieve_args() local
53 if (!(host = nlmsvc_lookup_host(rqstp)) in nlm4svc_retrieve_args()
54 || (argp->monitor && !host->h_monitored && nsm_monitor(host) < 0)) in nlm4svc_retrieve_args()
56 *hostp = host; in nlm4svc_retrieve_args()
66 lock->fl.fl_owner = (fl_owner_t) host; in nlm4svc_retrieve_args()
72 if (host) in nlm4svc_retrieve_args()
73 nlm_release_host(host); in nlm4svc_retrieve_args()
96 struct nlm_host *host; in nlm4svc_proc_test() local
109 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_test()
116 nlm_release_host(host); in nlm4svc_proc_test()
[all …]
Dsvcproc.c63 struct nlm_host *host = NULL; in nlmsvc_retrieve_args() local
82 if (!(host = nlmsvc_lookup_host(rqstp)) in nlmsvc_retrieve_args()
83 || (argp->monitor && !host->h_monitored && nsm_monitor(host) < 0)) in nlmsvc_retrieve_args()
85 *hostp = host; in nlmsvc_retrieve_args()
95 lock->fl.fl_owner = (fl_owner_t) host; in nlmsvc_retrieve_args()
101 if (host) in nlmsvc_retrieve_args()
102 nlm_release_host(host); in nlmsvc_retrieve_args()
123 struct nlm_host *host; in nlmsvc_proc_test() local
136 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_test()
144 nlm_release_host(host); in nlmsvc_proc_test()
[all …]
/linux-2.4.37.9/drivers/ieee1394/
Dcsr.c53 static void host_reset(struct hpsb_host *host) in host_reset() argument
55 host->csr.state &= 0x300; in host_reset()
57 host->csr.bus_manager_id = 0x3f; in host_reset()
58 host->csr.bandwidth_available = 4915; in host_reset()
59 host->csr.channels_available_hi = 0xfffffffe; /* pre-alloc ch 31 per 1394a-2000 */ in host_reset()
60 host->csr.channels_available_lo = ~0; in host_reset()
61 host->csr.broadcast_channel = 0x80000000 | 31; in host_reset()
63 if (host->is_irm) { in host_reset()
64 if (host->driver->hw_csr_reg) { in host_reset()
65 host->driver->hw_csr_reg(host, 2, 0xfffffffe, ~0); in host_reset()
[all …]
Dieee1394_core.c181 int hpsb_reset_bus(struct hpsb_host *host, int type) in hpsb_reset_bus() argument
183 if (!host->in_bus_reset) { in hpsb_reset_bus()
184 host->driver->devctl(host, RESET_BUS, type); in hpsb_reset_bus()
192 int hpsb_bus_reset(struct hpsb_host *host) in hpsb_bus_reset() argument
194 if (host->in_bus_reset) { in hpsb_bus_reset()
200 abort_requests(host); in hpsb_bus_reset()
201 host->in_bus_reset = 1; in hpsb_bus_reset()
202 host->irm_id = -1; in hpsb_bus_reset()
203 host->is_irm = 0; in hpsb_bus_reset()
204 host->busmgr_id = -1; in hpsb_bus_reset()
[all …]
Dhosts.c59 int hpsb_ref_host(struct hpsb_host *host) in hpsb_ref_host() argument
66 if (host == list_entry(lh, struct hpsb_host, host_list)) { in hpsb_ref_host()
67 host->driver->devctl(host, MODIFY_USAGE, 1); in hpsb_ref_host()
68 host->refcount++; in hpsb_ref_host()
87 void hpsb_unref_host(struct hpsb_host *host) in hpsb_unref_host() argument
89 host->driver->devctl(host, MODIFY_USAGE, 0); in hpsb_unref_host()
92 host->refcount--; in hpsb_unref_host()
94 if (!host->refcount && host->is_shutdown) in hpsb_unref_host()
95 kfree(host); in hpsb_unref_host()
161 struct hpsb_host *host = list_entry(lh, struct hpsb_host, host_list); in alloc_hostnum() local
[all …]
Dhighlevel.h32 void (*add_host) (struct hpsb_host *host);
36 void (*remove_host) (struct hpsb_host *host);
41 void (*host_reset) (struct hpsb_host *host);
47 void (*iso_receive) (struct hpsb_host *host, int channel,
54 void (*fcp_request) (struct hpsb_host *host, int nodeid, int direction,
80 int (*read) (struct hpsb_host *host, int nodeid, quadlet_t *buffer,
82 int (*write) (struct hpsb_host *host, int nodeid, int destid,
87 int (*lock) (struct hpsb_host *host, int nodeid, quadlet_t *store,
89 int (*lock64) (struct hpsb_host *host, int nodeid, octlet_t *store,
96 void highlevel_add_host(struct hpsb_host *host);
[all …]
Dnodemgr.c84 struct hpsb_host *host; member
128 NODE_BUS_ARGS(ne->host, ne->nodeid), (unsigned long long)ne->guid); in raw1394_read_proc()
142 if (ne->host != NULL && ne->host->node_id == ne->nodeid) { in raw1394_read_proc()
144 PUTF(" Host Driver : %s\n", ne->host->driver->name); in raw1394_read_proc()
145 PUTF(" Nodes connected : %d\n", ne->host->node_count); in raw1394_read_proc()
146 PUTF(" Nodes active : %d\n", ne->host->nodes_active); in raw1394_read_proc()
147 PUTF(" SelfIDs received: %d\n", ne->host->selfid_count); in raw1394_read_proc()
149 NODE_BUS_ARGS(ne->host, ne->host->irm_id)); in raw1394_read_proc()
151 NODE_BUS_ARGS(ne->host, ne->host->busmgr_id)); in raw1394_read_proc()
152 PUTF(" In Bus Reset : %s\n", ne->host->in_bus_reset ? "yes" : "no"); in raw1394_read_proc()
[all …]
Dhighlevel.c33 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
[all …]
/linux-2.4.37.9/drivers/block/
Dsx8.c229 struct carm_host *host; member
435 struct carm_host *host; in carm_from_dev() local
453 host = port->host; in carm_from_dev()
454 if (unlikely(host->magic != CARM_MAGIC_HOST)) { in carm_from_dev()
462 return host; in carm_from_dev()
470 struct carm_host *host; in carm_bdev_ioctl() local
472 host = carm_from_dev(ino->i_rdev, &port); in carm_bdev_ioctl()
473 if (!host) in carm_bdev_ioctl()
496 geom.start = host->gendisk_hd[MINOR(ino->i_rdev)].start_sect; in carm_bdev_ioctl()
518 geom.start = host->gendisk_hd[MINOR(ino->i_rdev)].start_sect; in carm_bdev_ioctl()
[all …]
/linux-2.4.37.9/drivers/scsi/
D53c7xx.c309 static void dump_events (struct Scsi_Host *host, int count);
310 static Scsi_Cmnd * return_outstanding_commands (struct Scsi_Host *host,
312 static void hard_reset (struct Scsi_Host *host);
313 static void ncr_scsi_reset (struct Scsi_Host *host);
314 static void print_lots (struct Scsi_Host *host);
315 static void set_synchronous (struct Scsi_Host *host, int target, int sxfer,
317 static int datapath_residual (struct Scsi_Host *host);
320 static void print_queues (struct Scsi_Host *host);
322 static int shutdown (struct Scsi_Host *host);
324 static int disable (struct Scsi_Host *host);
[all …]
D53c7,8xx.c248 static void dump_events (struct Scsi_Host *host, int count);
249 static Scsi_Cmnd * return_outstanding_commands (struct Scsi_Host *host,
251 static void hard_reset (struct Scsi_Host *host);
252 static void ncr_scsi_reset (struct Scsi_Host *host);
253 static void print_lots (struct Scsi_Host *host);
254 static void set_synchronous (struct Scsi_Host *host, int target, int sxfer,
256 static int datapath_residual (struct Scsi_Host *host);
259 static void print_queues (struct Scsi_Host *host);
261 static int shutdown (struct Scsi_Host *host);
263 static int disable (struct Scsi_Host *host);
[all …]
Dsim710.c171 host->host_no, cmd->result)); \
272 static int full_reset(struct Scsi_Host * host);
284 ncr_dump (struct Scsi_Host *host) in ncr_dump() argument
288 host->hostdata[0]; in ncr_dump()
292 printk("scsi%d: Chip register contents:\n", host->host_no); in ncr_dump()
435 ncr_halt (struct Scsi_Host *host) in ncr_halt() argument
440 host->hostdata[0]; in ncr_halt()
491 printk(KERN_ALERT "scsi%d: could not halt NCR chip\n", host->host_no); in ncr_halt()
513 sim710_soft_reset (struct Scsi_Host *host) in sim710_soft_reset() argument
547 NCR_write8(SCID_REG, 1 << host->this_id); in sim710_soft_reset()
[all …]
Dqlogicisp.c631 static inline u_short isp_inw(struct Scsi_Host *host, long offset) in isp_inw() argument
633 struct isp1020_hostdata *h = (struct isp1020_hostdata *)host->hostdata; in isp_inw()
637 return inw(host->io_port + offset); in isp_inw()
640 static inline void isp_outw(u_short val, struct Scsi_Host *host, long offset) in isp_outw() argument
642 struct isp1020_hostdata *h = (struct isp1020_hostdata *)host->hostdata; in isp_outw()
646 outw(val, host->io_port + offset); in isp_outw()
649 static inline void isp1020_enable_irqs(struct Scsi_Host *host) in isp1020_enable_irqs() argument
651 isp_outw(ISP_EN_INT|ISP_EN_RISC, host, PCI_INTF_CTL); in isp1020_enable_irqs()
655 static inline void isp1020_disable_irqs(struct Scsi_Host *host) in isp1020_disable_irqs() argument
657 isp_outw(0x0, host, PCI_INTF_CTL); in isp1020_disable_irqs()
[all …]
Dwd7000.c438 Adapter *host; /* host adapter */ member
752 static inline void wd7000_enable_intr (Adapter *host) in wd7000_enable_intr() argument
754 host->control |= INT_EN; in wd7000_enable_intr()
755 outb (host->control, host->iobase + ASC_CONTROL); in wd7000_enable_intr()
759 static inline void wd7000_enable_dma (Adapter *host) in wd7000_enable_dma() argument
762 host->control |= DMA_EN; in wd7000_enable_dma()
763 outb (host->control, host->iobase + ASC_CONTROL); in wd7000_enable_dma()
766 set_dma_mode (host->dma, DMA_MODE_CASCADE); in wd7000_enable_dma()
767 enable_dma (host->dma); in wd7000_enable_dma()
799 static inline int command_out (Adapter * host, unchar * cmd, int len) in command_out() argument
[all …]
Dscsi_error.c185 if (SCpnt->host->hostt->eh_ordered_queue_tag) { in scsi_times_out()
186 if ((*SCpnt->host->hostt->eh_ordered_queue_tag) (SCpnt)) { in scsi_times_out()
197 if (SCpnt->host->can_queue) { in scsi_times_out()
198 SCpnt->host->hostt->queuecommand(SCpnt, NULL); in scsi_times_out()
209 SCpnt->host->in_recovery = 1; in scsi_times_out()
210 SCpnt->host->host_failed++; in scsi_times_out()
213 atomic_read(&SCpnt->host->host_active), in scsi_times_out()
214 SCpnt->host->host_busy, in scsi_times_out()
215 SCpnt->host->host_failed)); in scsi_times_out()
221 if( SCpnt->host->eh_wait == NULL ) { in scsi_times_out()
[all …]
D53c700.c172 STATIC void NCR_700_chip_setup(struct Scsi_Host *host);
173 STATIC void NCR_700_chip_reset(struct Scsi_Host *host);
245 struct Scsi_Host *host; in NCR_700_detect() local
295 if((host = scsi_register(tpnt, 4)) == NULL) in NCR_700_detect()
332 host->max_id = 7; in NCR_700_detect()
333 host->max_lun = NCR_700_MAX_LUNS; in NCR_700_detect()
334 host->unique_id = hostdata->base; in NCR_700_detect()
335 host->base = hostdata->base; in NCR_700_detect()
336 host->hostdata[0] = (unsigned long)hostdata; in NCR_700_detect()
338 NCR_700_writeb(0xff, host, CTEST9_REG); in NCR_700_detect()
[all …]
Dqlogicfc.c682 static inline void isp2x00_enable_irqs(struct Scsi_Host *host) in isp2x00_enable_irqs() argument
684 outw(ISP_EN_INT | ISP_EN_RISC, host->io_port + PCI_INTER_CTL); in isp2x00_enable_irqs()
688 static inline void isp2x00_disable_irqs(struct Scsi_Host *host) in isp2x00_disable_irqs() argument
690 outw(0x0, host->io_port + PCI_INTER_CTL); in isp2x00_disable_irqs()
698 struct Scsi_Host *host = NULL; in isp2x00_detect() local
729 host = scsi_register(tmpt, sizeof(struct isp2x00_hostdata)); in isp2x00_detect()
730 if (!host) { in isp2x00_detect()
734 scsi_set_pci_device(host, pdev); in isp2x00_detect()
735 host->max_id = QLOGICFC_MAX_ID + 1; in isp2x00_detect()
736 host->max_lun = QLOGICFC_MAX_LUN; in isp2x00_detect()
[all …]
Dgvp11.c64 if (addr & HDATA(cmd->host)->dma_xfer_mask || in dma_setup()
67 HDATA(cmd->host)->dma_bounce_len = (cmd->SCp.this_residual + 511) in dma_setup()
71 HDATA(cmd->host)->dma_bounce_buffer = in dma_setup()
72 scsi_malloc (HDATA(cmd->host)->dma_bounce_len); in dma_setup()
73 HDATA(cmd->host)->dma_buffer_pool = BUF_SCSI_ALLOCED; in dma_setup()
76 if ( scsi_alloc_out_of_range || !HDATA(cmd->host)->dma_bounce_buffer) { in dma_setup()
77 HDATA(cmd->host)->dma_bounce_buffer = in dma_setup()
78 amiga_chip_alloc(HDATA(cmd->host)->dma_bounce_len, in dma_setup()
81 if(!HDATA(cmd->host)->dma_bounce_buffer) in dma_setup()
83 HDATA(cmd->host)->dma_bounce_len = 0; in dma_setup()
[all …]

12345678910>>...15