Lines Matching refs:inarg
27 struct fuse_open_in inarg; in fuse_send_open() local
30 memset(&inarg, 0, sizeof(inarg)); in fuse_send_open()
31 inarg.flags = file->f_flags & ~(O_CREAT | O_EXCL | O_NOCTTY); in fuse_send_open()
33 inarg.flags &= ~O_TRUNC; in fuse_send_open()
37 args.in.args[0].size = sizeof(inarg); in fuse_send_open()
38 args.in.args[0].value = &inarg; in fuse_send_open()
229 struct fuse_release_in *inarg = &req->misc.release.in; in fuse_prepare_release() local
239 inarg->fh = ff->fh; in fuse_prepare_release()
240 inarg->flags = flags; in fuse_prepare_release()
245 req->in.args[0].value = inarg; in fuse_prepare_release()
256 struct fuse_release_in *inarg = &req->misc.release.in; in fuse_release_common() local
257 inarg->release_flags |= FUSE_RELEASE_FLOCK_UNLOCK; in fuse_release_common()
258 inarg->lock_owner = fuse_lock_owner_id(ff->fc, in fuse_release_common()
400 struct fuse_flush_in inarg; in fuse_flush() local
422 memset(&inarg, 0, sizeof(inarg)); in fuse_flush()
423 inarg.fh = ff->fh; in fuse_flush()
424 inarg.lock_owner = fuse_lock_owner_id(fc, id); in fuse_flush()
428 req->in.args[0].size = sizeof(inarg); in fuse_flush()
429 req->in.args[0].value = &inarg; in fuse_flush()
448 struct fuse_fsync_in inarg; in fuse_fsync_common() local
483 memset(&inarg, 0, sizeof(inarg)); in fuse_fsync_common()
484 inarg.fh = ff->fh; in fuse_fsync_common()
485 inarg.fsync_flags = datasync ? 1 : 0; in fuse_fsync_common()
489 args.in.args[0].size = sizeof(inarg); in fuse_fsync_common()
490 args.in.args[0].value = &inarg; in fuse_fsync_common()
513 struct fuse_read_in *inarg = &req->misc.read.in; in fuse_read_fill() local
516 inarg->fh = ff->fh; in fuse_read_fill()
517 inarg->offset = pos; in fuse_read_fill()
518 inarg->size = count; in fuse_read_fill()
519 inarg->flags = file->f_flags; in fuse_read_fill()
524 req->in.args[0].value = inarg; in fuse_read_fill()
655 struct fuse_read_in *inarg = &req->misc.read.in; in fuse_send_read() local
657 inarg->read_flags |= FUSE_READ_LOCKOWNER; in fuse_send_read()
658 inarg->lock_owner = fuse_lock_owner_id(fc, owner); in fuse_send_read()
942 struct fuse_write_in *inarg = &req->misc.write.in; in fuse_write_fill() local
945 inarg->fh = ff->fh; in fuse_write_fill()
946 inarg->offset = pos; in fuse_write_fill()
947 inarg->size = count; in fuse_write_fill()
955 req->in.args[0].value = inarg; in fuse_write_fill()
969 struct fuse_write_in *inarg = &req->misc.write.in; in fuse_send_write() local
972 inarg->flags = file->f_flags; in fuse_send_write()
974 inarg->flags |= O_DSYNC; in fuse_send_write()
976 inarg->flags |= O_SYNC; in fuse_send_write()
978 inarg->write_flags |= FUSE_WRITE_LOCKOWNER; in fuse_send_write()
979 inarg->lock_owner = fuse_lock_owner_id(fc, owner); in fuse_send_write()
1488 struct fuse_write_in *inarg = &req->misc.write.in; in fuse_send_writepage() local
1494 if (inarg->offset + data_size <= size) { in fuse_send_writepage()
1495 inarg->size = data_size; in fuse_send_writepage()
1496 } else if (inarg->offset < size) { in fuse_send_writepage()
1497 inarg->size = size - inarg->offset; in fuse_send_writepage()
1503 req->in.args[1].size = inarg->size; in fuse_send_writepage()
1547 struct fuse_write_in *inarg = &req->misc.write.in; in fuse_writepage_end() local
1577 fuse_send_writepage(fc, next, inarg->offset + inarg->size); in fuse_writepage_end()
2132 int flock, struct fuse_lk_in *inarg) in fuse_lk_fill() argument
2138 memset(inarg, 0, sizeof(*inarg)); in fuse_lk_fill()
2139 inarg->fh = ff->fh; in fuse_lk_fill()
2140 inarg->owner = fuse_lock_owner_id(fc, fl->fl_owner); in fuse_lk_fill()
2141 inarg->lk.start = fl->fl_start; in fuse_lk_fill()
2142 inarg->lk.end = fl->fl_end; in fuse_lk_fill()
2143 inarg->lk.type = fl->fl_type; in fuse_lk_fill()
2144 inarg->lk.pid = pid; in fuse_lk_fill()
2146 inarg->lk_flags |= FUSE_LK_FLOCK; in fuse_lk_fill()
2150 args->in.args[0].size = sizeof(*inarg); in fuse_lk_fill()
2151 args->in.args[0].value = inarg; in fuse_lk_fill()
2159 struct fuse_lk_in inarg; in fuse_getlk() local
2163 fuse_lk_fill(&args, file, fl, FUSE_GETLK, 0, 0, &inarg); in fuse_getlk()
2179 struct fuse_lk_in inarg; in fuse_setlk() local
2194 fuse_lk_fill(&args, file, fl, opcode, pid_nr, flock, &inarg); in fuse_setlk()
2251 struct fuse_bmap_in inarg; in fuse_bmap() local
2258 memset(&inarg, 0, sizeof(inarg)); in fuse_bmap()
2259 inarg.block = block; in fuse_bmap()
2260 inarg.blocksize = inode->i_sb->s_blocksize; in fuse_bmap()
2264 args.in.args[0].size = sizeof(inarg); in fuse_bmap()
2265 args.in.args[0].value = &inarg; in fuse_bmap()
2282 struct fuse_lseek_in inarg = { in fuse_lseek() local
2296 args.in.args[0].size = sizeof(inarg); in fuse_lseek()
2297 args.in.args[0].value = &inarg; in fuse_lseek()
2490 struct fuse_ioctl_in inarg = { in fuse_do_ioctl() local
2507 inarg.flags |= FUSE_IOCTL_32BIT; in fuse_do_ioctl()
2510 inarg.flags |= FUSE_IOCTL_32BIT; in fuse_do_ioctl()
2544 inarg.in_size = in_size = iov_length(in_iov, in_iovs); in fuse_do_ioctl()
2545 inarg.out_size = out_size = iov_length(out_iov, out_iovs); in fuse_do_ioctl()
2579 req->in.args[0].size = sizeof(inarg); in fuse_do_ioctl()
2580 req->in.args[0].value = &inarg; in fuse_do_ioctl()
2655 if (transferred > inarg.out_size) in fuse_do_ioctl()
2760 struct fuse_poll_in inarg = { .fh = ff->fh, .kh = ff->kh }; in fuse_file_poll() local
2769 inarg.events = mangle_poll(poll_requested_events(wait)); in fuse_file_poll()
2776 inarg.flags |= FUSE_POLL_SCHEDULE_NOTIFY; in fuse_file_poll()
2783 args.in.args[0].size = sizeof(inarg); in fuse_file_poll()
2784 args.in.args[0].value = &inarg; in fuse_file_poll()
2946 struct fuse_fallocate_in inarg = { in fuse_file_fallocate() local
2981 args.in.args[0].size = sizeof(inarg); in fuse_file_fallocate()
2982 args.in.args[0].value = &inarg; in fuse_file_fallocate()