• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/drivers/scsi/

Lines Matching refs:shpnt

222 #define HOSTDATA(shpnt) ((struct fd_hostdata *) shpnt->hostdata)
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)
233 #define in_interrupt_flag (HOSTDATA(shpnt)->_in_interrupt_flag)
235 #define SCSI_Mode_Cntl_port (HOSTDATA(shpnt)->_SCSI_Mode_Cntl_port)
236 #define FIFO_Data_Count_port (HOSTDATA(shpnt)->_FIFO_Data_Count_port)
237 #define Interrupt_Cntl_port (HOSTDATA(shpnt)->_Interrupt_Cntl_port)
238 #define Interrupt_Status_port (HOSTDATA(shpnt)->_Interrupt_Status_port)
239 #define Interrupt_Cond_port (HOSTDATA(shpnt)->_Interrupt_Cond_port)
240 #define Read_FIFO_port (HOSTDATA(shpnt)->_Read_FIFO_port)
241 #define Read_SCSI_Data_port (HOSTDATA(shpnt)->_Read_SCSI_Data_port)
242 #define SCSI_Cntl_port (HOSTDATA(shpnt)->_SCSI_Cntl_port)
243 #define SCSI_Data_NoACK_port (HOSTDATA(shpnt)->_SCSI_Data_NoACK_port)
244 #define SCSI_Status_port (HOSTDATA(shpnt)->_SCSI_Status_port)
245 #define TMC_Cntl_port (HOSTDATA(shpnt)->_TMC_Cntl_port)
246 #define TMC_Status_port (HOSTDATA(shpnt)->_TMC_Status_port)
247 #define Write_FIFO_port (HOSTDATA(shpnt)->_Write_FIFO_port)
248 #define Write_SCSI_Data_port (HOSTDATA(shpnt)->_Write_SCSI_Data_port)
249 #define FIFO_Size (HOSTDATA(shpnt)->_FIFO_Size)
250 #define Bytes_Read (HOSTDATA(shpnt)->_Bytes_Read)
251 #define Bytes_Written (HOSTDATA(shpnt)->_Bytes_Written)
252 #define INTR_Processed (HOSTDATA(shpnt)->_INTR_Processed)
317 static void print_banner(struct Scsi_Host *shpnt)
319 printk("scsi%d <fd_mcs>: ", shpnt->host_no);
327 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);
338 static void fd_mcs_make_bus_idle(struct Scsi_Host *shpnt)
351 struct Scsi_Host *shpnt;
416 if (!(shpnt = scsi_register(tpnt, sizeof(struct fd_hostdata)))) {
465 shpnt->reverse_ordering = 1;
469 hosts[found++] = shpnt;
471 shpnt->this_id = id;
472 shpnt->irq = irq;
473 shpnt->io_port = port;
474 shpnt->n_io_port = 0x10;
501 print_banner(shpnt);
523 static const char *fd_mcs_info(struct Scsi_Host *shpnt)
540 static int fd_mcs_proc_info(struct Scsi_Host *shpnt, char *buffer, char **start, off_t offset, int length, int inout)
550 len += sprintf(buffer + len, "HOST #%d: %s\n", shpnt->host_no, adapter_name);
561 static int fd_mcs_select(struct Scsi_Host *shpnt, int target)
586 fd_mcs_make_bus_idle(shpnt);
604 static void my_done(struct Scsi_Host *shpnt, int error)
609 fd_mcs_make_bus_idle(shpnt);
629 struct Scsi_Host *shpnt;
634 while ((shpnt = hosts[i++])) {
640 if (!shpnt) {
665 spin_lock_irqsave(shpnt->host_lock, flags);
666 my_done(shpnt, DID_BUS_BUSY << 16);
667 spin_unlock_irqrestore(shpnt->host_lock, flags);
687 if (fd_mcs_select(shpnt, scmd_id(current_SC))) {
691 spin_lock_irqsave(shpnt->host_lock, flags);
692 my_done(shpnt, DID_NO_CONNECT << 16);
693 spin_unlock_irqrestore(shpnt->host_lock, flags);
1040 spin_lock_irqsave(shpnt->host_lock, flags);
1041 my_done(shpnt, (current_SC->SCp.Status & 0xff)
1043 spin_unlock_irqrestore(shpnt->host_lock, flags);
1062 static int fd_mcs_release(struct Scsi_Host *shpnt)
1066 release_region(shpnt->io_port, shpnt->n_io_port);
1071 if (shpnt == hosts[i])
1073 if (shpnt->irq == hosts[i]->irq)
1079 free_irq(shpnt->irq, hosts);
1093 struct Scsi_Host *shpnt = SCpnt->device->host;
1102 fd_mcs_make_bus_idle(shpnt);
1145 struct Scsi_Host *shpnt = SCpnt->host;
1186 if (imr & (1 << shpnt->irq))
1200 printk("FIFO Status = 0x%02x\n", inb(shpnt->io_port + FIFO_Status));
1201 printk("Int. Condition = 0x%02x\n", inb(shpnt->io_port + Interrupt_Cond));
1203 printk("Configuration 1 = 0x%02x\n", inb(shpnt->io_port + Configuration1));
1205 printk("Configuration 2 = 0x%02x\n", inb(shpnt->io_port + Configuration2));
1211 struct Scsi_Host *shpnt = SCpnt->device->host;
1218 spin_lock_irqsave(shpnt->host_lock, flags);
1223 spin_unlock_irqrestore(shpnt->host_lock, flags);
1232 fd_mcs_make_bus_idle(shpnt);
1239 my_done(shpnt, DID_ABORT << 16);
1241 spin_unlock_irqrestore(shpnt->host_lock, flags);
1246 struct Scsi_Host *shpnt = SCpnt->device->host;
1264 spin_lock_irqsave(shpnt->host_lock, flags);
1273 spin_unlock_irqrestore(shpnt->host_lock, flags);