Home
last modified time | relevance | path

Searched refs:shpnt (Results 1 – 18 of 18) sorted by relevance

/drivers/scsi/
Dibmmca.c45 static int ibmmca_proc_info(struct Scsi_Host *shpnt, char *buffer, char **start, off_t offset, int …
508 struct Scsi_Host *shpnt = dev_get_drvdata(dev); in interrupt_handler() local
510 spin_lock_irqsave(shpnt->host_lock, flags); in interrupt_handler()
512 if(!(inb(IM_STAT_REG(shpnt)) & IM_INTR_REQUEST)) { in interrupt_handler()
513 spin_unlock_irqrestore(shpnt->host_lock, flags); in interrupt_handler()
519 …if ((reset_status(shpnt) == IM_RESET_NOT_IN_PROGRESS_NO_INT) || (reset_status(shpnt) == IM_RESET_F… in interrupt_handler()
520 reset_status(shpnt) = IM_RESET_NOT_IN_PROGRESS; in interrupt_handler()
521 spin_unlock_irqrestore(shpnt->host_lock, flags); in interrupt_handler()
527 if (!(inb(IM_STAT_REG(shpnt)) & IM_BUSY)) in interrupt_handler()
533 intr_reg = (unsigned char) (inb(IM_INTR_REG(shpnt))); in interrupt_handler()
[all …]
Dfd_mcs.c222 #define HOSTDATA(shpnt) ((struct fd_hostdata *) shpnt->hostdata) argument
223 #define bios_base (HOSTDATA(shpnt)->_bios_base)
224 #define bios_major (HOSTDATA(shpnt)->_bios_major)
225 #define bios_minor (HOSTDATA(shpnt)->_bios_minor)
226 #define in_command (HOSTDATA(shpnt)->_in_command)
227 #define current_SC (HOSTDATA(shpnt)->_current_SC)
228 #define chip (HOSTDATA(shpnt)->_chip)
229 #define adapter_mask (HOSTDATA(shpnt)->_adapter_mask)
230 #define FIFO_COUNT (HOSTDATA(shpnt)->_fifo_count)
231 #define adapter_name (HOSTDATA(shpnt)->_adapter_name)
[all …]
Daha152x.c286 do { if(HOSTDATA(shpnt)->debug & (when)) printk(msgs); } while(0)
576 #define HOSTDATA(shpnt) ((struct aha152x_hostdata *) &shpnt->hostdata) argument
578 #define HOSTNO ((shpnt)->host_no)
580 #define CURRENT_SC (HOSTDATA(shpnt)->current_SC)
581 #define DONE_SC (HOSTDATA(shpnt)->done_SC)
582 #define ISSUE_SC (HOSTDATA(shpnt)->issue_SC)
583 #define DISCONNECTED_SC (HOSTDATA(shpnt)->disconnected_SC)
584 #define QLOCK (HOSTDATA(shpnt)->lock)
585 #define QLOCKER (HOSTDATA(shpnt)->locker)
586 #define QLOCKERL (HOSTDATA(shpnt)->lockerl)
[all …]
Daha1740.c109 static int aha1740_proc_info(struct Scsi_Host *shpnt, char *buffer, in aha1740_proc_info() argument
119 host = HOSTDATA(shpnt); in aha1740_proc_info()
123 shpnt->io_port, shpnt->irq, host->edev->slot, in aha1740_proc_info()
575 struct Scsi_Host *shpnt; in aha1740_probe() local
597 shpnt = scsi_host_alloc(&aha1740_template, in aha1740_probe()
599 if(shpnt == NULL) in aha1740_probe()
602 shpnt->base = 0; in aha1740_probe()
603 shpnt->io_port = slotbase; in aha1740_probe()
604 shpnt->n_io_port = SLOTSIZE; in aha1740_probe()
605 shpnt->irq = irq_level; in aha1740_probe()
[all …]
Dfdomain.c518 static void print_banner( struct Scsi_Host *shpnt ) in print_banner() argument
520 if (!shpnt) return; /* This won't ever happen */ in print_banner()
524 shpnt->host_no, shpnt->this_id); in print_banner()
526 printk(KERN_INFO "scsi%d: <fdomain> BIOS version ", shpnt->host_no); in print_banner()
535 bios_base, shpnt->this_id ); in print_banner()
543 shpnt->host_no, in print_banner()
898 struct Scsi_Host *shpnt; in __fdomain_16x0_detect() local
962 shpnt = scsi_register( tpnt, 0 ); in __fdomain_16x0_detect()
963 if(shpnt == NULL) { in __fdomain_16x0_detect()
967 shpnt->irq = interrupt_level; in __fdomain_16x0_detect()
[all …]
Daha1542.c146 static void setup_mailboxes(int base_io, struct Scsi_Host *shpnt);
319 static int __init aha1542_test_port(int bse, struct Scsi_Host *shpnt) in aha1542_test_port() argument
723 static void setup_mailboxes(int bse, struct Scsi_Host *shpnt) in DEF_SCSI_QCMD()
731 mb = HOSTDATA(shpnt)->mb; in DEF_SCSI_QCMD()
732 ccb = HOSTDATA(shpnt)->ccb; in DEF_SCSI_QCMD()
976 struct Scsi_Host *shpnt = NULL; in aha1542_detect() local
1112 shpnt = scsi_register(tpnt, in aha1542_detect()
1115 if(shpnt==NULL) { in aha1542_detect()
1119 if (!aha1542_test_port(bases[indx], shpnt)) in aha1542_detect()
1164 setup_mailboxes(base_io, shpnt); in aha1542_detect()
[all …]
Datp870u.c2570 struct Scsi_Host *shpnt = NULL; in atp870u_probe() local
2685 shpnt = scsi_host_alloc(&atp870u_template, sizeof(struct atp_unit)); in atp870u_probe()
2686 if (!shpnt) in atp870u_probe()
2689 p = (struct atp_unit *)&shpnt->hostdata; in atp870u_probe()
2691 atpdev->host = shpnt; in atp870u_probe()
2695 if (atp870u_init_tables(shpnt) < 0) { in atp870u_probe()
2700 if (request_irq(pdev->irq, atp870u_intr_handle, IRQF_SHARED, "atp880i", shpnt)) { in atp870u_probe()
2705 spin_lock_irqsave(shpnt->host_lock, flags); in atp870u_probe()
2733 tscam(shpnt); in atp870u_probe()
2737 shpnt->max_id = 16; in atp870u_probe()
[all …]
DNCR53c406a.c454 struct Scsi_Host *shpnt = NULL; in NCR53c406a_detect() local
529 shpnt = scsi_register(tpnt, 0); in NCR53c406a_detect()
530 if (!shpnt) { in NCR53c406a_detect()
536 if (request_irq(irq_level, do_NCR53c406a_intr, 0, "NCR53c406a", shpnt)) { in NCR53c406a_detect()
567 shpnt->irq = irq_level; in NCR53c406a_detect()
568 shpnt->io_port = port_base; in NCR53c406a_detect()
569 shpnt->n_io_port = 0x10; in NCR53c406a_detect()
571 shpnt->dma = dma_chan; in NCR53c406a_detect()
585 free_irq(irq_level, shpnt); in NCR53c406a_detect()
588 scsi_unregister(shpnt); in NCR53c406a_detect()
Dsym53c416.c614 struct Scsi_Host * shpnt = NULL; in sym53c416_detect() local
695 shpnt = scsi_register(tpnt, 0); in sym53c416_detect()
696 if (!shpnt) in sym53c416_detect()
699 if (request_irq(hosts[i].irq, sym53c416_intr_handle, 0, ID, shpnt)) in sym53c416_detect()
703 shpnt->unique_id = hosts[i].base; in sym53c416_detect()
704 shpnt->io_port = hosts[i].base; in sym53c416_detect()
705 shpnt->n_io_port = IO_RANGE; in sym53c416_detect()
706 shpnt->irq = hosts[i].irq; in sym53c416_detect()
707 shpnt->this_id = hosts[i].scsi_id; in sym53c416_detect()
714 scsi_unregister(shpnt); in sym53c416_detect()
Dmac_scsi.c313 int macscsi_release (struct Scsi_Host *shpnt) in macscsi_release() argument
315 if (shpnt->irq != SCSI_IRQ_NONE) in macscsi_release()
316 free_irq(shpnt->irq, shpnt); in macscsi_release()
317 NCR5380_exit(shpnt); in macscsi_release()
Dsun3_scsi_vme.c282 int sun3scsi_release (struct Scsi_Host *shpnt) in sun3scsi_release() argument
284 if (shpnt->irq != SCSI_IRQ_NONE) in sun3scsi_release()
285 free_irq(shpnt->irq, shpnt); in sun3scsi_release()
289 NCR5380_exit(shpnt); in sun3scsi_release()
Dsun3_scsi.c313 int sun3scsi_release (struct Scsi_Host *shpnt) in sun3scsi_release() argument
315 if (shpnt->irq != SCSI_IRQ_NONE) in sun3scsi_release()
316 free_irq(shpnt->irq, shpnt); in sun3scsi_release()
320 NCR5380_exit(shpnt); in sun3scsi_release()
Dultrastor.c538 struct Scsi_Host * shpnt = NULL; in ultrastor_24f_detect() local
611 shpnt = scsi_register(tpnt, 0); in ultrastor_24f_detect()
612 if (!shpnt) { in ultrastor_24f_detect()
618 if (request_irq(config.interrupt, do_ultrastor_interrupt, 0, "Ultrastor", shpnt)) in ultrastor_24f_detect()
625 shpnt->irq = config.interrupt; in ultrastor_24f_detect()
626 shpnt->dma_channel = config.dma_channel; in ultrastor_24f_detect()
627 shpnt->io_port = config.port_address; in ultrastor_24f_detect()
665 static const char *ultrastor_info(struct Scsi_Host * shpnt) in ultrastor_info() argument
Dultrastor.h17 static const char *ultrastor_info(struct Scsi_Host *shpnt);
Du14-34f.c1942 static int u14_34f_release(struct Scsi_Host *shpnt) { in u14_34f_release() argument
1945 for (j = 0; sh[j] != NULL && sh[j] != shpnt; j++); in u14_34f_release()
Dnsp32.c2840 static const char *nsp32_info(struct Scsi_Host *shpnt) in nsp32_info() argument
2842 nsp32_hw_data *data = (nsp32_hw_data *)shpnt->hostdata; in nsp32_info()
/drivers/scsi/pcmcia/
Dnsp_cs.h294 static const char *nsp_info (struct Scsi_Host *shpnt);
Dnsp_cs.c1360 static const char *nsp_info(struct Scsi_Host *shpnt) in nsp_info() argument
1362 nsp_hw_data *data = (nsp_hw_data *)shpnt->hostdata; in nsp_info()