Searched refs:x25_subscr (Results 1 – 2 of 2) sorted by relevance
341 struct x25_subscrip_struct x25_subscr; in x25_subscr_ioctl() local350 if (copy_from_user(&x25_subscr, arg, sizeof(x25_subscr))) in x25_subscr_ioctl()354 if ((dev = x25_dev_get(x25_subscr.device)) == NULL) in x25_subscr_ioctl()364 x25_subscr.extended = nb->extended; in x25_subscr_ioctl()365 x25_subscr.global_facil_mask = nb->global_facil_mask; in x25_subscr_ioctl()367 rc = copy_to_user(arg, &x25_subscr, in x25_subscr_ioctl()368 sizeof(x25_subscr)) ? -EFAULT : 0; in x25_subscr_ioctl()371 if (!(x25_subscr.extended && x25_subscr.extended != 1)) { in x25_subscr_ioctl()374 nb->extended = x25_subscr.extended; in x25_subscr_ioctl()375 nb->global_facil_mask = x25_subscr.global_facil_mask; in x25_subscr_ioctl()
1604 struct compat_x25_subscrip_struct x25_subscr; in compat_x25_subscr_ioctl() local1610 if (copy_from_user(&x25_subscr, x25_subscr32, sizeof(*x25_subscr32))) in compat_x25_subscr_ioctl()1614 dev = x25_dev_get(x25_subscr.device); in compat_x25_subscr_ioctl()1626 x25_subscr.extended = nb->extended; in compat_x25_subscr_ioctl()1627 x25_subscr.global_facil_mask = nb->global_facil_mask; in compat_x25_subscr_ioctl()1629 rc = copy_to_user(x25_subscr32, &x25_subscr, in compat_x25_subscr_ioctl()1633 if (x25_subscr.extended == 0 || x25_subscr.extended == 1) { in compat_x25_subscr_ioctl()1636 nb->extended = x25_subscr.extended; in compat_x25_subscr_ioctl()1637 nb->global_facil_mask = x25_subscr.global_facil_mask; in compat_x25_subscr_ioctl()