Lines Matching refs:im
496 struct idmap_msg *im, in nfs_idmap_prepare_message() argument
502 im->im_type = IDMAP_TYPE_GROUP; in nfs_idmap_prepare_message()
507 im->im_type = IDMAP_TYPE_USER; in nfs_idmap_prepare_message()
509 im->im_conv = IDMAP_CONV_NAMETOID; in nfs_idmap_prepare_message()
510 ret = match_strlcpy(im->im_name, &substr, IDMAP_NAMESZ); in nfs_idmap_prepare_message()
514 im->im_type = IDMAP_TYPE_USER; in nfs_idmap_prepare_message()
516 im->im_conv = IDMAP_CONV_IDTONAME; in nfs_idmap_prepare_message()
517 ret = match_int(&substr, &im->im_id); in nfs_idmap_prepare_message()
525 msg->data = im; in nfs_idmap_prepare_message()
567 struct idmap_msg *im; in nfs_idmap_legacy_upcall() local
578 im = &data->idmap_msg; in nfs_idmap_legacy_upcall()
582 ret = nfs_idmap_prepare_message(key->description, idmap, im, msg); in nfs_idmap_legacy_upcall()
609 static int nfs_idmap_read_and_verify_message(struct idmap_msg *im, in nfs_idmap_read_and_verify_message() argument
618 if (upcall->im_type != im->im_type || upcall->im_conv != im->im_conv) in nfs_idmap_read_and_verify_message()
620 switch (im->im_conv) { in nfs_idmap_read_and_verify_message()
622 if (strcmp(upcall->im_name, im->im_name) != 0) in nfs_idmap_read_and_verify_message()
625 len = sprintf(id_str, "%d", im->im_id) + 1; in nfs_idmap_read_and_verify_message()
629 if (upcall->im_id != im->im_id) in nfs_idmap_read_and_verify_message()
631 len = strlen(im->im_name); in nfs_idmap_read_and_verify_message()
632 ret = nfs_idmap_instantiate(key, authkey, im->im_name, len); in nfs_idmap_read_and_verify_message()
647 struct idmap_msg im; in idmap_pipe_downcall() local
660 if (mlen != sizeof(im)) { in idmap_pipe_downcall()
665 if (copy_from_user(&im, src, mlen) != 0) { in idmap_pipe_downcall()
670 if (!(im.im_status & IDMAP_STATUS_SUCCESS)) { in idmap_pipe_downcall()
675 namelen_in = strnlen(im.im_name, IDMAP_NAMESZ); in idmap_pipe_downcall()
681 ret = nfs_idmap_read_and_verify_message(&im, in idmap_pipe_downcall()