• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/scsi/

Lines Matching defs:shpnt

223 #define HOSTDATA(shpnt) ((struct fd_hostdata *) shpnt->hostdata)
224 #define bios_base (HOSTDATA(shpnt)->_bios_base)
225 #define bios_major (HOSTDATA(shpnt)->_bios_major)
226 #define bios_minor (HOSTDATA(shpnt)->_bios_minor)
227 #define in_command (HOSTDATA(shpnt)->_in_command)
228 #define current_SC (HOSTDATA(shpnt)->_current_SC)
229 #define chip (HOSTDATA(shpnt)->_chip)
230 #define adapter_mask (HOSTDATA(shpnt)->_adapter_mask)
231 #define FIFO_COUNT (HOSTDATA(shpnt)->_fifo_count)
232 #define adapter_name (HOSTDATA(shpnt)->_adapter_name)
234 #define in_interrupt_flag (HOSTDATA(shpnt)->_in_interrupt_flag)
236 #define SCSI_Mode_Cntl_port (HOSTDATA(shpnt)->_SCSI_Mode_Cntl_port)
237 #define FIFO_Data_Count_port (HOSTDATA(shpnt)->_FIFO_Data_Count_port)
238 #define Interrupt_Cntl_port (HOSTDATA(shpnt)->_Interrupt_Cntl_port)
239 #define Interrupt_Status_port (HOSTDATA(shpnt)->_Interrupt_Status_port)
240 #define Interrupt_Cond_port (HOSTDATA(shpnt)->_Interrupt_Cond_port)
241 #define Read_FIFO_port (HOSTDATA(shpnt)->_Read_FIFO_port)
242 #define Read_SCSI_Data_port (HOSTDATA(shpnt)->_Read_SCSI_Data_port)
243 #define SCSI_Cntl_port (HOSTDATA(shpnt)->_SCSI_Cntl_port)
244 #define SCSI_Data_NoACK_port (HOSTDATA(shpnt)->_SCSI_Data_NoACK_port)
245 #define SCSI_Status_port (HOSTDATA(shpnt)->_SCSI_Status_port)
246 #define TMC_Cntl_port (HOSTDATA(shpnt)->_TMC_Cntl_port)
247 #define TMC_Status_port (HOSTDATA(shpnt)->_TMC_Status_port)
248 #define Write_FIFO_port (HOSTDATA(shpnt)->_Write_FIFO_port)
249 #define Write_SCSI_Data_port (HOSTDATA(shpnt)->_Write_SCSI_Data_port)
250 #define FIFO_Size (HOSTDATA(shpnt)->_FIFO_Size)
251 #define Bytes_Read (HOSTDATA(shpnt)->_Bytes_Read)
252 #define Bytes_Written (HOSTDATA(shpnt)->_Bytes_Written)
253 #define INTR_Processed (HOSTDATA(shpnt)->_INTR_Processed)
318 static void print_banner(struct Scsi_Host *shpnt)
320 printk("scsi%d <fd_mcs>: ", shpnt->host_no);
328 printk(", HostID %d, %s Chip, IRQ %d, IO 0x%lX\n", shpnt->this_id, chip == tmc18c50 ? "TMC-18C50" : (chip == tmc18c30 ? "TMC-18C30" : (chip == tmc1800 ? "TMC-1800" : "Unknown")), shpnt->irq, shpnt->io_port);
339 static void fd_mcs_make_bus_idle(struct Scsi_Host *shpnt)
352 struct Scsi_Host *shpnt;
417 if (!(shpnt = scsi_register(tpnt, sizeof(struct fd_hostdata)))) {
466 shpnt->reverse_ordering = 1;
470 hosts[found++] = shpnt;
472 shpnt->this_id = id;
473 shpnt->irq = irq;
474 shpnt->io_port = port;
475 shpnt->n_io_port = 0x10;
502 print_banner(shpnt);
524 static const char *fd_mcs_info(struct Scsi_Host *shpnt)
541 static int fd_mcs_proc_info(struct Scsi_Host *shpnt, char *buffer, char **start, off_t offset, int length, int inout)
551 len += sprintf(buffer + len, "HOST #%d: %s\n", shpnt->host_no, adapter_name);
562 static int fd_mcs_select(struct Scsi_Host *shpnt, int target)
587 fd_mcs_make_bus_idle(shpnt);
605 static void my_done(struct Scsi_Host *shpnt, int error)
610 fd_mcs_make_bus_idle(shpnt);
630 struct Scsi_Host *shpnt;
635 while ((shpnt = hosts[i++])) {
641 if (!shpnt) {
666 spin_lock_irqsave(shpnt->host_lock, flags);
667 my_done(shpnt, DID_BUS_BUSY << 16);
668 spin_unlock_irqrestore(shpnt->host_lock, flags);
688 if (fd_mcs_select(shpnt, scmd_id(current_SC))) {
692 spin_lock_irqsave(shpnt->host_lock, flags);
693 my_done(shpnt, DID_NO_CONNECT << 16);
694 spin_unlock_irqrestore(shpnt->host_lock, flags);
1023 spin_lock_irqsave(shpnt->host_lock, flags);
1024 my_done(shpnt, (current_SC->SCp.Status & 0xff)
1026 spin_unlock_irqrestore(shpnt->host_lock, flags);
1045 static int fd_mcs_release(struct Scsi_Host *shpnt)
1049 release_region(shpnt->io_port, shpnt->n_io_port);
1054 if (shpnt == hosts[i])
1056 if (shpnt->irq == hosts[i]->irq)
1062 free_irq(shpnt->irq, hosts);
1076 struct Scsi_Host *shpnt = SCpnt->device->host;
1087 fd_mcs_make_bus_idle(shpnt);
1130 struct Scsi_Host *shpnt = SCpnt->host;
1173 if (imr & (1 << shpnt->irq))
1187 printk("FIFO Status = 0x%02x\n", inb(shpnt->io_port + FIFO_Status));
1188 printk("Int. Condition = 0x%02x\n", inb(shpnt->io_port + Interrupt_Cond));
1190 printk("Configuration 1 = 0x%02x\n", inb(shpnt->io_port + Configuration1));
1192 printk("Configuration 2 = 0x%02x\n", inb(shpnt->io_port + Configuration2));
1198 struct Scsi_Host *shpnt = SCpnt->device->host;
1205 spin_lock_irqsave(shpnt->host_lock, flags);
1210 spin_unlock_irqrestore(shpnt->host_lock, flags);
1219 fd_mcs_make_bus_idle(shpnt);
1226 my_done(shpnt, DID_ABORT << 16);
1228 spin_unlock_irqrestore(shpnt->host_lock, flags);
1233 struct Scsi_Host *shpnt = SCpnt->device->host;
1251 spin_lock_irqsave(shpnt->host_lock, flags);
1260 spin_unlock_irqrestore(shpnt->host_lock, flags);