Home
last modified time | relevance | path

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

12345678910>>...14

/linux-5.19.10/block/
Dblk-crypto-profile.c41 struct blk_crypto_profile *profile; member
44 static inline void blk_crypto_hw_enter(struct blk_crypto_profile *profile) in blk_crypto_hw_enter() argument
51 if (profile->dev) in blk_crypto_hw_enter()
52 pm_runtime_get_sync(profile->dev); in blk_crypto_hw_enter()
53 down_write(&profile->lock); in blk_crypto_hw_enter()
56 static inline void blk_crypto_hw_exit(struct blk_crypto_profile *profile) in blk_crypto_hw_exit() argument
58 up_write(&profile->lock); in blk_crypto_hw_exit()
59 if (profile->dev) in blk_crypto_hw_exit()
60 pm_runtime_put_sync(profile->dev); in blk_crypto_hw_exit()
73 int blk_crypto_profile_init(struct blk_crypto_profile *profile, in blk_crypto_profile_init() argument
[all …]
Dblk-crypto-sysfs.c15 struct blk_crypto_profile *profile; member
20 ssize_t (*show)(struct blk_crypto_profile *profile,
26 return container_of(kobj, struct blk_crypto_kobj, kobj)->profile; in kobj_to_crypto_profile()
34 static ssize_t max_dun_bits_show(struct blk_crypto_profile *profile, in max_dun_bits_show() argument
37 return sysfs_emit(page, "%u\n", 8 * profile->max_dun_bytes_supported); in max_dun_bits_show()
40 static ssize_t num_keyslots_show(struct blk_crypto_profile *profile, in num_keyslots_show() argument
43 return sysfs_emit(page, "%u\n", profile->num_slots); in num_keyslots_show()
72 struct blk_crypto_profile *profile = kobj_to_crypto_profile(kobj); in blk_crypto_mode_is_visible() local
76 if (profile->modes_supported[mode_num]) in blk_crypto_mode_is_visible()
81 static ssize_t blk_crypto_mode_show(struct blk_crypto_profile *profile, in blk_crypto_mode_show() argument
[all …]
/linux-5.19.10/drivers/infiniband/hw/mthca/
Dmthca_profile.c77 struct mthca_resource *profile; in mthca_make_profile() local
80 profile = kcalloc(MTHCA_RES_NUM, sizeof(*profile), GFP_KERNEL); in mthca_make_profile()
81 if (!profile) in mthca_make_profile()
84 profile[MTHCA_RES_QP].size = dev_lim->qpc_entry_sz; in mthca_make_profile()
85 profile[MTHCA_RES_EEC].size = dev_lim->eec_entry_sz; in mthca_make_profile()
86 profile[MTHCA_RES_SRQ].size = dev_lim->srq_entry_sz; in mthca_make_profile()
87 profile[MTHCA_RES_CQ].size = dev_lim->cqc_entry_sz; in mthca_make_profile()
88 profile[MTHCA_RES_EQP].size = dev_lim->eqpc_entry_sz; in mthca_make_profile()
89 profile[MTHCA_RES_EEEC].size = dev_lim->eeec_entry_sz; in mthca_make_profile()
90 profile[MTHCA_RES_EQ].size = dev_lim->eqc_entry_sz; in mthca_make_profile()
[all …]
/linux-5.19.10/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-5.19.10/security/apparmor/
Ddomain.c98 static inline unsigned int match_component(struct aa_profile *profile, in match_component() argument
105 state = aa_dfa_match(profile->file.dfa, state, "&"); in match_component()
106 if (profile->ns == tp->ns) in match_component()
107 return aa_dfa_match(profile->file.dfa, state, tp->base.hname); in match_component()
110 ns_name = aa_ns_name(profile->ns, tp->ns, true); in match_component()
111 state = aa_dfa_match_len(profile->file.dfa, state, ":", 1); in match_component()
112 state = aa_dfa_match(profile->file.dfa, state, ns_name); in match_component()
113 state = aa_dfa_match_len(profile->file.dfa, state, ":", 1); in match_component()
114 return aa_dfa_match(profile->file.dfa, state, tp->base.hname); in match_component()
133 static int label_compound_match(struct aa_profile *profile, in label_compound_match() argument
[all …]
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 …]
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 …]
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()
293 static int path_flags(struct aa_profile *profile, const struct path *path) in path_flags() argument
295 AA_BUG(!profile); in path_flags()
298 return profile->path_flags | in path_flags()
316 static int match_mnt_path_str(struct aa_profile *profile, in match_mnt_path_str() argument
326 AA_BUG(!profile); in match_mnt_path_str()
[all …]
Dpolicy_unpack.c109 struct aa_profile *profile = labels_profile(aa_current_raw_label()); in audit_iface() local
121 return aa_audit(AUDIT_APPARMOR_STATUS, profile, &sa, audit_cb); in audit_iface()
477 static bool unpack_trans_table(struct aa_ext *e, struct aa_profile *profile) in unpack_trans_table() argument
489 profile->file.trans.table = kcalloc(size, sizeof(char *), in unpack_trans_table()
491 if (!profile->file.trans.table) in unpack_trans_table()
494 profile->file.trans.size = size; in unpack_trans_table()
503 profile->file.trans.table[i] = str; in unpack_trans_table()
541 aa_free_domain_entries(&profile->file.trans); in unpack_trans_table()
546 static bool unpack_xattrs(struct aa_ext *e, struct aa_profile *profile) in unpack_xattrs() argument
554 profile->xattr_count = size; in unpack_xattrs()
[all …]
Dnet.c108 int aa_profile_af_perm(struct aa_profile *profile, struct common_audit_data *sa, in aa_profile_af_perm() argument
118 if (profile_unconfined(profile)) in aa_profile_af_perm()
120 state = PROFILE_MEDIATES(profile, AA_CLASS_NET); in aa_profile_af_perm()
126 state = aa_dfa_match_len(profile->policy.dfa, state, (char *) &buffer, in aa_profile_af_perm()
128 aa_compute_perms(profile->policy.dfa, state, &perms); in aa_profile_af_perm()
129 aa_apply_modes_to_perms(profile, &perms); in aa_profile_af_perm()
131 return aa_check_perms(profile, &perms, request, sa, audit_net_cb); in aa_profile_af_perm()
137 struct aa_profile *profile; in aa_af_perm() local
140 return fn_for_each_confined(label, profile, in aa_af_perm()
141 aa_profile_af_perm(profile, &sa, request, family, in aa_af_perm()
[all …]
Dipc.c63 static int profile_ptrace_perm(struct aa_profile *profile, in profile_ptrace_perm() argument
70 aa_profile_match_label(profile, peer, AA_CLASS_PTRACE, request, in profile_ptrace_perm()
72 aa_apply_modes_to_perms(profile, &perms); in profile_ptrace_perm()
73 return aa_check_perms(profile, &perms, request, sa, audit_ptrace_cb); in profile_ptrace_perm()
121 struct aa_profile *profile; in aa_may_ptrace() local
125 return xcheck_labels(tracer, tracee, profile, in aa_may_ptrace()
126 profile_tracer_perm(profile, tracee, request, &sa), in aa_may_ptrace()
127 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.c92 int aa_audit_file(struct aa_profile *profile, struct aa_perms *perms, in aa_audit_file() argument
113 if (unlikely(AUDIT_MODE(profile) == AUDIT_ALL)) in aa_audit_file()
132 AUDIT_MODE(profile) != AUDIT_NOQUIET && in aa_audit_file()
133 AUDIT_MODE(profile) != AUDIT_ALL) in aa_audit_file()
141 return aa_audit(type, profile, &sa, file_audit_cb); in aa_audit_file()
161 struct aa_profile *profile; in path_name() local
168 fn_for_each_confined(label, profile, in path_name()
169 aa_audit_file(profile, &nullperms, op, request, *name, in path_name()
268 int __aa_path_perm(const char *op, struct aa_profile *profile, const char *name, in __aa_path_perm() argument
274 if (profile_unconfined(profile)) in __aa_path_perm()
[all …]
Dapparmorfs.c608 static void profile_query_cb(struct aa_profile *profile, struct aa_perms *perms, in profile_query_cb() argument
615 if (profile_unconfined(profile)) in profile_query_cb()
617 if (profile->file.dfa && *match_str == AA_CLASS_FILE) { in profile_query_cb()
618 dfa = profile->file.dfa; in profile_query_cb()
619 state = aa_dfa_match_len(dfa, profile->file.start, in profile_query_cb()
626 } else if (profile->policy.dfa) { in profile_query_cb()
627 if (!PROFILE_MEDIATES(profile, *match_str)) in profile_query_cb()
629 dfa = profile->policy.dfa; in profile_query_cb()
630 state = aa_dfa_match_len(dfa, profile->policy.start[0], in profile_query_cb()
635 aa_apply_modes_to_perms(profile, &tmp); in profile_query_cb()
[all …]
Daudit.c78 struct aa_profile *profile = labels_profile(label); in audit_pre() local
80 if (profile->ns != root_ns) { in audit_pre()
83 profile->ns->base.hname); in audit_pre()
86 audit_log_untrustedstring(ab, profile->base.hname); in audit_pre()
123 int aa_audit(int type, struct aa_profile *profile, struct common_audit_data *sa, in aa_audit() argument
126 AA_BUG(!profile); in aa_audit()
130 if (AUDIT_MODE(profile) != AUDIT_ALL) in aa_audit()
133 } else if (COMPLAIN_MODE(profile)) in aa_audit()
138 if (AUDIT_MODE(profile) == AUDIT_QUIET || in aa_audit()
140 AUDIT_MODE(profile) == AUDIT_QUIET_DENIED)) 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.c317 struct aa_profile *profile; in aa_label_destroy() local
322 label_for_each(i, label, profile) { in aa_label_destroy()
323 aa_put_profile(profile); in aa_label_destroy()
1257 static inline bool label_is_visible(struct aa_profile *profile, in label_is_visible() argument
1260 return aa_ns_visible(profile->ns, labels_ns(label), true); in label_is_visible()
1268 static inline unsigned int match_component(struct aa_profile *profile, in match_component() argument
1274 if (profile->ns == tp->ns) in match_component()
1275 return aa_dfa_match(profile->policy.dfa, state, tp->base.hname); in match_component()
1278 ns_name = aa_ns_name(profile->ns, tp->ns, true); in match_component()
1279 state = aa_dfa_match_len(profile->policy.dfa, state, ":", 1); in match_component()
[all …]
/linux-5.19.10/include/linux/
Dblk-crypto-profile.h37 int (*keyslot_program)(struct blk_crypto_profile *profile,
57 int (*keyslot_evict)(struct blk_crypto_profile *profile,
132 int blk_crypto_profile_init(struct blk_crypto_profile *profile,
136 struct blk_crypto_profile *profile,
141 blk_status_t blk_crypto_get_keyslot(struct blk_crypto_profile *profile,
147 bool __blk_crypto_cfg_supported(struct blk_crypto_profile *profile,
150 int __blk_crypto_evict_key(struct blk_crypto_profile *profile,
153 void blk_crypto_reprogram_all_keys(struct blk_crypto_profile *profile);
155 void blk_crypto_profile_destroy(struct blk_crypto_profile *profile);
/linux-5.19.10/drivers/gpu/drm/amd/pm/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 …]
/linux-5.19.10/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 …]
/linux-5.19.10/drivers/mmc/host/
Dcqhci-crypto.c26 cqhci_host_from_crypto_profile(struct blk_crypto_profile *profile) in cqhci_host_from_crypto_profile() argument
29 container_of(profile, struct mmc_host, crypto_profile); in cqhci_host_from_crypto_profile()
61 static int cqhci_crypto_keyslot_program(struct blk_crypto_profile *profile, in cqhci_crypto_keyslot_program() argument
66 struct cqhci_host *cq_host = cqhci_host_from_crypto_profile(profile); in cqhci_crypto_keyslot_program()
119 static int cqhci_crypto_keyslot_evict(struct blk_crypto_profile *profile, in cqhci_crypto_keyslot_evict() argument
123 struct cqhci_host *cq_host = cqhci_host_from_crypto_profile(profile); in cqhci_crypto_keyslot_evict()
172 struct blk_crypto_profile *profile = &mmc->crypto_profile; in cqhci_crypto_init() local
203 err = devm_blk_crypto_profile_init(dev, profile, num_keyslots); in cqhci_crypto_init()
207 profile->ll_ops = cqhci_crypto_ops; in cqhci_crypto_init()
208 profile->dev = dev; in cqhci_crypto_init()
[all …]
/linux-5.19.10/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-5.19.10/Documentation/userspace-api/
Dsysfs-platform_profile.rst16 API for selecting the platform profile of these automatic mechanisms.
18 Note that this API is only for selecting the platform profile, it is
23 Specifically when selecting a high performance profile the actual achieved
31 profile will adjust (power consumption, heat generation, etc) this API
34 a fixed set of profile names. Drivers *must* map their internal profile
37 If there is no good match when mapping then a new profile name may be
38 added. Drivers which wish to introduce new profile names must:
40 1. Explain why the existing profile names canot be used.
41 2. Add the new profile name, along with a clear description of the
/linux-5.19.10/drivers/devfreq/
Dexynos-bus.c295 struct devfreq_dev_profile *profile) in exynos_bus_profile_init() argument
302 profile->polling_ms = 50; in exynos_bus_profile_init()
303 profile->target = exynos_bus_target; in exynos_bus_profile_init()
304 profile->get_dev_status = exynos_bus_get_dev_status; in exynos_bus_profile_init()
305 profile->exit = exynos_bus_exit; in exynos_bus_profile_init()
315 bus->devfreq = devm_devfreq_add_device(dev, profile, in exynos_bus_profile_init()
356 struct devfreq_dev_profile *profile) in exynos_bus_profile_init_passive() argument
363 profile->target = exynos_bus_target; in exynos_bus_profile_init_passive()
364 profile->exit = exynos_bus_passive_exit; in exynos_bus_profile_init_passive()
378 bus->devfreq = devm_devfreq_add_device(dev, profile, DEVFREQ_GOV_PASSIVE, in exynos_bus_profile_init_passive()
[all …]

12345678910>>...14