/third_party/ltp/testcases/kernel/device-drivers/drm/kernel_space/ |
H A D | str_drm.h | 34 extern int tdrm_test_interface(struct inode *inode, struct file *filp, 36 extern int tdrm_test_stub_register(struct inode *inode,struct file *filp, 38 extern int tdrm_test_stub_unregister(struct inode *inode,struct file *filp, 40 extern int tdrm_test_uninit_agp(struct inode *inode,struct file *filp, 42 extern int tdrm_test_init_agp(struct inode *inode,struc [all...] |
H A D | tdrm.c | 81 int tdrm_test_stub_register(struct inode *inode, struct file *filp, in tdrm_test_stub_register() argument 92 int tdrm_test_stub_unregister(struct inode *inode, struct file *filp, in tdrm_test_stub_unregister() argument 99 int tdrm_test_uninit_agp(struct inode *inode, struct file *filp, in tdrm_test_uninit_agp() argument 106 int tdrm_test_init_agp(struct inode *inode, struct file *filp, in tdrm_test_init_agp() argument 113 int tdrm_test_add_magic(struct inode *inode, struc argument 122 tdrm_test_remove_magic(struct inode *inode, struct file *filp, unsigned int cmd, unsigned long arg) tdrm_test_remove_magic() argument 131 tdrm_test_ctxbitmap_init(struct inode *inode, struct file *filp, unsigned int cmd, unsigned long arg) tdrm_test_ctxbitmap_init() argument 139 tdrm_test_ctxbitmap_cleanup(struct inode *inode, struct file *filp, unsigned int cmd, unsigned long arg) tdrm_test_ctxbitmap_cleanup() argument 148 tdrm_test_alloc_pages(struct inode *inode, struct file *filp, unsigned int cmd, unsigned long arg) tdrm_test_alloc_pages() argument 156 tdrm_test_free_pages(struct inode *inode, struct file *filp, unsigned int cmd, unsigned long arg) tdrm_test_free_pages() argument [all...] |
/third_party/ltp/testcases/kernel/syscalls/utils/ |
H A D | inotify.h | 72 * struct inotify_watch - represents a watch request on a specific inode 75 * i_list, mask are protected by inode->inotify_mutex of the associated inode. 76 * ih, inode, and wd are never written to once the watch is created. 84 struct list_head i_list; /* entry in inode's list */ 87 struct inode *inode; /* associated inode */ member 94 const char *, struct inode *); 102 extern void inotify_d_instantiate(struct dentry *, struct inode *); 132 inotify_d_instantiate(struct dentry *dentry, struct inode *inode) inotify_d_instantiate() argument 141 inotify_inode_queue_event(struct inode *inode, __u32 mask, __u32 cookie, const char *filename, struct inode *n_inode) inotify_inode_queue_event() argument 158 inotify_inode_is_dead(struct inode *inode) inotify_inode_is_dead() argument 180 inotify_find_watch(struct inotify_handle *ih, struct inode *inode, struct inotify_watch **watchp) inotify_find_watch() argument 186 inotify_find_update_watch(struct inotify_handle *ih, struct inode *inode, u32 mask) inotify_find_update_watch() argument 192 inotify_add_watch(struct inotify_handle *ih, struct inotify_watch *watch, struct inode *inode, __u32 mask) inotify_add_watch() argument [all...] |
/third_party/skia/third_party/externals/freetype/src/cache/ |
H A D | ftcimage.c | 33 FTC_INode inode = (FTC_INode)ftcinode; in ftc_inode_free() local 37 if ( inode->glyph ) in ftc_inode_free() 39 FT_Done_Glyph( inode->glyph ); in ftc_inode_free() 40 inode->glyph = NULL; in ftc_inode_free() 43 FTC_GNode_Done( FTC_GNODE( inode ), cache ); in ftc_inode_free() 44 FT_FREE( inode ); in ftc_inode_free() 49 FTC_INode_Free( FTC_INode inode, in FTC_INode_Free() argument 52 ftc_inode_free( FTC_NODE( inode ), cache ); in FTC_INode_Free() 64 FTC_INode inode = NULL; in FT_LOCAL_DEF() local 67 if ( !FT_NEW( inode ) ) in FT_LOCAL_DEF() 110 FTC_INode inode = (FTC_INode)ftcinode; FT_LOCAL_DEF() local [all...] |
/third_party/ltp/testcases/kernel/fs/scsi/ltpfs/ |
H A D | LtpfsCmds.c | 36 static int ltpdev_open(struct inode *inode, struct file *pfile); 37 static int ltpdev_release(struct inode *inode, struct file *pfile); 38 static int ltpdev_ioctl(struct inode *pinode, struct file *pfile, 69 static int ltpdev_open(struct inode *pinode, struct file *pfile) in ltpdev_open() 75 static int ltpdev_release(struct inode *pinode, struct file *pfile) in ltpdev_release() 82 static int ltpdev_ioctl(struct inode *pinode, struct file *pfile, in ltpdev_ioctl() 262 struct inode *inode; in lookup_bdev() local 293 bd_acquire(struct inode *inode) bd_acquire() argument [all...] |
/third_party/f2fs-tools/fsck/ |
H A D | xattr.c | 20 void *read_all_xattrs(struct f2fs_sb_info *sbi, struct f2fs_node *inode) in read_all_xattrs() argument 24 u64 inline_size = inline_xattr_size(&inode->i); in read_all_xattrs() 25 nid_t xnid = le32_to_cpu(inode->i.i_xattr_nid); in read_all_xattrs() 46 memcpy(txattr_addr, inline_xattr_addr(&inode->i), inline_size); in read_all_xattrs() 84 struct f2fs_node *inode, __u32 hsize, void *txattr_addr) in write_all_xattrs() 92 nid_t xnid = le32_to_cpu(inode->i.i_xattr_nid); in write_all_xattrs() 93 u64 inline_size = inline_xattr_size(&inode->i); in write_all_xattrs() 96 memcpy(inline_xattr_addr(&inode->i), txattr_addr, inline_size); in write_all_xattrs() 104 set_new_dnode(&dn, inode, NULL, new_nid); in write_all_xattrs() 109 inode in write_all_xattrs() 83 write_all_xattrs(struct f2fs_sb_info *sbi, struct f2fs_node *inode, __u32 hsize, void *txattr_addr) write_all_xattrs() argument 136 struct f2fs_node *inode; f2fs_setxattr() local [all...] |
H A D | segment.c | 154 struct f2fs_node *inode; in f2fs_quota_size() local 157 inode = (struct f2fs_node *) calloc(BLOCK_SZ, 1); in f2fs_quota_size() 158 ASSERT(inode); in f2fs_quota_size() 160 /* Read inode */ in f2fs_quota_size() 162 ASSERT(dev_read_block(inode, ni.blk_addr) >= 0); in f2fs_quota_size() 163 ASSERT(S_ISREG(le16_to_cpu(inode->i.i_mode))); in f2fs_quota_size() 165 filesize = le64_to_cpu(inode->i.i_size); in f2fs_quota_size() 166 free(inode); in f2fs_quota_size() 175 struct f2fs_node *inode; in f2fs_read() local 187 /* Memory allocation for block buffer and inode in f2fs_read() 265 struct f2fs_node *inode; f2fs_write_ex() local 404 struct f2fs_node *inode; f2fs_filesize_update() local 481 update_extent_info(struct f2fs_node *inode, struct extent_info *ext) update_extent_info() argument 493 struct f2fs_node *inode; update_largest_extent() local [all...] |
H A D | mkquota.c | 119 static inline qid_t get_qid(struct f2fs_inode *inode, enum quota_type qtype) in get_qid() argument 123 return inode->i_uid; in get_qid() 125 return inode->i_gid; in get_qid() 127 return inode->i_projid; in get_qid() 226 * Called to update the blocks used by a particular inode 228 void quota_data_add(quota_ctx_t qctx, struct f2fs_inode *inode, qsize_t space) in quota_data_add() argument 240 dq = get_dq(dict, get_qid(inode, qtype)); in quota_data_add() 248 * Called to remove some blocks used by a particular inode 250 void quota_data_sub(quota_ctx_t qctx, struct f2fs_inode *inode, qsize_t space) in quota_data_sub() argument 262 dq = get_dq(dict, get_qid(inode, qtyp in quota_data_sub() 271 quota_data_inodes(quota_ctx_t qctx, struct f2fs_inode *inode, int adjust) quota_data_inodes() argument 291 quota_add_inode_usage(quota_ctx_t qctx, f2fs_ino_t ino, struct f2fs_inode* inode) quota_add_inode_usage() argument [all...] |
H A D | xattr.h | 140 #define MAX_XATTR_SIZE(inode) (XATTR_ALIGN((MAX_INLINE_XATTR_SIZE(inode)) + \ 143 #define MAX_VALUE_LEN(inode) (MAX_XATTR_SIZE(inode) - \ 147 #define MAX_INLINE_XATTR_SIZE(inode) (inline_xattr_size(inode))
|
H A D | dir.c | 298 * Parent inode needs updating, because its inode info may be changed. in f2fs_add_link() 336 static void make_empty_dir(struct f2fs_sb_info *sbi, struct f2fs_node *inode) in make_empty_dir() argument 339 nid_t ino = le32_to_cpu(inode->footer.ino); in make_empty_dir() 340 nid_t pino = le32_to_cpu(inode->i.i_pino); in make_empty_dir() 373 inode->i.i_addr[get_extra_isize(inode)] = cpu_to_le32(blkaddr); in make_empty_dir() 377 static void page_symlink(struct f2fs_sb_info *sbi, struct f2fs_node *inode, in page_symlink() argument 380 nid_t ino = le32_to_cpu(inode->footer.ino); in page_symlink() 390 if ((unsigned long)(symlen + 1) <= MAX_INLINE_DATA(inode)) { in page_symlink() 553 struct f2fs_inode *inode = &(node->i); convert_inline_dentry() local [all...] |
/third_party/libfuse/example/ |
H A D | passthrough_hp.cc | 103 // the drawback that we can no longer re-use inode numbers, and thus 105 // right inode number). 134 Inode(Inode&& inode) = delete; member 135 Inode& operator=(Inode&& inode) = delete; member 175 Inode* inode = reinterpret_cast<Inode*>(ino); in get_inode() 176 if(inode->fd == -1) { in get_inode() 177 cerr << "INTERNAL ERROR: Unknown inode " << ino << endl; in get_inode() 180 return *inode; in get_inode() 219 Inode& inode = get_inode(ino); in sfs_getattr() local 221 auto res = fstatat(inode in sfs_getattr() 233 Inode& inode = get_inode(ino); do_setattr() local 476 Inode& inode = get_inode(ino); sfs_link() local 547 Inode& inode = get_inode(e.ino); sfs_unlink() local 569 Inode& inode = get_inode(ino); forget_one() local 612 Inode& inode = get_inode(ino); sfs_readlink() local 647 Inode& inode = get_inode(ino); sfs_opendir() local 697 Inode& inode = get_inode(ino); do_readdir() local 835 Inode& inode = get_inode(e.ino); sfs_create() local 856 Inode& inode = get_inode(ino); sfs_open() local 897 Inode& inode = get_inode(ino); sfs_release() local 1003 Inode& inode = get_inode(ino); sfs_getxattr() local 1046 Inode& inode = get_inode(ino); sfs_listxattr() local 1088 Inode& inode = get_inode(ino); sfs_setxattr() local 1104 Inode& inode = get_inode(ino); sfs_removexattr() local [all...] |
H A D | passthrough_ll.c | 221 struct lo_inode *inode = lo_inode(req, ino); in lo_setattr() local 222 int ifd = inode->fd; in lo_setattr() 316 struct lo_inode *inode; in lo_do_lookup() local 330 inode = lo_find(lo_data(req), &e->attr); in lo_do_lookup() 331 if (inode) { in lo_do_lookup() 338 inode = calloc(1, sizeof(struct lo_inode)); in lo_do_lookup() 339 if (!inode) in lo_do_lookup() 342 inode->refcount = 1; in lo_do_lookup() 343 inode->fd = newfd; in lo_do_lookup() 344 inode in lo_do_lookup() 440 struct lo_inode *inode = lo_inode(req, ino); lo_link() local 512 unref_inode(struct lo_data *lo, struct lo_inode *inode, uint64_t n) unref_inode() argument 540 struct lo_inode *inode = lo_inode(req, ino); lo_forget_one() local 955 struct lo_inode *inode = lo_inode(req, ino); lo_getxattr() local 1005 struct lo_inode *inode = lo_inode(req, ino); lo_listxattr() local 1055 struct lo_inode *inode = lo_inode(req, ino); lo_setxattr() local 1080 struct lo_inode *inode = lo_inode(req, ino); lo_removexattr() local [all...] |
/third_party/ntfs-3g/ntfsprogs/ |
H A D | ntfscat.c | 85 " -i, --inode NUM Display this inode\n\n" in usage() 168 { "inode", required_argument, NULL, 'i' }, in parse_options() 185 opts.inode = -1; in parse_options() 222 if (opts.inode != -1) in parse_options() 223 ntfs_log_error("You must specify exactly one inode.\n"); in parse_options() 224 else if (utils_parse_size(optarg, &opts.inode, FALSE)) in parse_options() 227 ntfs_log_error("Couldn't parse inode number.\n"); in parse_options() 283 } else if (opts.file == NULL && opts.inode == -1) { in parse_options() 284 ntfs_log_error("You must specify a file or inode " in parse_options() 318 index_get_size(ntfs_inode *inode) index_get_size() argument 334 cat(ntfs_volume *vol, ntfs_inode *inode, ATTR_TYPES type, ntfschar *name, int namelen) cat() argument 405 ntfs_inode *inode; main() local [all...] |
H A D | utils.c | 454 * has been created without an inode, it won't overflow the buffer. 484 * the buffer, since we created the search context without an inode. 517 * using inode 522 * get inode of parent 525 int utils_inode_get_name(ntfs_inode *inode, char *buffer, int bufsize) in utils_inode_get_name() argument 540 if (!inode || !buffer) { in utils_inode_get_name() 545 vol = inode->vol; in utils_inode_get_name() 552 ctx = ntfs_attr_get_search_ctx(inode, NULL); in utils_inode_get_name() 558 //ntfs_log_debug("i = %d, inode = %p (%lld)\n", i, inode, inod in utils_inode_get_name() 856 utils_is_metadata(ntfs_inode *inode) utils_is_metadata() argument [all...] |
H A D | ntfsinfo.c | 74 #include "inode.h" 90 s64 inode; /* Info for this inode */ member 136 " -i, --inode NUM Display information about this inode\n" in usage() 166 { "inode", required_argument, NULL, 'i' }, in parse_options() 184 opts.inode = -1; in parse_options() 196 if ((opts.inode != -1) || in parse_options() 197 (!utils_parse_size(optarg, &opts.inode, FALSE))) { in parse_options() 203 /* The inode ca in parse_options() 1254 u64 inode; ntfs_dump_sds() local 2012 ntfs_dump_attr_reparse_point(ATTR_RECORD *attr __attribute__((unused)), ntfs_inode *inode) ntfs_dump_attr_reparse_point() argument 2273 ntfs_dump_inode_general_info(ntfs_inode *inode) ntfs_dump_inode_general_info() argument 2348 ntfs_dump_file_attributes(ntfs_inode *inode) ntfs_dump_file_attributes() argument 2482 ntfs_inode *inode; main() local [all...] |
H A D | ntfsdecrypt.c | 129 s64 inode; /* Inode to work with */ member 172 " -i, --inode num Display this inode\n\n" in usage() 200 {"inode", required_argument, NULL, 'i'}, in parse_options() 215 opts.inode = -1; in parse_options() 249 if (opts.inode != -1) in parse_options() 251 "inode.\n"); in parse_options() 252 else if (utils_parse_size(optarg, &opts.inode, FALSE)) in parse_options() 255 ntfs_log_error("Couldn't parse inode number.\n"); in parse_options() 288 } else if (opts.file == NULL && opts.inode in parse_options() 1232 ntfs_inode_fek_get(ntfs_inode *inode, ntfs_rsa_private_key rsa_key, char *thumbprint, int thumbprint_size, NTFS_DF_TYPES df_type) ntfs_inode_fek_get() argument 1365 ntfs_cat_decrypt(ntfs_inode *inode, ntfs_fek *fek) ntfs_cat_decrypt() argument 1434 ntfs_feed_encrypt(ntfs_inode *inode, ntfs_fek *fek) ntfs_feed_encrypt() argument 1543 ntfs_inode *inode; main() local [all...] |
/third_party/NuttX/drivers/usbdev/gadget/ |
H A D | f_mass_storage_ram.c | 58 static int ram_open(struct inode *filep) in ram_open() 64 static int ram_close(struct inode *filep) in ram_close() 70 static ssize_t ram_read(struct inode *ram_inode, uint8_t *buffer, in ram_read() 94 static ssize_t ram_write(struct inode *ram_inode, const uint8_t *buffer, in ram_write() 118 static int ram_geometry(struct inode *ram_inode, struct geometry *ram_geometry) in ram_geometry() 134 static int ram_ioctl(struct inode *ram_inode, int cmd, unsigned long arg) in ram_ioctl() 220 struct inode *inode; in ram_mass_storage_deinit() local 231 inode = inode_find(fullpath, NULL); in ram_mass_storage_deinit() 232 if (inode in ram_mass_storage_deinit() [all...] |
/third_party/toybox/toys/pending/ |
H A D | lsof.c | 128 static struct file_info *add_socket(ino_t inode, const char *type) in add_socket() argument 133 fi->st_ino = inode; in add_socket() 140 long inode; in scan_unix() local 143 if (sscanf(line, "%*p: %*X %*X %*X %*X %*X %lu %n", &inode, &path_pos) >= 1) { in scan_unix() 144 struct file_info *fi = add_socket(inode, "unix"); in scan_unix() 154 long inode; in scan_netlink() local 162 if (sscanf(line, "%*p %u %*u %*x %*u %*u %*u %*u %*u %lu", &state, &inode)<2) in scan_netlink() 165 struct file_info *fi = add_socket(inode, "netlink"); in scan_netlink() 180 long inode; in scan_ip() local 187 &state, &inode) in scan_ip() 217 find_socket(struct file_info *fi, long inode) find_socket() argument 333 long inode; visit_maps() local [all...] |
/third_party/ltp/testcases/kernel/device-drivers/v4l/kernel_space/ |
H A D | video_dummy.c | 13 static int dummy_open(struct inode *inode, struct file *file) in dummy_open() argument 15 int minor = iminor(inode); in dummy_open() 22 static int dummy_close(struct inode *inode, struct file *file) in dummy_close() argument 24 int minor = iminor(inode); in dummy_close()
|
/third_party/exfatprogs/lib/ |
H A D | exfat_dir.c | 21 #define fsck_err(parent, inode, fmt, ...) \ 24 parent, inode); \ 714 static int exfat_map_cluster(struct exfat *exfat, struct exfat_inode *inode, in exfat_map_cluster() argument 719 if (!exfat_heap_clus(exfat, inode->first_clus)) in exfat_map_cluster() 722 clu = inode->first_clus; in exfat_map_cluster() 726 last_count = DIV_ROUND_UP(inode->size, exfat->clus_size); in exfat_map_cluster() 731 if (count * exfat->clus_size > inode->size) in exfat_map_cluster() 739 if (exfat_get_inode_next_clus(exfat, inode, clu, &next)) in exfat_map_cluster() 797 static int exfat_alloc_cluster(struct exfat *exfat, struct exfat_inode *inode, in exfat_alloc_cluster() argument 802 bool need_dset = inode ! in exfat_alloc_cluster() [all...] |
/third_party/ltp/testcases/kernel/device-drivers/dev_sim_framework/kernel_space/ |
H A D | tmod.c | 46 static int tmod_ioctl(struct inode *, struct file *, unsigned int, 48 static int tmod_open(struct inode *, struct file *); 49 static int tmod_close(struct inode *, struct file *); 71 static int tmod_open(struct inode *ino, struct file *f) in tmod_open() 76 static int tmod_close(struct inode *ino, struct file *f) in tmod_close() 88 * will represent the inode and file pointers in 94 static int tmod_ioctl(struct inode *ino, struct file *f, in tmod_ioctl()
|
/third_party/ltp/testcases/kernel/device-drivers/nls/ |
H A D | nlsTest.c | 60 static int test_open(struct inode *, struct file *); 61 static int test_release(struct inode *, struct file *); 62 static int test_ioctl(struct inode *, struct file *, 87 static int test_open(struct inode *inode, struct file *f) in test_open() argument 97 static int test_release(struct inode *ino, struct file *f) in test_release() 107 static int test_ioctl(struct inode *ino, struct file *f, in test_ioctl()
|
/third_party/ltp/testcases/kernel/mce-test/hwpoison/kinclude/linux/ |
H A D | fs.h | 1 struct inode; 7 int (*open) (struct inode *, struct file *); 8 int (*release) (struct inode *, struct file *);
|
/third_party/ltp/testcases/kernel/mce-test/tsrc/kinclude/linux/ |
H A D | fs.h | 1 struct inode; 7 int (*open) (struct inode *, struct file *); 8 int (*release) (struct inode *, struct file *);
|
/third_party/ltp/testcases/kernel/device-drivers/include/ |
H A D | includeTest.c | 62 static int test_ioctl(struct inode *, struct file *, unsigned int, 64 static int test_open(struct inode *, struct file *); 65 static int test_close(struct inode *, struct file *); 87 static int test_open(struct inode *ino, struct file *f) in test_open() 93 static int test_close(struct inode *ino, struct file *f) in test_close() 99 static int test_ioctl(struct inode *ino, struct file *f, unsigned int cmd, in test_ioctl()
|