Lines Matching refs:dv
202 static void mptscsih_dv_parms(MPT_SCSI_HOST *hd, DVPARAMETERS *dv,void *pPage);
1900 if (driver_setup.dv == 0) in mptscsih_detect()
1914 hd->ioc->name, driver_setup.dv, in mptscsih_detect()
6557 DVPARAMETERS dv; in mptscsih_doDv() local
6592 ioc->name, bus, id, &dv)); in mptscsih_doDv()
6596 memset (&dv, 0, sizeof(DVPARAMETERS)); in mptscsih_doDv()
6597 dv.id = id; in mptscsih_doDv()
6603 dv.cmd = MPT_GET_NVRAM_VALS; in mptscsih_doDv()
6604 mptscsih_dv_parms(hd, &dv, NULL); in mptscsih_doDv()
6605 if ((!dv.max.width) && (!dv.max.offset)) in mptscsih_doDv()
6708 dv.cmd = MPT_SET_MAX; in mptscsih_doDv()
6709 mptscsih_dv_parms(hd, &dv, (void *)pcfg1Data); in mptscsih_doDv()
6773 dv.cmd = MPT_SET_MIN; in mptscsih_doDv()
6774 mptscsih_dv_parms(hd, &dv, (void *)pcfg1Data); in mptscsih_doDv()
6785 if ((rc == MPT_SCANDV_ISSUE_SENSE) && dv.max.width) { in mptscsih_doDv()
6804 dv.max.width = 0; in mptscsih_doDv()
6871 dv.max.factor = pTarget->minSyncFactor; in mptscsih_doDv()
6881 dv.cmd = MPT_FALLBACK; in mptscsih_doDv()
6883 dv.cmd = MPT_SET_MAX; in mptscsih_doDv()
6885 mptscsih_dv_parms(hd, &dv, (void *)pcfg1Data); in mptscsih_doDv()
6889 if ((!dv.now.width) && (!dv.now.offset)) in mptscsih_doDv()
6929 if ((dv.now.factor == MPT_ULTRA320) && (sdp0_nego == MPT_ULTRA2)) { in mptscsih_doDv()
6932 dv.cmd = MPT_UPDATE_MAX; in mptscsih_doDv()
6933 mptscsih_dv_parms(hd, &dv, (void *)pcfg0Data); in mptscsih_doDv()
7230 dv.cmd = MPT_FALLBACK; in mptscsih_doDv()
7231 mptscsih_dv_parms(hd, &dv, (void *)pcfg1Data); in mptscsih_doDv()
7236 if ((!dv.now.width) && (!dv.now.offset)) in mptscsih_doDv()
7309 dv.cmd = MPT_FALLBACK; in mptscsih_doDv()
7310 mptscsih_dv_parms(hd, &dv, (void *)pcfg1Data); in mptscsih_doDv()
7315 if ((!dv.now.width) && (!dv.now.offset)) in mptscsih_doDv()
7327 dv.cmd = MPT_FALLBACK; in mptscsih_doDv()
7328 mptscsih_dv_parms(hd, &dv, (void *)pcfg1Data); in mptscsih_doDv()
7333 if ((!dv.now.width) && (!dv.now.offset)) in mptscsih_doDv()
7384 if ((inq0 == 0) && (dv.now.factor > MPT_ULTRA320)) in mptscsih_doDv()
7387 dv.cmd = MPT_SAVE; in mptscsih_doDv()
7388 mptscsih_dv_parms(hd, &dv, (void *)pcfg1Data); in mptscsih_doDv()
7428 mptscsih_dv_parms(MPT_SCSI_HOST *hd, DVPARAMETERS *dv,void *pPage) in mptscsih_dv_parms() argument
7438 u8 cmd = dv->cmd; in mptscsih_dv_parms()
7439 u8 id = dv->id; in mptscsih_dv_parms()
7491 dv->max.width = width; in mptscsih_dv_parms()
7492 dv->max.offset = offset; in mptscsih_dv_parms()
7493 dv->max.factor = factor; in mptscsih_dv_parms()
7494 dv->max.flags = negoFlags; in mptscsih_dv_parms()
7506 dv->max.width = val & MPI_SCSIDEVPAGE0_NP_WIDE ? 1 : 0; in mptscsih_dv_parms()
7507 dv->max.offset = (val&MPI_SCSIDEVPAGE0_NP_NEG_SYNC_OFFSET_MASK) >> 16; in mptscsih_dv_parms()
7508 dv->max.factor = (val&MPI_SCSIDEVPAGE0_NP_NEG_SYNC_PERIOD_MASK) >> 8; in mptscsih_dv_parms()
7511 dv->now.width = dv->max.width; in mptscsih_dv_parms()
7512 dv->now.offset = dv->max.offset; in mptscsih_dv_parms()
7513 dv->now.factor = dv->max.factor; in mptscsih_dv_parms()
7515 dv->now.width, dv->now.factor, dv->now.offset, dv->now.flags)); in mptscsih_dv_parms()
7522 dv->now.width = dv->max.width; in mptscsih_dv_parms()
7523 dv->now.offset = dv->max.offset; in mptscsih_dv_parms()
7524 dv->now.factor = dv->max.factor; in mptscsih_dv_parms()
7525 dv->now.flags = dv->max.flags; in mptscsih_dv_parms()
7529 mptscsih_setDevicePage1Flags (dv->now.width, dv->now.factor, in mptscsih_dv_parms()
7530 dv->now.offset, &val, &configuration, dv->now.flags); in mptscsih_dv_parms()
7538 dv->now.width, dv->now.factor, dv->now.offset, val, configuration)); in mptscsih_dv_parms()
7549 negoFlags = dv->max.flags; in mptscsih_dv_parms()
7566 hd->ioc->name, dv->now.offset, in mptscsih_dv_parms()
7567 dv->now.factor, dv->now.width)); in mptscsih_dv_parms()
7568 width = dv->now.width; in mptscsih_dv_parms()
7569 offset = dv->now.offset; in mptscsih_dv_parms()
7570 factor = dv->now.factor; in mptscsih_dv_parms()
7571 if ((offset) && (dv->max.width)) { in mptscsih_dv_parms()
7619 dv->max.flags |= MPT_TARGET_NO_NEGO_QAS; in mptscsih_dv_parms()
7621 dv->now.width = width; in mptscsih_dv_parms()
7622 dv->now.offset = offset; in mptscsih_dv_parms()
7623 dv->now.factor = factor; in mptscsih_dv_parms()
7624 dv->now.flags = dv->max.flags; in mptscsih_dv_parms()
7629 &configuration, dv->now.flags); in mptscsih_dv_parms()
7637 dv->now.offset, dv->now.factor, dv->now.width, val, configuration)); in mptscsih_dv_parms()
7644 dv->now.offset, dv->now.factor, dv->now.width)); in mptscsih_dv_parms()
7651 pTarget->maxWidth = dv->now.width; in mptscsih_dv_parms()
7652 pTarget->maxOffset = dv->now.offset; in mptscsih_dv_parms()
7653 pTarget->minSyncFactor = dv->now.factor; in mptscsih_dv_parms()
7654 pTarget->negoFlags = dv->now.flags; in mptscsih_dv_parms()
7662 if (dv->now.width) in mptscsih_dv_parms()
7667 if (!dv->now.offset) in mptscsih_dv_parms()
7671 data |= (dv->now.factor << MPT_NVRAM_SYNC_SHIFT) & MPT_NVRAM_SYNC_MASK; in mptscsih_dv_parms()
7881 driver_setup.dv = val; in mptscsih_setup()