summaryrefslogtreecommitdiffstats
path: root/sys/scsi/sd.c (follow)
Commit message (Expand)AuthorAgeFilesLines
* Since dlg@'s 2009 scsi midlayer refactoring the 'struct scsi_generic *cmd'krw2020-09-221-7/+7
* No need to check for SDEV_DYING as the first thing in both branches of ankrw2020-09-141-14/+9
* Always use READ(16)/WRITE(16) commands for disks large enough to requirekrw2020-09-131-7/+8
* Rename [READ|WRITE]_BIG to [READ|WRITE]_10. Rename struct scsi_rw_big tokrw2020-09-011-3/+3
* Use ISSET() to check b_flags for B_READ.krw2020-08-291-2/+2
* Missing u_int -> u_int32_t chunks from previous.krw2020-08-291-5/+9
* Use u_int32_t for nsecs, making it crystal clear that the valueskrw2020-08-291-6/+7
* Have [cd|sd]_cmd_rw[6|10|12|16] return the length of the created command andkrw2020-08-291-26/+26
* Shuffle [cd|sd]start code into closer alignment. Move the initialization of thekrw2020-08-281-17/+10
* Nuke CDF_ANCIENT, SDF_ANCIENT SDEV_ONLYBIG and bogus check of SID_RelAdr inkrw2020-08-281-13/+4
* Remove needless uses of SDEV_ONLYBIG. It was always set when SDEV_UMASS was set,krw2020-08-261-6/+2
* The last timeout_add(sc_timeout) died in the great XS_NO_CCB purge of 2017. Nukekrw2020-08-221-5/+1
* Revert DYING. At least some USB memory sticks get very upset.krw2020-08-201-38/+37
* Nuke SDF_DYING, CDF_DYING and ST_DYING flags. Use the scsi_link flagkrw2020-08-191-37/+38
* The last SET()s of CDF_WAITING, SDF_WAITING, and ST_WAITING died in the greatkrw2020-08-151-4/+2
* Explicitly #include <scsi/scsi_debug.h> rather than assuming scsiconf.h will dokrw2020-08-111-1/+2
* Access scsibus_softc info (luns, adapter, adapter_target,krw2020-07-161-3/+3
* Nuke unneeded 'sa_inqbuf' member of struct scsi_attach_args. It alwayskrw2020-06-301-4/+4
* Access 4-byte address field with _4btol() not _8btol(), fixingkrw2020-03-101-2/+2
* Relax the grip the dead hand of QBUS (a.k.a. MAXPHYS) has on thekrw2020-02-201-3/+3
* Nuke unnecessary abstraction 'scsi_minphys()' which just callskrw2020-02-051-4/+5
* Shuffle some names around to make reading the code less headachekrw2020-01-261-3/+3
* Ensure scsi_minphys() is always called on the physio() path.krw2020-01-251-1/+3
* Various cleanup tweaks. 'return' is not a function. KNF. Whitespace,krw2019-12-081-168/+173
* Shrink scsi_mode_do_sense() parameter list by eliminating the threekrw2019-12-051-33/+41
* Check for expected mode sense page code as well as expected mode page length whenkrw2019-12-031-9/+6
* DISK_PGCODE() #define includes a check for NULL, so no need tokrw2019-11-291-7/+5
* Always pass a pointer to 'big' to scsi_do_mode_sense().krw2019-11-281-4/+4
* Reinitialize 'err' to ensure we are not checking a stale value.krw2019-11-261-1/+2
* Move struct scsi_read_cap_data and struct scsi_read_cap_data_16 tokrw2019-11-251-67/+21
* Consistently use ISSET() to check for set flags.krw2019-11-231-2/+2
* Consistently use !ISSET() to check for unset flags.krw2019-11-231-3/+3
* Shuffle sd_get_parms() logic to ensure we only update sc->params withkrw2019-11-091-46/+67
* Fix SCSIDEBUG display of VPD inquiry data.krw2019-11-091-3/+3
* Fix SCSIDEBUG compile. Missed a %lx -> %x.krw2019-11-091-2/+2
* The u_long fields in struct disk_parms (secsize, heads, cyls, sectors)krw2019-11-081-2/+2
* sd_size() is a wrapper around sd_read_cap_10() and sd_read_cap_16() sokrw2019-11-071-5/+5
* There used to be three possible return values from sd_get_parms(), butkrw2019-10-231-32/+17
* No need to always pass the same thing to sd_get_parms(). One lesskrw2019-10-221-8/+8
* Use !ISSET() for unset flag checks.krw2019-10-191-17/+17
* Use ISSET() for the easier flag checks.krw2019-10-191-54/+54
* Fix typo in previous, link->flag is link->flags.krw2019-10-191-2/+2
* Resolve mix of '&=' and CLR() usage in favour of CLR().krw2019-10-191-6/+6
* Resolve mix of '|=' and SET() usage in favour of SET().krw2019-10-191-12/+12
* Introduce SC_DEBUG_SENSE() and simplify code by eliminating a bunchkrw2019-09-291-4/+2
* Tweak some whitespace to make autoindenter happy. Use consistent naming idiom forkrw2019-09-291-2/+2
* Add/tweak #endif comments to make spelunking via grep more rewarding.krw2019-09-271-6/+6
* Print inquiry and read capacity (10 and 16) data under SCSIDEBUG.krw2019-09-201-1/+11
* With the recent fixes to SCSI version detection we reproduced akrw2019-09-151-4/+4
* Typo in comment. scsi_size() is actually sd_size().krw2019-09-141-2/+2