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()
583 struct compat_ncp_objectname_ioctl user; in __ncp_ioctl() local
586 if (copy_from_user(&user, argp, sizeof(user))) in __ncp_ioctl()
589 user.auth_type = server->auth.auth_type; in __ncp_ioctl()
590 outl = user.object_name_len; in __ncp_ioctl()
591 user.object_name_len = server->auth.object_name_len; in __ncp_ioctl()
592 if (outl > user.object_name_len) in __ncp_ioctl()
593 outl = user.object_name_len; in __ncp_ioctl()
596 if (copy_to_user(compat_ptr(user.object_name), in __ncp_ioctl()
602 if (!result && copy_to_user(argp, &user, sizeof(user))) in __ncp_ioctl()
610 struct ncp_objectname_ioctl user; in __ncp_ioctl() local
613 if (copy_from_user(&user, argp, sizeof(user))) in __ncp_ioctl()
616 user.auth_type = server->auth.auth_type; in __ncp_ioctl()
617 outl = user.object_name_len; in __ncp_ioctl()
618 user.object_name_len = server->auth.object_name_len; in __ncp_ioctl()
619 if (outl > user.object_name_len) in __ncp_ioctl()
620 outl = user.object_name_len; in __ncp_ioctl()
623 if (copy_to_user(user.object_name, in __ncp_ioctl()
629 if (!result && copy_to_user(argp, &user, sizeof(user))) in __ncp_ioctl()
639 struct ncp_objectname_ioctl user; in __ncp_ioctl() local
651 user.auth_type = user32.auth_type; in __ncp_ioctl()
652 user.object_name_len = user32.object_name_len; in __ncp_ioctl()
653 user.object_name = compat_ptr(user32.object_name); in __ncp_ioctl()
656 if (copy_from_user(&user, argp, sizeof(user))) in __ncp_ioctl()
659 if (user.object_name_len > NCP_OBJECT_NAME_MAX_LEN) in __ncp_ioctl()
661 if (user.object_name_len) { in __ncp_ioctl()
662 newname = memdup_user(user.object_name, in __ncp_ioctl()
663 user.object_name_len); in __ncp_ioctl()
674 server->auth.auth_type = user.auth_type; in __ncp_ioctl()
675 server->auth.object_name_len = user.object_name_len; in __ncp_ioctl()
690 struct ncp_privatedata_ioctl user; in __ncp_ioctl() local
698 user.len = user32.len; in __ncp_ioctl()
699 user.data = compat_ptr(user32.data); in __ncp_ioctl()
702 if (copy_from_user(&user, argp, sizeof(user))) in __ncp_ioctl()
706 outl = user.len; in __ncp_ioctl()
707 user.len = server->priv.len; in __ncp_ioctl()
708 if (outl > user.len) outl = user.len; in __ncp_ioctl()
711 if (copy_to_user(user.data, in __ncp_ioctl()
722 user32.len = user.len; in __ncp_ioctl()
723 user32.data = (unsigned long) user.data; in __ncp_ioctl()
728 if (copy_to_user(argp, &user, sizeof(user))) in __ncp_ioctl()
739 struct ncp_privatedata_ioctl user; in __ncp_ioctl() local
749 user.len = user32.len; in __ncp_ioctl()
750 user.data = compat_ptr(user32.data); in __ncp_ioctl()
753 if (copy_from_user(&user, argp, sizeof(user))) in __ncp_ioctl()
756 if (user.len > NCP_PRIVATE_DATA_MAX_LEN) in __ncp_ioctl()
758 if (user.len) { in __ncp_ioctl()
759 new = memdup_user(user.data, user.len); in __ncp_ioctl()
768 server->priv.len = user.len; in __ncp_ioctl()
786 u_int32_t user; in __ncp_ioctl() local
788 if (copy_from_user(&user, argp, sizeof(user))) in __ncp_ioctl()
791 if (user > 20000) in __ncp_ioctl()
793 user = (user * HZ) / 1000; in __ncp_ioctl()
794 atomic_set(&server->dentry_ttl, user); in __ncp_ioctl()
800 u_int32_t user = (atomic_read(&server->dentry_ttl) * 1000) / HZ; in __ncp_ioctl() local
801 if (copy_to_user(argp, &user, sizeof(user))) in __ncp_ioctl()