Lines Matching refs:rft
202 static int rdtgroup_add_file(struct kernfs_node *parent_kn, struct rftype *rft) in rdtgroup_add_file() argument
207 kn = __kernfs_create_file(parent_kn, rft->name, rft->mode, in rdtgroup_add_file()
209 0, rft->kf_ops, rft, NULL, NULL); in rdtgroup_add_file()
225 struct rftype *rft = of->kn->priv; in rdtgroup_seqfile_show() local
227 if (rft->seq_show) in rdtgroup_seqfile_show()
228 return rft->seq_show(of, m, arg); in rdtgroup_seqfile_show()
235 struct rftype *rft = of->kn->priv; in rdtgroup_file_write() local
237 if (rft->write) in rdtgroup_file_write()
238 return rft->write(of, buf, nbytes, off); in rdtgroup_file_write()
256 struct rftype *rft = of->kn->priv; in is_cpu_list() local
258 return rft->flags & RFTYPE_FLAGS_CPUS_LIST; in is_cpu_list()
1486 struct rftype *rfts, *rft; in rdtgroup_add_files() local
1494 for (rft = rfts; rft < rfts + len; rft++) { in rdtgroup_add_files()
1495 if ((fflags & rft->fflags) == rft->fflags) { in rdtgroup_add_files()
1496 ret = rdtgroup_add_file(kn, rft); in rdtgroup_add_files()
1504 pr_warn("Failed to add %s, err=%d\n", rft->name, ret); in rdtgroup_add_files()
1505 while (--rft >= rfts) { in rdtgroup_add_files()
1506 if ((fflags & rft->fflags) == rft->fflags) in rdtgroup_add_files()
1507 kernfs_remove_by_name(kn, rft->name); in rdtgroup_add_files()
1572 struct rftype *rfts, *rft; in rdtgroup_kn_mode_restore() local
1578 for (rft = rfts; rft < rfts + len; rft++) { in rdtgroup_kn_mode_restore()
1579 if (!strcmp(rft->name, name)) in rdtgroup_kn_mode_restore()
1580 iattr.ia_mode = rft->mode & mask; in rdtgroup_kn_mode_restore()