Home
last modified time | relevance | path

Searched refs:ops (Results 1 – 25 of 46) sorted by relevance

12

/fs/yaffs2/
Dyaffs_mtdif1.c97 struct mtd_oob_ops ops; in nandmtd1_WriteChunkWithTagsToNAND() local
129 memset(&ops, 0, sizeof(ops)); in nandmtd1_WriteChunkWithTagsToNAND()
130 ops.mode = MTD_OOB_AUTO; in nandmtd1_WriteChunkWithTagsToNAND()
131 ops.len = (data) ? chunkBytes : 0; in nandmtd1_WriteChunkWithTagsToNAND()
132 ops.ooblen = YTAG1_SIZE; in nandmtd1_WriteChunkWithTagsToNAND()
133 ops.datbuf = (__u8 *)data; in nandmtd1_WriteChunkWithTagsToNAND()
134 ops.oobbuf = (__u8 *)&pt1; in nandmtd1_WriteChunkWithTagsToNAND()
136 retval = mtd->write_oob(mtd, addr, &ops); in nandmtd1_WriteChunkWithTagsToNAND()
176 struct mtd_oob_ops ops; in nandmtd1_ReadChunkWithTagsFromNAND() local
181 memset(&ops, 0, sizeof(ops)); in nandmtd1_ReadChunkWithTagsFromNAND()
[all …]
Dyaffs_mtdif.c79 struct mtd_oob_ops ops; in nandmtd_WriteChunkToNAND() local
94 ops.mode = MTD_OOB_AUTO; in nandmtd_WriteChunkToNAND()
95 ops.ooblen = 8; /* temp hack */ in nandmtd_WriteChunkToNAND()
97 ops.mode = MTD_OOB_RAW; in nandmtd_WriteChunkToNAND()
98 ops.ooblen = YAFFS_BYTES_PER_SPARE; in nandmtd_WriteChunkToNAND()
100 ops.len = data ? dev->nDataBytesPerChunk : ops.ooblen; in nandmtd_WriteChunkToNAND()
101 ops.datbuf = (u8 *)data; in nandmtd_WriteChunkToNAND()
102 ops.ooboffs = 0; in nandmtd_WriteChunkToNAND()
103 ops.oobbuf = spareAsBytes; in nandmtd_WriteChunkToNAND()
104 retval = mtd->write_oob(mtd, addr, &ops); in nandmtd_WriteChunkToNAND()
[all …]
Dyaffs_mtdif2.c40 struct mtd_oob_ops ops; in nandmtd2_WriteChunkWithTagsToNAND() local
71 ops.mode = MTD_OOB_AUTO; in nandmtd2_WriteChunkWithTagsToNAND()
72 ops.ooblen = (dev->inbandTags) ? 0 : sizeof(pt); in nandmtd2_WriteChunkWithTagsToNAND()
73 ops.len = dev->totalBytesPerChunk; in nandmtd2_WriteChunkWithTagsToNAND()
74 ops.ooboffs = 0; in nandmtd2_WriteChunkWithTagsToNAND()
75 ops.datbuf = (__u8 *)data; in nandmtd2_WriteChunkWithTagsToNAND()
76 ops.oobbuf = (dev->inbandTags) ? NULL : (void *)&pt; in nandmtd2_WriteChunkWithTagsToNAND()
77 retval = mtd->write_oob(mtd, addr, &ops); in nandmtd2_WriteChunkWithTagsToNAND()
102 struct mtd_oob_ops ops; in nandmtd2_ReadChunkWithTagsFromNAND() local
133 ops.mode = MTD_OOB_AUTO; in nandmtd2_ReadChunkWithTagsFromNAND()
[all …]
/fs/
Dgeneric_acl.c18 generic_acl_list(struct inode *inode, struct generic_acl_operations *ops, in generic_acl_list() argument
25 acl = ops->getacl(inode, type); in generic_acl_list()
53 generic_acl_get(struct inode *inode, struct generic_acl_operations *ops, in generic_acl_get() argument
59 acl = ops->getacl(inode, type); in generic_acl_get()
73 generic_acl_set(struct inode *inode, struct generic_acl_operations *ops, in generic_acl_set() argument
115 ops->setacl(inode, type, acl); in generic_acl_set()
131 struct generic_acl_operations *ops) in generic_acl_init() argument
139 acl = ops->getacl(dir, ACL_TYPE_DEFAULT); in generic_acl_init()
148 ops->setacl(inode, ACL_TYPE_DEFAULT, clone); in generic_acl_init()
159 ops->setacl(inode, ACL_TYPE_ACCESS, clone); in generic_acl_init()
[all …]
Dpipe.c307 const struct pipe_buf_operations *ops = buf->ops; in pipe_read() local
315 error = ops->confirm(pipe, buf); in pipe_read()
324 addr = ops->map(pipe, buf, atomic); in pipe_read()
326 ops->unmap(pipe, buf, addr); in pipe_read()
343 buf->ops = NULL; in pipe_read()
344 ops->release(pipe, buf); in pipe_read()
429 const struct pipe_buf_operations *ops = buf->ops; in pipe_write() local
432 if (ops->can_merge && offset + chars <= PAGE_SIZE) { in pipe_write()
436 error = ops->confirm(pipe, buf); in pipe_write()
442 addr = ops->map(pipe, buf, atomic); in pipe_write()
[all …]
Dsplice.c203 buf->ops = spd->ops; in splice_to_pipe()
286 .ops = &page_cache_pipe_buf_ops, in __generic_file_splice_read()
526 ret = buf->ops->confirm(pipe, buf); in pipe_to_sendpage()
570 ret = buf->ops->confirm(pipe, buf); in pipe_to_file()
589 char *src = buf->ops->map(pipe, buf, 1); in pipe_to_file()
595 buf->ops->unmap(pipe, buf, src); in pipe_to_file()
627 const struct pipe_buf_operations *ops = buf->ops; in __splice_from_pipe() local
652 buf->ops = NULL; in __splice_from_pipe()
653 ops->release(pipe, buf); in __splice_from_pipe()
1043 if (buf->ops) { in splice_direct_to_actor()
[all …]
Ddquot.c340 ret = dqopt->ops[dquot->dq_type]->read_dqblk(dquot); in dquot_acquire()
346 ret = dqopt->ops[dquot->dq_type]->commit_dqblk(dquot); in dquot_acquire()
349 ret2 = dqopt->ops[dquot->dq_type]->write_file_info(dquot->dq_sb, dquot->dq_type); in dquot_acquire()
382 ret = dqopt->ops[dquot->dq_type]->commit_dqblk(dquot); in dquot_commit()
384 ret2 = dqopt->ops[dquot->dq_type]->write_file_info(dquot->dq_sb, dquot->dq_type); in dquot_commit()
406 if (dqopt->ops[dquot->dq_type]->release_dqblk) { in dquot_release()
407 ret = dqopt->ops[dquot->dq_type]->release_dqblk(dquot); in dquot_release()
410 ret2 = dqopt->ops[dquot->dq_type]->write_file_info(dquot->dq_sb, dquot->dq_type); in dquot_release()
1614 ret = dqopt->ops[type]->write_file_info(sb, type); in dquot_commit_info()
1708 if (dqopt->ops[cnt]->free_file_info) in vfs_quota_disable()
[all …]
Dseq_file.c587 void *__seq_open_private(struct file *f, const struct seq_operations *ops, in __seq_open_private() argument
598 rc = seq_open(f, ops); in __seq_open_private()
613 int seq_open_private(struct file *filp, const struct seq_operations *ops, in seq_open_private() argument
616 return __seq_open_private(filp, ops, psize) ? 0 : -ENOMEM; in seq_open_private()
Dchar_dev.c279 cdev->ops = fops; in register_chrdev()
391 filp->f_op = fops_get(p->ops); in chrdev_open()
534 cdev->ops = fops; in cdev_init()
/fs/adfs/
Ddir.c33 struct adfs_dir_ops *ops = ADFS_SB(sb)->s_dir; in adfs_readdir() local
43 ret = ops->read(sb, inode->i_ino, inode->i_size, &dir); in adfs_readdir()
64 ret = ops->setpos(&dir, filp->f_pos - 2); in adfs_readdir()
67 while (ops->getnext(&dir, &obj) == 0) { in adfs_readdir()
78 ops->free(&dir); in adfs_readdir()
90 struct adfs_dir_ops *ops = ADFS_SB(sb)->s_dir; in adfs_dir_update() local
96 if (!ops->update) { in adfs_dir_update()
101 ret = ops->read(sb, obj->parent_id, 0, &dir); in adfs_dir_update()
106 ret = ops->update(&dir, obj); in adfs_dir_update()
109 ops->free(&dir); in adfs_dir_update()
[all …]
/fs/xfs/linux-2.6/
Dxfs_ioctl32.c409 compat_xfs_attr_multiop_t *ops; in xfs_compat_attrmulti_by_handle() local
431 ops = kmalloc(size, GFP_KERNEL); in xfs_compat_attrmulti_by_handle()
432 if (!ops) in xfs_compat_attrmulti_by_handle()
436 if (copy_from_user(ops, compat_ptr(am_hreq.ops), size)) in xfs_compat_attrmulti_by_handle()
446 ops[i].am_error = strncpy_from_user(attr_name, in xfs_compat_attrmulti_by_handle()
447 compat_ptr(ops[i].am_attrname), in xfs_compat_attrmulti_by_handle()
449 if (ops[i].am_error == 0 || ops[i].am_error == MAXNAMELEN) in xfs_compat_attrmulti_by_handle()
451 if (ops[i].am_error < 0) in xfs_compat_attrmulti_by_handle()
454 switch (ops[i].am_opcode) { in xfs_compat_attrmulti_by_handle()
456 ops[i].am_error = xfs_attrmulti_attr_get( in xfs_compat_attrmulti_by_handle()
[all …]
Dxfs_ioctl.c540 xfs_attr_multiop_t *ops; in xfs_attrmulti_by_handle() local
561 ops = kmalloc(size, GFP_KERNEL); in xfs_attrmulti_by_handle()
562 if (!ops) in xfs_attrmulti_by_handle()
566 if (copy_from_user(ops, am_hreq.ops, size)) in xfs_attrmulti_by_handle()
576 ops[i].am_error = strncpy_from_user(attr_name, in xfs_attrmulti_by_handle()
577 ops[i].am_attrname, MAXNAMELEN); in xfs_attrmulti_by_handle()
578 if (ops[i].am_error == 0 || ops[i].am_error == MAXNAMELEN) in xfs_attrmulti_by_handle()
580 if (ops[i].am_error < 0) in xfs_attrmulti_by_handle()
583 switch (ops[i].am_opcode) { in xfs_attrmulti_by_handle()
585 ops[i].am_error = xfs_attrmulti_attr_get( in xfs_attrmulti_by_handle()
[all …]
/fs/jffs2/
Dwbuf.c1027 struct mtd_oob_ops ops; in jffs2_check_oob_empty() local
1029 ops.mode = MTD_OOB_AUTO; in jffs2_check_oob_empty()
1030 ops.ooblen = NR_OOB_SCAN_PAGES * c->oobavail; in jffs2_check_oob_empty()
1031 ops.oobbuf = c->oobbuf; in jffs2_check_oob_empty()
1032 ops.len = ops.ooboffs = ops.retlen = ops.oobretlen = 0; in jffs2_check_oob_empty()
1033 ops.datbuf = NULL; in jffs2_check_oob_empty()
1035 ret = c->mtd->read_oob(c->mtd, jeb->offset, &ops); in jffs2_check_oob_empty()
1036 if (ret || ops.oobretlen != ops.ooblen) { in jffs2_check_oob_empty()
1039 jeb->offset, ops.ooblen, ops.oobretlen, ret); in jffs2_check_oob_empty()
1045 for(i = 0; i < ops.ooblen; i++) { in jffs2_check_oob_empty()
[all …]
/fs/configfs/
Dfile.c48 struct configfs_item_operations * ops; member
68 struct configfs_item_operations * ops = buffer->ops; in fill_read_buffer() local
77 count = ops->show_attribute(item,attr,buffer->page); in fill_read_buffer()
174 struct configfs_item_operations * ops = buffer->ops; in flush_write_buffer() local
176 return ops->store_attribute(item,attr,buffer->page,count); in flush_write_buffer()
218 struct configfs_item_operations * ops = NULL; in check_perm() local
231 ops = item->ci_type->ct_item_ops; in check_perm()
241 if (!(inode->i_mode & S_IWUGO) || !ops->store_attribute) in check_perm()
251 if (!(inode->i_mode & S_IRUGO) || !ops->show_attribute) in check_perm()
265 buffer->ops = ops; in check_perm()
/fs/fat/
Dfatent.c103 struct fatent_operations *ops = MSDOS_SB(sb)->fatent_ops; in fat_ent_bread() local
113 ops->ent_set_ptr(fatent, offset); in fat_ent_bread()
313 struct fatent_operations *ops = sbi->fatent_ops; in fat_ent_update_ptr() local
334 ops->ent_set_ptr(fatent, offset); in fat_ent_update_ptr()
342 struct fatent_operations *ops = sbi->fatent_ops; in fat_ent_read() local
353 ops->ent_blocknr(sb, entry, &offset, &blocknr); in fat_ent_read()
357 err = ops->ent_bread(sb, fatent, offset, blocknr); in fat_ent_read()
361 return ops->ent_get(fatent); in fat_ent_read()
400 struct fatent_operations *ops = MSDOS_SB(sb)->fatent_ops; in fat_ent_write() local
403 ops->ent_put(fatent, new); in fat_ent_write()
[all …]
/fs/sysfs/
Dfile.c56 struct sysfs_ops * ops; member
78 struct sysfs_ops * ops = buffer->ops; in fill_read_buffer() local
92 count = ops->show(kobj, attr_sd->s_attr.attr, buffer->page); in fill_read_buffer()
102 (unsigned long)ops->show); in fill_read_buffer()
202 struct sysfs_ops * ops = buffer->ops; in flush_write_buffer() local
209 rc = ops->store(kobj, attr_sd->s_attr.attr, buffer->page, count); in flush_write_buffer()
337 struct sysfs_ops *ops; in sysfs_open_file() local
351 ops = kobj->ktype->sysfs_ops; in sysfs_open_file()
363 if (!(inode->i_mode & S_IWUGO) || !ops->store) in sysfs_open_file()
372 if (!(inode->i_mode & S_IRUGO) || !ops->show) in sysfs_open_file()
[all …]
/fs/btrfs/
Dextent_io.c112 tree->ops = NULL; in extent_io_tree_init()
333 if (tree->ops && tree->ops->set_bit_hook) { in set_state_cb()
334 tree->ops->set_bit_hook(tree->mapping->host, state->start, in set_state_cb()
343 if (tree->ops && tree->ops->clear_bit_hook) { in clear_state_cb()
344 tree->ops->clear_bit_hook(tree->mapping->host, state->start, in clear_state_cb()
1654 if (tree->ops && tree->ops->writepage_end_io_hook) { in end_bio_extent_writepage()
1655 ret = tree->ops->writepage_end_io_hook(page, start, in end_bio_extent_writepage()
1661 if (!uptodate && tree->ops && in end_bio_extent_writepage()
1662 tree->ops->writepage_io_failed_hook) { in end_bio_extent_writepage()
1663 ret = tree->ops->writepage_io_failed_hook(bio, page, in end_bio_extent_writepage()
[all …]
/fs/ext2/
Dxip.c23 struct block_device_operations *ops = bdev->bd_disk->fops; in __inode_direct_access() local
28 BUG_ON(!ops->direct_access); in __inode_direct_access()
29 return ops->direct_access(bdev, sector, kaddr, pfn); in __inode_direct_access()
/fs/nfs/
Dnfs4state.c837 static int nfs4_reclaim_locks(struct nfs4_state *state, const struct nfs4_state_recovery_ops *ops) in nfs4_reclaim_locks() argument
850 status = ops->recover_lock(state, fl); in nfs4_reclaim_locks()
874 …int nfs4_reclaim_open_state(struct nfs4_state_owner *sp, const struct nfs4_state_recovery_ops *ops) in nfs4_reclaim_open_state() argument
891 if (!test_and_clear_bit(ops->state_flag_bit, &state->flags)) in nfs4_reclaim_open_state()
897 status = ops->recover_open(sp, state); in nfs4_reclaim_open_state()
899 status = nfs4_reclaim_locks(state, ops); in nfs4_reclaim_open_state()
1042 static int nfs4_do_reclaim(struct nfs_client *clp, const struct nfs4_state_recovery_ops *ops) in nfs4_do_reclaim() argument
1051 if (!test_and_clear_bit(ops->owner_flag_bit, &sp->so_flags)) in nfs4_do_reclaim()
1055 status = nfs4_reclaim_open_state(sp, ops); in nfs4_do_reclaim()
1057 set_bit(ops->owner_flag_bit, &sp->so_flags); in nfs4_do_reclaim()
/fs/dlm/
Dlowcomms.c673 newsock->ops = con->sock->ops; in tcp_accept_from_sock()
675 result = con->sock->ops->accept(con->sock, newsock, O_NONBLOCK); in tcp_accept_from_sock()
681 if (newsock->ops->getname(newsock, (struct sockaddr *)&peeraddr, in tcp_accept_from_sock()
907 result = sock->ops->bind(sock, (struct sockaddr *) &src_addr, in tcp_connect_to_sock()
918 sock->ops->connect(sock, (struct sockaddr *)&saddr, addr_len, in tcp_connect_to_sock()
979 result = sock->ops->bind(sock, (struct sockaddr *) saddr, addr_len); in tcp_create_listen_sock()
993 result = sock->ops->listen(sock, 5); in tcp_create_listen_sock()
1109 result = sock->ops->listen(sock, 5); in sctp_listen_for_all()
1258 sendpage = con->sock->ops->sendpage; in send_to_sock()
/fs/proc/
Dproc_tty.c147 if (!driver->ops->read_proc || !driver->driver_name || in proc_tty_register_driver()
154 ent->read_proc = driver->ops->read_proc; in proc_tty_register_driver()
Dproc_net.c35 const struct seq_operations *ops, int size) in seq_open_net() argument
46 p = __seq_open_private(f, ops, size); in seq_open_net()
/fs/smbfs/
Dproc.c269 server->ops->convert = convert_cp; in smb_setcodepage()
271 server->ops->convert = convert_memcpy; in smb_setcodepage()
345 len = server->ops->convert(path, maxlen-2, in smb_build_path()
384 len = server->ops->convert(path, maxlen-2, in smb_build_path()
914 install_ops(server->ops, &smb_ops_core); in smb_newconn()
916 install_ops(server->ops, &smb_ops_os2); in smb_newconn()
923 install_ops(server->ops, &smb_ops_win95); in smb_newconn()
931 install_ops(server->ops, &smb_ops_winNT); in smb_newconn()
936 server->ops->getattr = smb_proc_getattr_core; in smb_newconn()
938 server->ops->getattr = smb_proc_getattr_ff; in smb_newconn()
[all …]
/fs/ocfs2/cluster/
Dtcp.c920 ret = sc->sc_sock->ops->sendpage(sc->sc_sock, in o2net_sendpage()
1423 ret = sock->ops->setsockopt(sock, SOL_TCP, TCP_NODELAY, in o2net_set_nodelay()
1597 ret = sock->ops->bind(sock, (struct sockaddr *)&myaddr, in o2net_start_connect()
1622 ret = sc->sc_sock->ops->connect(sc->sc_sock, in o2net_start_connect()
1772 new_sock->ops = sock->ops; in o2net_accept_one()
1773 ret = sock->ops->accept(sock, new_sock, O_NONBLOCK); in o2net_accept_one()
1786 ret = new_sock->ops->getname(new_sock, (struct sockaddr *) &sin, in o2net_accept_one()
1924 ret = sock->ops->bind(sock, (struct sockaddr *)&sin, sizeof(sin)); in o2net_open_listening_sock()
1931 ret = sock->ops->listen(sock, 64); in o2net_open_listening_sock()
/fs/nfsd/
Dnfs4xdr.c1067 struct nfsd4_minorversion_ops *ops; in nfsd4_decode_compound() local
1089 argp->ops = kmalloc(argp->opcnt * sizeof(*argp->ops), GFP_KERNEL); in nfsd4_decode_compound()
1090 if (!argp->ops) { in nfsd4_decode_compound()
1091 argp->ops = argp->iops; in nfsd4_decode_compound()
1100 ops = &nfsd4_minorversion[argp->minorversion]; in nfsd4_decode_compound()
1102 op = &argp->ops[i]; in nfsd4_decode_compound()
1138 if (op->opnum >= OP_ACCESS && op->opnum < ops->nops) in nfsd4_decode_compound()
1139 op->status = ops->decoders[op->opnum](argp, &op->u); in nfsd4_decode_compound()
2684 if (args->ops != args->iops) { in nfsd4_release_compoundargs()
2685 kfree(args->ops); in nfsd4_release_compoundargs()
[all …]

12