Lines Matching refs:im
512 struct idmap_msg *im,
518 im->im_type = IDMAP_TYPE_GROUP;
523 im->im_type = IDMAP_TYPE_USER;
526 im->im_conv = IDMAP_CONV_NAMETOID;
527 ret = match_strlcpy(im->im_name, &substr, IDMAP_NAMESZ);
531 im->im_type = IDMAP_TYPE_USER;
534 im->im_conv = IDMAP_CONV_IDTONAME;
535 ret = match_int(&substr, &im->im_id);
545 msg->data = im;
585 struct idmap_msg *im;
593 /* msg and im are freed in idmap_pipe_destroy_msg */
600 im = &data->idmap_msg;
604 ret = nfs_idmap_prepare_message(key->description, idmap, im, msg);
631 static int nfs_idmap_read_and_verify_message(struct idmap_msg *im,
640 if (upcall->im_type != im->im_type || upcall->im_conv != im->im_conv)
642 switch (im->im_conv) {
644 if (strcmp(upcall->im_name, im->im_name) != 0)
647 len = 1 + nfs_map_numeric_to_string(im->im_id, id_str,
652 if (upcall->im_id != im->im_id)
654 len = strlen(im->im_name);
655 ret = nfs_idmap_instantiate(key, authkey, im->im_name, len);
672 struct idmap_msg im;
687 if (mlen != sizeof(im)) {
692 if (copy_from_user(&im, src, mlen) != 0) {
697 if (!(im.im_status & IDMAP_STATUS_SUCCESS)) {
702 namelen_in = strnlen(im.im_name, IDMAP_NAMESZ);
708 ret = nfs_idmap_read_and_verify_message(&im, &data->idmap_msg,