Lines Matching refs:im

511 				     struct idmap_msg *im,  in nfs_idmap_prepare_message()  argument
517 im->im_type = IDMAP_TYPE_GROUP; in nfs_idmap_prepare_message()
522 im->im_type = IDMAP_TYPE_USER; in nfs_idmap_prepare_message()
524 im->im_conv = IDMAP_CONV_NAMETOID; in nfs_idmap_prepare_message()
525 ret = match_strlcpy(im->im_name, &substr, IDMAP_NAMESZ); in nfs_idmap_prepare_message()
529 im->im_type = IDMAP_TYPE_USER; in nfs_idmap_prepare_message()
531 im->im_conv = IDMAP_CONV_IDTONAME; in nfs_idmap_prepare_message()
532 ret = match_int(&substr, &im->im_id); in nfs_idmap_prepare_message()
540 msg->data = im; in nfs_idmap_prepare_message()
582 struct idmap_msg *im; in nfs_idmap_legacy_upcall() local
593 im = &data->idmap_msg; in nfs_idmap_legacy_upcall()
597 ret = nfs_idmap_prepare_message(key->description, idmap, im, msg); in nfs_idmap_legacy_upcall()
624 static int nfs_idmap_read_and_verify_message(struct idmap_msg *im, in nfs_idmap_read_and_verify_message() argument
633 if (upcall->im_type != im->im_type || upcall->im_conv != im->im_conv) in nfs_idmap_read_and_verify_message()
635 switch (im->im_conv) { in nfs_idmap_read_and_verify_message()
637 if (strcmp(upcall->im_name, im->im_name) != 0) in nfs_idmap_read_and_verify_message()
640 len = sprintf(id_str, "%d", im->im_id) + 1; in nfs_idmap_read_and_verify_message()
644 if (upcall->im_id != im->im_id) in nfs_idmap_read_and_verify_message()
646 len = strlen(im->im_name); in nfs_idmap_read_and_verify_message()
647 ret = nfs_idmap_instantiate(key, authkey, im->im_name, len); in nfs_idmap_read_and_verify_message()
662 struct idmap_msg im; in idmap_pipe_downcall() local
675 if (mlen != sizeof(im)) { in idmap_pipe_downcall()
680 if (copy_from_user(&im, src, mlen) != 0) { in idmap_pipe_downcall()
685 if (!(im.im_status & IDMAP_STATUS_SUCCESS)) { in idmap_pipe_downcall()
690 namelen_in = strnlen(im.im_name, IDMAP_NAMESZ); in idmap_pipe_downcall()
696 ret = nfs_idmap_read_and_verify_message(&im, in idmap_pipe_downcall()