Lines Matching refs:options

2216 static int st_set_options(struct scsi_tape *STp, long options)
2240 code = options & MT_ST_OPTIONS;
2242 STm->do_buffer_writes = (options & MT_ST_BUFFER_WRITES) != 0;
2243 STm->do_async_writes = (options & MT_ST_ASYNC_WRITES) != 0;
2244 STm->defaults_for_writes = (options & MT_ST_DEF_WRITES) != 0;
2245 STm->do_read_ahead = (options & MT_ST_READ_AHEAD) != 0;
2246 STp->two_fm = (options & MT_ST_TWO_FM) != 0;
2247 STp->fast_mteom = (options & MT_ST_FAST_MTEOM) != 0;
2248 STp->do_auto_lock = (options & MT_ST_AUTO_LOCK) != 0;
2249 STp->can_bsr = (options & MT_ST_CAN_BSR) != 0;
2250 STp->omit_blklims = (options & MT_ST_NO_BLKLIMS) != 0;
2252 STp->can_partitions = (options & MT_ST_CAN_PARTITIONS) != 0;
2253 STp->scsi2_logical = (options & MT_ST_SCSI2LOGICAL) != 0;
2254 STp->immediate = (options & MT_ST_NOWAIT) != 0;
2255 STp->immediate_filemark = (options & MT_ST_NOWAIT_EOF) != 0;
2256 STm->sysv = (options & MT_ST_SYSV) != 0;
2257 STp->sili = (options & MT_ST_SILI) != 0;
2258 DEB( debugging = (options & MT_ST_DEBUGGING) != 0;
2262 if ((options & MT_ST_BUFFER_WRITES) != 0)
2264 if ((options & MT_ST_ASYNC_WRITES) != 0)
2266 if ((options & MT_ST_DEF_WRITES) != 0)
2268 if ((options & MT_ST_READ_AHEAD) != 0)
2270 if ((options & MT_ST_TWO_FM) != 0)
2272 if ((options & MT_ST_FAST_MTEOM) != 0)
2274 if ((options & MT_ST_AUTO_LOCK) != 0)
2276 if ((options & MT_ST_CAN_BSR) != 0)
2278 if ((options & MT_ST_NO_BLKLIMS) != 0)
2281 (options & MT_ST_CAN_PARTITIONS) != 0)
2283 if ((options & MT_ST_SCSI2LOGICAL) != 0)
2285 if ((options & MT_ST_NOWAIT) != 0)
2287 if ((options & MT_ST_NOWAIT_EOF) != 0)
2289 if ((options & MT_ST_SYSV) != 0)
2291 if ((options & MT_ST_SILI) != 0)
2294 if ((options & MT_ST_DEBUGGING) != 0)
2300 value = (options & ~MT_ST_OPTIONS);
2314 value = (options & ~MT_ST_OPTIONS);
2326 value = (options & ~MT_ST_OPTIONS) & 0xff;
2332 STp->cln_sense_mask = (options >> 8) & 0xff;
2333 STp->cln_sense_value = (options >> 16) & 0xff;
2338 code = (options & ~MT_ST_CLEAR_DEFAULT);
2339 value = (options & MT_ST_CLEAR_DEFAULT);
4492 int options; in options_show() local
4495 options = STm->do_buffer_writes ? MT_ST_BUFFER_WRITES : 0; in options_show()
4496 options |= STm->do_async_writes ? MT_ST_ASYNC_WRITES : 0; in options_show()
4497 options |= STm->do_read_ahead ? MT_ST_READ_AHEAD : 0; in options_show()
4498 DEB( options |= debugging ? MT_ST_DEBUGGING : 0 ); in options_show()
4499 options |= STp->two_fm ? MT_ST_TWO_FM : 0; in options_show()
4500 options |= STp->fast_mteom ? MT_ST_FAST_MTEOM : 0; in options_show()
4501 options |= STm->defaults_for_writes ? MT_ST_DEF_WRITES : 0; in options_show()
4502 options |= STp->can_bsr ? MT_ST_CAN_BSR : 0; in options_show()
4503 options |= STp->omit_blklims ? MT_ST_NO_BLKLIMS : 0; in options_show()
4504 options |= STp->can_partitions ? MT_ST_CAN_PARTITIONS : 0; in options_show()
4505 options |= STp->scsi2_logical ? MT_ST_SCSI2LOGICAL : 0; in options_show()
4506 options |= STm->sysv ? MT_ST_SYSV : 0; in options_show()
4507 options |= STp->immediate ? MT_ST_NOWAIT : 0; in options_show()
4508 options |= STp->immediate_filemark ? MT_ST_NOWAIT_EOF : 0; in options_show()
4509 options |= STp->sili ? MT_ST_SILI : 0; in options_show()
4511 l = snprintf(buf, PAGE_SIZE, "0x%08x\n", options); in options_show()
4514 static DEVICE_ATTR_RO(options);