/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_fid.c | 80 int (*setup)(struct mlxsw_sp_fid *fid, const void *arg); 81 int (*configure)(struct mlxsw_sp_fid *fid); 82 void (*deconfigure)(struct mlxsw_sp_fid *fid); 83 int (*index_alloc)(struct mlxsw_sp_fid *fid, const void *arg, 85 bool (*compare)(const struct mlxsw_sp_fid *fid, 87 int (*port_vid_map)(struct mlxsw_sp_fid *fid, 89 void (*port_vid_unmap)(struct mlxsw_sp_fid *fid, 91 int (*vni_set)(struct mlxsw_sp_fid *fid); 92 void (*vni_clear)(struct mlxsw_sp_fid *fid); 93 int (*nve_flood_index_set)(struct mlxsw_sp_fid *fid); [all …]
|
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/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 | vfs_addr.c | 35 struct p9_fid *fid; in v9fs_begin_writeback() local 37 fid = v9fs_fid_find_inode(wreq->inode, true, INVALID_UID, true); in v9fs_begin_writeback() 38 if (!fid) { in v9fs_begin_writeback() 44 wreq->wsize = fid->clnt->msize - P9_IOHDRSZ; in v9fs_begin_writeback() 45 if (fid->iounit) in v9fs_begin_writeback() 46 wreq->wsize = min(wreq->wsize, fid->iounit); in v9fs_begin_writeback() 47 wreq->netfs_priv = fid; in v9fs_begin_writeback() 56 struct p9_fid *fid = subreq->rreq->netfs_priv; in v9fs_issue_write() local 59 len = p9_client_write(fid, subreq->start, &subreq->io_iter, &err); in v9fs_issue_write() 72 struct p9_fid *fid = rreq->netfs_priv; in v9fs_issue_read() local [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 | 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 | 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_inode_dotl.c | 98 struct p9_fid *fid, in v9fs_qid_iget_dotl() argument 131 retval = v9fs_get_acl(inode, fid); in v9fs_qid_iget_dotl() 144 v9fs_inode_from_fid_dotl(struct v9fs_session_info *v9ses, struct p9_fid *fid, in v9fs_inode_from_fid_dotl() argument 150 st = p9_client_getattr_dotl(fid, P9_STATS_BASIC | P9_STATS_GEN); in v9fs_inode_from_fid_dotl() 154 inode = v9fs_qid_iget_dotl(sb, &st->qid, fid, st, new); in v9fs_inode_from_fid_dotl() 237 struct p9_fid *fid = NULL; in v9fs_vfs_atomic_open_dotl() local 302 fid = p9_client_walk(dfid, 1, &name, 1); in v9fs_vfs_atomic_open_dotl() 303 if (IS_ERR(fid)) { in v9fs_vfs_atomic_open_dotl() 304 err = PTR_ERR(fid); in v9fs_vfs_atomic_open_dotl() 308 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 | 450 v9fs_inode_from_fid(struct v9fs_session_info *v9ses, struct p9_fid *fid, in v9fs_inode_from_fid() argument 456 st = p9_client_stat(fid); in v9fs_inode_from_fid() 573 struct p9_fid *dfid, *ofid = NULL, *fid = NULL; in v9fs_create() local 602 fid = p9_client_walk(dfid, 1, &name, 1); in v9fs_create() 603 if (IS_ERR(fid)) { in v9fs_create() 604 err = PTR_ERR(fid); in v9fs_create() 612 inode = v9fs_get_new_inode_from_fid(v9ses, fid, dir->i_sb); in v9fs_create() 619 v9fs_fid_add(dentry, &fid); in v9fs_create() 627 p9_fid_put(fid); in v9fs_create() 650 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 …]
|
/linux/net/9p/ |
H A D | client.c | 853 struct p9_fid *fid; in p9_fid_create() local 856 fid = kzalloc(sizeof(*fid), GFP_KERNEL); in p9_fid_create() 857 if (!fid) in p9_fid_create() 860 fid->mode = -1; in p9_fid_create() 861 fid->uid = current_fsuid(); in p9_fid_create() 862 fid->clnt = clnt; in p9_fid_create() 863 refcount_set(&fid->count, 1); in p9_fid_create() 867 ret = idr_alloc_u32(&clnt->fids, fid, &fid->fid, P9_NOFID - 1, in p9_fid_create() 872 trace_9p_fid_ref(fid, P9_FID_REF_CREATE); in p9_fid_create() 873 return fid; in p9_fid_create() [all …]
|
/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 …]
|
/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 | 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() 174 vp->fid.vid, vp->fid.vnode, vp->fid.unique, in afs_apply_status() 181 vnode->fid.vid, in afs_apply_status() 182 vnode->fid.vnode, in afs_apply_status() [all …]
|
/linux/include/trace/events/ |
H A D | afs.h | 651 TP_PROTO(struct afs_call *call, const struct afs_fid *fid), 653 TP_ARGS(call, fid), 658 __field_struct(struct afs_fid, fid) 664 if (fid) { 665 __entry->fid = *fid; 667 __entry->fid.vid = 0; 668 __entry->fid.vnode = 0; 669 __entry->fid.unique = 0; 675 __entry->fid.vid, 676 __entry->fid.vnode, [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 …]
|
/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 …]
|
/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 …]
|
H A D | powernow-k7.c | 60 unsigned long fid:5, member 175 u8 fid, vid; in get_ranges() local 183 fid = *pst++; in get_ranges() 185 powernow_table[j].frequency = (fsb * fid_codes[fid]) / 10; in get_ranges() 186 powernow_table[j].driver_data = fid; /* lower 8 bits */ in get_ranges() 190 if ((fid_codes[fid] % 10) == 5) { in get_ranges() 206 "VID: 0x%x (%d.%03dV)\n", fid, fid_codes[fid] / 10, in get_ranges() 207 fid_codes[fid] % 10, speed/1000, vid, in get_ranges() 218 static void change_FID(int fid) in change_FID() argument 223 if (fidvidctl.bits.FID != fid) { in change_FID() [all …]
|
/linux/arch/loongarch/include/asm/ |
H A D | kvm_para.h | 48 static __always_inline long kvm_hypercall0(u64 fid) in kvm_hypercall0() argument 51 register unsigned long fun asm("a0") = fid; in kvm_hypercall0() 63 static __always_inline long kvm_hypercall1(u64 fid, unsigned long arg0) in kvm_hypercall1() argument 66 register unsigned long fun asm("a0") = fid; in kvm_hypercall1() 79 static __always_inline long kvm_hypercall2(u64 fid, in kvm_hypercall2() argument 83 register unsigned long fun asm("a0") = fid; in kvm_hypercall2() 97 static __always_inline long kvm_hypercall3(u64 fid, in kvm_hypercall3() argument 101 register unsigned long fun asm("a0") = fid; in kvm_hypercall3() 116 static __always_inline long kvm_hypercall4(u64 fid, in kvm_hypercall4() argument 121 register unsigned long fun asm("a0") = fid; in kvm_hypercall4() [all …]
|
/linux/fs/smb/client/ |
H A D | trace.h | 113 __u64 fid, 120 xid, fid, tid, sesid, offset, len, rc), 125 __field(__u64, fid) 136 __entry->fid = fid; 145 __entry->xid, __entry->sesid, __entry->tid, __entry->fid, 154 __u64 fid, \ 160 TP_ARGS(rreq_debug_id, rreq_debug_index, xid, fid, tid, sesid, offset, len, rc)) 168 __u64 fid, 174 TP_ARGS(xid, fid, tid, sesid, offset, len, rc), 177 __field(__u64, fid) [all …]
|
/linux/fs/btrfs/ |
H A D | export.c | 21 struct btrfs_fid *fid = (struct btrfs_fid *)fh; in btrfs_encode_fh() local 36 fid->objectid = btrfs_ino(BTRFS_I(inode)); in btrfs_encode_fh() 37 fid->root_objectid = btrfs_root_id(BTRFS_I(inode)->root); in btrfs_encode_fh() 38 fid->gen = inode->i_generation; in btrfs_encode_fh() 43 fid->parent_objectid = btrfs_ino(BTRFS_I(parent)); in btrfs_encode_fh() 44 fid->parent_gen = parent->i_generation; in btrfs_encode_fh() 47 if (parent_root_id != fid->root_objectid) { in btrfs_encode_fh() 48 fid->parent_root_objectid = parent_root_id; in btrfs_encode_fh() 100 static struct dentry *btrfs_fh_to_parent(struct super_block *sb, struct fid *fh, in btrfs_fh_to_parent() 103 struct btrfs_fid *fid = (struct btrfs_fid *) fh; in btrfs_fh_to_parent() local [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 …]
|