Lines Matching defs:device_type
319 int device_type; /* type of the SCSI-device. See include/scsi/scsi.h
685 if ((ld(shpnt)[ldn].device_type != TYPE_NO_LUN) && (ld(shpnt)[ldn].device_type != TYPE_NO_DEVICE)) {
1237 if (device_exists(shpnt, ldn, &ld(shpnt)[ldn].block_length, &ld(shpnt)[ldn].device_type)) {
1334 static int device_exists(struct Scsi_Host *shpnt, int ldn, int *block_length, int *device_type)
1342 *device_type = TYPE_ROM;
1347 *device_type = TYPE_WORM;
1352 *device_type = TYPE_DISK;
1360 *device_type = TYPE_MOD;
1368 *device_type = TYPE_TAPE;
1373 *device_type = TYPE_PROCESSOR;
1378 *device_type = TYPE_SCANNER;
1383 *device_type = TYPE_MEDIUM_CHANGER;
1711 if (device_exists(shpnt, ldn, &ld(shpnt)[ldn].block_length, &ld(shpnt)[ldn].device_type)) {
1715 get_scsi(shpnt)[target][cmd->device->lun] = ld(shpnt)[ldn].device_type;
1810 if (ld(shpnt)[ldn].device_type == IM_DEBUG_CMD_DEVICE)
1811 printk("(SCSI-device-type=0x%x) issue scsi cmd=%02x to ldn=%d\n", ld(shpnt)[ldn].device_type, scsi_cmd, ldn);
1831 switch (ld(shpnt)[ldn].device_type) {