Lines Matching +refs:val +refs:current

2823 	 * This isn't simply a check of the current state, because
2846 * record current dev
2945 "st_open: return val = %x, state = %d\n", rval, un->un_state);
3237 * do a mode sense to pick up state of current write-protect,
3368 "st_tape_init: return val = %x\n", rval);
3793 "st_close3: return val = %x, fileno=%x, blkno=%x, eof=%x\n",
4599 * it keeps track of the current filenumber and returns the filenumber after
4666 * What we return will become the current file position.
8530 struct seq_mode *current;
8536 current = kmem_zalloc(MSIZE, KM_SLEEP);
8545 /* Read current settings */
8546 rval = st_gen_mode_sense(un, st_uscsi_cmd, 0, current, MSIZE);
8553 /* Figure the current block size */
8555 (current->high_bl << 16) |
8556 (current->mid_bl << 8) |
8557 (current->low_bl);
8559 /* If current block size is the same as requested were done */
8567 current->high_bl = (uchar_t)(nblksz >> 16);
8568 current->mid_bl = (uchar_t)(nblksz >> 8);
8569 current->low_bl = (uchar_t)(nblksz);
8572 rval = st_gen_mode_select(un, st_uscsi_cmd, current, MSIZE);
8595 kmem_free(current, MSIZE);
10375 * MTIOCGETERROR ioctl needs to retrieve the current sense data along with
10431 * copy cdb command & length to current error entry
10437 * copy scsi status length to current error entry
10443 * copy sense data and scsi status to current error entry
10729 * our idea of current tape position correctly
11869 * we are still in the current file
12022 * current position as they will use un_recov_buf.
12858 * If the current behaviour of reserve/release is to
13649 * check to see if current parameter is of interest.
13877 /* Mode sense should be current */
13937 /* Mode sense should be current */
14672 st_swap16(uint16_t *val)
14676 tmp = (*val >> 8) & 0xff;
14677 tmp |= (*val << 8) & 0xff00;
14679 *val = tmp;
14683 st_swap32(uint32_t *val)
14687 tmp = (*val >> 24) & 0xff;
14688 tmp |= (*val >> 8) & 0xff00;
14689 tmp |= (*val << 8) & 0xff0000;
14690 tmp |= (*val << 24) & 0xff000000;
14692 *val = tmp;
14696 st_swap64(uint64_t *val)
14701 low = (uint32_t)(*val);
14702 high = (uint32_t)(*val >> 32);
14707 *val = high;
14708 *val |= ((uint64_t)low << 32);
14807 "SHORT_POS current logical 0x%"PRIx64" read"
14836 "SHORT_POS current partition %d read %d\n",
14906 "LONG_POS current logical 0x%"PRIx64
14937 "LONG_POS current partition %d"
15046 "EXT_POS current logical 0x%"PRIx64
15076 "EXT_POS current partition %d read %d\n",
15276 * we just want to go to beginning of current file.
15369 * Can't back space but current file number is known,
15634 int dfile = un->un_pos.fileno; /* save current file */
16097 * in current system. Otherwise, it will try to alloc one, if the total
17303 /* save current position as the starting position. */
17317 * If running position is invalid copy the current position.
17320 * We'll copy the current position and start from there.
17554 struct seq_mode *current;
17569 current = kmem_zalloc(sizeof (struct seq_mode), KM_SLEEP);
17571 rval = st_gen_mode_sense(un, ubf, un->un_comp_page, current,
17576 kmem_free(current, sizeof (struct seq_mode));
17580 this = (caddr_t)current;
17600 kmem_free(current, sizeof (struct seq_mode));