Home
last modified time | relevance | path

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

/net/x25/
Dx25_link.c343 struct x25_subscrip_struct x25_subscr; in x25_subscr_ioctl() local
352 if (copy_from_user(&x25_subscr, arg, sizeof(x25_subscr))) in x25_subscr_ioctl()
356 if ((dev = x25_dev_get(x25_subscr.device)) == NULL) in x25_subscr_ioctl()
366 x25_subscr.extended = nb->extended; in x25_subscr_ioctl()
367 x25_subscr.global_facil_mask = nb->global_facil_mask; in x25_subscr_ioctl()
369 rc = copy_to_user(arg, &x25_subscr, in x25_subscr_ioctl()
370 sizeof(x25_subscr)) ? -EFAULT : 0; in x25_subscr_ioctl()
373 if (!(x25_subscr.extended && x25_subscr.extended != 1)) { in x25_subscr_ioctl()
376 nb->extended = x25_subscr.extended; in x25_subscr_ioctl()
377 nb->global_facil_mask = x25_subscr.global_facil_mask; in x25_subscr_ioctl()
Daf_x25.c1627 struct compat_x25_subscrip_struct x25_subscr; in compat_x25_subscr_ioctl() local
1633 if (copy_from_user(&x25_subscr, x25_subscr32, sizeof(*x25_subscr32))) in compat_x25_subscr_ioctl()
1637 dev = x25_dev_get(x25_subscr.device); in compat_x25_subscr_ioctl()
1649 x25_subscr.extended = nb->extended; in compat_x25_subscr_ioctl()
1650 x25_subscr.global_facil_mask = nb->global_facil_mask; in compat_x25_subscr_ioctl()
1652 rc = copy_to_user(x25_subscr32, &x25_subscr, in compat_x25_subscr_ioctl()
1656 if (x25_subscr.extended == 0 || x25_subscr.extended == 1) { in compat_x25_subscr_ioctl()
1659 nb->extended = x25_subscr.extended; in compat_x25_subscr_ioctl()
1660 nb->global_facil_mask = x25_subscr.global_facil_mask; in compat_x25_subscr_ioctl()