Home
last modified time | relevance | path

Searched refs:profile (Results 1 – 25 of 256) sorted by relevance

1234567891011

/Linux-v5.4/drivers/infiniband/hw/mthca/
Dmthca_profile.c79 struct mthca_resource *profile; in mthca_make_profile() local
82 profile = kcalloc(MTHCA_RES_NUM, sizeof(*profile), GFP_KERNEL); in mthca_make_profile()
83 if (!profile) in mthca_make_profile()
86 profile[MTHCA_RES_QP].size = dev_lim->qpc_entry_sz; in mthca_make_profile()
87 profile[MTHCA_RES_EEC].size = dev_lim->eec_entry_sz; in mthca_make_profile()
88 profile[MTHCA_RES_SRQ].size = dev_lim->srq_entry_sz; in mthca_make_profile()
89 profile[MTHCA_RES_CQ].size = dev_lim->cqc_entry_sz; in mthca_make_profile()
90 profile[MTHCA_RES_EQP].size = dev_lim->eqpc_entry_sz; in mthca_make_profile()
91 profile[MTHCA_RES_EEEC].size = dev_lim->eeec_entry_sz; in mthca_make_profile()
92 profile[MTHCA_RES_EQ].size = dev_lim->eqc_entry_sz; in mthca_make_profile()
[all …]
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx4/
Dprofile.c84 struct mlx4_resource *profile; in mlx4_make_profile() local
88 profile = kcalloc(MLX4_RES_NUM, sizeof(*profile), GFP_KERNEL); in mlx4_make_profile()
89 if (!profile) in mlx4_make_profile()
111 profile[MLX4_RES_QP].size = dev_cap->qpc_entry_sz; in mlx4_make_profile()
112 profile[MLX4_RES_RDMARC].size = dev_cap->rdmarc_entry_sz; in mlx4_make_profile()
113 profile[MLX4_RES_ALTC].size = dev_cap->altc_entry_sz; in mlx4_make_profile()
114 profile[MLX4_RES_AUXC].size = dev_cap->aux_entry_sz; in mlx4_make_profile()
115 profile[MLX4_RES_SRQ].size = dev_cap->srq_entry_sz; in mlx4_make_profile()
116 profile[MLX4_RES_CQ].size = dev_cap->cqc_entry_sz; in mlx4_make_profile()
117 profile[MLX4_RES_EQ].size = dev_cap->eqc_entry_sz; in mlx4_make_profile()
[all …]
/Linux-v5.4/security/apparmor/
Dpolicy.c109 static void __add_profile(struct list_head *list, struct aa_profile *profile) in __add_profile() argument
114 AA_BUG(!profile); in __add_profile()
115 AA_BUG(!profile->ns); in __add_profile()
116 AA_BUG(!mutex_is_locked(&profile->ns->lock)); in __add_profile()
118 list_add_rcu(&profile->base.list, list); in __add_profile()
120 aa_get_profile(profile); in __add_profile()
121 l = aa_label_insert(&profile->ns->labels, &profile->label); in __add_profile()
122 AA_BUG(l != &profile->label); in __add_profile()
138 static void __list_remove_profile(struct aa_profile *profile) in __list_remove_profile() argument
140 AA_BUG(!profile); in __list_remove_profile()
[all …]
Ddomain.c97 static inline unsigned int match_component(struct aa_profile *profile, in match_component() argument
104 state = aa_dfa_match(profile->file.dfa, state, "&"); in match_component()
105 if (profile->ns == tp->ns) in match_component()
106 return aa_dfa_match(profile->file.dfa, state, tp->base.hname); in match_component()
109 ns_name = aa_ns_name(profile->ns, tp->ns, true); in match_component()
110 state = aa_dfa_match_len(profile->file.dfa, state, ":", 1); in match_component()
111 state = aa_dfa_match(profile->file.dfa, state, ns_name); in match_component()
112 state = aa_dfa_match_len(profile->file.dfa, state, ":", 1); in match_component()
113 return aa_dfa_match(profile->file.dfa, state, tp->base.hname); in match_component()
132 static int label_compound_match(struct aa_profile *profile, in label_compound_match() argument
[all …]
Dcapability.c33 struct aa_profile *profile; member
64 static int audit_caps(struct common_audit_data *sa, struct aa_profile *profile, in audit_caps() argument
74 if (likely((AUDIT_MODE(profile) != AUDIT_ALL) && in audit_caps()
75 !cap_raised(profile->caps.audit, cap))) in audit_caps()
78 } else if (KILL_MODE(profile) || in audit_caps()
79 cap_raised(profile->caps.kill, cap)) { in audit_caps()
81 } else if (cap_raised(profile->caps.quiet, cap) && in audit_caps()
82 AUDIT_MODE(profile) != AUDIT_NOQUIET && in audit_caps()
83 AUDIT_MODE(profile) != AUDIT_ALL) { in audit_caps()
90 if (profile == ent->profile && cap_raised(ent->caps, cap)) { in audit_caps()
[all …]
Dpolicy_unpack.c108 struct aa_profile *profile = labels_profile(aa_current_raw_label()); in audit_iface() local
120 return aa_audit(AUDIT_APPARMOR_STATUS, profile, &sa, audit_cb); in audit_iface()
474 static bool unpack_trans_table(struct aa_ext *e, struct aa_profile *profile) in unpack_trans_table() argument
486 profile->file.trans.table = kcalloc(size, sizeof(char *), in unpack_trans_table()
488 if (!profile->file.trans.table) in unpack_trans_table()
491 profile->file.trans.size = size; in unpack_trans_table()
500 profile->file.trans.table[i] = str; in unpack_trans_table()
538 aa_free_domain_entries(&profile->file.trans); in unpack_trans_table()
543 static bool unpack_xattrs(struct aa_ext *e, struct aa_profile *profile) in unpack_xattrs() argument
551 profile->xattr_count = size; in unpack_xattrs()
[all …]
Dmount.c130 static int audit_mount(struct aa_profile *profile, const char *op, in audit_mount() argument
142 if (unlikely(AUDIT_MODE(profile) == AUDIT_ALL)) in audit_mount()
160 AUDIT_MODE(profile) != AUDIT_NOQUIET && in audit_mount()
161 AUDIT_MODE(profile) != AUDIT_ALL) in audit_mount()
178 return aa_audit(audit_type, profile, &sa, audit_cb); in audit_mount()
292 static int path_flags(struct aa_profile *profile, const struct path *path) in path_flags() argument
294 AA_BUG(!profile); in path_flags()
297 return profile->path_flags | in path_flags()
315 static int match_mnt_path_str(struct aa_profile *profile, in match_mnt_path_str() argument
325 AA_BUG(!profile); in match_mnt_path_str()
[all …]
Dnet.c106 int aa_profile_af_perm(struct aa_profile *profile, struct common_audit_data *sa, in aa_profile_af_perm() argument
116 if (profile_unconfined(profile)) in aa_profile_af_perm()
118 state = PROFILE_MEDIATES(profile, AA_CLASS_NET); in aa_profile_af_perm()
124 state = aa_dfa_match_len(profile->policy.dfa, state, (char *) &buffer, in aa_profile_af_perm()
126 aa_compute_perms(profile->policy.dfa, state, &perms); in aa_profile_af_perm()
127 aa_apply_modes_to_perms(profile, &perms); in aa_profile_af_perm()
129 return aa_check_perms(profile, &perms, request, sa, audit_net_cb); in aa_profile_af_perm()
135 struct aa_profile *profile; in aa_af_perm() local
138 return fn_for_each_confined(label, profile, in aa_af_perm()
139 aa_profile_af_perm(profile, &sa, request, family, in aa_af_perm()
[all …]
Dipc.c65 static int profile_ptrace_perm(struct aa_profile *profile, in profile_ptrace_perm() argument
72 aa_profile_match_label(profile, peer, AA_CLASS_PTRACE, request, in profile_ptrace_perm()
74 aa_apply_modes_to_perms(profile, &perms); in profile_ptrace_perm()
75 return aa_check_perms(profile, &perms, request, sa, audit_ptrace_cb); in profile_ptrace_perm()
123 struct aa_profile *profile; in aa_may_ptrace() local
127 return xcheck_labels(tracer, tracee, profile, in aa_may_ptrace()
128 profile_tracer_perm(profile, tracee, request, &sa), in aa_may_ptrace()
129 profile_tracee_perm(profile, tracer, xrequest, &sa)); in aa_may_ptrace()
187 static int profile_signal_perm(struct aa_profile *profile, in profile_signal_perm() argument
194 if (profile_unconfined(profile) || in profile_signal_perm()
[all …]
Dfile.c101 int aa_audit_file(struct aa_profile *profile, struct aa_perms *perms, in aa_audit_file() argument
122 if (unlikely(AUDIT_MODE(profile) == AUDIT_ALL)) in aa_audit_file()
141 AUDIT_MODE(profile) != AUDIT_NOQUIET && in aa_audit_file()
142 AUDIT_MODE(profile) != AUDIT_ALL) in aa_audit_file()
150 return aa_audit(type, profile, &sa, file_audit_cb); in aa_audit_file()
170 struct aa_profile *profile; in path_name() local
177 fn_for_each_confined(label, profile, in path_name()
178 aa_audit_file(profile, &nullperms, op, request, *name, in path_name()
277 int __aa_path_perm(const char *op, struct aa_profile *profile, const char *name, in __aa_path_perm() argument
283 if (profile_unconfined(profile)) in __aa_path_perm()
[all …]
Dapparmorfs.c609 static void profile_query_cb(struct aa_profile *profile, struct aa_perms *perms, in profile_query_cb() argument
616 if (profile_unconfined(profile)) in profile_query_cb()
618 if (profile->file.dfa && *match_str == AA_CLASS_FILE) { in profile_query_cb()
619 dfa = profile->file.dfa; in profile_query_cb()
620 state = aa_dfa_match_len(dfa, profile->file.start, in profile_query_cb()
627 } else if (profile->policy.dfa) { in profile_query_cb()
628 if (!PROFILE_MEDIATES(profile, *match_str)) in profile_query_cb()
630 dfa = profile->policy.dfa; in profile_query_cb()
631 state = aa_dfa_match_len(dfa, profile->policy.start[0], in profile_query_cb()
636 aa_apply_modes_to_perms(profile, &tmp); in profile_query_cb()
[all …]
Daudit.c80 struct aa_profile *profile = labels_profile(label); in audit_pre() local
82 if (profile->ns != root_ns) { in audit_pre()
85 profile->ns->base.hname); in audit_pre()
88 audit_log_untrustedstring(ab, profile->base.hname); in audit_pre()
125 int aa_audit(int type, struct aa_profile *profile, struct common_audit_data *sa, in aa_audit() argument
128 AA_BUG(!profile); in aa_audit()
132 if (AUDIT_MODE(profile) != AUDIT_ALL) in aa_audit()
135 } else if (COMPLAIN_MODE(profile)) in aa_audit()
140 if (AUDIT_MODE(profile) == AUDIT_QUIET || in aa_audit()
142 AUDIT_MODE(profile) == AUDIT_QUIET)) in aa_audit()
[all …]
Dresource.c52 static int audit_resource(struct aa_profile *profile, unsigned int resource, in audit_resource() argument
64 return aa_audit(AUDIT_APPARMOR_AUTO, profile, &sa, audit_cb); in audit_resource()
81 static int profile_setrlimit(struct aa_profile *profile, unsigned int resource, in profile_setrlimit() argument
86 if (profile->rlimits.mask & (1 << resource) && new_rlim->rlim_max > in profile_setrlimit()
87 profile->rlimits.limits[resource].rlim_max) in profile_setrlimit()
89 return audit_resource(profile, resource, new_rlim->rlim_max, NULL, NULL, in profile_setrlimit()
107 struct aa_profile *profile; in aa_task_setrlimit() local
124 error = fn_for_each(label, profile, in aa_task_setrlimit()
125 audit_resource(profile, resource, in aa_task_setrlimit()
129 error = fn_for_each_confined(label, profile, in aa_task_setrlimit()
[all …]
Dlabel.c319 struct aa_profile *profile; in label_destroy() local
324 label_for_each(i, label, profile) { in label_destroy()
325 aa_put_profile(profile); in label_destroy()
1230 static inline bool label_is_visible(struct aa_profile *profile, in label_is_visible() argument
1233 return aa_ns_visible(profile->ns, labels_ns(label), true); in label_is_visible()
1241 static inline unsigned int match_component(struct aa_profile *profile, in match_component() argument
1247 if (profile->ns == tp->ns) in match_component()
1248 return aa_dfa_match(profile->policy.dfa, state, tp->base.hname); in match_component()
1251 ns_name = aa_ns_name(profile->ns, tp->ns, true); in match_component()
1252 state = aa_dfa_match_len(profile->policy.dfa, state, ":", 1); in match_component()
[all …]
/Linux-v5.4/drivers/gpu/drm/amd/powerplay/hwmgr/
Dppatomfwctrl.c282 struct atom_asic_profiling_info_v4_1 *profile; in pp_atomfwctrl_get_avfs_information() local
286 profile = (struct atom_asic_profiling_info_v4_1 *) in pp_atomfwctrl_get_avfs_information()
290 if (!profile) in pp_atomfwctrl_get_avfs_information()
293 format_revision = ((struct atom_common_table_header *)profile)->format_revision; in pp_atomfwctrl_get_avfs_information()
294 content_revision = ((struct atom_common_table_header *)profile)->content_revision; in pp_atomfwctrl_get_avfs_information()
297 param->ulMaxVddc = le32_to_cpu(profile->maxvddc); in pp_atomfwctrl_get_avfs_information()
298 param->ulMinVddc = le32_to_cpu(profile->minvddc); in pp_atomfwctrl_get_avfs_information()
300 le32_to_cpu(profile->avfs_meannsigma_acontant0); in pp_atomfwctrl_get_avfs_information()
302 le32_to_cpu(profile->avfs_meannsigma_acontant1); in pp_atomfwctrl_get_avfs_information()
304 le32_to_cpu(profile->avfs_meannsigma_acontant2); in pp_atomfwctrl_get_avfs_information()
[all …]
Dppatomctrl.c1390 ATOM_ASIC_PROFILING_INFO_V3_6 *profile = NULL; in atomctrl_get_avfs_information() local
1395 profile = (ATOM_ASIC_PROFILING_INFO_V3_6 *) in atomctrl_get_avfs_information()
1399 if (!profile) in atomctrl_get_avfs_information()
1402 param->ulAVFS_meanNsigma_Acontant0 = le32_to_cpu(profile->ulAVFS_meanNsigma_Acontant0); in atomctrl_get_avfs_information()
1403 param->ulAVFS_meanNsigma_Acontant1 = le32_to_cpu(profile->ulAVFS_meanNsigma_Acontant1); in atomctrl_get_avfs_information()
1404 param->ulAVFS_meanNsigma_Acontant2 = le32_to_cpu(profile->ulAVFS_meanNsigma_Acontant2); in atomctrl_get_avfs_information()
1405 param->usAVFS_meanNsigma_DC_tol_sigma = le16_to_cpu(profile->usAVFS_meanNsigma_DC_tol_sigma); in atomctrl_get_avfs_information()
1406 param->usAVFS_meanNsigma_Platform_mean = le16_to_cpu(profile->usAVFS_meanNsigma_Platform_mean); in atomctrl_get_avfs_information()
1407 param->usAVFS_meanNsigma_Platform_sigma = le16_to_cpu(profile->usAVFS_meanNsigma_Platform_sigma); in atomctrl_get_avfs_information()
1408 param->ulGB_VDROOP_TABLE_CKSOFF_a0 = le32_to_cpu(profile->ulGB_VDROOP_TABLE_CKSOFF_a0); in atomctrl_get_avfs_information()
[all …]
/Linux-v5.4/drivers/devfreq/
Dgovernor_passive.c50 if (!devfreq->profile || !devfreq->profile->freq_table in devfreq_passive_get_target_freq()
51 || devfreq->profile->max_state <= 0) in devfreq_passive_get_target_freq()
71 for (i = 0; i < parent_devfreq->profile->max_state; i++) in devfreq_passive_get_target_freq()
72 if (parent_devfreq->profile->freq_table[i] == *freq) in devfreq_passive_get_target_freq()
75 if (i == parent_devfreq->profile->max_state) { in devfreq_passive_get_target_freq()
81 if (i < devfreq->profile->max_state) { in devfreq_passive_get_target_freq()
82 child_freq = devfreq->profile->freq_table[i]; in devfreq_passive_get_target_freq()
84 count = devfreq->profile->max_state; in devfreq_passive_get_target_freq()
85 child_freq = devfreq->profile->freq_table[count - 1]; in devfreq_passive_get_target_freq()
108 ret = devfreq->profile->target(devfreq->dev.parent, &freq, 0); in update_devfreq_passive()
[all …]
Ddevfreq.c110 for (lev = 0; lev < devfreq->profile->max_state; lev++) in devfreq_get_freq_level()
111 if (freq == devfreq->profile->freq_table[lev]) in devfreq_get_freq_level()
119 struct devfreq_dev_profile *profile = devfreq->profile; in set_freq_table() local
129 profile->max_state = count; in set_freq_table()
130 profile->freq_table = devm_kcalloc(devfreq->dev.parent, in set_freq_table()
131 profile->max_state, in set_freq_table()
132 sizeof(*profile->freq_table), in set_freq_table()
134 if (!profile->freq_table) { in set_freq_table()
135 profile->max_state = 0; in set_freq_table()
139 for (i = 0, freq = 0; i < profile->max_state; i++, freq++) { in set_freq_table()
[all …]
/Linux-v5.4/Documentation/ABI/obsolete/
Dsysfs-driver-hid-roccat-savu5 press of a button. A profile is split into general settings and
8 respective profile buttons to the mouse. The data has to be
11 Which profile to write is determined by the profile number
14 which profile to read.
21 profile will be read next. The data has to be 3 bytes long.
29 press of a button. A profile is split into general settings and
30 button settings. A profile holds information like resolution,
32 When written, this file lets one write the respective profile
35 Which profile to write is determined by the profile number
52 keystrokes for a specific button for a specific profile.
[all …]
Dsysfs-driver-hid-roccat-koneplus6 profile. This value is persistent, so its equivalent to the
7 profile that's active when the mouse is powered on next time.
8 When written, this file sets the number of the startup profile
9 and the mouse activates this profile immediately.
17 profile. This value is persistent, so its equivalent to the
18 profile that's active when the mouse is powered on next time.
19 When written, this file sets the number of the startup profile
20 and the mouse activates this profile immediately.
50 button for a specific profile. Button and profile numbers are
59 press of a button. A profile is split in settings and buttons.
[all …]
Dsysfs-driver-hid-roccat-kovaplus16 profile.
17 When written, the mouse activates this profile immediately.
18 The profile that's active when powered down is the same that's
66 press of a button. A profile is split in settings and buttons.
68 When written, this file lets one write the respective profile
71 Which profile to write is determined by the profile number
74 which profile to read.
77 …e num>/<hid-bus>:<vendor-id>:<product-id>.<num>/kovaplus/roccatkovaplus<minor>/profile[1-5]_buttons
81 press of a button. A profile is split in settings and buttons.
83 When read, these files return the respective profile buttons.
[all …]
Dsysfs-driver-hid-roccat-pyra22 Description: When read, this file returns the number of the actual profile in
52 press of a button. A profile is split in settings and buttons.
54 When written, this file lets one write the respective profile
57 Which profile to write is determined by the profile number
60 which profile to read.
63 …interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/pyra/roccatpyra<minor>/profile[1-5]_buttons
67 press of a button. A profile is split in settings and buttons.
69 When read, these files return the respective profile buttons.
72 Write control to select profile and read profile_buttons instead.
79 press of a button. A profile is split in settings and buttons.
[all …]
/Linux-v5.4/security/apparmor/include/
Dpolicy.h174 void aa_add_profile(struct aa_policy *common, struct aa_profile *profile);
182 void aa_free_profile(struct aa_profile *profile);
216 static inline unsigned int PROFILE_MEDIATES(struct aa_profile *profile, in PROFILE_MEDIATES() argument
220 return profile->policy.start[class]; in PROFILE_MEDIATES()
222 return aa_dfa_match_len(profile->policy.dfa, in PROFILE_MEDIATES()
223 profile->policy.start[0], &class, 1); in PROFILE_MEDIATES()
226 static inline unsigned int PROFILE_MEDIATES_AF(struct aa_profile *profile, in PROFILE_MEDIATES_AF() argument
228 unsigned int state = PROFILE_MEDIATES(profile, AA_CLASS_NET); in PROFILE_MEDIATES_AF()
233 return aa_dfa_match_len(profile->policy.dfa, state, (char *) &be_af, 2); in PROFILE_MEDIATES_AF()
296 static inline int AUDIT_MODE(struct aa_profile *profile) in AUDIT_MODE() argument
[all …]
/Linux-v5.4/tools/testing/selftests/drivers/net/mlxsw/spectrum/
Dresource_scale.sh32 for profile in $KVD_PROFILES; do
34 devlink_sp_resource_kvd_profile_set $profile
36 log_test "'$current_test' [$profile] setting"
48 log_test "'$current_test' [$profile] $target"
50 log_test "'$current_test' [$profile] overflow $target"
/Linux-v5.4/block/
Dblk-integrity.c126 if (!b1->profile && !b2->profile) in blk_integrity_compare()
129 if (!b1->profile || !b2->profile) in blk_integrity_compare()
153 if (b1->profile != b2->profile) { in blk_integrity_compare()
156 b1->profile->name, b2->profile->name); in blk_integrity_compare()
252 if (bi->profile && bi->profile->name) in integrity_format_show()
253 return sprintf(page, "%s\n", bi->profile->name); in integrity_format_show()
407 bi->profile = template->profile ? template->profile : &nop_profile; in blk_integrity_register()

1234567891011