Lines Matching refs:rft

208 static int rdtgroup_add_file(struct kernfs_node *parent_kn, struct rftype *rft)  in rdtgroup_add_file()  argument
213 kn = __kernfs_create_file(parent_kn, rft->name, rft->mode, in rdtgroup_add_file()
215 0, rft->kf_ops, rft, NULL, NULL); in rdtgroup_add_file()
231 struct rftype *rft = of->kn->priv; in rdtgroup_seqfile_show() local
233 if (rft->seq_show) in rdtgroup_seqfile_show()
234 return rft->seq_show(of, m, arg); in rdtgroup_seqfile_show()
241 struct rftype *rft = of->kn->priv; in rdtgroup_file_write() local
243 if (rft->write) in rdtgroup_file_write()
244 return rft->write(of, buf, nbytes, off); in rdtgroup_file_write()
262 struct rftype *rft = of->kn->priv; in is_cpu_list() local
264 return rft->flags & RFTYPE_FLAGS_CPUS_LIST; in is_cpu_list()
1366 struct rftype *rfts, *rft; in rdtgroup_add_files() local
1374 for (rft = rfts; rft < rfts + len; rft++) { in rdtgroup_add_files()
1375 if ((fflags & rft->fflags) == rft->fflags) { in rdtgroup_add_files()
1376 ret = rdtgroup_add_file(kn, rft); in rdtgroup_add_files()
1384 pr_warn("Failed to add %s, err=%d\n", rft->name, ret); in rdtgroup_add_files()
1385 while (--rft >= rfts) { in rdtgroup_add_files()
1386 if ((fflags & rft->fflags) == rft->fflags) in rdtgroup_add_files()
1387 kernfs_remove_by_name(kn, rft->name); in rdtgroup_add_files()
1452 struct rftype *rfts, *rft; in rdtgroup_kn_mode_restore() local
1458 for (rft = rfts; rft < rfts + len; rft++) { in rdtgroup_kn_mode_restore()
1459 if (!strcmp(rft->name, name)) in rdtgroup_kn_mode_restore()
1460 iattr.ia_mode = rft->mode & mask; in rdtgroup_kn_mode_restore()