Home
last modified time | relevance | path

Searched refs:insnlist (Results 1 – 2 of 2) sorted by relevance

/linux-3.4.99/drivers/staging/comedi/
Dcomedi_compat32.c344 struct comedi_insnlist insnlist; in compat_insnlist() member
371 if (!access_ok(VERIFY_WRITE, &s->insnlist, sizeof(s->insnlist))) in compat_insnlist()
374 err |= __put_user(n_insns, &s->insnlist.n_insns); in compat_insnlist()
375 err |= __put_user(&s->insn[0], &s->insnlist.insns); in compat_insnlist()
387 (unsigned long)&s->insnlist); in compat_insnlist()
Dcomedi_fops.c665 struct comedi_insnlist insnlist; in do_insnlist_ioctl() local
671 if (copy_from_user(&insnlist, arg, sizeof(struct comedi_insnlist))) in do_insnlist_ioctl()
682 kcalloc(insnlist.n_insns, sizeof(struct comedi_insn), GFP_KERNEL); in do_insnlist_ioctl()
689 if (copy_from_user(insns, insnlist.insns, in do_insnlist_ioctl()
690 sizeof(struct comedi_insn) * insnlist.n_insns)) { in do_insnlist_ioctl()
696 for (i = 0; i < insnlist.n_insns; i++) { in do_insnlist_ioctl()