Lines Matching refs:user

162 	struct ncp_nls_ioctl user;  in ncp_set_charsets()  local
170 if (copy_from_user(&user, arg, sizeof(user))) in ncp_set_charsets()
174 user.codepage[NCP_IOCSNAME_LEN] = 0; in ncp_set_charsets()
175 if (!user.codepage[0] || !strcmp(user.codepage, "default")) in ncp_set_charsets()
178 codepage = load_nls(user.codepage); in ncp_set_charsets()
185 user.iocharset[NCP_IOCSNAME_LEN] = 0; in ncp_set_charsets()
186 if (!user.iocharset[0] || !strcmp(user.iocharset, "default")) { in ncp_set_charsets()
189 } else if (!strcmp(user.iocharset, "utf8")) { in ncp_set_charsets()
193 iocharset = load_nls(user.iocharset); in ncp_set_charsets()
227 struct ncp_nls_ioctl user; in ncp_get_charsets() local
230 memset(&user, 0, sizeof(user)); in ncp_get_charsets()
236 strncpy(user.codepage, server->nls_vol->charset, len); in ncp_get_charsets()
237 user.codepage[len] = 0; in ncp_get_charsets()
241 strcpy(user.iocharset, "utf8"); in ncp_get_charsets()
246 strncpy(user.iocharset, server->nls_io->charset, len); in ncp_get_charsets()
247 user.iocharset[len] = 0; in ncp_get_charsets()
251 if (copy_to_user(arg, &user, sizeof(user))) in ncp_get_charsets()
585 struct compat_ncp_objectname_ioctl user; in __ncp_ioctl() local
588 if (copy_from_user(&user, argp, sizeof(user))) in __ncp_ioctl()
591 user.auth_type = server->auth.auth_type; in __ncp_ioctl()
592 outl = user.object_name_len; in __ncp_ioctl()
593 user.object_name_len = server->auth.object_name_len; in __ncp_ioctl()
594 if (outl > user.object_name_len) in __ncp_ioctl()
595 outl = user.object_name_len; in __ncp_ioctl()
598 if (copy_to_user(compat_ptr(user.object_name), in __ncp_ioctl()
604 if (!result && copy_to_user(argp, &user, sizeof(user))) in __ncp_ioctl()
612 struct ncp_objectname_ioctl user; in __ncp_ioctl() local
615 if (copy_from_user(&user, argp, sizeof(user))) in __ncp_ioctl()
618 user.auth_type = server->auth.auth_type; in __ncp_ioctl()
619 outl = user.object_name_len; in __ncp_ioctl()
620 user.object_name_len = server->auth.object_name_len; in __ncp_ioctl()
621 if (outl > user.object_name_len) in __ncp_ioctl()
622 outl = user.object_name_len; in __ncp_ioctl()
625 if (copy_to_user(user.object_name, in __ncp_ioctl()
631 if (!result && copy_to_user(argp, &user, sizeof(user))) in __ncp_ioctl()
641 struct ncp_objectname_ioctl user; in __ncp_ioctl() local
653 user.auth_type = user32.auth_type; in __ncp_ioctl()
654 user.object_name_len = user32.object_name_len; in __ncp_ioctl()
655 user.object_name = compat_ptr(user32.object_name); in __ncp_ioctl()
658 if (copy_from_user(&user, argp, sizeof(user))) in __ncp_ioctl()
661 if (user.object_name_len > NCP_OBJECT_NAME_MAX_LEN) in __ncp_ioctl()
663 if (user.object_name_len) { in __ncp_ioctl()
664 newname = memdup_user(user.object_name, in __ncp_ioctl()
665 user.object_name_len); in __ncp_ioctl()
676 server->auth.auth_type = user.auth_type; in __ncp_ioctl()
677 server->auth.object_name_len = user.object_name_len; in __ncp_ioctl()
692 struct ncp_privatedata_ioctl user; in __ncp_ioctl() local
700 user.len = user32.len; in __ncp_ioctl()
701 user.data = compat_ptr(user32.data); in __ncp_ioctl()
704 if (copy_from_user(&user, argp, sizeof(user))) in __ncp_ioctl()
708 outl = user.len; in __ncp_ioctl()
709 user.len = server->priv.len; in __ncp_ioctl()
710 if (outl > user.len) outl = user.len; in __ncp_ioctl()
713 if (copy_to_user(user.data, in __ncp_ioctl()
724 user32.len = user.len; in __ncp_ioctl()
725 user32.data = (unsigned long) user.data; in __ncp_ioctl()
730 if (copy_to_user(argp, &user, sizeof(user))) in __ncp_ioctl()
741 struct ncp_privatedata_ioctl user; in __ncp_ioctl() local
751 user.len = user32.len; in __ncp_ioctl()
752 user.data = compat_ptr(user32.data); in __ncp_ioctl()
755 if (copy_from_user(&user, argp, sizeof(user))) in __ncp_ioctl()
758 if (user.len > NCP_PRIVATE_DATA_MAX_LEN) in __ncp_ioctl()
760 if (user.len) { in __ncp_ioctl()
761 new = memdup_user(user.data, user.len); in __ncp_ioctl()
770 server->priv.len = user.len; in __ncp_ioctl()
788 u_int32_t user; in __ncp_ioctl() local
790 if (copy_from_user(&user, argp, sizeof(user))) in __ncp_ioctl()
793 if (user > 20000) in __ncp_ioctl()
795 user = (user * HZ) / 1000; in __ncp_ioctl()
796 atomic_set(&server->dentry_ttl, user); in __ncp_ioctl()
802 u_int32_t user = (atomic_read(&server->dentry_ttl) * 1000) / HZ; in __ncp_ioctl() local
803 if (copy_to_user(argp, &user, sizeof(user))) in __ncp_ioctl()