summaryrefslogtreecommitdiff
path: root/sys/scsi/sd.c
AgeCommit message (Expand)Author
2020-06-30Nuke unneeded 'sa_inqbuf' member of struct scsi_attach_args. It alwaysKenneth R Westerback
2020-03-10Access 4-byte address field with _4btol() not _8btol(), fixingKenneth R Westerback
2020-02-20Relax the grip the dead hand of QBUS (a.k.a. MAXPHYS) has on theKenneth R Westerback
2020-02-05Nuke unnecessary abstraction 'scsi_minphys()' which just callsKenneth R Westerback
2020-01-26Shuffle some names around to make reading the code less headacheKenneth R Westerback
2020-01-25Ensure scsi_minphys() is always called on the physio() path.Kenneth R Westerback
2019-12-08Various cleanup tweaks. 'return' is not a function. KNF. Whitespace,Kenneth R Westerback
2019-12-05Shrink scsi_mode_do_sense() parameter list by eliminating the threeKenneth R Westerback
2019-12-03Check for expected mode sense page code as well as expected mode page length ...Kenneth R Westerback
2019-11-29DISK_PGCODE() #define includes a check for NULL, so no need toKenneth R Westerback
2019-11-28Always pass a pointer to 'big' to scsi_do_mode_sense().Kenneth R Westerback
2019-11-26Reinitialize 'err' to ensure we are not checking a stale value.Kenneth R Westerback
2019-11-25Move struct scsi_read_cap_data and struct scsi_read_cap_data_16 toKenneth R Westerback
2019-11-23Consistently use ISSET() to check for set flags.Kenneth R Westerback
2019-11-23Consistently use !ISSET() to check for unset flags.Kenneth R Westerback
2019-11-09Shuffle sd_get_parms() logic to ensure we only update sc->params withKenneth R Westerback
2019-11-09Fix SCSIDEBUG display of VPD inquiry data.Kenneth R Westerback
2019-11-09Fix SCSIDEBUG compile. Missed a %lx -> %x.Kenneth R Westerback
2019-11-08The u_long fields in struct disk_parms (secsize, heads, cyls, sectors)Kenneth R Westerback
2019-11-07sd_size() is a wrapper around sd_read_cap_10() and sd_read_cap_16() soKenneth R Westerback
2019-10-23There used to be three possible return values from sd_get_parms(), butKenneth R Westerback
2019-10-22No need to always pass the same thing to sd_get_parms(). One lessKenneth R Westerback
2019-10-19Use !ISSET() for unset flag checks.Kenneth R Westerback
2019-10-19Use ISSET() for the easier flag checks.Kenneth R Westerback
2019-10-19Fix typo in previous, link->flag is link->flags.Kenneth R Westerback
2019-10-19Resolve mix of '&=' and CLR() usage in favour of CLR().Kenneth R Westerback
2019-10-19Resolve mix of '|=' and SET() usage in favour of SET().Kenneth R Westerback
2019-09-29Introduce SC_DEBUG_SENSE() and simplify code by eliminating a bunchKenneth R Westerback
2019-09-29Tweak some whitespace to make autoindenter happy. Use consistent naming idiom...Kenneth R Westerback
2019-09-27Add/tweak #endif comments to make spelunking via grep more rewarding.Kenneth R Westerback
2019-09-20Print inquiry and read capacity (10 and 16) data under SCSIDEBUG.Kenneth R Westerback
2019-09-15With the recent fixes to SCSI version detection we reproduced aKenneth R Westerback
2019-09-14Typo in comment. scsi_size() is actually sd_size().Kenneth R Westerback
2019-09-01Adopt the SCSI versioning #define's from FreeBSD. Eliminate theKenneth R Westerback
2019-08-28Introduce SCSI0(), SCSI2() and SCSI3() defines to clarify (some) usesKenneth R Westerback
2019-01-20No leading space(s) before labels.Kenneth R Westerback
2019-01-20When retiring a SCSI request, sometimes the buf's b_error value isKenneth R Westerback
2017-12-30Don't pull in <sys/file.h> just to get fcntl.hPhilip Guenther
2017-09-08If you use sys/param.h, you don't need sys/types.hTheo de Raadt
2017-05-29sd: flush cache when closing writable FDStefan Fritsch
2017-05-29Add an ioctl to tell storage devices to flush their internal cachesStefan Fritsch
2017-05-29To prevent anyone else from stumbling on this (now) archaic bit ofKenneth R Westerback
2017-05-04Also pass the blk offset to disk_unbusy(), so that it can pass it toTheo de Raadt
2016-03-19Do not run into sdgetdisklabel() when scsi disk is dying. AddAlexander Bluhm
2016-03-18After sleeping and before accessing sc_link, check that scsi diskAlexander Bluhm
2016-03-17Do not access the scsi link structure in sdclose() if the diskAlexander Bluhm
2016-03-16Add SDF_DYING checks to more functions in scsi disk, to prevent anAlexander Bluhm
2016-03-12Standardize on calling local scsi_link variables 'link' instead ofKenneth R Westerback
2016-03-12When unplugging an USB umass stick, the kernel could panic becauseAlexander Bluhm
2016-02-03Do not access the scsi link of the disk at the beginning of sdopen()Alexander Bluhm