Home
last modified time | relevance | path

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

12345678910>>...12

/linux/block/
H A Dblk-crypto-profile.c42 struct blk_crypto_profile *profile; member
45 static inline void blk_crypto_hw_enter(struct blk_crypto_profile *profile) in blk_crypto_hw_enter() argument
52 if (profile->dev) in blk_crypto_hw_enter()
53 pm_runtime_get_sync(profile->dev); in blk_crypto_hw_enter()
54 down_write(&profile->lock); in blk_crypto_hw_enter()
57 static inline void blk_crypto_hw_exit(struct blk_crypto_profile *profile) in blk_crypto_hw_exit() argument
59 up_write(&profile->lock); in blk_crypto_hw_exit()
60 if (profile->dev) in blk_crypto_hw_exit()
61 pm_runtime_put_sync(profile->dev); in blk_crypto_hw_exit()
74 int blk_crypto_profile_init(struct blk_crypto_profile *profile, in blk_crypto_profile_init() argument
[all …]
H A 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 hw_wrapped_keys_show(struct blk_crypto_profile *profile, in hw_wrapped_keys_show() argument
41 static ssize_t max_dun_bits_show(struct blk_crypto_profile *profile, in max_dun_bits_show() argument
44 return sysfs_emit(page, "%u\n", 8 * profile->max_dun_bytes_supported); in max_dun_bits_show()
47 static ssize_t num_keyslots_show(struct blk_crypto_profile *profile, in num_keyslots_show() argument
50 return sysfs_emit(page, "%u\n", profile->num_slots); in num_keyslots_show()
53 static ssize_t raw_keys_show(struct blk_crypto_profile *profile, in raw_keys_show() argument
71 struct blk_crypto_profile *profile = kobj_to_crypto_profile(kobj); in blk_crypto_is_visible() local
[all …]
/linux/drivers/infiniband/hw/mthca/
H A 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/drivers/net/ethernet/mellanox/mlx4/
H A 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/security/apparmor/
H A Dpolicy.c146 static void __add_profile(struct list_head *list, struct aa_profile *profile) in __add_profile() argument
151 AA_BUG(!profile); in __add_profile()
152 AA_BUG(!profile->ns); in __add_profile()
153 AA_BUG(!mutex_is_locked(&profile->ns->lock)); in __add_profile()
155 list_add_rcu(&profile->base.list, list); in __add_profile()
157 aa_get_profile(profile); in __add_profile()
158 l = aa_label_insert(&profile->ns->labels, &profile->label); in __add_profile()
159 AA_BUG(l != &profile->label); in __add_profile()
175 static void __list_remove_profile(struct aa_profile *profile) in __list_remove_profile() argument
177 AA_BUG(!profile); in __list_remove_profile()
[all …]
H A Ddomain.c92 static inline aa_state_t match_component(struct aa_profile *profile, in match_component() argument
96 struct aa_ruleset *rules = profile->label.rules[0]; in match_component()
101 if (profile->ns == tp->ns) in match_component()
105 ns_name = aa_ns_name(profile->ns, tp->ns, true); in match_component()
128 static int label_compound_match(struct aa_profile *profile, in label_compound_match() argument
133 struct aa_ruleset *rules = profile->label.rules[0]; in label_compound_match()
140 if (!aa_ns_visible(profile->ns, tp->ns, subns)) in label_compound_match()
142 state = match_component(profile, tp, stack, state); in label_compound_match()
154 if (!aa_ns_visible(profile->ns, tp->ns, subns)) in label_compound_match()
157 state = match_component(profile, tp, false, state); in label_compound_match()
[all …]
H A Dmount.c135 struct aa_profile *profile, const char *op, in audit_mount() argument
147 if (unlikely(AUDIT_MODE(profile) == AUDIT_ALL)) in audit_mount()
165 AUDIT_MODE(profile) != AUDIT_NOQUIET && in audit_mount()
166 AUDIT_MODE(profile) != AUDIT_ALL) in audit_mount()
184 return aa_audit(audit_type, profile, &ad, audit_cb); in audit_mount()
281 static int path_flags(struct aa_profile *profile, const struct path *path) in path_flags() argument
283 AA_BUG(!profile); in path_flags()
286 return profile->path_flags | in path_flags()
306 struct aa_profile *profile, in match_mnt_path_str() argument
314 struct aa_ruleset *rules = profile->label.rules[0]; in match_mnt_path_str()
[all …]
H A Daf_unix.c172 static aa_state_t match_label(struct aa_profile *profile, in match_label() argument
178 AA_BUG(!profile); in match_label()
191 return aa_do_perms(profile, rule->policy, state, request, p, ad); in match_label()
201 static int profile_create_perm(struct aa_profile *profile, int family, in profile_create_perm() argument
205 struct aa_ruleset *rules = profile->label.rules[0]; in profile_create_perm()
208 AA_BUG(!profile); in profile_create_perm()
209 AA_BUG(profile_unconfined(profile)); in profile_create_perm()
217 return aa_do_perms(profile, rules->policy, state, AA_MAY_CREATE, in profile_create_perm()
221 return aa_profile_af_perm(profile, ad, AA_MAY_CREATE, family, type, in profile_create_perm()
225 static int profile_sk_perm(struct aa_profile *profile, in profile_sk_perm() argument
[all …]
H A Dcapability.c67 static int audit_caps(struct apparmor_audit_data *ad, struct aa_profile *profile, in audit_caps() argument
72 struct aa_ruleset *rules = profile->label.rules[0]; in audit_caps()
80 if (likely((AUDIT_MODE(profile) != AUDIT_ALL) && in audit_caps()
84 } else if (KILL_MODE(profile) || in audit_caps()
88 AUDIT_MODE(profile) != AUDIT_NOQUIET && in audit_caps()
89 AUDIT_MODE(profile) != AUDIT_ALL) { in audit_caps()
99 if (COMPLAIN_MODE(profile)) in audit_caps()
109 return aa_audit(type, profile, ad, audit_cb); in audit_caps()
121 static int profile_capable(struct aa_profile *profile, int cap, in profile_capable() argument
124 struct aa_ruleset *rules = profile->label.rules[0]; in profile_capable()
[all …]
H A Dfile.c96 struct aa_profile *profile, struct aa_perms *perms, in aa_audit_file() argument
117 if (unlikely(AUDIT_MODE(profile) == AUDIT_ALL)) in aa_audit_file()
136 AUDIT_MODE(profile) != AUDIT_NOQUIET && in aa_audit_file()
137 AUDIT_MODE(profile) != AUDIT_ALL) in aa_audit_file()
145 return aa_audit(type, profile, &ad, file_audit_cb); in aa_audit_file()
153 struct aa_profile *profile; in path_name() local
160 fn_for_each_confined(label, profile, in path_name()
162 profile, &nullperms, op, request, *name, in path_name()
222 struct aa_profile *profile, const char *name, in __aa_path_perm() argument
226 struct aa_ruleset *rules = profile->label.rules[0]; in __aa_path_perm()
[all …]
H A Dpolicy_unpack.c67 struct aa_profile *profile = labels_profile(aa_current_raw_label()); in audit_iface() local
79 return aa_audit(AUDIT_APPARMOR_STATUS, profile, &ad, audit_cb); in audit_iface()
535 static bool unpack_xattrs(struct aa_ext *e, struct aa_profile *profile) in unpack_xattrs() argument
545 profile->attach.xattr_count = size; in unpack_xattrs()
546 profile->attach.xattrs = kcalloc(size, sizeof(char *), GFP_KERNEL); in unpack_xattrs()
547 if (!profile->attach.xattrs) in unpack_xattrs()
550 if (!aa_unpack_strdup(e, &profile->attach.xattrs[i], NULL)) in unpack_xattrs()
847 struct aa_profile *profile = NULL; in unpack_profile() local
883 profile = aa_alloc_profile(name, NULL, GFP_KERNEL); in unpack_profile()
884 if (!profile) { in unpack_profile()
[all …]
H A Daudit.c120 struct aa_profile *profile = labels_profile(label); in audit_pre() local
122 if (profile->ns != root_ns) { in audit_pre()
125 profile->ns->base.hname); in audit_pre()
128 audit_log_untrustedstring(ab, profile->base.hname); in audit_pre()
166 int aa_audit(int type, struct aa_profile *profile, in aa_audit() argument
170 AA_BUG(!profile); in aa_audit()
174 if (AUDIT_MODE(profile) != AUDIT_ALL) in aa_audit()
177 } else if (COMPLAIN_MODE(profile)) in aa_audit()
182 if (AUDIT_MODE(profile) == AUDIT_QUIET || in aa_audit()
184 AUDIT_MODE(profile) == AUDIT_QUIET_DENIED)) in aa_audit()
[all …]
H A Dapparmorfs.c617 static void profile_query_cb(struct aa_profile *profile, struct aa_perms *perms, in profile_query_cb() argument
620 struct aa_ruleset *rules = profile->label.rules[0]; in profile_query_cb()
624 if (profile_unconfined(profile)) in profile_query_cb()
653 aa_apply_modes_to_perms(profile, &tmp); in profile_query_cb()
683 struct aa_profile *profile; in query_data() local
718 label_for_each_confined(i, label, profile) { in query_data()
719 if (!profile->data) in query_data()
722 data = rhashtable_lookup_fast(profile->data, &key, in query_data()
723 profile->data->p); in query_data()
772 struct aa_profile *profile; in query_label() local
[all …]
H A Dnet.c165 int aa_do_perms(struct aa_profile *profile, struct aa_policydb *policy, in aa_do_perms() argument
171 AA_BUG(!profile); in aa_do_perms()
178 aa_apply_modes_to_perms(profile, &perms); in aa_do_perms()
179 return aa_check_perms(profile, &perms, request, ad, in aa_do_perms()
250 int aa_profile_af_perm(struct aa_profile *profile, in aa_profile_af_perm() argument
254 struct aa_ruleset *rules = profile->label.rules[0]; in aa_profile_af_perm()
260 AA_BUG(profile_unconfined(profile)); in aa_profile_af_perm()
262 if (profile_unconfined(profile)) in aa_profile_af_perm()
269 return aa_do_perms(profile, rules->policy, state, request, p, ad); in aa_profile_af_perm()
275 struct aa_profile *profile; in aa_af_perm() local
[all …]
H A Dipc.c79 struct aa_profile *profile, in profile_signal_perm() argument
83 struct aa_ruleset *rules = profile->label.rules[0]; in profile_signal_perm()
87 if (profile_unconfined(profile)) in profile_signal_perm()
97 aa_label_match(profile, rules, peer, state, false, request, &perms); in profile_signal_perm()
98 aa_apply_modes_to_perms(profile, &perms); in profile_signal_perm()
99 return aa_check_perms(profile, &perms, request, ad, audit_signal_cb); in profile_signal_perm()
106 struct aa_profile *profile; in aa_may_signal() local
111 return xcheck_labels(sender, target, profile, in aa_may_signal()
112 profile_signal_perm(subj_cred, profile, target, in aa_may_signal()
114 profile_signal_perm(target_cred, profile, sender, in aa_may_signal()
H A Dtask.c227 struct aa_profile *profile, in profile_ptrace_perm() argument
231 struct aa_ruleset *rules = profile->label.rules[0]; in profile_ptrace_perm()
236 aa_profile_match_label(profile, rules, peer, AA_CLASS_PTRACE, request, in profile_ptrace_perm()
238 aa_apply_modes_to_perms(profile, &perms); in profile_ptrace_perm()
239 return aa_check_perms(profile, &perms, request, ad, audit_ptrace_cb); in profile_ptrace_perm()
292 struct aa_profile *profile; in aa_may_ptrace() local
296 return xcheck_labels(tracer, tracee, profile, in aa_may_ptrace()
297 profile_tracer_perm(tracer_cred, profile, tracee, in aa_may_ptrace()
299 profile_tracee_perm(tracee_cred, profile, tracer, in aa_may_ptrace()
315 int aa_profile_ns_perm(struct aa_profile *profile, in aa_profile_ns_perm() argument
[all …]
H A Dresource.c57 struct aa_profile *profile, unsigned int resource, in audit_resource() argument
71 return aa_audit(AUDIT_APPARMOR_AUTO, profile, &ad, audit_cb); in audit_resource()
89 struct aa_profile *profile, unsigned int resource, in profile_setrlimit() argument
92 struct aa_ruleset *rules = profile->label.rules[0]; in profile_setrlimit()
98 return audit_resource(subj_cred, profile, resource, new_rlim->rlim_max, in profile_setrlimit()
118 struct aa_profile *profile; in aa_task_setrlimit() local
135 error = fn_for_each(label, profile, in aa_task_setrlimit()
136 audit_resource(subj_cred, profile, resource, in aa_task_setrlimit()
140 error = fn_for_each_confined(label, profile, in aa_task_setrlimit()
141 profile_setrlimit(subj_cred, profile, resource, in aa_task_setrlimit()
/linux/include/linux/
H A Dblk-crypto-profile.h37 int (*keyslot_program)(struct blk_crypto_profile *profile,
57 int (*keyslot_evict)(struct blk_crypto_profile *profile,
71 int (*derive_sw_secret)(struct blk_crypto_profile *profile,
85 int (*import_key)(struct blk_crypto_profile *profile,
99 int (*generate_key)(struct blk_crypto_profile *profile,
113 int (*prepare_key)(struct blk_crypto_profile *profile,
195 int blk_crypto_profile_init(struct blk_crypto_profile *profile,
199 struct blk_crypto_profile *profile,
204 void blk_crypto_reprogram_all_keys(struct blk_crypto_profile *profile);
206 void blk_crypto_profile_destroy(struct blk_crypto_profile *profile);
[all …]
/linux/drivers/mmc/host/
H A Dcqhci-crypto.c26 cqhci_host_from_crypto_profile(struct blk_crypto_profile *profile) in cqhci_host_from_crypto_profile() argument
28 return mmc_from_crypto_profile(profile)->cqe_private; in cqhci_host_from_crypto_profile()
54 static int cqhci_crypto_keyslot_program(struct blk_crypto_profile *profile, in cqhci_crypto_keyslot_program() argument
59 struct cqhci_host *cq_host = cqhci_host_from_crypto_profile(profile); in cqhci_crypto_keyslot_program()
112 static int cqhci_crypto_keyslot_evict(struct blk_crypto_profile *profile, in cqhci_crypto_keyslot_evict() argument
116 struct cqhci_host *cq_host = cqhci_host_from_crypto_profile(profile); in cqhci_crypto_keyslot_evict()
165 struct blk_crypto_profile *profile = &mmc->crypto_profile; in cqhci_crypto_init() local
197 dev, profile, cq_host->crypto_capabilities.config_count + 1); in cqhci_crypto_init()
201 profile->ll_ops = cqhci_crypto_ops; in cqhci_crypto_init()
202 profile->dev = dev; in cqhci_crypto_init()
[all …]
/linux/Documentation/ABI/testing/
H A Dsysfs-class-platform-profile1 What: /sys/class/platform-profile/platform-profile-X/name
8 What: /sys/class/platform-profile/platform-profile-X/choices
14 Drivers must use the following standard profile-names:
28 custom Driver defined custom profile
33 What: /sys/class/platform-profile/platform-profile-X/profile
36 Description: Reading this file gives the current selected profile for this
38 platform_profile_choices changes the profile to the new value.
43 source such as e.g. a hotkey triggered profile change handled
48 that the driver is using a driver defined custom profile.
/linux/sound/soc/sof/
H A Dfw-file-profile.c15 struct sof_loadable_file_profile *profile, in sof_test_firmware_file() argument
24 fw_filename = kasprintf(GFP_KERNEL, "%s/%s", profile->fw_path, in sof_test_firmware_file()
25 profile->fw_name); in sof_test_firmware_file()
53 } else if (fw_ipc_type != profile->ipc_type) { in sof_test_firmware_file()
56 fw_filename, fw_ipc_type, profile->ipc_type); in sof_test_firmware_file()
67 struct sof_loadable_file_profile *profile) in sof_test_topology_file() argument
73 if (!profile->tplg_path || !profile->tplg_name) in sof_test_topology_file()
77 if (strstr(profile->tplg_name, "dummy")) in sof_test_topology_file()
80 tplg_filename = kasprintf(GFP_KERNEL, "%s/%s", profile in sof_test_topology_file()
267 sof_print_profile_info(struct snd_sof_dev * sdev,enum sof_ipc_type ipc_type,struct sof_loadable_file_profile * profile) sof_print_profile_info() argument
[all...]
/linux/Documentation/ABI/obsolete/
H A 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 …]
H A 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 …]
H A 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/drivers/acpi/
H A Dplatform_profile.c115 enum platform_profile_option *profile) in get_class_profile() argument
131 *profile = val; in get_class_profile()
182 enum platform_profile_option profile = PLATFORM_PROFILE_LAST; in profile_show() local
186 err = get_class_profile(dev, &profile); in profile_show()
191 return sysfs_emit(buf, "%s\n", profile_names[profile]); in profile_show()
223 static DEVICE_ATTR_RW(profile);
231 ATTRIBUTE_GROUPS(profile);
337 enum platform_profile_option *profile = data; in _aggregate_profiles() local
345 if (*profile != PLATFORM_PROFILE_LAST && *profile != val) in _aggregate_profiles()
346 *profile = PLATFORM_PROFILE_CUSTOM; in _aggregate_profiles()
[all …]

12345678910>>...12