Lines Matching refs:of
313 struct kernfs_open_file *of = m->private; in rdtgroup_seqfile_show() local
314 struct rftype *rft = of->kn->priv; in rdtgroup_seqfile_show()
317 return rft->seq_show(of, m, arg); in rdtgroup_seqfile_show()
321 static ssize_t rdtgroup_file_write(struct kernfs_open_file *of, char *buf, in rdtgroup_file_write() argument
324 struct rftype *rft = of->kn->priv; in rdtgroup_file_write()
327 return rft->write(of, buf, nbytes, off); in rdtgroup_file_write()
343 static bool is_cpu_list(struct kernfs_open_file *of) in is_cpu_list() argument
345 struct rftype *rft = of->kn->priv; in is_cpu_list()
350 static int rdtgroup_cpus_show(struct kernfs_open_file *of, in rdtgroup_cpus_show() argument
357 rdtgrp = rdtgroup_kn_lock_live(of->kn); in rdtgroup_cpus_show()
367 seq_printf(s, is_cpu_list(of) ? in rdtgroup_cpus_show()
372 seq_printf(s, is_cpu_list(of) ? "%*pbl\n" : "%*pb\n", in rdtgroup_cpus_show()
378 rdtgroup_kn_unlock(of->kn); in rdtgroup_cpus_show()
511 static ssize_t rdtgroup_cpus_write(struct kernfs_open_file *of, in rdtgroup_cpus_write() argument
533 rdtgrp = rdtgroup_kn_lock_live(of->kn); in rdtgroup_cpus_write()
548 if (is_cpu_list(of)) in rdtgroup_cpus_write()
574 rdtgroup_kn_unlock(of->kn); in rdtgroup_cpus_write()
719 struct kernfs_open_file *of) in rdtgroup_task_write_permission() argument
741 struct kernfs_open_file *of) in rdtgroup_move_task() argument
761 ret = rdtgroup_task_write_permission(tsk, of); in rdtgroup_move_task()
769 static ssize_t rdtgroup_tasks_write(struct kernfs_open_file *of, in rdtgroup_tasks_write() argument
777 rdtgrp = rdtgroup_kn_lock_live(of->kn); in rdtgroup_tasks_write()
779 rdtgroup_kn_unlock(of->kn); in rdtgroup_tasks_write()
806 ret = rdtgroup_move_task(pid, rdtgrp, of); in rdtgroup_tasks_write()
814 rdtgroup_kn_unlock(of->kn); in rdtgroup_tasks_write()
835 static int rdtgroup_tasks_show(struct kernfs_open_file *of, in rdtgroup_tasks_show() argument
841 rdtgrp = rdtgroup_kn_lock_live(of->kn); in rdtgroup_tasks_show()
846 rdtgroup_kn_unlock(of->kn); in rdtgroup_tasks_show()
851 static int rdtgroup_closid_show(struct kernfs_open_file *of, in rdtgroup_closid_show() argument
857 rdtgrp = rdtgroup_kn_lock_live(of->kn); in rdtgroup_closid_show()
862 rdtgroup_kn_unlock(of->kn); in rdtgroup_closid_show()
867 static int rdtgroup_rmid_show(struct kernfs_open_file *of, in rdtgroup_rmid_show() argument
873 rdtgrp = rdtgroup_kn_lock_live(of->kn); in rdtgroup_rmid_show()
878 rdtgroup_kn_unlock(of->kn); in rdtgroup_rmid_show()
969 static int rdt_last_cmd_status_show(struct kernfs_open_file *of, in rdt_last_cmd_status_show() argument
994 static int rdt_num_closids_show(struct kernfs_open_file *of, in rdt_num_closids_show() argument
997 struct resctrl_schema *s = rdt_kn_parent_priv(of->kn); in rdt_num_closids_show()
1003 static int rdt_default_ctrl_show(struct kernfs_open_file *of, in rdt_default_ctrl_show() argument
1006 struct resctrl_schema *s = rdt_kn_parent_priv(of->kn); in rdt_default_ctrl_show()
1013 static int rdt_min_cbm_bits_show(struct kernfs_open_file *of, in rdt_min_cbm_bits_show() argument
1016 struct resctrl_schema *s = rdt_kn_parent_priv(of->kn); in rdt_min_cbm_bits_show()
1023 static int rdt_shareable_bits_show(struct kernfs_open_file *of, in rdt_shareable_bits_show() argument
1026 struct resctrl_schema *s = rdt_kn_parent_priv(of->kn); in rdt_shareable_bits_show()
1047 static int rdt_bit_usage_show(struct kernfs_open_file *of, in rdt_bit_usage_show() argument
1050 struct resctrl_schema *s = rdt_kn_parent_priv(of->kn); in rdt_bit_usage_show()
1129 static int rdt_min_bw_show(struct kernfs_open_file *of, in rdt_min_bw_show() argument
1132 struct resctrl_schema *s = rdt_kn_parent_priv(of->kn); in rdt_min_bw_show()
1139 static int rdt_num_rmids_show(struct kernfs_open_file *of, in rdt_num_rmids_show() argument
1142 struct rdt_resource *r = rdt_kn_parent_priv(of->kn); in rdt_num_rmids_show()
1149 static int rdt_mon_features_show(struct kernfs_open_file *of, in rdt_mon_features_show() argument
1152 struct rdt_resource *r = rdt_kn_parent_priv(of->kn); in rdt_mon_features_show()
1164 static int rdt_bw_gran_show(struct kernfs_open_file *of, in rdt_bw_gran_show() argument
1167 struct resctrl_schema *s = rdt_kn_parent_priv(of->kn); in rdt_bw_gran_show()
1174 static int rdt_delay_linear_show(struct kernfs_open_file *of, in rdt_delay_linear_show() argument
1177 struct resctrl_schema *s = rdt_kn_parent_priv(of->kn); in rdt_delay_linear_show()
1184 static int max_threshold_occ_show(struct kernfs_open_file *of, in max_threshold_occ_show() argument
1192 static int rdt_thread_throttle_mode_show(struct kernfs_open_file *of, in rdt_thread_throttle_mode_show() argument
1195 struct resctrl_schema *s = rdt_kn_parent_priv(of->kn); in rdt_thread_throttle_mode_show()
1215 static ssize_t max_threshold_occ_write(struct kernfs_open_file *of, in max_threshold_occ_write() argument
1236 static int rdtgroup_mode_show(struct kernfs_open_file *of, in rdtgroup_mode_show() argument
1241 rdtgrp = rdtgroup_kn_lock_live(of->kn); in rdtgroup_mode_show()
1243 rdtgroup_kn_unlock(of->kn); in rdtgroup_mode_show()
1249 rdtgroup_kn_unlock(of->kn); in rdtgroup_mode_show()
1266 static int rdt_has_sparse_bitmasks_show(struct kernfs_open_file *of, in rdt_has_sparse_bitmasks_show() argument
1269 struct resctrl_schema *s = rdt_kn_parent_priv(of->kn); in rdt_has_sparse_bitmasks_show()
1419 static ssize_t rdtgroup_mode_write(struct kernfs_open_file *of, in rdtgroup_mode_write() argument
1431 rdtgrp = rdtgroup_kn_lock_live(of->kn); in rdtgroup_mode_write()
1433 rdtgroup_kn_unlock(of->kn); in rdtgroup_mode_write()
1484 rdtgroup_kn_unlock(of->kn); in rdtgroup_mode_write()
1542 static int rdtgroup_size_show(struct kernfs_open_file *of, in rdtgroup_size_show() argument
1556 rdtgrp = rdtgroup_kn_lock_live(of->kn); in rdtgroup_size_show()
1558 rdtgroup_kn_unlock(of->kn); in rdtgroup_size_show()
1610 rdtgroup_kn_unlock(of->kn); in rdtgroup_size_show()
1651 static int mbm_total_bytes_config_show(struct kernfs_open_file *of, in mbm_total_bytes_config_show() argument
1654 struct rdt_resource *r = rdt_kn_parent_priv(of->kn); in mbm_total_bytes_config_show()
1661 static int mbm_local_bytes_config_show(struct kernfs_open_file *of, in mbm_local_bytes_config_show() argument
1664 struct rdt_resource *r = rdt_kn_parent_priv(of->kn); in mbm_local_bytes_config_show()
1754 static ssize_t mbm_total_bytes_config_write(struct kernfs_open_file *of, in mbm_total_bytes_config_write() argument
1758 struct rdt_resource *r = rdt_kn_parent_priv(of->kn); in mbm_total_bytes_config_write()
1780 static ssize_t mbm_local_bytes_config_write(struct kernfs_open_file *of, in mbm_local_bytes_config_write() argument
1784 struct rdt_resource *r = rdt_kn_parent_priv(of->kn); in mbm_local_bytes_config_write()