summaryrefslogtreecommitdiffstats
path: root/sys/scsi/sd.c
AgeCommit message (Expand)AuthorFilesLines
2020-03-10Access 4-byte address field with _4btol() not _8btol(), fixingkrw1-2/+2
2020-02-20Relax the grip the dead hand of QBUS (a.k.a. MAXPHYS) has on thekrw1-3/+3
2020-02-05Nuke unnecessary abstraction 'scsi_minphys()' which just callskrw1-4/+5
2020-01-26Shuffle some names around to make reading the code less headachekrw1-3/+3
2020-01-25Ensure scsi_minphys() is always called on the physio() path.krw1-1/+3
2019-12-08Various cleanup tweaks. 'return' is not a function. KNF. Whitespace,krw1-168/+173
2019-12-05Shrink scsi_mode_do_sense() parameter list by eliminating the threekrw1-33/+41
2019-12-03Check for expected mode sense page code as well as expected mode page length whenkrw1-9/+6
2019-11-29DISK_PGCODE() #define includes a check for NULL, so no need tokrw1-7/+5
2019-11-28Always pass a pointer to 'big' to scsi_do_mode_sense().krw1-4/+4
2019-11-26Reinitialize 'err' to ensure we are not checking a stale value.krw1-1/+2
2019-11-25Move struct scsi_read_cap_data and struct scsi_read_cap_data_16 tokrw1-67/+21
2019-11-23Consistently use ISSET() to check for set flags.krw1-2/+2
2019-11-23Consistently use !ISSET() to check for unset flags.krw1-3/+3
2019-11-09Shuffle sd_get_parms() logic to ensure we only update sc->params withkrw1-46/+67
2019-11-09Fix SCSIDEBUG display of VPD inquiry data.krw1-3/+3
2019-11-09Fix SCSIDEBUG compile. Missed a %lx -> %x.krw1-2/+2
2019-11-08The u_long fields in struct disk_parms (secsize, heads, cyls, sectors)krw1-2/+2
2019-11-07sd_size() is a wrapper around sd_read_cap_10() and sd_read_cap_16() sokrw1-5/+5
2019-10-23There used to be three possible return values from sd_get_parms(), butkrw1-32/+17
2019-10-22No need to always pass the same thing to sd_get_parms(). One lesskrw1-8/+8
2019-10-19Use !ISSET() for unset flag checks.krw1-17/+17
2019-10-19Use ISSET() for the easier flag checks.krw1-54/+54
2019-10-19Fix typo in previous, link->flag is link->flags.krw1-2/+2
2019-10-19Resolve mix of '&=' and CLR() usage in favour of CLR().krw1-6/+6
2019-10-19Resolve mix of '|=' and SET() usage in favour of SET().krw1-12/+12
2019-09-29Introduce SC_DEBUG_SENSE() and simplify code by eliminating a bunchkrw1-4/+2
2019-09-29Tweak some whitespace to make autoindenter happy. Use consistent naming idiom forkrw1-2/+2
2019-09-27Add/tweak #endif comments to make spelunking via grep more rewarding.krw1-6/+6
2019-09-20Print inquiry and read capacity (10 and 16) data under SCSIDEBUG.krw1-1/+11
2019-09-15With the recent fixes to SCSI version detection we reproduced akrw1-4/+4
2019-09-14Typo in comment. scsi_size() is actually sd_size().krw1-2/+2
2019-09-01Adopt the SCSI versioning #define's from FreeBSD. Eliminate thekrw1-3/+12
2019-08-28Introduce SCSI0(), SCSI2() and SCSI3() defines to clarify (some) useskrw1-4/+3
2019-01-20No leading space(s) before labels.krw1-7/+7
2019-01-20When retiring a SCSI request, sometimes the buf's b_error value iskrw1-4/+7
2017-12-30Don't pull in <sys/file.h> just to get fcntl.hguenther1-2/+2
2017-09-08If you use sys/param.h, you don't need sys/types.hderaadt1-2/+1
2017-05-29sd: flush cache when closing writable FDsf1-4/+5
2017-05-29Add an ioctl to tell storage devices to flush their internal cachessf1-11/+25
2017-05-29To prevent anyone else from stumbling on this (now) archaic bit ofkrw1-11/+1
2017-05-04Also pass the blk offset to disk_unbusy(), so that it can pass it toderaadt1-3/+3
2016-03-19Do not run into sdgetdisklabel() when scsi disk is dying. Addbluhm1-4/+5
2016-03-18After sleeping and before accessing sc_link, check that scsi diskbluhm1-1/+51
2016-03-17Do not access the scsi link structure in sdclose() if the diskbluhm1-2/+17
2016-03-16Add SDF_DYING checks to more functions in scsi disk, to prevent anbluhm1-5/+15
2016-03-12Standardize on calling local scsi_link variables 'link' instead ofkrw1-104/+104
2016-03-12When unplugging an USB umass stick, the kernel could panic becausebluhm1-2/+34
2016-02-03Do not access the scsi link of the disk at the beginning of sdopen()bluhm1-3/+7
2016-02-03When accessing the scsi link of a scsi disk, use a variable "sc_link"bluhm1-61/+81