Lines Matching defs:sdev
332 static int __gdth_execute(struct scsi_device *sdev, gdth_cmd_str *gdtcmd,
335 gdth_ha_str *ha = shost_priv(sdev->host);
351 scp->device = sdev;
378 struct scsi_device *sdev = scsi_get_host_dev(shost);
379 int rval = __gdth_execute(sdev, gdtcmd, cmnd, timeout, info);
381 scsi_free_host_dev(sdev);
3282 static int gdth_bios_param(struct scsi_device *sdev,struct block_device *bdev,sector_t cap,int *ip)
3285 gdth_ha_str *ha = shost_priv(sdev->host);
3289 sd = sdev;
3355 if (!ha->sdev)
3356 ha->sdev = scsi_get_host_dev(ha->shost);
3463 rval = __gdth_execute(ha->sdev, &cmd, cmnd, 30, NULL);
3595 rval = __gdth_execute(ha->sdev, &gen.command, cmnd, gen.timeout,
3654 if (__gdth_execute(ha->sdev, cmd, cmnd, 30, &cluster_type) == S_OK)
3704 status = __gdth_execute(ha->sdev, cmd, cmnd, 30, &info);
3720 status = __gdth_execute(ha->sdev, cmd, cmnd, 30, &info);
3754 status = __gdth_execute(ha->sdev, cmd, cmnd, 30, &info);
3767 status = __gdth_execute(ha->sdev, cmd, cmnd, 30, &info);
3782 status = __gdth_execute(ha->sdev, cmd, cmnd, 30, &info);
3922 scp->device = ha->sdev;
3987 static int gdth_slave_configure(struct scsi_device *sdev)
3989 sdev->skip_ms_page_3f = 1;
3990 sdev->skip_ms_page_8 = 1;
4152 if (ha->sdev) {
4153 scsi_free_host_dev(ha->sdev);
4154 ha->sdev = NULL;