Lines Matching defs:sdev

7099 advansys_biosparam(struct scsi_device *sdev, struct block_device *bdev,
7102 struct asc_board *boardp = shost_priv(sdev->host);
7105 ASC_STATS(sdev->host, biosparam);
7198 static void AscAsyncFix(ASC_DVC_VAR *asc_dvc, struct scsi_device *sdev)
7200 char type = sdev->type;
7201 ASC_SCSI_BIT_ID_TYPE tid_bits = 1 << sdev->id;
7208 if ((type == TYPE_ROM) && (strncmp(sdev->vendor, "HP ", 3) == 0))
7217 AscSetRunChipSynRegAtID(asc_dvc->iop_base, sdev->id,
7222 advansys_narrow_slave_configure(struct scsi_device *sdev, ASC_DVC_VAR *asc_dvc)
7224 ASC_SCSI_BIT_ID_TYPE tid_bit = 1 << sdev->id;
7227 if (sdev->lun == 0) {
7229 if ((asc_dvc->cfg->sdtr_enable & tid_bit) && sdev->sdtr) {
7236 AscAsyncFix(asc_dvc, sdev);
7239 if (sdev->tagged_supported) {
7241 if (sdev->lun == 0) {
7245 scsi_change_queue_depth(sdev,
7246 asc_dvc->max_dvc_qng[sdev->id]);
7249 if (sdev->lun == 0) {
7255 if ((sdev->lun == 0) &&
7264 asc_dvc->max_dvc_qng[sdev->id] =
7265 asc_dvc->cfg->max_tag_qng[sdev->id];
7267 (ushort)(ASCV_MAX_DVC_QNG_BEG + sdev->id),
7268 asc_dvc->max_dvc_qng[sdev->id]);
7348 advansys_wide_slave_configure(struct scsi_device *sdev, ADV_DVC_VAR *adv_dvc)
7351 unsigned short tidmask = 1 << sdev->id;
7353 if (sdev->lun == 0) {
7360 if ((adv_dvc->wdtr_able & tidmask) && sdev->wdtr)
7362 if ((adv_dvc->sdtr_able & tidmask) && sdev->sdtr)
7364 if (adv_dvc->chip_type == ADV_CHIP_ASC38C1600 && sdev->ppr)
7374 sdev->tagged_supported) {
7381 ASC_MC_NUMBER_OF_MAX_CMD + sdev->id,
7386 if ((adv_dvc->tagqng_able & tidmask) && sdev->tagged_supported)
7387 scsi_change_queue_depth(sdev, adv_dvc->max_dvc_qng);
7394 static int advansys_slave_configure(struct scsi_device *sdev)
7396 struct asc_board *boardp = shost_priv(sdev->host);
7399 advansys_narrow_slave_configure(sdev,
7402 advansys_wide_slave_configure(sdev,