• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/scsi/

Lines Matching refs:scsi_dev

141  * @scsi_dev: scsi device struct
151 static int pmcraid_slave_alloc(struct scsi_device *scsi_dev)
160 pinstance = shost_priv(scsi_dev->host);
191 if (bus == scsi_dev->channel &&
192 target == scsi_dev->id &&
193 lun == scsi_dev->lun) {
200 res->scsi_dev = scsi_dev;
201 scsi_dev->hostdata = res;
213 * @scsi_dev: scsi device struct
224 static int pmcraid_slave_configure(struct scsi_device *scsi_dev)
226 struct pmcraid_resource_entry *res = scsi_dev->hostdata;
233 scsi_dev->type != TYPE_ENCLOSURE)
237 scsi_dev->host->unique_id,
238 scsi_dev->channel,
239 scsi_dev->id,
240 scsi_dev->lun);
243 scsi_dev->allow_restart = 1;
245 scsi_dev->allow_restart = 1;
246 blk_queue_rq_timeout(scsi_dev->request_queue,
248 blk_queue_max_hw_sectors(scsi_dev->request_queue,
252 if (scsi_dev->tagged_supported &&
254 scsi_activate_tcq(scsi_dev, scsi_dev->queue_depth);
255 scsi_adjust_queue_depth(scsi_dev, MSG_SIMPLE_TAG,
256 scsi_dev->host->cmd_per_lun);
258 scsi_adjust_queue_depth(scsi_dev, 0,
259 scsi_dev->host->cmd_per_lun);
268 * @scsi_dev: scsi device struct
276 static void pmcraid_slave_destroy(struct scsi_device *scsi_dev)
280 res = (struct pmcraid_resource_entry *)scsi_dev->hostdata;
283 res->scsi_dev = NULL;
285 scsi_dev->hostdata = NULL;
290 * @scsi_dev: scsi device struct
297 static int pmcraid_change_queue_depth(struct scsi_device *scsi_dev, int depth,
306 scsi_adjust_queue_depth(scsi_dev, scsi_get_tag_type(scsi_dev), depth);
308 return scsi_dev->queue_depth;
313 * @scsi_dev: scsi device struct
319 static int pmcraid_change_queue_type(struct scsi_device *scsi_dev, int tag)
323 res = (struct pmcraid_resource_entry *)scsi_dev->hostdata;
325 if ((res) && scsi_dev->tagged_supported &&
327 scsi_set_tag_type(scsi_dev, tag);
330 scsi_activate_tcq(scsi_dev, scsi_dev->queue_depth);
332 scsi_deactivate_tcq(scsi_dev, scsi_dev->queue_depth);
1686 res->scsi_dev = NULL;
1695 if (res->scsi_dev) {
1708 } else if (!res->scsi_dev) {
4499 if (res->change_detected == RES_CHANGE_DEL && res->scsi_dev) {
4500 sdev = res->scsi_dev;
5686 res->scsi_dev = NULL;
5710 if (res->scsi_dev) {