Lines Matching refs:inarg

28 	struct fuse_open_in inarg;  in fuse_send_open()  local
31 memset(&inarg, 0, sizeof(inarg)); in fuse_send_open()
32 inarg.flags = file->f_flags & ~(O_CREAT | O_EXCL | O_NOCTTY); in fuse_send_open()
34 inarg.flags &= ~O_TRUNC; in fuse_send_open()
38 args.in.args[0].size = sizeof(inarg); in fuse_send_open()
39 args.in.args[0].value = &inarg; in fuse_send_open()
242 struct fuse_release_in *inarg = &req->misc.release.in; in fuse_prepare_release() local
252 inarg->fh = ff->fh; in fuse_prepare_release()
253 inarg->flags = flags; in fuse_prepare_release()
258 req->in.args[0].value = inarg; in fuse_prepare_release()
270 struct fuse_release_in *inarg = &req->misc.release.in; in fuse_release_common() local
271 inarg->release_flags |= FUSE_RELEASE_FLOCK_UNLOCK; in fuse_release_common()
272 inarg->lock_owner = fuse_lock_owner_id(ff->fc, in fuse_release_common()
414 struct fuse_flush_in inarg; in fuse_flush() local
436 memset(&inarg, 0, sizeof(inarg)); in fuse_flush()
437 inarg.fh = ff->fh; in fuse_flush()
438 inarg.lock_owner = fuse_lock_owner_id(fc, id); in fuse_flush()
442 req->in.args[0].size = sizeof(inarg); in fuse_flush()
443 req->in.args[0].value = &inarg; in fuse_flush()
462 struct fuse_fsync_in inarg; in fuse_fsync_common() local
497 memset(&inarg, 0, sizeof(inarg)); in fuse_fsync_common()
498 inarg.fh = ff->fh; in fuse_fsync_common()
499 inarg.fsync_flags = datasync ? 1 : 0; in fuse_fsync_common()
503 args.in.args[0].size = sizeof(inarg); in fuse_fsync_common()
504 args.in.args[0].value = &inarg; in fuse_fsync_common()
527 struct fuse_read_in *inarg = &req->misc.read.in; in fuse_read_fill() local
530 inarg->fh = ff->fh; in fuse_read_fill()
531 inarg->offset = pos; in fuse_read_fill()
532 inarg->size = count; in fuse_read_fill()
533 inarg->flags = file->f_flags; in fuse_read_fill()
538 req->in.args[0].value = inarg; in fuse_read_fill()
669 struct fuse_read_in *inarg = &req->misc.read.in; in fuse_send_read() local
671 inarg->read_flags |= FUSE_READ_LOCKOWNER; in fuse_send_read()
672 inarg->lock_owner = fuse_lock_owner_id(fc, owner); in fuse_send_read()
959 struct fuse_write_in *inarg = &req->misc.write.in; in fuse_write_fill() local
962 inarg->fh = ff->fh; in fuse_write_fill()
963 inarg->offset = pos; in fuse_write_fill()
964 inarg->size = count; in fuse_write_fill()
972 req->in.args[0].value = inarg; in fuse_write_fill()
986 struct fuse_write_in *inarg = &req->misc.write.in; in fuse_send_write() local
989 inarg->flags = file->f_flags; in fuse_send_write()
991 inarg->flags |= O_DSYNC; in fuse_send_write()
993 inarg->flags |= O_SYNC; in fuse_send_write()
995 inarg->write_flags |= FUSE_WRITE_LOCKOWNER; in fuse_send_write()
996 inarg->lock_owner = fuse_lock_owner_id(fc, owner); in fuse_send_write()
1509 struct fuse_write_in *inarg = &req->misc.write.in; in fuse_send_writepage() local
1515 if (inarg->offset + data_size <= size) { in fuse_send_writepage()
1516 inarg->size = data_size; in fuse_send_writepage()
1517 } else if (inarg->offset < size) { in fuse_send_writepage()
1518 inarg->size = size - inarg->offset; in fuse_send_writepage()
1524 req->in.args[1].size = inarg->size; in fuse_send_writepage()
1568 struct fuse_write_in *inarg = &req->misc.write.in; in fuse_writepage_end() local
1598 fuse_send_writepage(fc, next, inarg->offset + inarg->size); in fuse_writepage_end()
2154 int flock, struct fuse_lk_in *inarg) in fuse_lk_fill() argument
2160 memset(inarg, 0, sizeof(*inarg)); in fuse_lk_fill()
2161 inarg->fh = ff->fh; in fuse_lk_fill()
2162 inarg->owner = fuse_lock_owner_id(fc, fl->fl_owner); in fuse_lk_fill()
2163 inarg->lk.start = fl->fl_start; in fuse_lk_fill()
2164 inarg->lk.end = fl->fl_end; in fuse_lk_fill()
2165 inarg->lk.type = fl->fl_type; in fuse_lk_fill()
2166 inarg->lk.pid = pid; in fuse_lk_fill()
2168 inarg->lk_flags |= FUSE_LK_FLOCK; in fuse_lk_fill()
2172 args->in.args[0].size = sizeof(*inarg); in fuse_lk_fill()
2173 args->in.args[0].value = inarg; in fuse_lk_fill()
2181 struct fuse_lk_in inarg; in fuse_getlk() local
2185 fuse_lk_fill(&args, file, fl, FUSE_GETLK, 0, 0, &inarg); in fuse_getlk()
2201 struct fuse_lk_in inarg; in fuse_setlk() local
2216 fuse_lk_fill(&args, file, fl, opcode, pid_nr, flock, &inarg); in fuse_setlk()
2273 struct fuse_bmap_in inarg; in fuse_bmap() local
2280 memset(&inarg, 0, sizeof(inarg)); in fuse_bmap()
2281 inarg.block = block; in fuse_bmap()
2282 inarg.blocksize = inode->i_sb->s_blocksize; in fuse_bmap()
2286 args.in.args[0].size = sizeof(inarg); in fuse_bmap()
2287 args.in.args[0].value = &inarg; in fuse_bmap()
2304 struct fuse_lseek_in inarg = { in fuse_lseek() local
2318 args.in.args[0].size = sizeof(inarg); in fuse_lseek()
2319 args.in.args[0].value = &inarg; in fuse_lseek()
2512 struct fuse_ioctl_in inarg = { in fuse_do_ioctl() local
2529 inarg.flags |= FUSE_IOCTL_32BIT; in fuse_do_ioctl()
2532 inarg.flags |= FUSE_IOCTL_32BIT; in fuse_do_ioctl()
2575 inarg.in_size = in_size = iov_length(in_iov, in_iovs); in fuse_do_ioctl()
2576 inarg.out_size = out_size = iov_length(out_iov, out_iovs); in fuse_do_ioctl()
2610 req->in.args[0].size = sizeof(inarg); in fuse_do_ioctl()
2611 req->in.args[0].value = &inarg; in fuse_do_ioctl()
2686 if (transferred > inarg.out_size) in fuse_do_ioctl()
2791 struct fuse_poll_in inarg = { .fh = ff->fh, .kh = ff->kh }; in fuse_file_poll() local
2800 inarg.events = mangle_poll(poll_requested_events(wait)); in fuse_file_poll()
2807 inarg.flags |= FUSE_POLL_SCHEDULE_NOTIFY; in fuse_file_poll()
2814 args.in.args[0].size = sizeof(inarg); in fuse_file_poll()
2815 args.in.args[0].value = &inarg; in fuse_file_poll()
2979 struct fuse_fallocate_in inarg = { in fuse_file_fallocate() local
3021 args.in.args[0].size = sizeof(inarg); in fuse_file_fallocate()
3022 args.in.args[0].value = &inarg; in fuse_file_fallocate()