Lines Matching defs:sdev

7185 advansys_biosparam(struct scsi_device *sdev, struct block_device *bdev,
7188 struct asc_board *boardp = shost_priv(sdev->host);
7191 ASC_STATS(sdev->host, biosparam);
7284 static void AscAsyncFix(ASC_DVC_VAR *asc_dvc, struct scsi_device *sdev)
7286 char type = sdev->type;
7287 ASC_SCSI_BIT_ID_TYPE tid_bits = 1 << sdev->id;
7294 if ((type == TYPE_ROM) && (strncmp(sdev->vendor, "HP ", 3) == 0))
7303 AscSetRunChipSynRegAtID(asc_dvc->iop_base, sdev->id,
7308 advansys_narrow_slave_configure(struct scsi_device *sdev, ASC_DVC_VAR *asc_dvc)
7310 ASC_SCSI_BIT_ID_TYPE tid_bit = 1 << sdev->id;
7313 if (sdev->lun == 0) {
7315 if ((asc_dvc->cfg->sdtr_enable & tid_bit) && sdev->sdtr) {
7322 AscAsyncFix(asc_dvc, sdev);
7325 if (sdev->tagged_supported) {
7327 if (sdev->lun == 0) {
7331 scsi_change_queue_depth(sdev,
7332 asc_dvc->max_dvc_qng[sdev->id]);
7335 if (sdev->lun == 0) {
7341 if ((sdev->lun == 0) &&
7350 asc_dvc->max_dvc_qng[sdev->id] =
7351 asc_dvc->cfg->max_tag_qng[sdev->id];
7353 (ushort)(ASCV_MAX_DVC_QNG_BEG + sdev->id),
7354 asc_dvc->max_dvc_qng[sdev->id]);
7434 advansys_wide_slave_configure(struct scsi_device *sdev, ADV_DVC_VAR *adv_dvc)
7437 unsigned short tidmask = 1 << sdev->id;
7439 if (sdev->lun == 0) {
7446 if ((adv_dvc->wdtr_able & tidmask) && sdev->wdtr)
7448 if ((adv_dvc->sdtr_able & tidmask) && sdev->sdtr)
7450 if (adv_dvc->chip_type == ADV_CHIP_ASC38C1600 && sdev->ppr)
7460 sdev->tagged_supported) {
7467 ASC_MC_NUMBER_OF_MAX_CMD + sdev->id,
7472 if ((adv_dvc->tagqng_able & tidmask) && sdev->tagged_supported)
7473 scsi_change_queue_depth(sdev, adv_dvc->max_dvc_qng);
7480 static int advansys_slave_configure(struct scsi_device *sdev)
7482 struct asc_board *boardp = shost_priv(sdev->host);
7485 advansys_narrow_slave_configure(sdev,
7488 advansys_wide_slave_configure(sdev,