/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_fid.c | 72 void (*setup)(struct mlxsw_sp_fid *fid, const void *arg); 73 int (*configure)(struct mlxsw_sp_fid *fid); 74 void (*deconfigure)(struct mlxsw_sp_fid *fid); 75 int (*index_alloc)(struct mlxsw_sp_fid *fid, const void *arg, 77 bool (*compare)(const struct mlxsw_sp_fid *fid, 79 u16 (*flood_index)(const struct mlxsw_sp_fid *fid); 80 int (*port_vid_map)(struct mlxsw_sp_fid *fid, 82 void (*port_vid_unmap)(struct mlxsw_sp_fid *fid, 84 int (*vni_set)(struct mlxsw_sp_fid *fid, __be32 vni); 85 void (*vni_clear)(struct mlxsw_sp_fid *fid); [all …]
|
D | spectrum_switchdev.c | 97 const struct mlxsw_sp_fid *fid); 439 struct mlxsw_sp_fid *fid = mlxsw_sp_port_vlan->fid; in mlxsw_sp_port_vlan_find_by_fid() local 441 if (fid && mlxsw_sp_fid_index(fid) == fid_index) in mlxsw_sp_port_vlan_find_by_fid() 573 return mlxsw_sp_fid_flood_set(mlxsw_sp_port_vlan->fid, in mlxsw_sp_port_bridge_vlan_flood_set() 964 struct mlxsw_sp_fid *fid; in mlxsw_sp_port_vlan_fid_join() local 968 fid = bridge_device->ops->fid_get(bridge_device, vid, extack); in mlxsw_sp_port_vlan_fid_join() 969 if (IS_ERR(fid)) in mlxsw_sp_port_vlan_fid_join() 970 return PTR_ERR(fid); in mlxsw_sp_port_vlan_fid_join() 972 err = mlxsw_sp_fid_flood_set(fid, MLXSW_SP_FLOOD_TYPE_UC, local_port, in mlxsw_sp_port_vlan_fid_join() 977 err = mlxsw_sp_fid_flood_set(fid, MLXSW_SP_FLOOD_TYPE_MC, local_port, in mlxsw_sp_port_vlan_fid_join() [all …]
|
/kernel/linux/linux-5.10/fs/9p/ |
D | fid.c | 29 static inline void __add_fid(struct dentry *dentry, struct p9_fid *fid) in __add_fid() argument 31 hlist_add_head(&fid->dlist, (struct hlist_head *)&dentry->d_fsdata); in __add_fid() 34 void v9fs_fid_add(struct dentry *dentry, struct p9_fid *fid) in v9fs_fid_add() argument 37 __add_fid(dentry, fid); in v9fs_fid_add() 51 struct p9_fid *fid, *ret; in v9fs_fid_find() local 61 hlist_for_each_entry(fid, h, dlist) { in v9fs_fid_find() 62 if (any || uid_eq(fid->uid, uid)) { in v9fs_fid_find() 63 ret = fid; in v9fs_fid_find() 108 struct p9_fid *fid, *old_fid = NULL; in v9fs_fid_lookup_with_uid() local 112 fid = v9fs_fid_find(dentry, uid, any); in v9fs_fid_lookup_with_uid() [all …]
|
D | vfs_inode_dotl.c | 99 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() 237 struct p9_fid *fid = NULL; in v9fs_vfs_atomic_open_dotl() local 298 fid = p9_client_walk(dfid, 1, &name, 1); in v9fs_vfs_atomic_open_dotl() 299 if (IS_ERR(fid)) { in v9fs_vfs_atomic_open_dotl() 300 err = PTR_ERR(fid); in v9fs_vfs_atomic_open_dotl() 302 fid = NULL; in v9fs_vfs_atomic_open_dotl() [all …]
|
D | vfs_dir.c | 73 struct p9_fid *fid = filp->private_data; in v9fs_alloc_rdir_buf() local 74 if (!fid->rdir) in v9fs_alloc_rdir_buf() 75 fid->rdir = kzalloc(sizeof(struct p9_rdir) + buflen, GFP_KERNEL); in v9fs_alloc_rdir_buf() 76 return fid->rdir; in v9fs_alloc_rdir_buf() 91 struct p9_fid *fid; in v9fs_dir_readdir() local 97 fid = file->private_data; in v9fs_dir_readdir() 99 buflen = fid->clnt->msize - P9_IOHDRSZ; in v9fs_dir_readdir() 123 err = p9stat_read(fid->clnt, rdir->buf + rdir->head, in v9fs_dir_readdir() 151 struct p9_fid *fid; in v9fs_dir_readdir_dotl() local 157 fid = file->private_data; in v9fs_dir_readdir_dotl() [all …]
|
D | xattr.c | 25 ssize_t v9fs_fid_xattr_get(struct p9_fid *fid, const char *name, in v9fs_fid_xattr_get() argument 37 attr_fid = p9_client_xattrwalk(fid, name, &attr_size); in v9fs_fid_xattr_get() 73 struct p9_fid *fid; in v9fs_xattr_get() local 77 fid = v9fs_fid_lookup(dentry); in v9fs_xattr_get() 78 if (IS_ERR(fid)) in v9fs_xattr_get() 79 return PTR_ERR(fid); in v9fs_xattr_get() 81 return v9fs_fid_xattr_get(fid, name, buffer, buffer_size); in v9fs_xattr_get() 99 struct p9_fid *fid = v9fs_fid_lookup(dentry); in v9fs_xattr_set() local 100 return v9fs_fid_xattr_set(fid, name, value, value_len, flags); in v9fs_xattr_set() 103 int v9fs_fid_xattr_set(struct p9_fid *fid, const char *name, in v9fs_fid_xattr_set() argument [all …]
|
D | vfs_file.c | 49 struct p9_fid *fid; in v9fs_file_open() local 60 fid = file->private_data; in v9fs_file_open() 61 if (!fid) { in v9fs_file_open() 62 fid = v9fs_fid_clone(file_dentry(file)); in v9fs_file_open() 63 if (IS_ERR(fid)) in v9fs_file_open() 64 return PTR_ERR(fid); in v9fs_file_open() 66 err = p9_client_open(fid, omode); in v9fs_file_open() 68 p9_client_clunk(fid); in v9fs_file_open() 76 file->private_data = fid; in v9fs_file_open() 88 fid = v9fs_writeback_fid(file_dentry(file)); in v9fs_file_open() [all …]
|
D | vfs_inode.c | 477 v9fs_inode_from_fid(struct v9fs_session_info *v9ses, struct p9_fid *fid, in v9fs_inode_from_fid() argument 483 st = p9_client_stat(fid); in v9fs_inode_from_fid() 593 struct p9_fid *dfid, *ofid, *fid; in v9fs_create() local 600 fid = NULL; in v9fs_create() 625 fid = p9_client_walk(dfid, 1, &name, 1); in v9fs_create() 626 if (IS_ERR(fid)) { in v9fs_create() 627 err = PTR_ERR(fid); in v9fs_create() 630 fid = NULL; in v9fs_create() 636 inode = v9fs_get_new_inode_from_fid(v9ses, fid, dir->i_sb); in v9fs_create() 643 v9fs_fid_add(dentry, fid); in v9fs_create() [all …]
|
/kernel/linux/linux-5.10/net/9p/ |
D | client.c | 893 struct p9_fid *fid; in p9_fid_create() local 896 fid = kzalloc(sizeof(struct p9_fid), GFP_KERNEL); in p9_fid_create() 897 if (!fid) in p9_fid_create() 900 fid->mode = -1; in p9_fid_create() 901 fid->uid = current_fsuid(); in p9_fid_create() 902 fid->clnt = clnt; in p9_fid_create() 906 ret = idr_alloc_u32(&clnt->fids, fid, &fid->fid, P9_NOFID - 1, in p9_fid_create() 912 return fid; in p9_fid_create() 914 kfree(fid); in p9_fid_create() 918 static void p9_fid_destroy(struct p9_fid *fid) in p9_fid_destroy() argument [all …]
|
/kernel/linux/linux-5.10/include/net/9p/ |
D | client.h | 146 u32 fid; member 175 int p9_client_statfs(struct p9_fid *fid, struct p9_rstatfs *sb); 176 int p9_client_rename(struct p9_fid *fid, struct p9_fid *newdirfid, 188 int p9_client_open(struct p9_fid *fid, int mode); 189 int p9_client_fcreate(struct p9_fid *fid, const char *name, u32 perm, int mode, 191 int p9_client_link(struct p9_fid *fid, struct p9_fid *oldfid, const char *newname); 192 int p9_client_symlink(struct p9_fid *fid, const char *name, const char *symname, 196 int p9_client_clunk(struct p9_fid *fid); 197 int p9_client_fsync(struct p9_fid *fid, int datasync); 198 int p9_client_remove(struct p9_fid *fid); [all …]
|
/kernel/linux/linux-5.10/include/trace/events/ |
D | afs.h | 754 TP_PROTO(struct afs_call *call, const struct afs_fid *fid), 756 TP_ARGS(call, fid), 761 __field_struct(struct afs_fid, fid ) 767 if (fid) { 768 __entry->fid = *fid; 770 __entry->fid.vid = 0; 771 __entry->fid.vnode = 0; 772 __entry->fid.unique = 0; 778 __entry->fid.vid, 779 __entry->fid.vnode, [all …]
|
/kernel/linux/linux-5.10/include/linux/ |
D | exportfs.h | 118 struct fid { struct 201 struct dentry * (*fh_to_dentry)(struct super_block *sb, struct fid *fid, 203 struct dentry * (*fh_to_parent)(struct super_block *sb, struct fid *fid, 218 extern int exportfs_encode_inode_fh(struct inode *inode, struct fid *fid, 220 extern int exportfs_encode_fh(struct dentry *dentry, struct fid *fid, 222 extern struct dentry *exportfs_decode_fh(struct vfsmount *mnt, struct fid *fid, 230 struct fid *fid, int fh_len, int fh_type, 233 struct fid *fid, int fh_len, int fh_type,
|
/kernel/linux/linux-5.10/fs/xfs/ |
D | xfs_export.c | 47 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() 158 xfs_fs_fh_to_dentry(struct super_block *sb, struct fid *fid, in xfs_fs_fh_to_dentry() argument 161 struct xfs_fid64 *fid64 = (struct xfs_fid64 *)fid; in xfs_fs_fh_to_dentry() 170 inode = xfs_nfs_get_inode(sb, fid->i32.ino, fid->i32.gen); in xfs_fs_fh_to_dentry() 182 xfs_fs_fh_to_parent(struct super_block *sb, struct fid *fid, in xfs_fs_fh_to_parent() argument 185 struct xfs_fid64 *fid64 = (struct xfs_fid64 *)fid; in xfs_fs_fh_to_parent() [all …]
|
/kernel/linux/linux-5.10/fs/afs/ |
D | callback.c | 52 trace_afs_cb_break(&vnode->fid, vnode->cb_break, reason, true); in __afs_break_callback() 54 trace_afs_cb_break(&vnode->fid, vnode->cb_break, reason, false); in __afs_break_callback() 108 struct afs_fid *fid) in afs_break_one_callback() argument 114 if (fid->vnode == 0 && fid->unique == 0) { in afs_break_one_callback() 118 trace_afs_cb_break(fid, volume->cb_v_break, in afs_break_one_callback() 132 inode = find_inode_rcu(sb, fid->vnode, afs_ilookup5_test_by_fid, fid); in afs_break_one_callback() 137 trace_afs_cb_miss(fid, afs_cb_break_for_callback); in afs_break_one_callback() 147 afs_volid_t vid = cbb->fid.vid; in afs_break_some_callbacks() 157 if (cbb->fid.vid == vid) { in afs_break_some_callbacks() 159 cbb->fid.vid, in afs_break_some_callbacks() [all …]
|
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() 68 vp->fid.vid, vp->fid.vnode, vp->fid.unique, in afs_inode_init_from_status() 164 vp->fid.vid, vp->fid.vnode, vp->fid.unique, in afs_apply_status() 171 vnode->fid.vid, in afs_apply_status() 172 vnode->fid.vnode, in afs_apply_status() [all …]
|
D | fsclient.c | 20 static void xdr_decode_AFSFid(const __be32 **_bp, struct afs_fid *fid) in xdr_decode_AFSFid() argument 24 fid->vid = ntohl(*bp++); in xdr_decode_AFSFid() 25 fid->vnode = ntohl(*bp++); in xdr_decode_AFSFid() 26 fid->unique = ntohl(*bp++); in xdr_decode_AFSFid() 278 key_serial(op->key), vp->fid.vid, vp->fid.vnode); in afs_fs_fetch_status() 288 bp[1] = htonl(vp->fid.vid); in afs_fs_fetch_status() 289 bp[2] = htonl(vp->fid.vnode); in afs_fs_fetch_status() 290 bp[3] = htonl(vp->fid.unique); in afs_fs_fetch_status() 292 trace_afs_make_fs_call(call, &vp->fid); in afs_fs_fetch_status() 464 bp[1] = htonl(vp->fid.vid); in afs_fs_fetch_data64() [all …]
|
/kernel/linux/linux-5.10/fs/fat/ |
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() 142 static struct dentry *fat_fh_to_dentry(struct super_block *sb, struct fid *fid, in fat_fh_to_dentry() argument 145 return generic_fh_to_dentry(sb, fid, fh_len, fh_type, in fat_fh_to_dentry() 150 struct fid *fh, int fh_len, in fat_fh_to_dentry_nostale() [all …]
|
/kernel/linux/linux-5.10/drivers/cpufreq/ |
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 …]
|
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 …]
|
/kernel/linux/linux-5.10/drivers/net/dsa/mv88e6xxx/ |
D | global1_atu.c | 18 static int mv88e6xxx_g1_atu_fid_write(struct mv88e6xxx_chip *chip, u16 fid) in mv88e6xxx_g1_atu_fid_write() argument 20 return mv88e6xxx_g1_write(chip, MV88E6352_G1_ATU_FID, fid & 0xfff); in mv88e6xxx_g1_atu_fid_write() 117 static int mv88e6xxx_g1_atu_op(struct mv88e6xxx_chip *chip, u16 fid, u16 op) in mv88e6xxx_g1_atu_op() argument 124 err = mv88e6xxx_g1_atu_fid_write(chip, fid); in mv88e6xxx_g1_atu_op() 135 val = (val & 0x0fff) | ((fid << 8) & 0xf000); in mv88e6xxx_g1_atu_op() 142 op |= (fid & 0x30) << 4; in mv88e6xxx_g1_atu_op() 146 op |= fid & 0xf; in mv88e6xxx_g1_atu_op() 157 int mv88e6xxx_g1_atu_get_next(struct mv88e6xxx_chip *chip, u16 fid) in mv88e6xxx_g1_atu_get_next() argument 159 return mv88e6xxx_g1_atu_op(chip, fid, MV88E6XXX_G1_ATU_OP_GET_NEXT_DB); in mv88e6xxx_g1_atu_get_next() 239 int mv88e6xxx_g1_atu_getnext(struct mv88e6xxx_chip *chip, u16 fid, in mv88e6xxx_g1_atu_getnext() argument [all …]
|
/kernel/linux/linux-5.10/fs/coda/ |
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() 67 inode = iget5_locked(sb, hash, coda_test_inode, coda_set_inode, fid); in coda_iget() 92 struct inode *coda_cnode_make(struct CodaFid *fid, struct super_block *sb) in coda_cnode_make() argument 99 error = venus_getattr(sb, fid, &attr); in coda_cnode_make() 103 inode = coda_iget(sb, fid, &attr); in coda_cnode_make() [all …]
|
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 …]
|
/kernel/linux/linux-5.10/fs/cifs/ |
D | trace.h | 18 __u64 fid, 24 TP_ARGS(xid, fid, tid, sesid, offset, len, rc), 27 __field(__u64, fid) 36 __entry->fid = fid; 44 __entry->xid, __entry->sesid, __entry->tid, __entry->fid, 51 __u64 fid, \ 57 TP_ARGS(xid, fid, tid, sesid, offset, len, rc)) 69 __u64 fid, 74 TP_ARGS(xid, fid, tid, sesid, offset, len), 77 __field(__u64, fid) [all …]
|
/kernel/linux/linux-5.10/arch/riscv/kernel/ |
D | sbi.c | 19 static int (*__sbi_rfence)(int fid, const unsigned long *hart_mask, 23 struct sbiret sbi_ecall(int ext, int fid, unsigned long arg0, in sbi_ecall() argument 36 register uintptr_t a6 asm ("a6") = (uintptr_t)(fid); in sbi_ecall() 141 static int __sbi_rfence_v01(int fid, const unsigned long *hart_mask, in __sbi_rfence_v01() argument 148 switch (fid) { in __sbi_rfence_v01() 164 pr_err("SBI call [%d]not supported in SBI v0.1\n", fid); in __sbi_rfence_v01() 190 static int __sbi_rfence_v01(int fid, const unsigned long *hart_mask, in __sbi_rfence_v01() argument 258 static int __sbi_rfence_v02_call(unsigned long fid, unsigned long hmask_val, in __sbi_rfence_v02_call() argument 267 switch (fid) { in __sbi_rfence_v02_call() 269 ret = sbi_ecall(ext, fid, hmask_val, hbase, 0, 0, 0, 0); in __sbi_rfence_v02_call() [all …]
|
/kernel/linux/linux-5.10/fs/btrfs/ |
D | export.c | 20 struct btrfs_fid *fid = (struct btrfs_fid *)fh; in btrfs_encode_fh() local 35 fid->objectid = btrfs_ino(BTRFS_I(inode)); in btrfs_encode_fh() 36 fid->root_objectid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_encode_fh() 37 fid->gen = inode->i_generation; in btrfs_encode_fh() 42 fid->parent_objectid = BTRFS_I(parent)->location.objectid; in btrfs_encode_fh() 43 fid->parent_gen = parent->i_generation; in btrfs_encode_fh() 46 if (parent_root_id != fid->root_objectid) { in btrfs_encode_fh() 47 fid->parent_root_objectid = parent_root_id; in btrfs_encode_fh() 88 static struct dentry *btrfs_fh_to_parent(struct super_block *sb, struct fid *fh, in btrfs_fh_to_parent() 91 struct btrfs_fid *fid = (struct btrfs_fid *) fh; in btrfs_fh_to_parent() local [all …]
|