Lines Matching refs:device
200 if(pDev->device == PCI_DPT_DEVICE_ID ||
201 pDev->device == PCI_DPT_RAPTOR_DEVICE_ID){
203 PERROR("Could not Init an I2O RAID device\n");
280 struct device *dev = device_create(adpt_sysfs_class,
285 "create device in dpt_i2o class\n",
291 // Register our control device node
408 static int adpt_slave_configure(struct scsi_device * device)
410 struct Scsi_Host *host = device->host;
412 if (host->can_queue && device->tagged_supported) {
413 scsi_change_queue_depth(device,
422 struct adpt_device* pDev = NULL; /* dpt per device information */
438 pHba = (adpt_hba*)cmd->device->host->hostdata[0];
447 // TODO if the cmd->device if offline then I may need to issue a bus rescan
448 // followed by a get_lct to see if the device is there anymore
449 if((pDev = (struct adpt_device*) (cmd->device->hostdata)) == NULL) {
451 * First command request for this device. Set up a pointer
452 * to the device structure. This should be a TEST_UNIT_READY
455 if ((pDev = adpt_find_device(pHba, (u32)cmd->device->channel, (u32)cmd->device->id, cmd->device->lun)) == NULL) {
462 cmd->device->hostdata = pDev;
464 pDev->pScsi_dev = cmd->device;
467 * If we are being called from when the device is being reset,
569 d = pHba->channel[chan].device[id];
593 struct adpt_device* dptdevice; /* dpt per device information */
597 pHba = (adpt_hba*) cmd->device->host->hostdata[0];
599 if ((dptdevice = (void*) (cmd->device->hostdata)) == NULL) {
600 printk(KERN_ERR "%s: Unable to abort: No device in cmnd\n",pHba->name);
639 struct adpt_device* d = cmd->device->hostdata;
641 pHba = (void*) cmd->device->host->hostdata[0];
642 printk(KERN_INFO"%s: Trying to reset device\n",pHba->name);
683 pHba = (adpt_hba*)cmd->device->host->hostdata[0];
685 printk(KERN_WARNING"%s: Bus reset: SCSI Bus %d: tid: %d\n",pHba->name, cmd->device->channel,pHba->channel[cmd->device->channel].tid );
687 msg[1] = (I2O_HBA_BUS_RESET<<24|HOST_TID<<12|pHba->channel[cmd->device->channel].tid);
711 pHba = (adpt_hba*)cmd->device->host->hostdata[0];
713 printk(KERN_WARNING"%s: Hba Reset: scsi id %d: tid: %d\n", name, cmd->device->channel, pHba->channel[cmd->device->channel].tid);
728 spin_lock_irq(cmd->device->host->host_lock);
730 spin_unlock_irq(cmd->device->host->host_lock);
858 if(pDev->device == PCI_DPT_DEVICE_ID){
860 // Raptor card with this device id needs 4M
1048 if(pHba->channel[i].device[j] != NULL){
1049 for(pDev = pHba->channel[i].device[j]; pDev; pDev = pNext){
1078 d = pHba->channel[chan].device[id];
1382 * the possible maximum id reference to handle device access when
1422 printk(KERN_CRIT"%s: Out of memory for I2O device data.\n",pHba->name);
1481 if( pHba->channel[bus_no].device[scsi_id] == NULL){
1486 pHba->channel[bus_no].device[scsi_id] = pDev;
1488 for( pDev = pHba->channel[bus_no].device[scsi_id];
2097 pHba = (adpt_hba*) cmd->device->host->hostdata[0];
2121 pHba->name, (u32)cmd->device->channel, (u32)cmd->device->id, cmd->device->lun, hba_status, dev_status, cmd->cmnd[0]);
2161 pHba->name, detailed_status & I2O_SCSI_DSC_MASK, (u32)cmd->device->channel, (u32)cmd->device->id, cmd->device->lun,
2178 pHba->name, (u32)cmd->device->channel, (u32)cmd->device->id, cmd->device->lun,
2190 pHba->name, (u32)cmd->device->channel, (u32)cmd->device->id, cmd->device->lun,
2191 ((struct adpt_device*)(cmd->device->hostdata))->tid, cmd->cmnd[0]);
2264 printk(KERN_ERR"%s: Could not query device\n",pHba->name);
2277 pDev = pHba->channel[bus_no].device[scsi_id];
2290 printk(KERN_CRIT "Out of memory for I2O device data.\n");
2303 pDev = pHba->channel[bus_no].device[scsi_id];
2311 pHba->channel[bus_no].device[scsi_id] = pDev;
2339 } // end of new i2o device
2341 // We found an old device - check it
2345 printk(KERN_WARNING"%s: Setting device (%d,%d,%llu) back online\n",