Home
last modified time | relevance | path

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

/Linux-v5.10/net/x25/
Dx25_link.c340 struct x25_subscrip_struct x25_subscr; in x25_subscr_ioctl() local
349 if (copy_from_user(&x25_subscr, arg, sizeof(x25_subscr))) in x25_subscr_ioctl()
353 if ((dev = x25_dev_get(x25_subscr.device)) == NULL) in x25_subscr_ioctl()
363 x25_subscr.extended = nb->extended; in x25_subscr_ioctl()
364 x25_subscr.global_facil_mask = nb->global_facil_mask; in x25_subscr_ioctl()
366 rc = copy_to_user(arg, &x25_subscr, in x25_subscr_ioctl()
367 sizeof(x25_subscr)) ? -EFAULT : 0; in x25_subscr_ioctl()
370 if (!(x25_subscr.extended && x25_subscr.extended != 1)) { in x25_subscr_ioctl()
373 nb->extended = x25_subscr.extended; in x25_subscr_ioctl()
374 nb->global_facil_mask = x25_subscr.global_facil_mask; in x25_subscr_ioctl()
Daf_x25.c1633 struct compat_x25_subscrip_struct x25_subscr; in compat_x25_subscr_ioctl() local
1639 if (copy_from_user(&x25_subscr, x25_subscr32, sizeof(*x25_subscr32))) in compat_x25_subscr_ioctl()
1643 dev = x25_dev_get(x25_subscr.device); in compat_x25_subscr_ioctl()
1655 x25_subscr.extended = nb->extended; in compat_x25_subscr_ioctl()
1656 x25_subscr.global_facil_mask = nb->global_facil_mask; in compat_x25_subscr_ioctl()
1658 rc = copy_to_user(x25_subscr32, &x25_subscr, in compat_x25_subscr_ioctl()
1662 if (x25_subscr.extended == 0 || x25_subscr.extended == 1) { in compat_x25_subscr_ioctl()
1665 nb->extended = x25_subscr.extended; in compat_x25_subscr_ioctl()
1666 nb->global_facil_mask = x25_subscr.global_facil_mask; in compat_x25_subscr_ioctl()