Lines Matching +full:1 +full:mv
47 static int init = 1;
62 static int verbose = 1;
71 static int dt_id[CH_DT_MAX] = { [ 0 ... (CH_DT_MAX-1) ] = -1 };
103 #define MAX_RETRIES 1
236 return i+1; in ch_elem_to_typecode()
255 cmd[1] = ((ch->device->lun & 0x7) << 5) | in ch_read_element_status()
260 cmd[5] = 1; in ch_read_element_status()
292 cmd[1] = (ch->device->lun & 0x7) << 5; in ch_init_elem()
312 cmd[1] = (ch->device->lun & 0x7) << 5; in ch_readconfig()
317 cmd[1] |= (1<<3); in ch_readconfig()
337 VPRINTK(KERN_INFO, "type #1 (mt): 0x%x+%d [medium transport]\n", in ch_readconfig()
362 i+5,i+1,vendor_firsts[i],vendor_counts[i], in ch_readconfig()
376 id = -1; in ch_readconfig()
378 if (elem < CH_DT_MAX && -1 != dt_id[elem]) { in ch_readconfig()
402 if (-1 != id) { in ch_readconfig()
419 ch->voltags = 1; in ch_readconfig()
437 cmd[1] = (ch->device->lun & 0x7) << 5; in ch_position()
442 cmd[8] = rotate ? 1 : 0; in ch_position()
456 cmd[1] = (ch->device->lun & 0x7) << 5; in ch_move()
463 cmd[10] = rotate ? 1 : 0; in ch_move()
479 cmd[1] = (ch->device->lun & 0x7) << 5; in ch_exchange()
488 cmd[10] = (rotate1 ? 1 : 0) | (rotate2 ? 2 : 0); in ch_exchange()
527 cmd[1] = ((ch->device->lun & 0x7) << 5) | in ch_set_voltag()
623 return -1; in ch_checkrange()
672 strscpy(vparams.cvp_label2, vendor_labels[1], in ch_ioctl()
711 struct changer_move mv; in ch_ioctl() local
713 if (copy_from_user(&mv, argp, sizeof (mv))) in ch_ioctl()
716 if (0 != ch_checkrange(ch, mv.cm_fromtype, mv.cm_fromunit) || in ch_ioctl()
717 0 != ch_checkrange(ch, mv.cm_totype, mv.cm_tounit )) { in ch_ioctl()
724 ch->firsts[mv.cm_fromtype] + mv.cm_fromunit, in ch_ioctl()
725 ch->firsts[mv.cm_totype] + mv.cm_tounit, in ch_ioctl()
726 mv.cm_flags & CM_INVERT); in ch_ioctl()
733 struct changer_exchange mv; in ch_ioctl() local
735 if (copy_from_user(&mv, argp, sizeof (mv))) in ch_ioctl()
738 if (0 != ch_checkrange(ch, mv.ce_srctype, mv.ce_srcunit ) || in ch_ioctl()
739 0 != ch_checkrange(ch, mv.ce_fdsttype, mv.ce_fdstunit) || in ch_ioctl()
740 0 != ch_checkrange(ch, mv.ce_sdsttype, mv.ce_sdstunit)) { in ch_ioctl()
748 ch->firsts[mv.ce_srctype] + mv.ce_srcunit, in ch_ioctl()
749 ch->firsts[mv.ce_fdsttype] + mv.ce_fdstunit, in ch_ioctl()
750 ch->firsts[mv.ce_sdsttype] + mv.ce_sdstunit, in ch_ioctl()
751 mv.ce_flags & CE_INVERT1, mv.ce_flags & CE_INVERT2); in ch_ioctl()
804 ch_cmd[1] = ((ch->device->lun & 0x7) << 5) | in ch_ioctl()
809 ch_cmd[5] = 1; in ch_ioctl()
913 ret = idr_alloc(&ch_index_idr, ch, 0, CH_MAX_DEVS + 1, GFP_NOWAIT); in ch_probe()