Lines Matching refs:im

497 				     struct idmap_msg *im,  in nfs_idmap_prepare_message()  argument
503 im->im_type = IDMAP_TYPE_GROUP; in nfs_idmap_prepare_message()
508 im->im_type = IDMAP_TYPE_USER; in nfs_idmap_prepare_message()
511 im->im_conv = IDMAP_CONV_NAMETOID; in nfs_idmap_prepare_message()
512 ret = match_strlcpy(im->im_name, &substr, IDMAP_NAMESZ); in nfs_idmap_prepare_message()
516 im->im_type = IDMAP_TYPE_USER; in nfs_idmap_prepare_message()
519 im->im_conv = IDMAP_CONV_IDTONAME; in nfs_idmap_prepare_message()
520 ret = match_int(&substr, &im->im_id); in nfs_idmap_prepare_message()
530 msg->data = im; in nfs_idmap_prepare_message()
572 struct idmap_msg *im; in nfs_idmap_legacy_upcall() local
587 im = &data->idmap_msg; in nfs_idmap_legacy_upcall()
591 ret = nfs_idmap_prepare_message(key->description, idmap, im, msg); in nfs_idmap_legacy_upcall()
618 static int nfs_idmap_read_and_verify_message(struct idmap_msg *im, in nfs_idmap_read_and_verify_message() argument
627 if (upcall->im_type != im->im_type || upcall->im_conv != im->im_conv) in nfs_idmap_read_and_verify_message()
629 switch (im->im_conv) { in nfs_idmap_read_and_verify_message()
631 if (strcmp(upcall->im_name, im->im_name) != 0) in nfs_idmap_read_and_verify_message()
634 len = 1 + nfs_map_numeric_to_string(im->im_id, id_str, in nfs_idmap_read_and_verify_message()
639 if (upcall->im_id != im->im_id) in nfs_idmap_read_and_verify_message()
641 len = strlen(im->im_name); in nfs_idmap_read_and_verify_message()
642 ret = nfs_idmap_instantiate(key, authkey, im->im_name, len); in nfs_idmap_read_and_verify_message()
657 struct idmap_msg im; in idmap_pipe_downcall() local
670 if (mlen != sizeof(im)) { in idmap_pipe_downcall()
675 if (copy_from_user(&im, src, mlen) != 0) { in idmap_pipe_downcall()
680 if (!(im.im_status & IDMAP_STATUS_SUCCESS)) { in idmap_pipe_downcall()
685 namelen_in = strnlen(im.im_name, IDMAP_NAMESZ); in idmap_pipe_downcall()
691 ret = nfs_idmap_read_and_verify_message(&im, in idmap_pipe_downcall()