• 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

1427 	struct Scsi_Host *shpnt;
1435 shpnt = dev; /* assign host-structure to local pointer */
1438 speciale = ((struct ibmmca_hostdata *) shpnt->hostdata)->_special;
1439 connectore = ((struct ibmmca_hostdata *) shpnt->hostdata)->_connector_size;
1441 pos[k] = ((struct ibmmca_hostdata *) shpnt->hostdata)->_pos[k];
1462 len += sprintf(buf + len, "Subsystem PUN: %d\n", shpnt->this_id);
1463 len += sprintf(buf + len, "I/O base address range: 0x%x-0x%x\n", (unsigned int) (shpnt->io_port), (unsigned int) (shpnt->io_port + 7));
1471 spin_unlock_irqrestore(shpnt->host_lock, flags);
1478 struct Scsi_Host *shpnt;
1514 if ((shpnt = ibmmca_register(scsi_template, io_port[i], scsi_id[i], FORCED_DETECTION, "forced detected SCSI Adapter"))) {
1516 ((struct ibmmca_hostdata *) shpnt->hostdata)->_pos[k] = 0;
1517 ((struct ibmmca_hostdata *) shpnt->hostdata)->_special = FORCED_DETECTION;
1519 mca_set_adapter_procfn(MCA_INTEGSCSI, (MCA_ProcFn) ibmmca_getinfo, shpnt);
1581 if ((shpnt = ibmmca_register(scsi_template, port, id, INTEGRATED_SCSI, "IBM Integrated SCSI Controller")))
1584 ((struct ibmmca_hostdata *) shpnt->hostdata)->_pos[k] = pos[k];
1585 ((struct ibmmca_hostdata *) shpnt->hostdata)->_special = INTEGRATED_SCSI;
1587 mca_set_adapter_procfn(MCA_INTEGSCSI, (MCA_ProcFn) ibmmca_getinfo, shpnt);
1642 if ((shpnt = ibmmca_register(scsi_template, port, id, i, subsys_list[i].description))) {
1644 ((struct ibmmca_hostdata *) shpnt->hostdata)->_pos[k] = pos[k];
1645 ((struct ibmmca_hostdata *) shpnt->hostdata)->_special = i;
1647 mca_set_adapter_procfn(slot, (MCA_ProcFn) ibmmca_getinfo, shpnt);
1703 if ((shpnt = ibmmca_register(scsi_template, port, id, i, subsys_list[i].description))) {
1705 ((struct ibmmca_hostdata *) shpnt->hostdata)->_pos[k] = pos[k];
1706 ((struct ibmmca_hostdata *) shpnt->hostdata)->_special = i;
1708 mca_set_adapter_procfn(slot, (MCA_ProcFn) ibmmca_getinfo, shpnt);
1729 struct Scsi_Host *shpnt;
1740 shpnt = scsi_register(scsi_template, sizeof(struct ibmmca_hostdata));
1741 if (!shpnt) {
1748 hosts[found] = shpnt; /* add new found hostadapter to the list */
1751 shpnt->irq = IM_IRQ; /* assign necessary stuff for the adapter */
1752 shpnt->io_port = port;
1753 shpnt->n_io_port = IM_N_IO_PORT;
1754 shpnt->this_id = id;
1755 shpnt->max_id = 8; /* 8 PUNs are default */
1779 return shpnt;
1782 static int ibmmca_release(struct Scsi_Host *shpnt)
1784 release_region(shpnt->io_port, shpnt->n_io_port);
1786 free_irq(shpnt->irq, hosts);
1796 struct Scsi_Host *shpnt;
1805 shpnt = cmd->device->host;
1807 for (host_index = 0; hosts[host_index] && hosts[host_index]->host_no != shpnt->host_no; host_index++);
2095 PS2_DISK_LED_ON(shpnt->host_no, target);
2113 struct Scsi_Host *shpnt;
2125 shpnt = cmd->device->host;
2127 for (host_index = 0; hosts[host_index] && hosts[host_index]->host_no != shpnt->host_no; host_index++);
2133 shpnt = cmd->device->host;
2181 spin_unlock_irq(shpnt->host_lock);
2184 spin_lock_irq(shpnt->host_lock);
2215 struct Scsi_Host *shpnt = cmd->device->host;
2218 spin_lock_irq(shpnt->host_lock);
2220 spin_unlock_irq(shpnt->host_lock);
2227 struct Scsi_Host *shpnt;
2236 shpnt = cmd->device->host;
2238 for (host_index = 0; hosts[host_index] && hosts[host_index]->host_no != shpnt->host_no; host_index++);
2260 spin_unlock_irq(shpnt->host_lock);
2262 spin_lock_irq(shpnt->host_lock);
2312 struct Scsi_Host *shpnt = cmd->device->host;
2315 spin_lock_irq(shpnt->host_lock);
2317 spin_unlock_irq(shpnt->host_lock);
2388 static int ibmmca_proc_info(struct Scsi_Host *shpnt, char *buffer, char **start, off_t offset, int length, int inout)
2395 for (i = 0; hosts[i] && hosts[i] != shpnt; i++);
2399 if (!shpnt) {
2413 len += sprintf(buffer + len, " This Hostnumber..........: %d\n", shpnt->host_no);
2459 spin_unlock_irqrestore(shpnt->host_lock, flags);