Lines Matching refs:scsi
94 # include <scsi/sg.h>
97 # include "/usr/src/linux/include/scsi/sg.h"
100 # include <sys/scsi.h>
107 # include <cam/scsi/scsi_message.h>
108 # include <cam/scsi/scsi_pass.h>
114 # include <scsi.h>
131 # include <sys/scsi.h>
135 # include <sys/scsi.h>
168 # include <sys/scsi/sgdefs.h>
172 # include <sys/scsi/targets/scgio.h>
176 * installing the SCG/SG driver can still use these generic scsi interfaces
180 # include <sys/scsi/scsi.h>
189 # include <apollo/scsi.h>
205 # include <IOKit/scsi/SCSICmds_INQUIRY_Definitions.h>
206 # include <IOKit/scsi/SCSICommandOperationCodes.h>
207 # include <IOKit/scsi/SCSITaskLib.h>
212 # include <IOKit/scsi-commands/SCSICmds_INQUIRY_Definitions.h>
213 # include <IOKit/scsi-commands/SCSICommandOperationCodes.h>
214 # include <IOKit/scsi-commands/SCSITaskLib.h>
219 # include <ddk/scsi.h>
256 * it depends on the lowend scsi
356 int host_no; /* as in "scsi<n>" where 'n' is one of 0, 1, 2 etc */
358 int scsi_id; /* scsi id of target device */
360 int scsi_type; /* TYPE_... defined in scsi/scsi.h */
521 static char tmpAspi[MAXPATHLEN]; /* scsi chain scan */
544 int i, num_adapters; /* no. of scsi adapters installed */
644 /* scan scsi chain (need 15 for wide?) */
754 fprintf (tmp, "scsi %d Channel: 0 Id: %d Lun: 0\n", i, id);
787 if (unlink (tmpAspi)) /* remove scsi descriptions */
1247 the device name refers to a scsi _bus_, not an individual scsi
1947 system ("cat /proc/scsi/sg/debug 1>&2");)
2261 system ("cat /proc/scsi/sg/debug 1>&2");)
2495 #define PROCFILE "/proc/scsi/scsi"
2496 #define DEVFS_MSK "/dev/scsi/host%d/bus%d/target%d/lun%d/generic"
2499 /* Some <scsi/scsi.h> headers don't have the following define */
2695 /* Legacy /proc/scsi/scsi */
2764 "scsi", 4, 1,
2912 #define SYSFS_SCSI_DEVICES "/sys/bus/scsi/devices"
2914 /* From linux/drivers/scsi/scsi.c */
3223 DBG (1, "sanei_scsi_cmd: scsi returned with status %d\n", hdr.retsts);
3323 DBG (1, "sanei_scsi_cmd: scsi returned with status %d\n",
3835 * The driver version should run with other scsi components like disk
3949 perror ("sanei-scsi:UW-driver read ");
3960 perror ("sanei-scsi:UW-driver read ");
4140 "scsi", 4, 1,
4552 sprintf (dev_name, "/dev/scsi/sc%dd%dl%d", bus, id, lun);
4710 /* first put the user scsi structure together. */