/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_fid.c | 79 void (*setup)(struct mlxsw_sp_fid *fid, const void *arg); 80 int (*configure)(struct mlxsw_sp_fid *fid); 81 void (*deconfigure)(struct mlxsw_sp_fid *fid); 82 int (*index_alloc)(struct mlxsw_sp_fid *fid, const void *arg, 84 bool (*compare)(const struct mlxsw_sp_fid *fid, 86 int (*port_vid_map)(struct mlxsw_sp_fid *fid, 88 void (*port_vid_unmap)(struct mlxsw_sp_fid *fid, 90 int (*vni_set)(struct mlxsw_sp_fid *fid); 91 void (*vni_clear)(struct mlxsw_sp_fid *fid); 92 int (*nve_flood_index_set)(struct mlxsw_sp_fid *fid); [all …]
|
/openbmc/linux/fs/9p/ |
H A D | fid.c | 21 static inline void __add_fid(struct dentry *dentry, struct p9_fid *fid) in __add_fid() argument 23 hlist_add_head(&fid->dlist, (struct hlist_head *)&dentry->d_fsdata); in __add_fid() 35 struct p9_fid *fid = *pfid; in v9fs_fid_add() local 38 __add_fid(dentry, fid); in v9fs_fid_add() 64 struct p9_fid *fid, *ret = NULL; in v9fs_fid_find_inode() local 70 hlist_for_each_entry(fid, h, ilist) { in v9fs_fid_find_inode() 71 if (any || uid_eq(fid->uid, uid)) { in v9fs_fid_find_inode() 72 if (want_writeable && !v9fs_is_writeable(fid->mode)) { in v9fs_fid_find_inode() 74 fid->mode); in v9fs_fid_find_inode() 77 p9_fid_get(fid); in v9fs_fid_find_inode() [all …]
|
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 | vfs_file.c | 44 struct p9_fid *fid; in v9fs_file_open() local 54 fid = file->private_data; in v9fs_file_open() 55 if (!fid) { in v9fs_file_open() 56 fid = v9fs_fid_clone(file_dentry(file)); in v9fs_file_open() 57 if (IS_ERR(fid)) in v9fs_file_open() 58 return PTR_ERR(fid); in v9fs_file_open() 64 err = p9_client_open(fid, writeback_omode); in v9fs_file_open() 67 err = p9_client_open(fid, omode); in v9fs_file_open() 68 fid->mode |= P9L_DIRECT; in v9fs_file_open() 71 err = p9_client_open(fid, omode); in v9fs_file_open() [all …]
|
H A D | vfs_inode_dotl.c | 98 struct p9_fid *fid, in v9fs_qid_iget_dotl() argument 133 retval = v9fs_get_acl(inode, fid); in v9fs_qid_iget_dotl() 146 v9fs_inode_from_fid_dotl(struct v9fs_session_info *v9ses, struct p9_fid *fid, in v9fs_inode_from_fid_dotl() argument 152 st = p9_client_getattr_dotl(fid, P9_STATS_BASIC | P9_STATS_GEN); in v9fs_inode_from_fid_dotl() 156 inode = v9fs_qid_iget_dotl(sb, &st->qid, fid, st, new); in v9fs_inode_from_fid_dotl() 239 struct p9_fid *fid = NULL; in v9fs_vfs_atomic_open_dotl() local 304 fid = p9_client_walk(dfid, 1, &name, 1); in v9fs_vfs_atomic_open_dotl() 305 if (IS_ERR(fid)) { in v9fs_vfs_atomic_open_dotl() 306 err = PTR_ERR(fid); in v9fs_vfs_atomic_open_dotl() 310 inode = v9fs_get_new_inode_from_fid(v9ses, fid, dir->i_sb); in v9fs_vfs_atomic_open_dotl() [all …]
|
H A D | vfs_dir.c | 70 struct p9_fid *fid = filp->private_data; in v9fs_alloc_rdir_buf() local 72 if (!fid->rdir) in v9fs_alloc_rdir_buf() 73 fid->rdir = kzalloc(sizeof(struct p9_rdir) + buflen, GFP_KERNEL); in v9fs_alloc_rdir_buf() 74 return fid->rdir; in v9fs_alloc_rdir_buf() 89 struct p9_fid *fid; in v9fs_dir_readdir() local 95 fid = file->private_data; in v9fs_dir_readdir() 97 buflen = fid->clnt->msize - P9_IOHDRSZ; in v9fs_dir_readdir() 122 err = p9stat_read(fid->clnt, rdir->buf + rdir->head, in v9fs_dir_readdir() 150 struct p9_fid *fid; in v9fs_dir_readdir_dotl() local 156 fid = file->private_data; in v9fs_dir_readdir_dotl() [all …]
|
H A D | vfs_inode.c | 483 v9fs_inode_from_fid(struct v9fs_session_info *v9ses, struct p9_fid *fid, in v9fs_inode_from_fid() argument 489 st = p9_client_stat(fid); in v9fs_inode_from_fid() 606 struct p9_fid *dfid, *ofid = NULL, *fid = NULL; in v9fs_create() local 635 fid = p9_client_walk(dfid, 1, &name, 1); in v9fs_create() 636 if (IS_ERR(fid)) { in v9fs_create() 637 err = PTR_ERR(fid); in v9fs_create() 645 inode = v9fs_get_new_inode_from_fid(v9ses, fid, dir->i_sb); in v9fs_create() 652 v9fs_fid_add(dentry, &fid); in v9fs_create() 660 p9_fid_put(fid); in v9fs_create() 683 struct p9_fid *fid; in v9fs_vfs_create() local [all …]
|
H A D | acl.c | 20 static struct posix_acl *v9fs_fid_get_acl(struct p9_fid *fid, const char *name) in v9fs_fid_get_acl() argument 26 size = v9fs_fid_xattr_get(fid, name, NULL, 0); in v9fs_fid_get_acl() 36 size = v9fs_fid_xattr_get(fid, name, value, size); in v9fs_fid_get_acl() 49 struct p9_fid *fid; in v9fs_acl_get() local 52 fid = v9fs_fid_lookup(dentry); in v9fs_acl_get() 53 if (IS_ERR(fid)) in v9fs_acl_get() 54 return ERR_CAST(fid); in v9fs_acl_get() 56 acl = v9fs_fid_get_acl(fid, name); in v9fs_acl_get() 57 p9_fid_put(fid); in v9fs_acl_get() 61 static struct posix_acl *__v9fs_get_acl(struct p9_fid *fid, const char *name) in __v9fs_get_acl() argument [all …]
|
/openbmc/linux/net/9p/ |
H A D | client.c | 852 struct p9_fid *fid; in p9_fid_create() local 855 fid = kzalloc(sizeof(*fid), GFP_KERNEL); in p9_fid_create() 856 if (!fid) in p9_fid_create() 859 fid->mode = -1; in p9_fid_create() 860 fid->uid = current_fsuid(); in p9_fid_create() 861 fid->clnt = clnt; in p9_fid_create() 862 refcount_set(&fid->count, 1); in p9_fid_create() 866 ret = idr_alloc_u32(&clnt->fids, fid, &fid->fid, P9_NOFID - 1, in p9_fid_create() 871 trace_9p_fid_ref(fid, P9_FID_REF_CREATE); in p9_fid_create() 872 return fid; in p9_fid_create() [all …]
|
/openbmc/qemu/scripts/ |
H A D | analyse-9p-simpletrace.py | 93 def v9fs_attach(self, tag, id, fid, afid, uname, aname): argument 94 …print("TATTACH (tag =", tag, ", fid =", fid, ", afid =", afid, ", uname =", uname, ", aname =", an… 99 def v9fs_stat(self, tag, id, fid): argument 100 print("TSTAT (tag =", tag, ", fid =", fid, ")") 105 def v9fs_getattr(self, tag, id, fid, request_mask): argument 106 … print("TGETATTR (tag =", tag, ", fid =", fid, ", request_mask =", hex(request_mask), ")") 111 def v9fs_walk(self, tag, id, fid, newfid, nwnames): argument 112 … print("TWALK (tag =", tag, ", fid =", fid, ", newfid =", newfid, ", nwnames =", nwnames, ")") 117 def v9fs_open(self, tag, id, fid, mode): argument 118 print("TOPEN (tag =", tag, ", fid =", fid, ", mode =", oct(mode), ")") [all …]
|
/openbmc/linux/include/net/9p/ |
H A D | client.h | 150 u32 fid; member 181 int p9_client_statfs(struct p9_fid *fid, struct p9_rstatfs *sb); 182 int p9_client_rename(struct p9_fid *fid, struct p9_fid *newdirfid, 194 int p9_client_open(struct p9_fid *fid, int mode); 195 int p9_client_fcreate(struct p9_fid *fid, const char *name, u32 perm, int mode, 197 int p9_client_link(struct p9_fid *fid, struct p9_fid *oldfid, const char *newname); 198 int p9_client_symlink(struct p9_fid *fid, const char *name, const char *symname, 202 int p9_client_clunk(struct p9_fid *fid); 203 int p9_client_fsync(struct p9_fid *fid, int datasync); 204 int p9_client_remove(struct p9_fid *fid); [all …]
|
/openbmc/linux/include/linux/ |
H A D | exportfs.h | 118 struct fid { struct 204 struct dentry * (*fh_to_dentry)(struct super_block *sb, struct fid *fid, 206 struct dentry * (*fh_to_parent)(struct super_block *sb, struct fid *fid, 230 extern int exportfs_encode_inode_fh(struct inode *inode, struct fid *fid, 233 extern int exportfs_encode_fh(struct dentry *dentry, struct fid *fid, 236 static inline int exportfs_encode_fid(struct inode *inode, struct fid *fid, in exportfs_encode_fid() argument 239 return exportfs_encode_inode_fh(inode, fid, max_len, NULL, in exportfs_encode_fid() 244 struct fid *fid, int fh_len, 248 extern struct dentry *exportfs_decode_fh(struct vfsmount *mnt, struct fid *fid, 256 struct fid *fid, int fh_len, int fh_type, [all …]
|
/openbmc/linux/include/trace/events/ |
H A D | afs.h | 586 TP_PROTO(struct afs_call *call, const struct afs_fid *fid), 588 TP_ARGS(call, fid), 593 __field_struct(struct afs_fid, fid ) 599 if (fid) { 600 __entry->fid = *fid; 602 __entry->fid.vid = 0; 603 __entry->fid.vnode = 0; 604 __entry->fid.unique = 0; 610 __entry->fid.vid, 611 __entry->fid.vnode, [all …]
|
/openbmc/qemu/hw/9pfs/ |
H A D | trace-events | 8 …9fs_attach(uint16_t tag, uint8_t id, int32_t fid, int32_t afid, char* uname, char* aname) "tag %u … 10 v9fs_stat(uint16_t tag, uint8_t id, int32_t fid) "tag %d id %d fid %d" 12 v9fs_getattr(uint16_t tag, uint8_t id, int32_t fid, uint64_t request_mask) "tag %d id %d fid %d req… 14 v9fs_walk(uint16_t tag, uint8_t id, int32_t fid, int32_t newfid, uint16_t nwnames) "tag %d id %d fi… 16 v9fs_open(uint16_t tag, uint8_t id, int32_t fid, int32_t mode) "tag %d id %d fid %d mode %d" 20 v9fs_fsync(uint16_t tag, uint8_t id, int32_t fid, int datasync) "tag %d id %d fid %d datasync %d" 21 v9fs_clunk(uint16_t tag, uint8_t id, int32_t fid) "tag %d id %d fid %d" 22 v9fs_read(uint16_t tag, uint8_t id, int32_t fid, uint64_t off, uint32_t max_count) "tag %d id %d fi… 24 v9fs_readdir(uint16_t tag, uint8_t id, int32_t fid, uint64_t offset, uint32_t max_count) "tag %d id… 26 v9fs_write(uint16_t tag, uint8_t id, int32_t fid, uint64_t off, uint32_t count, int cnt) "tag %d id… [all …]
|
/openbmc/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 | trace.h | 18 const unsigned char *addr, u16 fid), 20 TP_ARGS(dev, spid, portvec, addr, fid), 27 __field(u16, fid) 35 __entry->fid = fid; 40 __entry->addr, __entry->fid) 45 const unsigned char *addr, u16 fid), 46 TP_ARGS(dev, spid, portvec, addr, fid)); 50 const unsigned char *addr, u16 fid), 51 TP_ARGS(dev, spid, portvec, addr, fid)); 55 const unsigned char *addr, u16 fid), [all …]
|
/openbmc/linux/fs/xfs/ |
H A D | xfs_export.c | 48 struct fid *fid = (struct fid *)fh; in xfs_fs_encode_fh() local 85 fid->i32.parent_ino = XFS_I(parent)->i_ino; in xfs_fs_encode_fh() 86 fid->i32.parent_gen = parent->i_generation; in xfs_fs_encode_fh() 89 fid->i32.ino = XFS_I(inode)->i_ino; in xfs_fs_encode_fh() 90 fid->i32.gen = inode->i_generation; in xfs_fs_encode_fh() 172 xfs_fs_fh_to_dentry(struct super_block *sb, struct fid *fid, in xfs_fs_fh_to_dentry() argument 175 struct xfs_fid64 *fid64 = (struct xfs_fid64 *)fid; in xfs_fs_fh_to_dentry() 184 inode = xfs_nfs_get_inode(sb, fid->i32.ino, fid->i32.gen); in xfs_fs_fh_to_dentry() 196 xfs_fs_fh_to_parent(struct super_block *sb, struct fid *fid, in xfs_fs_fh_to_parent() argument 199 struct xfs_fid64 *fid64 = (struct xfs_fid64 *)fid; in xfs_fs_fh_to_parent() [all …]
|
/openbmc/linux/fs/fat/ |
H A D | nfs.c | 105 struct fat_fid *fid = (struct fat_fid *) fh; in fat_encode_fh_nostale() local 123 fid->i_gen = inode->i_generation; in fat_encode_fh_nostale() 124 fid->i_pos_low = i_pos & 0xFFFFFFFF; in fat_encode_fh_nostale() 125 fid->i_pos_hi = (i_pos >> 32) & 0xFFFF; in fat_encode_fh_nostale() 128 fid->parent_i_pos_hi = (i_pos >> 32) & 0xFFFF; in fat_encode_fh_nostale() 129 fid->parent_i_pos_low = i_pos & 0xFFFFFFFF; in fat_encode_fh_nostale() 130 fid->parent_i_gen = parent->i_generation; in fat_encode_fh_nostale() 138 fid->parent_i_pos_hi = 0; in fat_encode_fh_nostale() 148 static struct dentry *fat_fh_to_dentry(struct super_block *sb, struct fid *fid, in fat_fh_to_dentry() argument 151 return generic_fh_to_dentry(sb, fid, fh_len, fh_type, in fat_fh_to_dentry() [all …]
|
/openbmc/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 trace_afs_make_fs_call(call, &vp->fid); in afs_fs_fetch_status() 437 bp[1] = htonl(vp->fid.vid); in afs_fs_fetch_data64() [all …]
|
H A D | inode.c | 43 vnode->fid.vid, in dump_vnode() 44 vnode->fid.vnode, in dump_vnode() 45 vnode->fid.unique); in dump_vnode() 48 parent_vnode->fid.vid, in dump_vnode() 49 parent_vnode->fid.vnode, in dump_vnode() 50 parent_vnode->fid.unique); in dump_vnode() 76 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 | callback.c | 92 trace_afs_cb_break(&vnode->fid, vnode->cb_break, reason, true); in __afs_break_callback() 94 trace_afs_cb_break(&vnode->fid, vnode->cb_break, reason, false); in __afs_break_callback() 149 struct afs_fid *fid) in afs_break_one_callback() argument 155 if (fid->vnode == 0 && fid->unique == 0) { in afs_break_one_callback() 159 trace_afs_cb_break(fid, volume->cb_v_break, in afs_break_one_callback() 173 inode = find_inode_rcu(sb, fid->vnode, afs_ilookup5_test_by_fid, fid); in afs_break_one_callback() 178 trace_afs_cb_miss(fid, afs_cb_break_for_callback); in afs_break_one_callback() 188 afs_volid_t vid = cbb->fid.vid; in afs_break_some_callbacks() 198 if (cbb->fid.vid == vid) { in afs_break_some_callbacks() 200 cbb->fid.vid, in afs_break_some_callbacks() [all …]
|
/openbmc/linux/drivers/cpufreq/ |
H A D | cpufreq-nforce2.c | 42 static int fid; variable 54 module_param(fid, int, 0444); 57 MODULE_PARM_DESC(fid, "CPU multiplier to use (11.5 = 115)"); 238 return nforce2_fsb_read(0) * fid * 100; in nforce2_get() 260 target_fsb = target_freq / (fid * 100); in nforce2_target() 263 freqs.new = target_fsb * fid * 100; in nforce2_target() 298 fsb_pol_max = policy->max / (fid * 100); in nforce2_verify() 300 if (policy->min < (fsb_pol_max * fid * 100)) in nforce2_verify() 301 policy->max = (fsb_pol_max + 1) * fid * 100; in nforce2_verify() 323 if (!fid) { in nforce2_cpu_init() [all …]
|
/openbmc/linux/fs/smb/client/ |
H A D | trace.h | 92 __u64 fid, 98 TP_ARGS(xid, fid, tid, sesid, offset, len, rc), 101 __field(__u64, fid) 110 __entry->fid = fid; 118 __entry->xid, __entry->sesid, __entry->tid, __entry->fid, 125 __u64 fid, \ 131 TP_ARGS(xid, fid, tid, sesid, offset, len, rc)) 143 __u64 fid, 148 TP_ARGS(xid, fid, tid, sesid, offset, len), 151 __field(__u64, fid) [all …]
|
/openbmc/linux/tools/power/cpupower/utils/helpers/ |
H A D | amd.c | 22 unsigned fid:6; member 36 unsigned fid:8; member 46 unsigned fid:12; member 78 int fid, did, cof = 0; in get_cof() local 83 fid = pstate.pstatedef2.fid; in get_cof() 84 if (fid > 0x0f) in get_cof() 85 cof = (fid * 5); in get_cof() 87 fid = pstate.pstatedef.fid; in get_cof() 88 cof = 200 * fid / did; in get_cof() 92 fid = pstate.pstate.fid; in get_cof() [all …]
|