Lines Matching defs:device
200 typedef struct device *m_bush_t; /* Something that addresses DMAable */
517 static void __unmap_scsi_data(struct device *dev, struct scsi_cmnd *cmd)
529 static int __map_scsi_sg_data(struct device *dev, struct scsi_cmnd *cmd)
781 ** Get device queue depth from boot command line.
880 ** SCSI address of this device.
1210 ** negotiation of wide and synch transfer and device quirks.
1288 u_char scdev_depth; /* SCSI device queue depth */
1372 ** when the direction is unknown and the device claims data out.
1578 ** Declaration of structs: NCR device descriptor
1667 struct device *dev;
1668 u_char revision_id; /* PCI device revision id */
3258 ** Old SCSI device may behave so.
3637 #define PRINT_ADDR(cmd, arg...) dev_info(&cmd->device->sdev_gendev , ## arg)
4084 struct scsi_device *sdev = cmd->device;
4110 ** with error condition if the device is
4687 tp = &np->target[cmd->device->id];
4688 lp = tp->lp[cmd->device->lun];
4784 ncr_alloc_lcb (np, cmd->device->id, cmd->device->lun);
4798 ncr_setup_tags (np, cmd->device);
5405 ** SCSI specs say: a SCSI device that accepts a WDTR
5439 dev_info(&cmd->device->sdev_target->dev, "WIDE SCSI %sabled.\n",
5471 ** If SCSI device queue depth is not yet set, leave here.
5478 ** for this device.
5946 ** generate a reset event and a device that detects a reset
5948 ** device that detects a mode change shall set data transfer
6018 * ERROR message and let the device decide to retry the command
6241 ** the global header area. That may happen if the device did
6369 struct tcb *tp = &np->target[cmd->device->id];
6370 struct lcb *lp = tp->lp[cmd->device->lun];
6415 ncr_setup_tags (np, cmd->device);
6447 cp->scsi_smsg2[0] = IDENTIFY(0, cmd->device->lun);
6461 cp->sensecmd[1] = (cmd->device->lun & 0x7) << 5;
6492 if (cmd->device->select_no_atn)
6971 u_char tn = cmd->device->id;
6972 u_char ln = cmd->device->lun;
7789 static int ncr53c8xx_slave_alloc(struct scsi_device *device)
7791 struct Scsi_Host *host = device->host;
7793 struct tcb *tp = &np->target[device->id];
7794 tp->starget = device->sdev_target;
7799 static int ncr53c8xx_slave_configure(struct scsi_device *device)
7801 struct Scsi_Host *host = device->host;
7803 struct tcb *tp = &np->target[device->id];
7804 struct lcb *lp = tp->lp[device->lun];
7807 ncr_setup_lcb(np, device);
7815 numtags = device_queue_depth(np->unit, device->id, device->lun);
7818 if (!device->tagged_supported)
7826 scsi_change_queue_depth(device, depth_to_use);
7841 ncr_setup_tags (np, device);
7845 np->unit, device->id, device->lun, depth_to_use);
7848 if (spi_support_sync(device->sdev_target) &&
7849 !spi_initial_dv(device->sdev_target))
7850 spi_dv_device(device);
7858 struct ncb *np = ((struct host_data *) cmd->device->host->hostdata)->ncb;
7941 struct ncb *np = ((struct host_data *) cmd->device->host->hostdata)->ncb;
8028 static ssize_t show_ncr53c8xx_revision(struct device *dev,
8080 int unit, struct ncr_device *device)
8104 if (device->differential)
8105 driver_setup.diff_support = device->differential;
8108 unit, device->chip.revision_id, device->slot.irq);
8115 np = __m_calloc_dma(device->dev, sizeof(struct ncb), "NCB");
8119 np->dev = device->dev;
8131 np->revision_id = device->chip.revision_id;
8132 np->features = device->chip.features;
8133 np->clock_divn = device->chip.nr_divisor;
8134 np->maxoffs = device->chip.offset_max;
8135 np->maxburst = device->chip.burst_max;
8136 np->myaddr = device->host_id;
8150 np->paddr = device->slot.base;
8151 np->paddr2 = (np->features & FE_RAM) ? device->slot.base_2 : 0;
8153 if (device->slot.base_v)
8154 np->vaddr = device->slot.base_v;
8156 np->vaddr = ioremap(device->slot.base_c, 128);
8188 instance->irq = device->slot.irq;
8189 instance->unique_id = device->slot.base;
8244 np->irq = device->slot.irq;