FreeBSD kernel CAM code
|
#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/queue.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/bio.h>
#include <sys/limits.h>
#include <sys/malloc.h>
#include <sys/mtio.h>
#include <sys/conf.h>
#include <sys/sbuf.h>
#include <sys/sysctl.h>
#include <sys/taskqueue.h>
#include <sys/fcntl.h>
#include <sys/devicestat.h>
#include <cam/cam.h>
#include <cam/cam_ccb.h>
#include <cam/cam_periph.h>
#include <cam/cam_xpt_periph.h>
#include <cam/cam_debug.h>
#include <cam/scsi/scsi_all.h>
#include <cam/scsi/scsi_message.h>
#include <cam/scsi/scsi_sa.h>
#include "opt_sa.h"
Go to the source code of this file.
Data Structures | |
struct | sa_timeout_desc |
struct | sa_devs |
struct | sa_prot_state |
struct | sa_prot_info |
struct | sa_prot_map |
struct | sa_softc |
struct | sa_quirk_entry |
struct | sa_param_ent |
Macros | |
#define | SA_IO_TIMEOUT 32 |
#define | SA_SPACE_TIMEOUT 1 * 60 |
#define | SA_REWIND_TIMEOUT 2 * 60 |
#define | SA_ERASE_TIMEOUT 4 * 60 |
#define | SA_REP_DENSITY_TIMEOUT 1 |
#define | SCSIOP_TIMEOUT (60 * 1000) /* not an option */ |
#define | IO_TIMEOUT (SA_IO_TIMEOUT * 60 * 1000) |
#define | REWIND_TIMEOUT (SA_REWIND_TIMEOUT * 60 * 1000) |
#define | ERASE_TIMEOUT (SA_ERASE_TIMEOUT * 60 * 1000) |
#define | SPACE_TIMEOUT (SA_SPACE_TIMEOUT * 60 * 1000) |
#define | REP_DENSITY_TIMEOUT (SA_REP_DENSITY_TIMEOUT * 60 * 1000) |
#define | UNUSED_PARAMETER(x) x = x |
#define | QFRLS(ccb) |
#define | ccb_pflags ppriv_field0 |
#define | ccb_bp ppriv_ptr1 |
#define | SA_POSITION_UPDATED 0x1 |
#define | SA_QUIRK_BIT_STRING |
#define | SAMODE(z) (dev2unit(z) & 0x3) |
#define | SA_IS_CTRL(z) (dev2unit(z) & (1 << 4)) |
#define | SA_NOT_CTLDEV 0 |
#define | SA_CTLDEV 1 |
#define | SA_ATYPE_R 0 |
#define | SA_ATYPE_NR 1 |
#define | SA_ATYPE_ER 2 |
#define | SA_NUM_ATYPES 3 |
#define | SAMINOR(ctl, access) ((ctl << 4) | (access & 0x3)) |
#define | SASBADDBASE(sb, indent, data, xfmt, name, type, xsize, desc) |
#define | SASBADDINT(sb, indent, data, fmt, name) |
#define | SASBADDINTDESC(sb, indent, data, fmt, name, desc) |
#define | SASBADDUINT(sb, indent, data, fmt, name) |
#define | SASBADDUINTDESC(sb, indent, data, fmt, name, desc) |
#define | SASBADDFIXEDSTR(sb, indent, data, fmt, name) |
#define | SASBADDFIXEDSTRDESC(sb, indent, data, fmt, name, desc) |
#define | SASBADDVARSTR(sb, indent, data, fmt, name, maxlen) SASBADDBASE(sb, indent, data, fmt, name, str, maxlen, NULL) |
#define | SASBADDVARSTRDESC(sb, indent, data, fmt, name, maxlen, desc) SASBADDBASE(sb, indent, data, fmt, name, str, maxlen, desc) |
#define | SASBADDNODE(sb, indent, name) |
#define | SASBADDNODENUM(sb, indent, name, num) |
#define | SASBENDNODE(sb, indent, name) |
#define | SA_DENSITY_TYPES 4 |
#define | SA_NUM_PROT_ENTS nitems(sa_prot_table) |
#define | SA_PROT_ENABLED(softc) |
#define | SA_PROT_LEN(softc) softc->prot_info.cur_prot_state.pi_length |
#define | last_io_sense errinfo._last_io_sense |
#define | last_io_resid errinfo._last_io_resid |
#define | last_io_cdb errinfo._last_io_cdb |
#define | last_ctl_sense errinfo._last_ctl_sense |
#define | last_ctl_resid errinfo._last_ctl_resid |
#define | last_ctl_cdb errinfo._last_ctl_cdb |
#define | SA_DEFAULT_IO_SPLIT 0 |
#define | D_TAPE 0 |
#define | PENDING_MOUNT_CHECK(softc, periph, dev) |
#define | SAFILLDENSSB(dens_data, sb, indent, field, desc_remain, len_to_go, cur_offset, desc) |
#define | SAFILLDENSSBSTR(dens_data, sb, indent, field, desc_remain, len_to_go, cur_offset, desc) |
Functions | |
__FBSDID ("$FreeBSD$") | |
static | MALLOC_DEFINE (M_SCSISA, "SCSI sa", "SCSI sequential access buffers") |
static void | saasync (void *callback_arg, u_int32_t code, struct cam_path *path, void *arg) |
static void | sadone (struct cam_periph *periph, union ccb *start_ccb) |
static int | saerror (union ccb *ccb, u_int32_t cam_flags, u_int32_t sense_flags) |
static int | samarkswanted (struct cam_periph *) |
static int | sacheckeod (struct cam_periph *periph) |
static int | sagetparams (struct cam_periph *periph, sa_params params_to_get, u_int32_t *blocksize, u_int8_t *density, u_int32_t *numblocks, int *buff_mode, u_int8_t *write_protect, u_int8_t *speed, int *comp_supported, int *comp_enabled, u_int32_t *comp_algorithm, sa_comp_t *comp_page, struct scsi_control_data_prot_subpage *prot_page, int dp_size, int prot_changeable) |
static int | sasetprot (struct cam_periph *periph, struct sa_prot_state *new_prot) |
static int | sasetparams (struct cam_periph *periph, sa_params params_to_set, u_int32_t blocksize, u_int8_t density, u_int32_t comp_algorithm, u_int32_t sense_flags) |
static int | sasetsili (struct cam_periph *periph, struct mtparamset *ps, int num_params) |
static int | saseteotwarn (struct cam_periph *periph, struct mtparamset *ps, int num_params) |
static void | safillprot (struct sa_softc *softc, int *indent, struct sbuf *sb) |
static void | sapopulateprots (struct sa_prot_state *cur_state, struct sa_prot_map *new_table, int table_ents) |
static struct sa_prot_map * | safindprotent (char *name, struct sa_prot_map *table, int table_ents) |
static int | sasetprotents (struct cam_periph *periph, struct mtparamset *ps, int num_params) |
static struct sa_param_ent * | safindparament (struct mtparamset *ps) |
static int | saparamsetlist (struct cam_periph *periph, struct mtsetlist *list, int need_copy) |
static int | saextget (struct cdev *dev, struct cam_periph *periph, struct sbuf *sb, struct mtextget *g) |
static int | saparamget (struct sa_softc *softc, struct sbuf *sb) |
static void | saprevent (struct cam_periph *periph, int action) |
static int | sarewind (struct cam_periph *periph) |
static int | saspace (struct cam_periph *periph, int count, scsi_space_code code) |
static void | sadevgonecb (void *arg) |
static void | sasetupdev (struct sa_softc *softc, struct cdev *dev) |
static void | saloadtotunables (struct sa_softc *softc) |
static void | sasysctlinit (void *context, int pending) |
static int | samount (struct cam_periph *, int, struct cdev *) |
static int | saretension (struct cam_periph *periph) |
static int | sareservereleaseunit (struct cam_periph *periph, int reserve) |
static int | saloadunload (struct cam_periph *periph, int load) |
static int | saerase (struct cam_periph *periph, int longerase) |
static int | sawritefilemarks (struct cam_periph *periph, int nmarks, int setmarks, int immed) |
static int | sagetpos (struct cam_periph *periph) |
static int | sardpos (struct cam_periph *periph, int, u_int32_t *) |
static int | sasetpos (struct cam_periph *periph, int, struct mtlocate *) |
static void | safilldenstypesb (struct sbuf *sb, int *indent, uint8_t *buf, int buf_len, int is_density) |
static void | safilldensitysb (struct sa_softc *softc, int *indent, struct sbuf *sb) |
static void | saloadtimeouts (struct sa_softc *softc, union ccb *ccb) |
static | SYSCTL_NODE (_kern_cam, OID_AUTO, sa, CTLFLAG_RD|CTLFLAG_MPSAFE, 0, "CAM Sequential Access Tape Driver") |
SYSCTL_INT (_kern_cam_sa, OID_AUTO, allow_io_split, CTLFLAG_RDTUN, &sa_allow_io_split, 0, "Default I/O split value") | |
PERIPHDRIVER_DECLARE (sa, sadriver) | |
static int | saopen (struct cdev *dev, int flags, int fmt, struct thread *td) |
static int | saclose (struct cdev *dev, int flag, int fmt, struct thread *td) |
static void | sastrategy (struct bio *bp) |
static int | sagetparams_common (struct cdev *dev, struct cam_periph *periph) |
static int | saioctl (struct cdev *dev, u_long cmd, caddr_t arg, int flag, struct thread *td) |
static void | saoninvalidate (struct cam_periph *periph) |
static void | sacleanup (struct cam_periph *periph) |
static cam_status | saregister (struct cam_periph *periph, void *arg) |
static void | sastart (struct cam_periph *periph, union ccb *start_ccb) |
void | scsi_read_block_limits (struct ccb_scsiio *csio, u_int32_t retries, void(*cbfcnp)(struct cam_periph *, union ccb *), u_int8_t tag_action, struct scsi_read_block_limits_data *rlimit_buf, u_int8_t sense_len, u_int32_t timeout) |
void | scsi_sa_read_write (struct ccb_scsiio *csio, u_int32_t retries, void(*cbfcnp)(struct cam_periph *, union ccb *), u_int8_t tag_action, int readop, int sli, int fixed, u_int32_t length, u_int8_t *data_ptr, u_int32_t dxfer_len, u_int8_t sense_len, u_int32_t timeout) |
void | scsi_load_unload (struct ccb_scsiio *csio, u_int32_t retries, void(*cbfcnp)(struct cam_periph *, union ccb *), u_int8_t tag_action, int immediate, int eot, int reten, int load, u_int8_t sense_len, u_int32_t timeout) |
void | scsi_rewind (struct ccb_scsiio *csio, u_int32_t retries, void(*cbfcnp)(struct cam_periph *, union ccb *), u_int8_t tag_action, int immediate, u_int8_t sense_len, u_int32_t timeout) |
void | scsi_space (struct ccb_scsiio *csio, u_int32_t retries, void(*cbfcnp)(struct cam_periph *, union ccb *), u_int8_t tag_action, scsi_space_code code, u_int32_t count, u_int8_t sense_len, u_int32_t timeout) |
void | scsi_write_filemarks (struct ccb_scsiio *csio, u_int32_t retries, void(*cbfcnp)(struct cam_periph *, union ccb *), u_int8_t tag_action, int immediate, int setmark, u_int32_t num_marks, u_int8_t sense_len, u_int32_t timeout) |
void | scsi_reserve_release_unit (struct ccb_scsiio *csio, u_int32_t retries, void(*cbfcnp)(struct cam_periph *, union ccb *), u_int8_t tag_action, int third_party, int third_party_id, u_int8_t sense_len, u_int32_t timeout, int reserve) |
void | scsi_erase (struct ccb_scsiio *csio, u_int32_t retries, void(*cbfcnp)(struct cam_periph *, union ccb *), u_int8_t tag_action, int immediate, int long_erase, u_int8_t sense_len, u_int32_t timeout) |
void | scsi_read_position (struct ccb_scsiio *csio, u_int32_t retries, void(*cbfcnp)(struct cam_periph *, union ccb *), u_int8_t tag_action, int hardsoft, struct scsi_tape_position_data *sbp, u_int8_t sense_len, u_int32_t timeout) |
void | scsi_read_position_10 (struct ccb_scsiio *csio, u_int32_t retries, void(*cbfcnp)(struct cam_periph *, union ccb *), u_int8_t tag_action, int service_action, u_int8_t *data_ptr, u_int32_t length, u_int32_t sense_len, u_int32_t timeout) |
void | scsi_set_position (struct ccb_scsiio *csio, u_int32_t retries, void(*cbfcnp)(struct cam_periph *, union ccb *), u_int8_t tag_action, int hardsoft, u_int32_t blkno, u_int8_t sense_len, u_int32_t timeout) |
void | scsi_locate_10 (struct ccb_scsiio *csio, u_int32_t retries, void(*cbfcnp)(struct cam_periph *, union ccb *), u_int8_t tag_action, int immed, int cp, int hard, int64_t partition, u_int32_t block_address, int sense_len, u_int32_t timeout) |
void | scsi_locate_16 (struct ccb_scsiio *csio, u_int32_t retries, void(*cbfcnp)(struct cam_periph *, union ccb *), u_int8_t tag_action, int immed, int cp, u_int8_t dest_type, int bam, int64_t partition, u_int64_t logical_id, int sense_len, u_int32_t timeout) |
void | scsi_report_density_support (struct ccb_scsiio *csio, u_int32_t retries, void(*cbfcnp)(struct cam_periph *, union ccb *), u_int8_t tag_action, int media, int medium_type, u_int8_t *data_ptr, u_int32_t length, u_int32_t sense_len, u_int32_t timeout) |
void | scsi_set_capacity (struct ccb_scsiio *csio, u_int32_t retries, void(*cbfcnp)(struct cam_periph *, union ccb *), u_int8_t tag_action, int byte1, u_int32_t proportion, u_int32_t sense_len, u_int32_t timeout) |
void | scsi_format_medium (struct ccb_scsiio *csio, u_int32_t retries, void(*cbfcnp)(struct cam_periph *, union ccb *), u_int8_t tag_action, int byte1, int byte2, u_int8_t *data_ptr, u_int32_t dxfer_len, u_int32_t sense_len, u_int32_t timeout) |
void | scsi_allow_overwrite (struct ccb_scsiio *csio, u_int32_t retries, void(*cbfcnp)(struct cam_periph *, union ccb *), u_int8_t tag_action, int allow_overwrite, int partition, u_int64_t logical_id, u_int32_t sense_len, u_int32_t timeout) |
Variables | |
static struct sa_timeout_desc | sa_default_timeouts [SA_TIMEOUT_TYPE_MAX] |
struct sa_prot_map | sa_prot_table [] |
static struct sa_quirk_entry | sa_quirk_table [] |
static d_open_t | saopen |
static d_close_t | saclose |
static d_strategy_t | sastrategy |
static d_ioctl_t | saioctl |
static periph_init_t | sainit |
static periph_ctor_t | saregister |
static periph_oninv_t | saoninvalidate |
static periph_dtor_t | sacleanup |
static periph_start_t | sastart |
static int | sa_allow_io_split = SA_DEFAULT_IO_SPLIT |
static struct periph_driver | sadriver |
static struct cdevsw | sa_cdevsw |
struct sa_param_ent | sa_param_table [] |
#define ccb_bp ppriv_ptr1 |
#define ccb_pflags ppriv_field0 |
#define ERASE_TIMEOUT (SA_ERASE_TIMEOUT * 60 * 1000) |
#define IO_TIMEOUT (SA_IO_TIMEOUT * 60 * 1000) |
#define PENDING_MOUNT_CHECK | ( | softc, | |
periph, | |||
dev | |||
) |
#define QFRLS | ( | ccb | ) |
#define REP_DENSITY_TIMEOUT (SA_REP_DENSITY_TIMEOUT * 60 * 1000) |
#define REWIND_TIMEOUT (SA_REWIND_TIMEOUT * 60 * 1000) |
#define SA_NUM_PROT_ENTS nitems(sa_prot_table) |
#define SA_PROT_ENABLED | ( | softc | ) |
#define SA_PROT_LEN | ( | softc | ) | softc->prot_info.cur_prot_state.pi_length |
#define SA_QUIRK_BIT_STRING |
#define SAFILLDENSSB | ( | dens_data, | |
sb, | |||
indent, | |||
field, | |||
desc_remain, | |||
len_to_go, | |||
cur_offset, | |||
desc | |||
) |
#define SAFILLDENSSBSTR | ( | dens_data, | |
sb, | |||
indent, | |||
field, | |||
desc_remain, | |||
len_to_go, | |||
cur_offset, | |||
desc | |||
) |
#define SAMINOR | ( | ctl, | |
access | |||
) | ((ctl << 4) | (access & 0x3)) |
#define SASBADDBASE | ( | sb, | |
indent, | |||
data, | |||
xfmt, | |||
name, | |||
type, | |||
xsize, | |||
desc | |||
) |
#define SASBADDFIXEDSTR | ( | sb, | |
indent, | |||
data, | |||
fmt, | |||
name | |||
) |
#define SASBADDFIXEDSTRDESC | ( | sb, | |
indent, | |||
data, | |||
fmt, | |||
name, | |||
desc | |||
) |
#define SASBADDINT | ( | sb, | |
indent, | |||
data, | |||
fmt, | |||
name | |||
) |
#define SASBADDINTDESC | ( | sb, | |
indent, | |||
data, | |||
fmt, | |||
name, | |||
desc | |||
) |
#define SASBADDNODE | ( | sb, | |
indent, | |||
name | |||
) |
#define SASBADDNODENUM | ( | sb, | |
indent, | |||
name, | |||
num | |||
) |
#define SASBADDUINT | ( | sb, | |
indent, | |||
data, | |||
fmt, | |||
name | |||
) |
#define SASBADDUINTDESC | ( | sb, | |
indent, | |||
data, | |||
fmt, | |||
name, | |||
desc | |||
) |
#define SASBADDVARSTR | ( | sb, | |
indent, | |||
data, | |||
fmt, | |||
name, | |||
maxlen | |||
) | SASBADDBASE(sb, indent, data, fmt, name, str, maxlen, NULL) |
#define SASBADDVARSTRDESC | ( | sb, | |
indent, | |||
data, | |||
fmt, | |||
name, | |||
maxlen, | |||
desc | |||
) | SASBADDBASE(sb, indent, data, fmt, name, str, maxlen, desc) |
#define SASBENDNODE | ( | sb, | |
indent, | |||
name | |||
) |
#define SPACE_TIMEOUT (SA_SPACE_TIMEOUT * 60 * 1000) |
enum sa_flags |
enum sa_mode |
enum sa_param_type |
enum sa_params |
enum sa_quirks |
enum sa_state |
enum sa_timeout_types |
__FBSDID | ( | "$FreeBSD$" | ) |
|
static |
PERIPHDRIVER_DECLARE | ( | sa | , |
sadriver | |||
) |
|
static |
Definition at line 2292 of file scsi_sa.c.
References AC_FOUND_DEVICE, cam_periph_alloc(), cam_periph_async(), CAM_PERIPH_BIO, CAM_REQ_CMP, CAM_REQ_INPROG, ccb_getdev::inq_data, PROTO_SCSI, ccb_getdev::protocol, saasync(), sacleanup, saoninvalidate, saregister, sastart, SID_QUAL, SID_QUAL_LU_CONNECTED, SID_TYPE, and T_SEQUENTIAL.
Referenced by saasync(), saoninvalidate(), and saregister().
|
static |
Definition at line 3650 of file scsi_sa.c.
References sa_softc::periph, samarkswanted(), and sawritefilemarks().
Referenced by saclose(), and saioctl().
|
static |
Definition at line 2270 of file scsi_sa.c.
References cam_periph_lock, cam_periph_unlock, sa_softc::device_stats, sa_softc::flags, cam_periph::path, sa_softc::periph, SA_FLAG_SCTX_INIT, cam_periph::softc, sa_softc::sysctl_ctx, sa_softc::sysctl_timeout_ctx, sa_softc::sysctl_timeout_tree, and xpt_print().
|
static |
Definition at line 790 of file scsi_sa.c.
References CAM_DEBUG, CAM_DEBUG_INFO, CAM_DEBUG_TRACE, cam_periph_hold(), cam_periph_lock, cam_periph_release(), cam_periph_unhold(), cam_periph_unlock, sa_softc::ctrl_mode, sa_softc::density_info_valid, sa_softc::density_type_bits, sa_softc::filemarks, sa_softc::flags, sa_softc::open_count, sa_softc::open_pending_mount, sa_softc::open_rdonly, cam_periph::path, sa_softc::periph, PR_ALLOW, sa_softc::quirks, SA_DENSITY_TYPES, SA_FLAG_OPEN, SA_FLAG_TAPE_FROZEN, SA_FLAG_TAPE_MOUNTED, SA_FLAG_TAPE_WRITTEN, SA_IS_CTRL, SA_MODE_NOREWIND, SA_MODE_OFFLINE, SA_MODE_REWIND, SA_QUIRK_2FM, sacheckeod(), saloadunload(), SAMODE, saprevent(), sareservereleaseunit(), sarewind(), saspace(), cam_periph::softc, SRDS_MEDIA, SS_FILEMARKS, and xpt_print().
|
static |
Definition at line 2193 of file scsi_sa.c.
References cam_periph_mtx(), cam_periph_release_locked(), sa_softc::num_devs_to_destroy, sa_softc::open_count, sa_softc::periph, and cam_periph::softc.
Referenced by saoninvalidate().
|
static |
Definition at line 3017 of file scsi_sa.c.
References sa_softc::bio_queue, sa_softc::blk_shift, sa_softc::blkno, CAM_DEBUG, CAM_DEBUG_INFO, cam_periph_error(), cam_periph_release_locked(), cam_release_devq(), CAM_REQ_CMP, CAM_STATUS_MASK, ccb_scsiio::ccb_h, ccb::ccb_h, ccb::csio, sa_softc::device_stats, sa_softc::dsreg, sa_softc::filemarks, sa_softc::flags, sa_softc::media_blksize, ccb_hdr::path, cam_periph::path, sa_softc::periph, sa_softc::quirks, ccb_scsiio::resid, SA_FLAG_ERR_PENDING, SA_FLAG_FIXED, SA_FLAG_TAPE_FROZEN, SA_FLAG_TAPE_WRITTEN, SA_POSITION_UPDATED, SA_QUIRK_BIT_STRING, SA_STATE_NORMAL, SA_STATE_PROBE, saerror(), saloadtimeouts(), saloadtotunables(), SF_NO_PRINT, cam_periph::softc, sa_softc::state, ccb_hdr::status, xpt_announce_periph(), xpt_announce_quirks(), and xpt_release_ccb().
Referenced by sastart().
|
static |
Definition at line 5462 of file scsi_sa.c.
References cam_periph_getccb(), cam_periph_runccb(), ccb, ccb::csio, sa_softc::device_stats, sa_softc::dsreg, MSG_SIMPLE_Q_TAG, sa_softc::open_rdonly, sa_softc::periph, SA_TIMEOUT_ERASE, saerror(), scsi_erase(), cam_periph::softc, SSD_FULL_SIZE, sa_softc::timeout_info, and xpt_release_ccb().
Referenced by saioctl().
|
static |
Definition at line 3666 of file scsi_sa.c.
References sa_softc::blkno, CAM_BDR_SENT, CAM_DEBUG, CAM_DEBUG_INFO, cam_periph_error(), CAM_REQ_CMP, CAM_SCSI_BUS_RESET, CAM_SCSI_STATUS_ERROR, CAM_STATUS_MASK, ccb_scsiio::ccb_h, ccb::ccb_h, cdb_t::cdb_bytes, ccb_scsiio::cdb_io, ccb_scsiio::cdb_len, ccb::csio, ccb_scsiio::dxfer_len, scsi_sense_data::error_code, sa_softc::fileno, sa_softc::flags, sa_softc::last_resid_was_io, sa_softc::media_blksize, ccb_hdr::path, cam_periph::path, sa_softc::periph, QFRLS, sa_softc::quirks, ccb_scsiio::resid, ccb_hdr::retry_count, SA_FLAG_EIO_PENDING, SA_FLAG_EOF_PENDING, SA_FLAG_EOM_PENDING, SA_FLAG_FIXED, SA_POSITION_UPDATED, SA_QUIRK_1FM, SA_READ, SA_WRITE, scsi_extract_sense_len(), scsi_get_sense_info(), scsi_get_stream_info(), ccb_scsiio::sense_data, ccb_scsiio::sense_len, ccb_scsiio::sense_resid, cam_periph::softc, SSD_DESC_INFO, SSD_EOM, SSD_FILEMARK, SSD_ILI, SSD_KEY_BLANK_CHECK, SSD_KEY_NO_SENSE, SSD_KEY_VOLUME_OVERFLOW, ccb_hdr::status, xpt_path_periph(), and xpt_print().
Referenced by sadone(), saerase(), sagetparams(), sagetpos(), saioctl(), saloadunload(), samount(), saprevent(), sardpos(), sareservereleaseunit(), saretension(), sarewind(), sasetparams(), sasetpos(), sasetprot(), saspace(), and sawritefilemarks().
|
static |
Definition at line 4705 of file scsi_sa.c.
References sa_softc::blk_gran, sa_softc::blkno, sa_softc::bop, sa_softc::bpew, CAM_PRIORITY_NORMAL, CAM_REQ_CMP, CAM_STATUS_MASK, cam_strvis(), ccb_getdev::ccb_h, sa_softc::comp_algorithm, sa_softc::cpi_maxio, sa_softc::dsreg, sa_softc::eop, sa_softc::fileno, sa_softc::flags, ccb_hdr::func_code, ccb_getdev::inq_data, sa_softc::max_blk, sa_softc::maxio, sa_softc::media_blksize, sa_softc::min_blk, sa_softc::open_pending_mount, sa_softc::partition, cam_periph::path, sa_softc::periph, cam_periph::periph_name, scsi_inquiry_data::product, sa_softc::rep_blkno, sa_softc::rep_fileno, scsi_inquiry_data::revision, SA_FLAG_COMP_ENABLED, SA_FLAG_COMP_UNSUPP, SA_FLAG_FIXED, SA_IS_CTRL, safilldensitysb(), safillprot(), sagetparams_common(), sagetpos(), SASBADDINTDESC, SASBADDNODE, SASBADDUINT, SASBADDUINTDESC, SASBADDVARSTR, SASBADDVARSTRDESC, SASBENDNODE, ccb_getdev::serial_num, ccb_getdev::serial_num_len, cam_periph::softc, ccb_hdr::status, cam_periph::unit_number, scsi_inquiry_data::vendor, xpt_action(), XPT_GDEV_TYPE, and xpt_setup_ccb().
Referenced by saioctl().
|
static |
Definition at line 5736 of file scsi_sa.c.
References sa_softc::density_info, sa_softc::density_info_valid, sa_softc::density_type_bits, sa_softc::media_density, SA_DENSITY_TYPES, safilldenstypesb(), SASBADDINTDESC, SASBADDNODE, SASBADDUINTDESC, SASBENDNODE, SRDS_MEDIA, and SRDS_MEDIUM_TYPE.
Referenced by saextget().
|
static |
Definition at line 5566 of file scsi_sa.c.
References scsi_medium_type_data::assigning_org, scsi_density_data::byte2, scsi_medium_type_data::description, scsi_density_hdr::length, scsi_density_data::length, scsi_medium_type_data::length, scsi_medium_type_data::media_width, scsi_medium_type_data::medium_length, scsi_medium_type_data::medium_type, scsi_medium_type_data::medium_type_name, scsi_medium_type_data::num_density_codes, scsi_density_data::primary_density_code, scsi_medium_type_data::primary_density_codes, scsi_medium_type_data::reserved2, SAFILLDENSSB, SAFILLDENSSBSTR, SASBADDINTDESC, SASBADDNODE, SASBADDNODENUM, SASBADDUINTDESC, SASBENDNODE, scsi_2btoul(), SDD_DEFAULT_LENGTH, SDD_DLV, and scsi_density_data::secondary_density_code.
Referenced by safilldensitysb().
|
static |
Definition at line 1169 of file scsi_sa.c.
References sa_prot_info::cur_prot_state, sa_softc::flags, sa_prot_state::initialized, sa_prot_state::lbp_r, sa_prot_state::lbp_w, sa_prot_state::pi_length, sa_softc::prot_info, sa_prot_state::prot_method, sa_prot_state::rbdp, SA_FLAG_PROTECT_SUPP, SASBADDINTDESC, SASBADDNODE, SASBADDUINTDESC, and SASBENDNODE.
Referenced by saextget(), and saparamget().
|
static |
Definition at line 1373 of file scsi_sa.c.
References sa_param_ent::name, sa_param_ent::param_type, sa_param_table, and SA_PARAM_TYPE_ENTRY.
Referenced by saparamsetlist().
|
static |
Definition at line 1221 of file scsi_sa.c.
References sa_prot_map::name.
Referenced by sasetprotents().
|
static |
Definition at line 3875 of file scsi_sa.c.
References scsi_mode_header_6::blk_desc_len, scsi_mode_blk_desc::blklen, CAM_DEBUG_INFO, CAM_DEBUGGED, cam_periph_getccb(), cam_periph_runccb(), CAM_REQ_CMP, CAM_SCSI_STATUS_ERROR, CAM_STATUS_MASK, ccb, ccb::ccb_h, cdb_t::cdb_bytes, ccb_scsiio::cdb_io, scsi_data_compression_page::comp_algorithm, ccb::csio, sa_prot_info::cur_prot_state, scsi_mode_header_10::data_length, scsi_data_compression_page::dce_and_dcc, sa_comp_t::dcomp, sa_comp_t::dconf, scsi_mode_blk_desc::density, sa_softc::density_info, sa_softc::density_info_valid, sa_softc::density_type_bits, scsi_mode_header_6::dev_spec, sa_softc::device_stats, ccb_scsiio::dxfer_len, sa_softc::flags, sa_prot_state::initialized, sa_prot_state::lbp_r, sa_prot_state::lbp_w, MSG_SIMPLE_Q_TAG, scsi_mode_blk_desc::nblocks, cam_periph::path, sa_softc::periph, sa_prot_state::pi_length, scsi_control_data_prot_subpage::pi_length, scsi_control_data_prot_subpage::prot_bits, sa_softc::prot_info, sa_prot_state::prot_method, scsi_control_data_prot_subpage::prot_method, sa_softc::quirks, sa_prot_state::rbdp, ccb_scsiio::resid, SA_COMP_NONE, SA_CTRL_DP_LBP_R, SA_CTRL_DP_LBP_W, SA_CTRL_DP_PI_LENGTH_MASK, SA_CTRL_DP_RBDP, SA_CTRL_DP_SUBPAGE_CODE, SA_DATA_COMPRESSION_PAGE, SA_DCP_DCC, SA_DCP_DCE, SA_DENSITY_TYPES, SA_DEVICE_CONFIGURATION_PAGE, SA_FLAG_PROTECT_SUPP, SA_PARAM_BLOCKSIZE, SA_PARAM_BUFF_MODE, SA_PARAM_COMPRESSION, SA_PARAM_DENSITY, SA_PARAM_DENSITY_EXT, SA_PARAM_LBP, SA_PARAM_NUMBLOCKS, SA_PARAM_SPEED, SA_PARAM_WP, SA_QUIRK_NO_CPAGE, SA_QUIRK_NOCOMP, SA_TIMEOUT_MODE_SENSE, SA_TIMEOUT_REP_DENSITY, saerror(), scsi_2btoul(), scsi_3btoul(), scsi_4btoul(), scsi_mode_sense(), scsi_mode_sense_len(), scsi_report_density_support(), sa_softc::scsi_rev, SCSI_REV_SPC, scsi_sense_print(), scsi_dev_conf_page::sel_comp_alg, SF_NO_PRINT, SMH_SA_BUF_MODE_MASK, SMH_SA_SPEED_MASK, SMH_SA_WP, SMS_CONTROL_MODE_PAGE, SMS_PAGE_CTRL_CHANGEABLE, SMS_PAGE_CTRL_CURRENT, SMS_VENDOR_SPECIFIC_PAGE, cam_periph::softc, SRDS_MEDIA, SRDS_MEDIUM_TYPE, SSD_FULL_SIZE, ccb_hdr::status, scsi_mode_sense_10::subpage, sa_softc::timeout_info, xpt_print_path(), and xpt_release_ccb().
Referenced by sagetparams_common(), samount(), sasetparams(), and sasetprot().
|
static |
Definition at line 1510 of file scsi_sa.c.
References sa_softc::buffer_mode, sa_softc::comp_algorithm, sa_softc::flags, sa_softc::media_blksize, sa_softc::media_density, sa_softc::media_numblks, sa_softc::open_pending_mount, sa_softc::periph, SA_FLAG_COMP_ENABLED, SA_FLAG_COMP_SUPP, SA_FLAG_COMP_UNSUPP, SA_FLAG_OPEN, SA_FLAG_TAPE_WP, SA_IS_CTRL, SA_PARAM_ALL, sagetparams(), sa_softc::saved_comp_algorithm, cam_periph::softc, and sa_softc::speed.
Referenced by saextget(), and saioctl().
|
static |
Definition at line 5115 of file scsi_sa.c.
References sa_softc::blkno, sa_softc::bop, sa_softc::bpew, cam_periph_getccb(), cam_periph_runccb(), CAM_PRIORITY_NORMAL, ccb, ccb::csio, sa_softc::device_stats, sa_softc::dsreg, sa_softc::eop, sa_softc::fileno, scsi_tape_position_long_data::flags, scsi_tape_position_long_data::logical_file_num, scsi_tape_position_long_data::logical_object_num, MSG_SIMPLE_Q_TAG, sa_softc::partition, scsi_tape_position_long_data::partition, sa_softc::periph, sa_softc::quirks, sa_softc::rep_blkno, sa_softc::rep_fileno, SA_QUIRK_NO_LONG_POS, SA_RPOS_LONG_BOP, SA_RPOS_LONG_BPEW, SA_RPOS_LONG_EOP, SA_RPOS_LONG_FORM, SA_RPOS_LONG_LONU, SA_RPOS_LONG_MPU, SA_TIMEOUT_READ_POSITION, saerror(), scsi_4btoul(), scsi_8btou64(), scsi_read_position_10(), sa_softc::set_pews_status, SF_QUIET_IR, cam_periph::softc, SSD_FULL_SIZE, sa_softc::timeout_info, and xpt_release_ccb().
Referenced by saextget(), saloadunload(), saretension(), sasetpos(), saspace(), and sawritefilemarks().
|
static |
Definition at line 1560 of file scsi_sa.c.
References sa_softc::blk_gran, sa_softc::blk_mask, sa_softc::blk_shift, sa_softc::blkno, CAM_DEBUG, CAM_DEBUG_TRACE, cam_periph_hold(), cam_periph_ioctl(), cam_periph_lock, CAM_PERIPH_LOCKED, cam_periph_unhold(), cam_periph_unlock, sa_softc::comp_algorithm, sa_softc::dsreg, sa_softc::errinfo, sa_softc::filemarks, sa_softc::fileno, cam_periph::flags, sa_softc::flags, sa_softc::last_media_blksize, sa_softc::last_resid_was_io, sa_softc::max_blk, sa_softc::media_blksize, sa_softc::media_density, sa_softc::min_blk, sa_softc::open_pending_mount, sa_softc::partition, cam_periph::path, PENDING_MOUNT_CHECK, sa_softc::periph, PR_ALLOW, sa_softc::quirks, sa_softc::rep_blkno, sa_softc::rep_fileno, SA_FLAG_COMP_ENABLED, SA_FLAG_COMP_UNSUPP, SA_FLAG_EIO_PENDING, SA_FLAG_FIXED, SA_FLAG_TAPE_FROZEN, SA_FLAG_TAPE_WRITTEN, SA_IS_CTRL, SA_PARAM_BLOCKSIZE, SA_PARAM_COMPRESSION, SA_PARAM_DENSITY, SA_QUIRK_1FM, SA_QUIRK_2FM, SA_QUIRK_FIXED, SA_QUIRK_NOCOMP, SA_QUIRK_VARIABLE, sacheckeod(), saerase(), saerror(), saextget(), sagetparams_common(), saloadunload(), SAMODE, saparamget(), saparamsetlist(), saprevent(), sardpos(), saretension(), sarewind(), sasetparams(), sasetpos(), saspace(), sawritefilemarks(), SF_NO_PRINT, sa_softc::sili, cam_periph::softc, SS_BLOCKS, SS_EOD, SS_FILEMARKS, SS_SETMARKS, and xpt_print().
Definition at line 5781 of file scsi_sa.c.
References ccb::csio, ccb_scsiio::data_ptr, ccb_scsiio::dxfer_len, ERASE, scsi_report_supported_opcodes_descr::flags, scsi_report_supported_opcodes_timeout::length, scsi_report_supported_opcodes_all::length, LOAD_UNLOAD, LOCATE, LOCATE_16, MODE_SELECT_10, MODE_SELECT_6, MODE_SENSE_10, MODE_SENSE_6, scsi_report_supported_opcodes_descr::opcode, cam_periph::path, sa_softc::periph, PREVENT_ALLOW, READ_BLOCK_LIMITS, READ_POSITION, scsi_report_supported_opcodes_timeout::recommended_time, RELEASE_UNIT, REPORT_DENSITY_SUPPORT, RESERVE_UNIT, ccb_scsiio::resid, REWIND, RSO_CTDP, SA_READ, SA_TIMEOUT_ERASE, SA_TIMEOUT_LOAD, SA_TIMEOUT_LOCATE, SA_TIMEOUT_MODE_SELECT, SA_TIMEOUT_MODE_SENSE, SA_TIMEOUT_PREVENT, SA_TIMEOUT_READ, SA_TIMEOUT_READ_BLOCK_LIMITS, SA_TIMEOUT_READ_POSITION, SA_TIMEOUT_REP_DENSITY, SA_TIMEOUT_RESERVE, SA_TIMEOUT_REWIND, SA_TIMEOUT_SPACE, SA_TIMEOUT_TUR, SA_TIMEOUT_WRITE, SA_TIMEOUT_WRITE_FILEMARKS, SA_WRITE, scsi_2btoul(), scsi_4btoul(), SPACE, TEST_UNIT_READY, sa_softc::timeout_info, WRITE_FILEMARKS, and xpt_print().
Referenced by sadone().
|
static |
Definition at line 2359 of file scsi_sa.c.
References sa_timeout_desc::desc, sa_softc::periph, sa_default_timeouts, SA_TIMEOUT_TYPE_MAX, sa_softc::timeout_info, and cam_periph::unit_number.
Referenced by sadone(), saregister(), and sastart().
|
static |
Definition at line 5431 of file scsi_sa.c.
References sa_softc::blkno, cam_periph_getccb(), cam_periph_runccb(), ccb, ccb::csio, sa_softc::device_stats, sa_softc::dsreg, sa_softc::fileno, MSG_SIMPLE_Q_TAG, sa_softc::partition, sa_softc::periph, sa_softc::rep_blkno, sa_softc::rep_fileno, SA_TIMEOUT_LOAD, saerror(), sagetpos(), scsi_load_unload(), cam_periph::softc, SSD_FULL_SIZE, sa_softc::timeout_info, and xpt_release_ccb().
Referenced by saclose(), and saioctl().
|
static |
Definition at line 3633 of file scsi_sa.c.
References sa_softc::filemarks, sa_softc::flags, sa_softc::periph, sa_softc::quirks, SA_FLAG_TAPE_WRITTEN, SA_QUIRK_2FM, and cam_periph::softc.
Referenced by sacheckeod().
|
static |
Definition at line 3169 of file scsi_sa.c.
References sa_softc::blk_gran, sa_softc::blk_mask, sa_softc::blk_shift, sa_softc::blkno, sa_softc::buffer_mode, CAM_DEBUG_INFO, CAM_DEBUGGED, cam_periph_getccb(), cam_periph_runccb(), CAM_RETRY_SELTO, ccb, sa_softc::comp_algorithm, ccb::csio, sa_softc::device_stats, sa_softc::dsreg, sa_softc::filemarks, sa_softc::fileno, sa_softc::flags, sa_softc::last_media_blksize, sa_softc::max_blk, scsi_read_block_limits_data::maximum, sa_softc::media_blksize, sa_softc::media_density, sa_softc::media_numblks, sa_softc::min_blk, scsi_read_block_limits_data::minimum, MSG_SIMPLE_Q_TAG, sa_softc::partition, cam_periph::path, sa_softc::periph, sa_softc::quirks, RBL_GRAN, sa_softc::rep_blkno, sa_softc::rep_fileno, SA_FLAG_COMP_ENABLED, SA_FLAG_COMP_SUPP, SA_FLAG_COMP_UNSUPP, SA_FLAG_COMPRESSION, SA_FLAG_ERR_PENDING, SA_FLAG_FIXED, SA_FLAG_TAPE_MOUNTED, SA_FLAG_TAPE_WP, SA_FLAG_TAPE_WRITTEN, SA_PARAM_ALL, SA_PARAM_BLOCKSIZE, SA_PARAM_BUFF_MODE, SA_PARAM_DENSITY, SA_QUIRK_1FM, SA_QUIRK_2FM, SA_QUIRK_FIXED, SA_QUIRK_NO_MODESEL, SA_QUIRK_NODREAD, SA_QUIRK_VARIABLE, SA_TIMEOUT_LOAD, SA_TIMEOUT_READ, SA_TIMEOUT_READ_BLOCK_LIMITS, SA_TIMEOUT_REWIND, SA_TIMEOUT_TUR, saerror(), sagetparams(), sareservereleaseunit(), sasetparams(), sa_softc::saved_comp_algorithm, scsi_2btoul(), scsi_3btoul(), SCSI_DEFAULT_DENSITY, SCSI_DENSITY_HALFINCH_1600, SCSI_DENSITY_HALFINCH_6250, SCSI_DENSITY_HALFINCH_6250C, SCSI_DENSITY_HALFINCH_800, SCSI_DENSITY_HALFINCH_PE, SCSI_DENSITY_QIC_11_4TRK, SCSI_DENSITY_QIC_11_9TRK, SCSI_DENSITY_QIC_120, SCSI_DENSITY_QIC_1320, SCSI_DENSITY_QIC_150, SCSI_DENSITY_QIC_24, SCSI_DENSITY_QIC_2GB, SCSI_DENSITY_QIC_3080, SCSI_DENSITY_QIC_4GB, SCSI_DENSITY_QIC_525_320, scsi_load_unload(), scsi_read_block_limits(), sa_softc::scsi_rev, SCSI_REV_SPC, scsi_rewind(), scsi_sa_read_write(), scsi_test_unit_ready(), SF_NO_PRINT, SF_RETRY_UA, SMH_SA_BUF_MODE_NOBUF, SMH_SA_BUF_MODE_SIBUF, cam_periph::softc, sa_softc::speed, SSD_FULL_SIZE, sa_softc::timeout_info, UNUSED_PARAMETER, xpt_print(), and xpt_release_ccb().
Referenced by saopen(), and sastrategy().
|
static |
Definition at line 2238 of file scsi_sa.c.
References sa_softc::bio_queue, sa_devs::ctl_dev, sa_softc::devs, sa_devs::er_dev, sa_softc::flags, sa_devs::nr_dev, cam_periph::path, sa_softc::periph, sa_softc::queue_count, sa_devs::r_dev, SA_FLAG_INVALID, saasync(), sadevgonecb(), cam_periph::softc, and xpt_register_async().
|
static |
Definition at line 714 of file scsi_sa.c.
References CAM_DEBUG, CAM_DEBUG_INFO, CAM_DEBUG_TRACE, cam_periph_acquire(), cam_periph_hold(), cam_periph_lock, cam_periph_release(), cam_periph_unhold(), cam_periph_unlock, sa_softc::ctrl_mode, sa_softc::flags, sa_softc::open_count, sa_softc::open_pending_mount, sa_softc::open_rdonly, cam_periph::path, sa_softc::periph, PR_PREVENT, SA_FLAG_INVALID, SA_FLAG_OPEN, SA_IS_CTRL, samount(), saprevent(), and cam_periph::softc.
|
static |
Definition at line 4891 of file scsi_sa.c.
References sa_softc::eot_warn, safillprot(), SASBADDINTDESC, SASBADDNODE, SASBENDNODE, and sa_softc::sili.
Referenced by saioctl().
|
static |
Definition at line 1402 of file scsi_sa.c.
References cam_periph_lock, cam_periph_unlock, sa_param_ent::param_type, cam_periph::path, SA_PARAM_TYPE_NODE, safindparament(), sa_param_ent::set_func, and xpt_print().
Referenced by saioctl().
|
static |
Definition at line 1203 of file scsi_sa.c.
References SA_NUM_PROT_ENTS, and sa_prot_table.
Referenced by sasetprotents().
|
static |
Definition at line 4908 of file scsi_sa.c.
References CAM_DEBUG_INFO, CAM_DEBUGGED, cam_periph_getccb(), cam_periph_runccb(), ccb, ccb::csio, sa_softc::device_stats, sa_softc::flags, MSG_SIMPLE_Q_TAG, cam_periph::path, sa_softc::periph, PR_ALLOW, PR_PREVENT, SA_FLAG_TAPE_LOCKED, SA_TIMEOUT_PREVENT, saerror(), scsi_prevent(), SF_QUIET_IR, cam_periph::softc, SSD_FULL_SIZE, sa_softc::timeout_info, and xpt_release_ccb().
Referenced by saclose(), saioctl(), saopen(), and sastrategy().
|
static |
Definition at line 5212 of file scsi_sa.c.
References cam_periph_getccb(), cam_periph_runccb(), ccb, ccb::csio, sa_softc::device_stats, sa_softc::dsreg, scsi_tape_position_data::firstblk, sa_softc::flags, scsi_tape_position_data::flags, MSG_SIMPLE_Q_TAG, sa_softc::periph, SA_FLAG_TAPE_WRITTEN, SA_RPOS_UNCERTAIN, SA_TIMEOUT_READ_POSITION, saerror(), sawritefilemarks(), scsi_4btoul(), scsi_read_position(), cam_periph::softc, SSD_FULL_SIZE, sa_softc::timeout_info, and xpt_release_ccb().
Referenced by saioctl().
|
static |
Definition at line 2461 of file scsi_sa.c.
References AC_LOST_DEVICE, sa_softc::allow_io_split, sa_softc::bio_queue, sa_softc::blkno, sa_softc::bop, sa_softc::bpew, ccb_dev_advinfo::buf, ccb_dev_advinfo::bufsiz, ccb_dev_advinfo::buftype, CAM_DEV_QFRZN, cam_periph_acquire(), cam_periph_lock, cam_periph_unlock, CAM_PRIORITY_DEV, CAM_PRIORITY_NORMAL, cam_quirkmatch(), cam_release_devq(), CAM_REQ_CMP, CAM_REQ_CMP_ERR, ccb_dev_advinfo::ccb_h, CDAI_FLAG_NONE, CDAI_TYPE_EXT_INQ, sa_softc::cpi_maxio, sa_devs::ctl_dev, sa_softc::density_type_bits, sa_softc::device_stats, sa_softc::devs, sa_softc::eop, sa_devs::er_dev, sa_softc::fileno, ccb_dev_advinfo::flags, sa_softc::flags, scsi_vpd_extended_inquiry_data::flags1, ccb_hdr::func_code, ccb_pathinq::hba_misc, ccb_getdev::inq_data, sa_softc::last_media_blksize, ccb_pathinq::maxio, sa_softc::maxio, sa_devs::nr_dev, sa_softc::partition, ccb_hdr::path, cam_periph::path, sa_softc::periph, cam_periph::periph_name, PIM_UNMAPPED, sa_softc::quirks, sa_devs::r_dev, sa_softc::rep_blkno, sa_softc::rep_fileno, sa_allow_io_split, SA_ATYPE_ER, SA_ATYPE_NR, SA_ATYPE_R, sa_cdevsw, SA_CTLDEV, sa_default_timeouts, SA_FLAG_PROTECT_SUPP, SA_FLAG_RSOC_TO_TRY, SA_NOT_CTLDEV, SA_QUIRK_BIT_STRING, SA_QUIRK_NO_LONG_POS, SA_QUIRK_NONE, sa_quirk_table, SA_STATE_NORMAL, SA_STATE_PROBE, SA_TIMEOUT_TYPE_MAX, saasync(), saloadtotunables(), SAMINOR, sasetupdev(), sasysctlinit(), scsi_inquiry_match(), sa_softc::scsi_rev, SCSI_REV_CCS, SCSI_REV_SPC4, sa_softc::si_flags, SID_ANSI_REV, SID_TYPE, cam_periph::softc, scsi_inquiry_data::spc3_flags, SPC3_SID_PROTECT, SRDS_MEDIA, SRDS_MEDIUM_TYPE, sa_softc::state, ccb_hdr::status, SVPD_EID_SA_SPT_LBP, sa_softc::sysctl_task, sa_softc::timeout_info, ccb_pathinq::transport, cam_periph::unit_number, sa_timeout_desc::value, scsi_inquiry_data::version, XPORT_DEVSTAT_TYPE, xpt_action(), xpt_announce_periph(), xpt_announce_quirks(), XPT_DEV_ADVINFO, xpt_path_inq(), xpt_print(), xpt_register_async(), xpt_schedule(), and xpt_setup_ccb().
|
static |
Definition at line 5400 of file scsi_sa.c.
References cam_periph_getccb(), cam_periph_runccb(), ccb, ccb::csio, sa_softc::device_stats, sa_softc::dsreg, MSG_SIMPLE_Q_TAG, sa_softc::periph, SA_TIMEOUT_RESERVE, saerror(), scsi_reserve_release_unit(), SF_NO_PRINT, SF_RETRY_UA, cam_periph::softc, SSD_FULL_SIZE, sa_softc::timeout_info, and xpt_release_ccb().
Referenced by saclose(), and samount().
|
static |
Definition at line 5371 of file scsi_sa.c.
References sa_softc::blkno, cam_periph_getccb(), cam_periph_runccb(), ccb, ccb::csio, sa_softc::device_stats, sa_softc::dsreg, sa_softc::fileno, MSG_SIMPLE_Q_TAG, sa_softc::partition, sa_softc::periph, SA_TIMEOUT_LOAD, saerror(), sagetpos(), scsi_load_unload(), cam_periph::softc, SSD_FULL_SIZE, sa_softc::timeout_info, and xpt_release_ccb().
Referenced by saioctl().
|
static |
Definition at line 4947 of file scsi_sa.c.
References sa_softc::blkno, cam_periph_getccb(), cam_periph_runccb(), ccb, ccb::csio, sa_softc::device_stats, sa_softc::dsreg, sa_softc::fileno, MSG_SIMPLE_Q_TAG, sa_softc::partition, sa_softc::periph, sa_softc::rep_blkno, sa_softc::rep_fileno, SA_TIMEOUT_REWIND, saerror(), scsi_rewind(), cam_periph::softc, SSD_FULL_SIZE, sa_softc::timeout_info, and xpt_release_ccb().
Referenced by saclose(), and saioctl().
|
static |
Definition at line 1137 of file scsi_sa.c.
References sa_softc::eot_warn, sa_softc::periph, and cam_periph::softc.
|
static |
Definition at line 4390 of file scsi_sa.c.
References scsi_mode_header_6::blk_desc_len, scsi_mode_blk_desc::blklen, sa_softc::buffer_mode, CAM_DEBUG_INFO, CAM_DEBUGGED, cam_periph_getccb(), cam_periph_runccb(), ccb::ccb_h, sa_softc::comp_algorithm, scsi_data_compression_page::comp_algorithm, ccb::csio, scsi_mode_header_6::data_length, scsi_data_compression_page::dce_and_dcc, sa_comp_t::dcomp, sa_comp_t::dconf, scsi_data_compression_page::dde_and_red, scsi_data_compression_page::decomp_algorithm, scsi_mode_blk_desc::density, scsi_mode_header_6::dev_spec, sa_softc::device_stats, sa_softc::flags, sa_comp_t::hdr, sa_softc::media_density, scsi_mode_header_6::medium_type, MSG_SIMPLE_Q_TAG, sa_comp_t::pagecode, cam_periph::path, sa_softc::periph, ccb_hdr::retry_count, SA_COMP_NONE, SA_DATA_COMPRESSION_PAGE, SA_DCP_DCC, SA_DCP_DCE, SA_DCP_DDE, SA_DEVICE_CONFIGURATION_PAGE, SA_FLAG_COMP_ENABLED, SA_PARAM_BLOCKSIZE, SA_PARAM_COMPRESSION, SA_PARAM_DENSITY, SA_PARAM_NONE, SA_PARAM_SPEED, SA_TIMEOUT_MODE_SELECT, saerror(), sagetparams(), sa_softc::saved_comp_algorithm, scsi_4btoul(), scsi_mode_select(), sa_softc::scsi_rev, SCSI_REV_CCS, SCSI_SAME_DENSITY, scsi_ulto3b(), scsi_ulto4b(), scsi_dev_conf_page::sel_comp_alg, SMH_SA_BUF_MODE_SIBUF, cam_periph::softc, SSD_FULL_SIZE, sa_softc::timeout_info, xpt_print(), xpt_print_path(), and xpt_release_ccb().
Referenced by saioctl(), samount(), and sasetsili().
|
static |
Definition at line 5256 of file scsi_sa.c.
References sa_softc::blkno, cam_periph_getccb(), cam_periph_runccb(), ccb, ccb::csio, sa_softc::device_stats, sa_softc::dsreg, sa_softc::fileno, MSG_SIMPLE_Q_TAG, sa_softc::partition, sa_softc::periph, SA_SPOS_MAX_BLK, SA_TIMEOUT_LOCATE, saerror(), sagetpos(), scsi_locate_10(), scsi_locate_16(), cam_periph::softc, SSD_FULL_SIZE, sa_softc::timeout_info, and xpt_release_ccb().
Referenced by saioctl().
|
static |
Definition at line 4206 of file scsi_sa.c.
References scsi_mode_header_10::blk_desc_len, sa_softc::buffer_mode, cam_periph_getccb(), cam_periph_runccb(), CAM_REQ_CMP, CAM_STATUS_MASK, ccb, ccb::ccb_h, ccb::csio, scsi_mode_header_10::data_length, scsi_mode_header_10::dev_spec, sa_softc::device_stats, sa_prot_state::lbp_r, sa_prot_state::lbp_w, scsi_control_data_prot_subpage::length, scsi_mode_header_10::medium_type, MSG_SIMPLE_Q_TAG, sa_softc::periph, sa_prot_state::pi_length, scsi_control_data_prot_subpage::pi_length, scsi_control_data_prot_subpage::prot_bits, sa_prot_state::prot_method, scsi_control_data_prot_subpage::prot_method, sa_prot_state::rbdp, SA_CTRL_DP_LBP_R, SA_CTRL_DP_LBP_W, SA_CTRL_DP_PI_LENGTH_MASK, SA_CTRL_DP_RBDP, SA_PARAM_LBP, SA_PARAM_SPEED, SA_TIMEOUT_MODE_SELECT, saerror(), sagetparams(), scsi_2btoul(), scsi_mode_select_len(), scsi_ulto2b(), SMH_SA_BUF_MODE_SIBUF, cam_periph::softc, SSD_FULL_SIZE, ccb_hdr::status, sa_softc::timeout_info, and xpt_release_ccb().
Referenced by sasetprotents().
|
static |
Definition at line 1244 of file scsi_sa.c.
References sa_prot_info::cur_prot_state, sa_softc::flags, sa_prot_map::max_val, sa_prot_map::min_val, sa_prot_map::param_type, sa_softc::periph, sa_softc::prot_info, SA_FLAG_PROTECT_SUPP, SA_NUM_PROT_ENTS, safindprotent(), sapopulateprots(), sasetprot(), sa_softc::si_flags, cam_periph::softc, and sa_prot_map::value.
|
static |
Definition at line 1076 of file scsi_sa.c.
References sa_softc::flags, sa_softc::periph, SA_FLAG_FIXED, SA_PARAM_BLOCKSIZE, sasetparams(), SF_QUIET_IR, sa_softc::sili, and cam_periph::softc.
|
static |
Definition at line 2338 of file scsi_sa.c.
References sa_softc::maxio, sa_softc::num_devs_to_destroy, and sa_softc::si_flags.
Referenced by saregister().
|
static |
Definition at line 4978 of file scsi_sa.c.
References sa_softc::blkno, cam_periph_getccb(), cam_periph_runccb(), ccb, ccb::csio, sa_softc::device_stats, sa_softc::dsreg, sa_softc::fileno, MSG_SIMPLE_Q_TAG, sa_softc::partition, sa_softc::periph, sa_softc::rep_blkno, sa_softc::rep_fileno, SA_TIMEOUT_SPACE, saerror(), sagetpos(), scsi_space(), cam_periph::softc, SS_BLOCKS, SS_EOD, SS_FILEMARKS, SS_SETMARKS, SSD_FULL_SIZE, sa_softc::timeout_info, and xpt_release_ccb().
Referenced by saclose(), and saioctl().
|
static |
Definition at line 2752 of file scsi_sa.c.
References sa_softc::bio_queue, sa_softc::blk_shift, CAM_DEBUG, CAM_DEBUG_INFO, CAM_DEBUG_TRACE, cam_periph_release_locked(), CAM_PRIORITY_NORMAL, ccb::ccb_h, ccb::csio, sa_softc::device_stats, sa_softc::dsreg, sa_softc::eot_warn, sa_softc::flags, sa_softc::inject_eom, sa_softc::media_blksize, MSG_SIMPLE_Q_TAG, ccb_hdr::path, cam_periph::path, sa_softc::periph, sa_softc::queue_count, sa_softc::quirks, RSO_RCTD, SA_FLAG_EIO_PENDING, SA_FLAG_EOF_PENDING, SA_FLAG_EOM_PENDING, SA_FLAG_ERR_PENDING, SA_FLAG_FIXED, SA_QUIRK_BIT_STRING, SA_STATE_ABNORMAL, SA_STATE_NORMAL, SA_STATE_PROBE, SA_TIMEOUT_READ, SA_TIMEOUT_TUR, SA_TIMEOUT_WRITE, sadone(), saloadtotunables(), scsi_report_supported_opcodes(), SCSI_RW_BIO, SCSI_RW_READ, SCSI_RW_WRITE, scsi_sa_read_write(), sa_softc::set_pews_status, sa_softc::sili, cam_periph::softc, SSD_FULL_SIZE, sa_softc::state, sa_softc::timeout_info, xpt_action(), xpt_announce_periph(), xpt_announce_quirks(), xpt_print(), xpt_release_ccb(), and xpt_schedule().
|
static |
Definition at line 959 of file scsi_sa.c.
References sa_softc::bio_queue, sa_softc::blk_gran, sa_softc::blk_mask, CAM_DEBUG, CAM_DEBUG_INFO, cam_periph_lock, cam_periph_unlock, CAM_PRIORITY_NORMAL, sa_softc::flags, sa_softc::max_blk, sa_softc::min_blk, sa_softc::open_pending_mount, sa_softc::open_rdonly, cam_periph::path, sa_softc::periph, PR_PREVENT, sa_softc::queue_count, SA_FLAG_FIXED, SA_FLAG_INVALID, SA_FLAG_TAPE_FROZEN, SA_IS_CTRL, samount(), saprevent(), cam_periph::softc, xpt_print(), xpt_print_path(), and xpt_schedule().
|
static |
Definition at line 2387 of file scsi_sa.c.
References sa_softc::allow_io_split, CAM_PERIPH_INVALID, cam_periph_release(), sa_softc::cpi_maxio, sa_timeout_desc::desc, cam_periph::flags, sa_softc::flags, sa_softc::inject_eom, sa_softc::maxio, sa_softc::periph, sa_default_timeouts, SA_FLAG_SCTX_INIT, SA_TIMEOUT_TYPE_MAX, cam_periph::softc, sa_softc::sysctl_ctx, sa_softc::sysctl_timeout_ctx, sa_softc::sysctl_timeout_tree, sa_softc::sysctl_tree, sa_softc::timeout_info, and cam_periph::unit_number.
Referenced by saregister().
|
static |
Definition at line 5053 of file scsi_sa.c.
References sa_softc::blkno, cam_periph_getccb(), cam_periph_runccb(), ccb, ccb::csio, sa_softc::device_stats, sa_softc::dsreg, sa_softc::filemarks, sa_softc::fileno, MSG_SIMPLE_Q_TAG, sa_softc::open_rdonly, sa_softc::partition, sa_softc::periph, sa_softc::rep_fileno, SA_TIMEOUT_WRITE_FILEMARKS, saerror(), sagetpos(), scsi_write_filemarks(), cam_periph::softc, SSD_FULL_SIZE, sa_softc::timeout_info, and xpt_release_ccb().
Referenced by sacheckeod(), saioctl(), and sardpos().
void scsi_allow_overwrite | ( | struct ccb_scsiio * | csio, |
u_int32_t | retries, | ||
void(*)(struct cam_periph *, union ccb *) | cbfcnp, | ||
u_int8_t | tag_action, | ||
int | allow_overwrite, | ||
int | partition, | ||
u_int64_t | logical_id, | ||
u_int32_t | sense_len, | ||
u_int32_t | timeout | ||
) |
Definition at line 6354 of file scsi_sa.c.
References scsi_allow_overwrite::allow_overwrite, ALLOW_OVERWRITE, CAM_DIR_NONE, cam_fill_csio(), cdb_t::cdb_bytes, ccb_scsiio::cdb_io, scsi_allow_overwrite::logical_id, scsi_allow_overwrite::opcode, scsi_allow_overwrite::partition, and scsi_u64to8b().
void scsi_erase | ( | struct ccb_scsiio * | csio, |
u_int32_t | retries, | ||
void(*)(struct cam_periph *, union ccb *) | cbfcnp, | ||
u_int8_t | tag_action, | ||
int | immediate, | ||
int | long_erase, | ||
u_int8_t | sense_len, | ||
u_int32_t | timeout | ||
) |
Definition at line 6094 of file scsi_sa.c.
References CAM_DIR_NONE, cam_fill_csio(), cdb_t::cdb_bytes, ccb_scsiio::cdb_io, ERASE, scsi_erase::lun_imm_long, scsi_erase::opcode, SE_IMMED, and SE_LONG.
Referenced by saerase().
void scsi_format_medium | ( | struct ccb_scsiio * | csio, |
u_int32_t | retries, | ||
void(*)(struct cam_periph *, union ccb *) | cbfcnp, | ||
u_int8_t | tag_action, | ||
int | byte1, | ||
int | byte2, | ||
u_int8_t * | data_ptr, | ||
u_int32_t | dxfer_len, | ||
u_int32_t | sense_len, | ||
u_int32_t | timeout | ||
) |
Definition at line 6323 of file scsi_sa.c.
References scsi_format_medium::byte1, scsi_format_medium::byte2, CAM_DIR_NONE, CAM_DIR_OUT, cam_fill_csio(), cdb_t::cdb_bytes, ccb_scsiio::cdb_io, FORMAT_MEDIUM, scsi_format_medium::length, scsi_format_medium::opcode, and scsi_ulto2b().
void scsi_load_unload | ( | struct ccb_scsiio * | csio, |
u_int32_t | retries, | ||
void(*)(struct cam_periph *, union ccb *) | cbfcnp, | ||
u_int8_t | tag_action, | ||
int | immediate, | ||
int | eot, | ||
int | reten, | ||
int | load, | ||
u_int8_t | sense_len, | ||
u_int32_t | timeout | ||
) |
Definition at line 5980 of file scsi_sa.c.
References CAM_DIR_NONE, cam_fill_csio(), cdb_t::cdb_bytes, ccb_scsiio::cdb_io, scsi_load_unload::eot_reten_load, scsi_load_unload::immediate, LOAD_UNLOAD, scsi_load_unload::opcode, SLU_EOT, SLU_IMMED, SLU_LOAD, and SLU_RETEN.
Referenced by saloadunload(), samount(), and saretension().
void scsi_locate_10 | ( | struct ccb_scsiio * | csio, |
u_int32_t | retries, | ||
void(*)(struct cam_periph *, union ccb *) | cbfcnp, | ||
u_int8_t | tag_action, | ||
int | immed, | ||
int | cp, | ||
int | hard, | ||
int64_t | partition, | ||
u_int32_t | block_address, | ||
int | sense_len, | ||
u_int32_t | timeout | ||
) |
Definition at line 6196 of file scsi_sa.c.
References scsi_tape_locate::blkaddr, scsi_tape_locate::byte1, CAM_DIR_NONE, cam_fill_csio(), cdb_t::cdb_bytes, ccb_scsiio::cdb_io, LOCATE, scsi_tape_locate::opcode, scsi_tape_locate::partition, SA_SPOS_BT, SA_SPOS_CP, SA_SPOS_IMMED, and scsi_ulto4b().
Referenced by sasetpos().
void scsi_locate_16 | ( | struct ccb_scsiio * | csio, |
u_int32_t | retries, | ||
void(*)(struct cam_periph *, union ccb *) | cbfcnp, | ||
u_int8_t | tag_action, | ||
int | immed, | ||
int | cp, | ||
u_int8_t | dest_type, | ||
int | bam, | ||
int64_t | partition, | ||
u_int64_t | logical_id, | ||
int | sense_len, | ||
u_int32_t | timeout | ||
) |
Definition at line 6228 of file scsi_sa.c.
References scsi_locate_16::byte1, scsi_locate_16::byte2, CAM_DIR_NONE, cam_fill_csio(), cdb_t::cdb_bytes, ccb_scsiio::cdb_io, LOCATE_16, scsi_locate_16::logical_id, scsi_locate_16::opcode, scsi_locate_16::partition, SA_LC_CP, SA_LC_DEST_TYPE_SHIFT, SA_LC_IMMEDIATE, and scsi_u64to8b().
Referenced by sasetpos().
void scsi_read_block_limits | ( | struct ccb_scsiio * | csio, |
u_int32_t | retries, | ||
void(*)(struct cam_periph *, union ccb *) | cbfcnp, | ||
u_int8_t | tag_action, | ||
struct scsi_read_block_limits_data * | rlimit_buf, | ||
u_int8_t | sense_len, | ||
u_int32_t | timeout | ||
) |
Definition at line 5934 of file scsi_sa.c.
References CAM_DIR_IN, cam_fill_csio(), cdb_t::cdb_bytes, ccb_scsiio::cdb_io, scsi_read_block_limits::opcode, and READ_BLOCK_LIMITS.
Referenced by samount().
void scsi_read_position | ( | struct ccb_scsiio * | csio, |
u_int32_t | retries, | ||
void(*)(struct cam_periph *, union ccb *) | cbfcnp, | ||
u_int8_t | tag_action, | ||
int | hardsoft, | ||
struct scsi_tape_position_data * | sbp, | ||
u_int8_t | sense_len, | ||
u_int32_t | timeout | ||
) |
Definition at line 6120 of file scsi_sa.c.
References scsi_tape_read_position::byte1, CAM_DIR_IN, cam_fill_csio(), cdb_t::cdb_bytes, ccb_scsiio::cdb_io, scsi_tape_read_position::opcode, and READ_POSITION.
Referenced by sardpos().
void scsi_read_position_10 | ( | struct ccb_scsiio * | csio, |
u_int32_t | retries, | ||
void(*)(struct cam_periph *, union ccb *) | cbfcnp, | ||
u_int8_t | tag_action, | ||
int | service_action, | ||
u_int8_t * | data_ptr, | ||
u_int32_t | length, | ||
u_int32_t | sense_len, | ||
u_int32_t | timeout | ||
) |
Definition at line 6140 of file scsi_sa.c.
References scsi_tape_read_position::byte1, CAM_DIR_IN, cam_fill_csio(), cdb_t::cdb_bytes, ccb_scsiio::cdb_io, scsi_tape_read_position::length, scsi_tape_read_position::opcode, READ_POSITION, SA_RPOS_EXTENDED_FORM, and scsi_ulto2b().
Referenced by sagetpos().
void scsi_report_density_support | ( | struct ccb_scsiio * | csio, |
u_int32_t | retries, | ||
void(*)(struct cam_periph *, union ccb *) | cbfcnp, | ||
u_int8_t | tag_action, | ||
int | media, | ||
int | medium_type, | ||
u_int8_t * | data_ptr, | ||
u_int32_t | length, | ||
u_int32_t | sense_len, | ||
u_int32_t | timeout | ||
) |
Definition at line 6263 of file scsi_sa.c.
References scsi_report_density_support::byte1, CAM_DIR_IN, cam_fill_csio(), cdb_t::cdb_bytes, ccb_scsiio::cdb_io, scsi_report_density_support::length, scsi_report_density_support::opcode, REPORT_DENSITY_SUPPORT, scsi_ulto2b(), SRDS_MEDIA, and SRDS_MEDIUM_TYPE.
Referenced by sagetparams().
void scsi_reserve_release_unit | ( | struct ccb_scsiio * | csio, |
u_int32_t | retries, | ||
void(*)(struct cam_periph *, union ccb *) | cbfcnp, | ||
u_int8_t | tag_action, | ||
int | third_party, | ||
int | third_party_id, | ||
u_int8_t | sense_len, | ||
u_int32_t | timeout, | ||
int | reserve | ||
) |
Definition at line 6067 of file scsi_sa.c.
References CAM_DIR_NONE, cam_fill_csio(), cdb_t::cdb_bytes, ccb_scsiio::cdb_io, scsi_reserve_release_unit::lun_thirdparty, scsi_reserve_release_unit::opcode, RELEASE_UNIT, RESERVE_UNIT, SRRU_3RD_MASK, SRRU_3RD_PARTY, and SRRU_3RD_SHAMT.
Referenced by sareservereleaseunit().
void scsi_rewind | ( | struct ccb_scsiio * | csio, |
u_int32_t | retries, | ||
void(*)(struct cam_periph *, union ccb *) | cbfcnp, | ||
u_int8_t | tag_action, | ||
int | immediate, | ||
u_int8_t | sense_len, | ||
u_int32_t | timeout | ||
) |
Definition at line 6005 of file scsi_sa.c.
References CAM_DIR_NONE, cam_fill_csio(), cdb_t::cdb_bytes, ccb_scsiio::cdb_io, scsi_rewind::immediate, scsi_rewind::opcode, REWIND, and SREW_IMMED.
Referenced by samount(), and sarewind().
void scsi_sa_read_write | ( | struct ccb_scsiio * | csio, |
u_int32_t | retries, | ||
void(*)(struct cam_periph *, union ccb *) | cbfcnp, | ||
u_int8_t | tag_action, | ||
int | readop, | ||
int | sli, | ||
int | fixed, | ||
u_int32_t | length, | ||
u_int8_t * | data_ptr, | ||
u_int32_t | dxfer_len, | ||
u_int8_t | sense_len, | ||
u_int32_t | timeout | ||
) |
Definition at line 5952 of file scsi_sa.c.
References CAM_DATA_BIO, CAM_DIR_IN, CAM_DIR_OUT, cam_fill_csio(), cdb_t::cdb_bytes, ccb_scsiio::cdb_io, scsi_sa_rw::control, scsi_sa_rw::length, scsi_sa_rw::opcode, SA_READ, SA_WRITE, SAR_SLI, SARW_FIXED, SCSI_RW_BIO, SCSI_RW_DIRMASK, SCSI_RW_READ, scsi_ulto3b(), and scsi_sa_rw::sli_fixed.
Referenced by samount(), and sastart().
void scsi_set_capacity | ( | struct ccb_scsiio * | csio, |
u_int32_t | retries, | ||
void(*)(struct cam_periph *, union ccb *) | cbfcnp, | ||
u_int8_t | tag_action, | ||
int | byte1, | ||
u_int32_t | proportion, | ||
u_int32_t | sense_len, | ||
u_int32_t | timeout | ||
) |
Definition at line 6295 of file scsi_sa.c.
References scsi_set_capacity::byte1, CAM_DIR_NONE, cam_fill_csio(), scsi_set_capacity::cap_proportion, cdb_t::cdb_bytes, ccb_scsiio::cdb_io, scsi_set_capacity::opcode, scsi_ulto2b(), and SET_CAPACITY.
void scsi_set_position | ( | struct ccb_scsiio * | csio, |
u_int32_t | retries, | ||
void(*)(struct cam_periph *, union ccb *) | cbfcnp, | ||
u_int8_t | tag_action, | ||
int | hardsoft, | ||
u_int32_t | blkno, | ||
u_int8_t | sense_len, | ||
u_int32_t | timeout | ||
) |
Definition at line 6175 of file scsi_sa.c.
References scsi_tape_locate::blkaddr, scsi_tape_locate::byte1, CAM_DIR_NONE, cam_fill_csio(), cdb_t::cdb_bytes, ccb_scsiio::cdb_io, LOCATE, scsi_tape_locate::opcode, SA_SPOS_BT, and scsi_ulto4b().
void scsi_space | ( | struct ccb_scsiio * | csio, |
u_int32_t | retries, | ||
void(*)(struct cam_periph *, union ccb *) | cbfcnp, | ||
u_int8_t | tag_action, | ||
scsi_space_code | code, | ||
u_int32_t | count, | ||
u_int8_t | sense_len, | ||
u_int32_t | timeout | ||
) |
Definition at line 6023 of file scsi_sa.c.
References CAM_DIR_NONE, cam_fill_csio(), cdb_t::cdb_bytes, ccb_scsiio::cdb_io, scsi_space::code, scsi_space::control, scsi_space::count, scsi_space::opcode, scsi_ulto3b(), and SPACE.
Referenced by saspace().
void scsi_write_filemarks | ( | struct ccb_scsiio * | csio, |
u_int32_t | retries, | ||
void(*)(struct cam_periph *, union ccb *) | cbfcnp, | ||
u_int8_t | tag_action, | ||
int | immediate, | ||
int | setmark, | ||
u_int32_t | num_marks, | ||
u_int8_t | sense_len, | ||
u_int32_t | timeout | ||
) |
Definition at line 6041 of file scsi_sa.c.
References scsi_write_filemarks::byte2, CAM_DIR_NONE, cam_fill_csio(), cdb_t::cdb_bytes, ccb_scsiio::cdb_io, scsi_write_filemarks::num_marks, scsi_write_filemarks::opcode, scsi_ulto3b(), SWFMRK_IMMED, SWFMRK_WSMK, and WRITE_FILEMARKS.
Referenced by sawritefilemarks().
SYSCTL_INT | ( | _kern_cam_sa | , |
OID_AUTO | , | ||
allow_io_split | , | ||
CTLFLAG_RDTUN | , | ||
& | sa_allow_io_split, | ||
0 | , | ||
"Default I/O split value" | |||
) |
|
static |
|
static |
Definition at line 675 of file scsi_sa.c.
Referenced by saregister().
|
static |
Definition at line 701 of file scsi_sa.c.
Referenced by saregister().
|
static |
Referenced by saloadtotunables(), saregister(), and sasysctlinit().
struct sa_param_ent sa_param_table[] |
Referenced by safindparament().
struct sa_prot_map sa_prot_table[] |
Referenced by sapopulateprots().
|
static |
Definition at line 486 of file scsi_sa.c.
Referenced by saregister().
|
static |
|
static |
|
static |
|
static |
|
static |