• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/fs/9p/

Lines Matching refs:fc

492 	struct v9fs_fcall *fc;
495 fc = kmalloc(sizeof(struct v9fs_fcall) + size, GFP_KERNEL);
496 if (!fc)
499 fc->sdata = (char *)fc + sizeof(*fc);
501 buf_init(bufp, (char *)fc->sdata, size);
502 v9fs_put_int32(bufp, size, &fc->size);
503 v9fs_put_int8(bufp, id, &fc->id);
504 v9fs_put_int16(bufp, V9FS_NOTAG, &fc->tag);
506 return fc;
509 void v9fs_set_tag(struct v9fs_fcall *fc, u16 tag)
511 fc->tag = tag;
512 *(__le16 *) (fc->sdata + 5) = cpu_to_le16(tag);
518 struct v9fs_fcall *fc;
523 fc = v9fs_create_common(bufp, size, TVERSION);
524 if (IS_ERR(fc))
527 v9fs_put_int32(bufp, msize, &fc->params.tversion.msize);
528 v9fs_put_str(bufp, version, &fc->params.tversion.version);
531 kfree(fc);
532 fc = ERR_PTR(-ENOMEM);
535 return fc;
543 struct v9fs_fcall *fc;
548 fc = v9fs_create_common(bufp, size, TATTACH);
549 if (IS_ERR(fc))
552 v9fs_put_int32(bufp, fid, &fc->params.tattach.fid);
553 v9fs_put_int32(bufp, afid, &fc->params.tattach.afid);
554 v9fs_put_str(bufp, uname, &fc->params.tattach.uname);
555 v9fs_put_str(bufp, aname, &fc->params.tattach.aname);
558 return fc;
564 struct v9fs_fcall *fc;
569 fc = v9fs_create_common(bufp, size, TFLUSH);
570 if (IS_ERR(fc))
573 v9fs_put_int16(bufp, oldtag, &fc->params.tflush.oldtag);
576 kfree(fc);
577 fc = ERR_PTR(-ENOMEM);
580 return fc;
587 struct v9fs_fcall *fc;
601 fc = v9fs_create_common(bufp, size, TWALK);
602 if (IS_ERR(fc))
605 v9fs_put_int32(bufp, fid, &fc->params.twalk.fid);
606 v9fs_put_int32(bufp, newfid, &fc->params.twalk.newfid);
607 v9fs_put_int16(bufp, nwname, &fc->params.twalk.nwname);
609 v9fs_put_str(bufp, wnames[i], &fc->params.twalk.wnames[i]);
613 kfree(fc);
614 fc = ERR_PTR(-ENOMEM);
617 return fc;
623 struct v9fs_fcall *fc;
628 fc = v9fs_create_common(bufp, size, TOPEN);
629 if (IS_ERR(fc))
632 v9fs_put_int32(bufp, fid, &fc->params.topen.fid);
633 v9fs_put_int8(bufp, mode, &fc->params.topen.mode);
636 kfree(fc);
637 fc = ERR_PTR(-ENOMEM);
640 return fc;
647 struct v9fs_fcall *fc;
657 fc = v9fs_create_common(bufp, size, TCREATE);
658 if (IS_ERR(fc))
661 v9fs_put_int32(bufp, fid, &fc->params.tcreate.fid);
662 v9fs_put_str(bufp, name, &fc->params.tcreate.name);
663 v9fs_put_int32(bufp, perm, &fc->params.tcreate.perm);
664 v9fs_put_int8(bufp, mode, &fc->params.tcreate.mode);
666 v9fs_put_str(bufp, extension, &fc->params.tcreate.extension);
669 kfree(fc);
670 fc = ERR_PTR(-ENOMEM);
673 return fc;
679 struct v9fs_fcall *fc;
684 fc = v9fs_create_common(bufp, size, TREAD);
685 if (IS_ERR(fc))
688 v9fs_put_int32(bufp, fid, &fc->params.tread.fid);
689 v9fs_put_int64(bufp, offset, &fc->params.tread.offset);
690 v9fs_put_int32(bufp, count, &fc->params.tread.count);
693 kfree(fc);
694 fc = ERR_PTR(-ENOMEM);
697 return fc;
704 struct v9fs_fcall *fc;
709 fc = v9fs_create_common(bufp, size, TWRITE);
710 if (IS_ERR(fc))
713 v9fs_put_int32(bufp, fid, &fc->params.twrite.fid);
714 v9fs_put_int64(bufp, offset, &fc->params.twrite.offset);
715 v9fs_put_int32(bufp, count, &fc->params.twrite.count);
716 err = v9fs_put_user_data(bufp, data, count, &fc->params.twrite.data);
718 kfree(fc);
719 fc = ERR_PTR(err);
723 kfree(fc);
724 fc = ERR_PTR(-ENOMEM);
727 return fc;
733 struct v9fs_fcall *fc;
738 fc = v9fs_create_common(bufp, size, TCLUNK);
739 if (IS_ERR(fc))
742 v9fs_put_int32(bufp, fid, &fc->params.tclunk.fid);
745 kfree(fc);
746 fc = ERR_PTR(-ENOMEM);
749 return fc;
755 struct v9fs_fcall *fc;
760 fc = v9fs_create_common(bufp, size, TREMOVE);
761 if (IS_ERR(fc))
764 v9fs_put_int32(bufp, fid, &fc->params.tremove.fid);
767 kfree(fc);
768 fc = ERR_PTR(-ENOMEM);
771 return fc;
777 struct v9fs_fcall *fc;
782 fc = v9fs_create_common(bufp, size, TSTAT);
783 if (IS_ERR(fc))
786 v9fs_put_int32(bufp, fid, &fc->params.tstat.fid);
789 kfree(fc);
790 fc = ERR_PTR(-ENOMEM);
793 return fc;
800 struct v9fs_fcall *fc;
806 fc = v9fs_create_common(bufp, size, TWSTAT);
807 if (IS_ERR(fc))
810 v9fs_put_int32(bufp, fid, &fc->params.twstat.fid);
812 v9fs_put_wstat(bufp, wstat, &fc->params.twstat.stat, statsz, extended);
815 kfree(fc);
816 fc = ERR_PTR(-ENOMEM);
819 return fc;