Lines Matching refs:im
512 struct idmap_msg *im, in nfs_idmap_prepare_message() argument
518 im->im_type = IDMAP_TYPE_GROUP; in nfs_idmap_prepare_message()
523 im->im_type = IDMAP_TYPE_USER; in nfs_idmap_prepare_message()
526 im->im_conv = IDMAP_CONV_NAMETOID; in nfs_idmap_prepare_message()
527 ret = match_strlcpy(im->im_name, &substr, IDMAP_NAMESZ); in nfs_idmap_prepare_message()
531 im->im_type = IDMAP_TYPE_USER; in nfs_idmap_prepare_message()
534 im->im_conv = IDMAP_CONV_IDTONAME; in nfs_idmap_prepare_message()
535 ret = match_int(&substr, &im->im_id); in nfs_idmap_prepare_message()
545 msg->data = im; in nfs_idmap_prepare_message()
587 struct idmap_msg *im; in nfs_idmap_legacy_upcall() local
602 im = &data->idmap_msg; in nfs_idmap_legacy_upcall()
606 ret = nfs_idmap_prepare_message(key->description, idmap, im, msg); in nfs_idmap_legacy_upcall()
633 static int nfs_idmap_read_and_verify_message(struct idmap_msg *im, in nfs_idmap_read_and_verify_message() argument
642 if (upcall->im_type != im->im_type || upcall->im_conv != im->im_conv) in nfs_idmap_read_and_verify_message()
644 switch (im->im_conv) { in nfs_idmap_read_and_verify_message()
646 if (strcmp(upcall->im_name, im->im_name) != 0) in nfs_idmap_read_and_verify_message()
649 len = 1 + nfs_map_numeric_to_string(im->im_id, id_str, in nfs_idmap_read_and_verify_message()
654 if (upcall->im_id != im->im_id) in nfs_idmap_read_and_verify_message()
656 len = strlen(im->im_name); in nfs_idmap_read_and_verify_message()
657 ret = nfs_idmap_instantiate(key, authkey, im->im_name, len); in nfs_idmap_read_and_verify_message()
673 struct idmap_msg im; in idmap_pipe_downcall() local
687 if (mlen != sizeof(im)) { in idmap_pipe_downcall()
692 if (copy_from_user(&im, src, mlen) != 0) { in idmap_pipe_downcall()
697 if (!(im.im_status & IDMAP_STATUS_SUCCESS)) { in idmap_pipe_downcall()
702 namelen_in = strnlen(im.im_name, IDMAP_NAMESZ); in idmap_pipe_downcall()
708 ret = nfs_idmap_read_and_verify_message(&im, in idmap_pipe_downcall()