Lines Matching refs:options

2270 static int st_set_options(struct scsi_tape *STp, long options)
2294 code = options & MT_ST_OPTIONS;
2296 STm->do_buffer_writes = (options & MT_ST_BUFFER_WRITES) != 0;
2297 STm->do_async_writes = (options & MT_ST_ASYNC_WRITES) != 0;
2298 STm->defaults_for_writes = (options & MT_ST_DEF_WRITES) != 0;
2299 STm->do_read_ahead = (options & MT_ST_READ_AHEAD) != 0;
2300 STp->two_fm = (options & MT_ST_TWO_FM) != 0;
2301 STp->fast_mteom = (options & MT_ST_FAST_MTEOM) != 0;
2302 STp->do_auto_lock = (options & MT_ST_AUTO_LOCK) != 0;
2303 STp->can_bsr = (options & MT_ST_CAN_BSR) != 0;
2304 STp->omit_blklims = (options & MT_ST_NO_BLKLIMS) != 0;
2306 STp->can_partitions = (options & MT_ST_CAN_PARTITIONS) != 0;
2307 STp->scsi2_logical = (options & MT_ST_SCSI2LOGICAL) != 0;
2308 STp->immediate = (options & MT_ST_NOWAIT) != 0;
2309 STp->immediate_filemark = (options & MT_ST_NOWAIT_EOF) != 0;
2310 STm->sysv = (options & MT_ST_SYSV) != 0;
2311 STp->sili = (options & MT_ST_SILI) != 0;
2312 DEB( debugging = (options & MT_ST_DEBUGGING) != 0;
2316 if ((options & MT_ST_BUFFER_WRITES) != 0)
2318 if ((options & MT_ST_ASYNC_WRITES) != 0)
2320 if ((options & MT_ST_DEF_WRITES) != 0)
2322 if ((options & MT_ST_READ_AHEAD) != 0)
2324 if ((options & MT_ST_TWO_FM) != 0)
2326 if ((options & MT_ST_FAST_MTEOM) != 0)
2328 if ((options & MT_ST_AUTO_LOCK) != 0)
2330 if ((options & MT_ST_CAN_BSR) != 0)
2332 if ((options & MT_ST_NO_BLKLIMS) != 0)
2335 (options & MT_ST_CAN_PARTITIONS) != 0)
2337 if ((options & MT_ST_SCSI2LOGICAL) != 0)
2339 if ((options & MT_ST_NOWAIT) != 0)
2341 if ((options & MT_ST_NOWAIT_EOF) != 0)
2343 if ((options & MT_ST_SYSV) != 0)
2345 if ((options & MT_ST_SILI) != 0)
2348 if ((options & MT_ST_DEBUGGING) != 0)
2354 value = (options & ~MT_ST_OPTIONS);
2368 value = (options & ~MT_ST_OPTIONS);
2380 value = (options & ~MT_ST_OPTIONS) & 0xff;
2386 STp->cln_sense_mask = (options >> 8) & 0xff;
2387 STp->cln_sense_value = (options >> 16) & 0xff;
2392 code = (options & ~MT_ST_CLEAR_DEFAULT);
2393 value = (options & MT_ST_CLEAR_DEFAULT);
4550 int options; in options_show() local
4553 options = STm->do_buffer_writes ? MT_ST_BUFFER_WRITES : 0; in options_show()
4554 options |= STm->do_async_writes ? MT_ST_ASYNC_WRITES : 0; in options_show()
4555 options |= STm->do_read_ahead ? MT_ST_READ_AHEAD : 0; in options_show()
4556 DEB( options |= debugging ? MT_ST_DEBUGGING : 0 ); in options_show()
4557 options |= STp->two_fm ? MT_ST_TWO_FM : 0; in options_show()
4558 options |= STp->fast_mteom ? MT_ST_FAST_MTEOM : 0; in options_show()
4559 options |= STm->defaults_for_writes ? MT_ST_DEF_WRITES : 0; in options_show()
4560 options |= STp->can_bsr ? MT_ST_CAN_BSR : 0; in options_show()
4561 options |= STp->omit_blklims ? MT_ST_NO_BLKLIMS : 0; in options_show()
4562 options |= STp->can_partitions ? MT_ST_CAN_PARTITIONS : 0; in options_show()
4563 options |= STp->scsi2_logical ? MT_ST_SCSI2LOGICAL : 0; in options_show()
4564 options |= STm->sysv ? MT_ST_SYSV : 0; in options_show()
4565 options |= STp->immediate ? MT_ST_NOWAIT : 0; in options_show()
4566 options |= STp->immediate_filemark ? MT_ST_NOWAIT_EOF : 0; in options_show()
4567 options |= STp->sili ? MT_ST_SILI : 0; in options_show()
4569 l = snprintf(buf, PAGE_SIZE, "0x%08x\n", options); in options_show()
4572 static DEVICE_ATTR_RO(options);