summaryrefslogtreecommitdiff
path: root/sys/scsi/sd.c
AgeCommit message (Expand)Author
2022-02-27SC_DEBUG() requires an initialized scsi_link. ShuffleKenneth R Westerback
2021-10-24Constify struct cfattach.Martin Pieuchot
2020-09-22Since dlg@'s 2009 scsi midlayer refactoring the 'struct scsi_generic *cmd'Kenneth R Westerback
2020-09-14No need to check for SDEV_DYING as the first thing in both branches of anKenneth R Westerback
2020-09-13Always use READ(16)/WRITE(16) commands for disks large enough to requireKenneth R Westerback
2020-09-01Rename [READ|WRITE]_BIG to [READ|WRITE]_10. Rename struct scsi_rw_big toKenneth R Westerback
2020-08-29Use ISSET() to check b_flags for B_READ.Kenneth R Westerback
2020-08-29Missing u_int -> u_int32_t chunks from previous.Kenneth R Westerback
2020-08-29Use u_int32_t for nsecs, making it crystal clear that the valuesKenneth R Westerback
2020-08-29Have [cd|sd]_cmd_rw[6|10|12|16] return the length of the created command andKenneth R Westerback
2020-08-28Shuffle [cd|sd]start code into closer alignment. Move the initialization of theKenneth R Westerback
2020-08-28Nuke CDF_ANCIENT, SDF_ANCIENT SDEV_ONLYBIG and bogus check of SID_RelAdr inKenneth R Westerback
2020-08-26Remove needless uses of SDEV_ONLYBIG. It was always set when SDEV_UMASS was set,Kenneth R Westerback
2020-08-22The last timeout_add(sc_timeout) died in the great XS_NO_CCB purge of 2017. NukeKenneth R Westerback
2020-08-20Revert DYING. At least some USB memory sticks get very upset.Kenneth R Westerback
2020-08-19Nuke SDF_DYING, CDF_DYING and ST_DYING flags. Use the scsi_link flagKenneth R Westerback
2020-08-15The last SET()s of CDF_WAITING, SDF_WAITING, and ST_WAITING died in the greatKenneth R Westerback
2020-08-11Explicitly #include <scsi/scsi_debug.h> rather than assuming scsiconf.h will doKenneth R Westerback
2020-07-16Access scsibus_softc info (luns, adapter, adapter_target,Kenneth R Westerback
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