| /linux/fs/9p/ |
| H A D | fid.h | 19 void v9fs_fid_add(struct dentry *dentry, struct p9_fid **fid); 20 void v9fs_open_fid_add(struct inode *inode, struct p9_fid **fid); 21 static inline struct p9_fid *clone_fid(struct p9_fid *fid) in clone_fid() argument 23 return IS_ERR(fid) ? fid : p9_client_walk(fid, 0, NULL, 1); in clone_fid() 27 struct p9_fid *fid, *nfid; in v9fs_fid_clone() local 29 fid = v9fs_fid_lookup(dentry); in v9fs_fid_clone() 30 if (!fid || IS_ERR(fid)) in v9fs_fid_clone() 31 return fid; in v9fs_fid_clone() 33 nfid = clone_fid(fid); in v9fs_fid_clone() 34 p9_fid_put(fid); in v9fs_fid_clone() [all …]
|
| H A D | xattr.c | 18 ssize_t v9fs_fid_xattr_get(struct p9_fid *fid, const char *name, in v9fs_fid_xattr_get() argument 30 attr_fid = p9_client_xattrwalk(fid, name, &attr_size); in v9fs_fid_xattr_get() 68 struct p9_fid *fid; in v9fs_xattr_get() local 73 fid = v9fs_fid_lookup(dentry); in v9fs_xattr_get() 74 if (IS_ERR(fid)) in v9fs_xattr_get() 75 return PTR_ERR(fid); in v9fs_xattr_get() 76 ret = v9fs_fid_xattr_get(fid, name, buffer, buffer_size); in v9fs_xattr_get() 77 p9_fid_put(fid); in v9fs_xattr_get() 98 struct p9_fid *fid; in v9fs_xattr_set() local 100 fid = v9fs_fid_lookup(dentry); in v9fs_xattr_set() [all …]
|
| H A D | acl.h | 10 int v9fs_get_acl(struct inode *inode, struct p9_fid *fid); 17 int v9fs_acl_chmod(struct inode *inode, struct p9_fid *fid); 18 int v9fs_set_create_acl(struct inode *inode, struct p9_fid *fid, 27 static inline int v9fs_get_acl(struct inode *inode, struct p9_fid *fid) in v9fs_get_acl() argument 31 static inline int v9fs_acl_chmod(struct inode *inode, struct p9_fid *fid) in v9fs_acl_chmod() argument 36 struct p9_fid *fid, in v9fs_set_create_acl() argument
|
| /linux/fs/afs/ |
| H A D | fsclient.c | 21 static void xdr_decode_AFSFid(const __be32 **_bp, struct afs_fid *fid) in xdr_decode_AFSFid() argument 25 fid->vid = ntohl(*bp++); in xdr_decode_AFSFid() 26 fid->vnode = ntohl(*bp++); in xdr_decode_AFSFid() 27 fid->unique = ntohl(*bp++); in xdr_decode_AFSFid() 279 key_serial(op->key), vp->fid.vid, vp->fid.vnode); in afs_fs_fetch_status() 289 bp[1] = htonl(vp->fid.vid); in afs_fs_fetch_status() 290 bp[2] = htonl(vp->fid.vnode); in afs_fs_fetch_status() 291 bp[3] = htonl(vp->fid.unique); in afs_fs_fetch_status() 293 call->fid = vp->fid; in afs_fs_fetch_status() 294 trace_afs_make_fs_call(call, &vp->fid); in afs_fs_fetch_status() [all …]
|
| H A D | yfsclient.c | 20 static void xdr_decode_YFSFid(const __be32 **_bp, struct afs_fid *fid) in xdr_decode_YFSFid() argument 24 fid->vid = xdr_to_u64(x->volume); in xdr_decode_YFSFid() 25 fid->vnode = xdr_to_u64(x->vnode.lo); in xdr_decode_YFSFid() 26 fid->vnode_hi = ntohl(x->vnode.hi); in xdr_decode_YFSFid() 27 fid->unique = ntohl(x->vnode.unique); in xdr_decode_YFSFid() 45 static __be32 *xdr_encode_YFSFid(__be32 *bp, struct afs_fid *fid) in xdr_encode_YFSFid() argument 49 x->volume = u64_to_xdr(fid->vid); in xdr_encode_YFSFid() 50 x->vnode.lo = u64_to_xdr(fid->vnode); in xdr_encode_YFSFid() 51 x->vnode.hi = htonl(fid->vnode_hi); in xdr_encode_YFSFid() 52 x->vnode.unique = htonl(fid->unique); in xdr_encode_YFSFid() [all …]
|
| H A D | inode.c | 39 vnode->fid.vid, in dump_vnode() 40 vnode->fid.vnode, in dump_vnode() 41 vnode->fid.unique); in dump_vnode() 44 parent_vnode->fid.vid, in dump_vnode() 45 parent_vnode->fid.vnode, in dump_vnode() 46 parent_vnode->fid.unique); in dump_vnode() 72 vp->fid.vid, vp->fid.vnode, vp->fid.unique, in afs_inode_init_from_status() 175 vp->fid.vid, vp->fid.vnode, vp->fid.unique, in afs_apply_status() 182 vnode->fid.vid, in afs_apply_status() 183 vnode->fid.vnode, in afs_apply_status() [all …]
|
| H A D | dynroot.c | 23 struct afs_fid *fid = opaque; in afs_iget5_pseudo_test() local 25 return inode->i_ino == fid->vnode; in afs_iget5_pseudo_test() 35 struct afs_fid *fid = opaque; in afs_iget5_pseudo_set() local 38 vnode->fid = *fid; in afs_iget5_pseudo_set() 39 inode->i_ino = fid->vnode; in afs_iget5_pseudo_set() 40 inode->i_generation = fid->unique; in afs_iget5_pseudo_set() 51 struct afs_fid fid = { .vnode = ino, .unique = 1, }; in afs_iget_pseudo_dir() local 55 inode = iget5_locked(sb, fid.vnode, in afs_iget_pseudo_dir() 56 afs_iget5_pseudo_test, afs_iget5_pseudo_set, &fid); in afs_iget_pseudo_dir() 63 inode, inode->i_ino, fid.vid, fid.vnode, fid.unique); in afs_iget_pseudo_dir() [all …]
|
| H A D | callback.c | 95 trace_afs_cb_break(&vnode->fid, vnode->cb_break, reason, true); in __afs_break_callback() 97 trace_afs_cb_break(&vnode->fid, vnode->cb_break, reason, false); in __afs_break_callback() 183 struct afs_fid *fid) in afs_break_one_callback() argument 197 inode = find_inode_rcu(sb, fid->vnode, afs_ilookup5_test_by_fid, fid); in afs_break_one_callback() 202 trace_afs_cb_miss(fid, afs_cb_break_for_callback); in afs_break_one_callback() 212 afs_volid_t vid = cbb->fid.vid; in afs_break_some_callbacks() 221 } else if (cbb->fid.vnode == 0 && cbb->fid.unique == 0) { in afs_break_some_callbacks() 232 if (cbb->fid.vid == vid) { in afs_break_some_callbacks() 234 cbb->fid.vid, in afs_break_some_callbacks() 235 cbb->fid.vnode, in afs_break_some_callbacks() [all …]
|
| /linux/drivers/net/dsa/mv88e6xxx/ |
| H A D | global1_atu.c | 20 static int mv88e6xxx_g1_atu_fid_write(struct mv88e6xxx_chip *chip, u16 fid) in mv88e6xxx_g1_atu_fid_write() argument 22 return mv88e6xxx_g1_write(chip, MV88E6352_G1_ATU_FID, fid & 0xfff); in mv88e6xxx_g1_atu_fid_write() 132 static int mv88e6xxx_g1_atu_op(struct mv88e6xxx_chip *chip, u16 fid, u16 op) in mv88e6xxx_g1_atu_op() argument 139 err = mv88e6xxx_g1_atu_fid_write(chip, fid); in mv88e6xxx_g1_atu_op() 150 val = (val & 0x0fff) | ((fid << 8) & 0xf000); in mv88e6xxx_g1_atu_op() 157 op |= (fid & 0x30) << 4; in mv88e6xxx_g1_atu_op() 161 op |= fid & 0xf; in mv88e6xxx_g1_atu_op() 172 int mv88e6xxx_g1_atu_get_next(struct mv88e6xxx_chip *chip, u16 fid) in mv88e6xxx_g1_atu_get_next() argument 174 return mv88e6xxx_g1_atu_op(chip, fid, MV88E6XXX_G1_ATU_OP_GET_NEXT_DB); in mv88e6xxx_g1_atu_get_next() 177 static int mv88e6xxx_g1_atu_fid_read(struct mv88e6xxx_chip *chip, u16 *fid) in mv88e6xxx_g1_atu_fid_read() argument [all …]
|
| H A D | switchdev.c | 26 if (ctx->fid_search == entry->fid) { in __mv88e6xxx_find_vid() 34 static int mv88e6xxx_find_vid(struct mv88e6xxx_chip *chip, u16 fid, u16 *vid) in mv88e6xxx_find_vid() argument 39 ctx.fid_search = fid; in mv88e6xxx_find_vid() 54 struct mv88e6xxx_atu_entry *entry, u16 fid) in mv88e6xxx_handle_miss_violation() argument 65 err = mv88e6xxx_find_vid(chip, fid, &vid); in mv88e6xxx_handle_miss_violation()
|
| /linux/include/trace/events/ |
| H A D | afs.h | 725 TP_PROTO(struct afs_call *call, const struct afs_fid *fid), 727 TP_ARGS(call, fid), 732 __field_struct(struct afs_fid, fid) 738 if (fid) { 739 __entry->fid = *fid; 741 __entry->fid.vid = 0; 742 __entry->fid.vnode = 0; 743 __entry->fid.unique = 0; 749 __entry->fid.vid, 750 __entry->fid.vnode, [all …]
|
| /linux/fs/coda/ |
| H A D | cnode.c | 47 struct CodaFid *fid = (struct CodaFid *)data; in coda_test_inode() local 49 return coda_fideq(&cii->c_fid, fid); in coda_test_inode() 54 struct CodaFid *fid = (struct CodaFid *)data; in coda_set_inode() local 56 cii->c_fid = *fid; in coda_set_inode() 60 struct inode * coda_iget(struct super_block * sb, struct CodaFid * fid, in coda_iget() argument 65 unsigned long hash = coda_f2i(fid); in coda_iget() 69 inode = iget5_locked(sb, hash, coda_test_inode, coda_set_inode, fid); in coda_iget() 97 struct inode *coda_cnode_make(struct CodaFid *fid, struct super_block *sb) in coda_cnode_make() argument 104 error = venus_getattr(sb, fid, &attr); in coda_cnode_make() 108 inode = coda_iget(sb, fid, &attr); in coda_cnode_make() [all …]
|
| H A D | coda_psdev.h | 49 int venus_getattr(struct super_block *sb, struct CodaFid *fid, 52 int venus_lookup(struct super_block *sb, struct CodaFid *fid, 55 int venus_close(struct super_block *sb, struct CodaFid *fid, int flags, 57 int venus_open(struct super_block *sb, struct CodaFid *fid, int flags, 69 int venus_readlink(struct super_block *sb, struct CodaFid *fid, 75 int venus_link(struct super_block *sb, struct CodaFid *fid, 77 int venus_symlink(struct super_block *sb, struct CodaFid *fid, 79 int venus_access(struct super_block *sb, struct CodaFid *fid, int mask); 80 int venus_pioctl(struct super_block *sb, struct CodaFid *fid, 84 int venus_fsync(struct super_block *sb, struct CodaFid *fid); [all …]
|
| H A D | upcall.c | 92 int venus_getattr(struct super_block *sb, struct CodaFid *fid, in venus_getattr() argument 101 inp->coda_getattr.VFid = *fid; in venus_getattr() 111 int venus_setattr(struct super_block *sb, struct CodaFid *fid, in venus_setattr() argument 121 inp->coda_setattr.VFid = *fid; in venus_setattr() 130 int venus_lookup(struct super_block *sb, struct CodaFid *fid, in venus_lookup() argument 143 inp->coda_lookup.VFid = *fid; in venus_lookup() 160 int venus_close(struct super_block *sb, struct CodaFid *fid, int flags, in venus_close() argument 171 inp->coda_close.VFid = *fid; in venus_close() 180 int venus_open(struct super_block *sb, struct CodaFid *fid, in venus_open() argument 190 inp->coda_open_by_fd.VFid = *fid; in venus_open() [all …]
|
| /linux/fs/btrfs/ |
| H A D | export.c | 21 struct btrfs_fid *fid = (struct btrfs_fid *)fh; in btrfs_encode_fh() local 40 fid->objectid = btrfs_ino(BTRFS_I(inode)); in btrfs_encode_fh() 41 fid->root_objectid = btrfs_root_id(BTRFS_I(inode)->root); in btrfs_encode_fh() 42 fid->gen = inode->i_generation; in btrfs_encode_fh() 47 fid->parent_objectid = btrfs_ino(BTRFS_I(parent)); in btrfs_encode_fh() 48 fid->parent_gen = parent->i_generation; in btrfs_encode_fh() 51 if (parent_root_id != fid->root_objectid) { in btrfs_encode_fh() 54 fid->parent_root_objectid = parent_root_id; in btrfs_encode_fh() 106 static struct dentry *btrfs_fh_to_parent(struct super_block *sb, struct fid *fh, in btrfs_fh_to_parent() 109 struct btrfs_fid *fid = (struct btrfs_fid *) fh; in btrfs_fh_to_parent() local [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlxsw/ |
| H A D | spectrum_switchdev.c | 99 const struct mlxsw_sp_fid *fid); 108 u16 fid; member 600 struct mlxsw_sp_fid *fid = mlxsw_sp_port_vlan->fid; in mlxsw_sp_port_vlan_find_by_fid() local 602 if (fid && mlxsw_sp_fid_index(fid) == fid_index) in mlxsw_sp_port_vlan_find_by_fid() 730 return mlxsw_sp_fid_flood_set(mlxsw_sp_port_vlan->fid, in mlxsw_sp_port_bridge_vlan_flood_set() 779 err = mlxsw_sp_fid_flood_set(mlxsw_sp_port_vlan->fid, in mlxsw_sp_bridge_vlans_flood_set() 793 mlxsw_sp_fid_flood_set(mlxsw_sp_port_vlan->fid, packet_type, in mlxsw_sp_bridge_vlans_flood_set() 1130 mdb_entry->key.fid, local_port, true); in mlxsw_sp_mdb_entry_port_get() 1149 mdb_entry->key.fid, local_port, false); in mlxsw_sp_mdb_entry_port_get() 1175 mdb_entry->key.fid, local_port, false); in mlxsw_sp_mdb_entry_port_put() [all …]
|
| /linux/fs/smb/client/ |
| H A D | link.c | 233 struct cifs_fid fid; in cifs_query_mf_symlink() local 246 .fid = &fid, in cifs_query_mf_symlink() 259 io_parms.netfid = fid.netfid; in cifs_query_mf_symlink() 267 CIFSSMBClose(xid, tcon, fid.netfid); in cifs_query_mf_symlink() 278 struct cifs_fid fid; in cifs_create_mf_symlink() local 289 .fid = &fid, in cifs_create_mf_symlink() 296 io_parms.netfid = fid.netfid; in cifs_create_mf_symlink() 303 CIFSSMBClose(xid, tcon, fid.netfid); in cifs_create_mf_symlink() 317 struct cifs_fid fid; in smb3_query_mf_symlink() local 332 .fid = &fid, in smb3_query_mf_symlink() [all …]
|
| H A D | smb2ops.c | 890 struct cifs_fid fid; in smb3_qfs_tcon() local 899 .fid = &fid, in smb3_qfs_tcon() 904 memcpy(&fid, &cfid->fid, sizeof(struct cifs_fid)); in smb3_qfs_tcon() 913 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_qfs_tcon() 915 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_qfs_tcon() 917 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_qfs_tcon() 919 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_qfs_tcon() 922 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb3_qfs_tcon() 935 struct cifs_fid fid; in smb2_qfs_tcon() local 943 .fid = &fid, in smb2_qfs_tcon() [all …]
|
| /linux/tools/power/cpupower/debug/i386/ |
| H A D | powernow-k8-decode.c | 27 static int get_fidvid(uint32_t cpu, uint32_t *fid, uint32_t *vid) in get_fidvid() argument 46 *fid = ((uint32_t )(msr & 0xffffffffull)) & MSR_S_LO_CURRENT_FID; in get_fidvid() 57 static uint32_t find_freq_from_fid(uint32_t fid) in find_freq_from_fid() argument 59 return 800 + (fid * 100); in find_freq_from_fid() 72 uint32_t fid, vid; in main() local 79 err = get_fidvid(cpu, &fid, &vid); in main() 91 find_freq_from_fid(fid), in main()
|
| /linux/drivers/w1/ |
| H A D | w1_family.c | 31 if (f->fid == newf->fid) { in w1_register_family() 63 if (f->fid == fent->fid) { in w1_unregister_family() 75 fent->fid, atomic_read(&fent->refcnt)); in w1_unregister_family() 86 struct w1_family * w1_family_registered(u8 fid) in w1_family_registered() argument 95 if (f->fid == fid) { in w1_family_registered()
|
| /linux/drivers/cpufreq/ |
| H A D | powernow-k8.c | 59 static u32 find_freq_from_fid(u32 fid) in find_freq_from_fid() argument 61 return 800 + (fid * 100); in find_freq_from_fid() 65 static u32 find_khz_freq_from_fid(u32 fid) in find_khz_freq_from_fid() argument 67 return 1000 * find_freq_from_fid(fid); in find_khz_freq_from_fid() 76 static u32 convert_fid_to_vco_fid(u32 fid) in convert_fid_to_vco_fid() argument 78 if (fid < HI_FID_TABLE_BOTTOM) in convert_fid_to_vco_fid() 79 return 8 + (2 * fid); in convert_fid_to_vco_fid() 81 return fid; in convert_fid_to_vco_fid() 135 u8 fid, vid; in fidvid_msr_init() local 139 fid = msr.l & MSR_S_LO_CURRENT_FID; in fidvid_msr_init() [all …]
|
| /linux/arch/riscv/include/asm/ |
| H A D | trace.h | 11 TP_PROTO(int ext, int fid), 12 TP_ARGS(ext, fid), 17 __field(int, fid) 22 __entry->fid = fid; 25 TP_printk("ext=0x%x fid=%d", __entry->ext, __entry->fid)
|
| /linux/drivers/clk/bcm/ |
| H A D | clk-iproc-armpll.c | 69 unsigned int policy, fid, active_fid; in __get_fid() local 81 fid = (val >> (IPROC_CLK_POLICY_FREQ_POLICY_FREQ_SHIFT * policy)) & in __get_fid() 87 if (fid != active_fid) { in __get_fid() 88 pr_debug("%s: fid override %u->%u\n", __func__, fid, in __get_fid() 90 fid = active_fid; in __get_fid() 93 pr_debug("%s: active fid: %u\n", __func__, fid); in __get_fid() 95 return fid; in __get_fid() 108 unsigned int fid; in __get_mdiv() local 112 fid = __get_fid(pll); in __get_mdiv() 114 switch (fid) { in __get_mdiv()
|
| /linux/arch/riscv/kernel/ |
| H A D | sbi_ecall.c | 8 long __sbi_base_ecall(int fid) in __sbi_base_ecall() argument 12 ret = sbi_ecall(SBI_EXT_BASE, fid, 0, 0, 0, 0, 0, 0); in __sbi_base_ecall() 23 int fid, int ext) in __sbi_ecall() argument 27 trace_sbi_call(ext, fid); in __sbi_ecall() 35 register uintptr_t a6 asm ("a6") = (uintptr_t)(fid); in __sbi_ecall()
|
| /linux/fs/jfs/ |
| H A D | jfs_inode.h | 8 struct fid; 25 extern struct dentry *jfs_fh_to_dentry(struct super_block *sb, struct fid *fid, 27 extern struct dentry *jfs_fh_to_parent(struct super_block *sb, struct fid *fid,
|