| /linux/block/ |
| A D | blk-crypto-profile.c | 80 memset(profile, 0, sizeof(*profile)); in blk_crypto_profile_init() 99 profile->slots[slot].profile = profile; in blk_crypto_profile_init() 158 profile); in devm_blk_crypto_profile_init() 173 struct blk_crypto_profile *profile = slot->profile; in blk_crypto_remove_slot_from_lru_list() local 326 profile = slot->profile; in blk_crypto_put_keyslot() 347 if (!profile) in __blk_crypto_cfg_supported() 382 err = profile->ll_ops.keyslot_evict(profile, key, -1); in __blk_crypto_evict_key() 398 err = profile->ll_ops.keyslot_evict(profile, key, in __blk_crypto_evict_key() 445 if (!profile) in blk_crypto_profile_destroy() 449 sizeof(profile->slots[0]) * profile->num_slots); in blk_crypto_profile_destroy() [all …]
|
| /linux/drivers/infiniband/hw/mthca/ |
| A D | mthca_profile.c | 82 profile = kcalloc(MTHCA_RES_NUM, sizeof(*profile), GFP_KERNEL); in mthca_make_profile() 83 if (!profile) in mthca_make_profile() 116 profile[i].log_num = max(ffs(profile[i].num) - 1, 0); in mthca_make_profile() 117 profile[i].size *= profile[i].num; in mthca_make_profile() 119 profile[i].size = max(profile[i].size, (u64) PAGE_SIZE); in mthca_make_profile() 138 if (profile[j].size > profile[j - 1].size) in mthca_make_profile() 139 swap(profile[j], profile[j - 1]); in mthca_make_profile() 152 kfree(profile); in mthca_make_profile() 156 if (profile[i].size) in mthca_make_profile() 159 i, profile[i].type, profile[i].log_num, in mthca_make_profile() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx4/ |
| A D | profile.c | 88 profile = kcalloc(MLX4_RES_NUM, sizeof(*profile), GFP_KERNEL); in mlx4_make_profile() 89 if (!profile) in mlx4_make_profile() 138 profile[i].num = roundup_pow_of_two(profile[i].num); in mlx4_make_profile() 139 profile[i].log_num = ilog2(profile[i].num); in mlx4_make_profile() 140 profile[i].size *= profile[i].num; in mlx4_make_profile() 141 profile[i].size = max(profile[i].size, (u64) PAGE_SIZE); in mlx4_make_profile() 152 if (profile[j].size > profile[j - 1].size) in mlx4_make_profile() 153 swap(profile[j], profile[j - 1]); in mlx4_make_profile() 166 kfree(profile); in mlx4_make_profile() 170 if (profile[i].size) in mlx4_make_profile() [all …]
|
| /linux/security/apparmor/ |
| A D | domain.c | 107 if (profile->ns == tp->ns) in match_component() 403 &profile->label == ns_unconfined(profile->ns)) in find_attach() 417 if (profile->xmatch) { in find_attach() 440 aa_put_profile(profile); in find_attach() 469 candidate = profile; in find_attach() 479 candidate = profile; in find_attach() 636 AA_BUG(!profile); in profile_transition() 732 AA_BUG(!profile); in profile_onexec() 800 struct aa_profile *profile; in handle_onexec() local 858 struct aa_profile *profile; in apparmor_bprm_creds_for_exec() local [all …]
|
| A D | policy.c | 121 l = aa_label_insert(&profile->ns->labels, &profile->label); in __add_profile() 212 if (!profile) in aa_free_profile() 263 profile = kzalloc(struct_size(profile, label.vec, 2), gfp); in aa_alloc_profile() 264 if (!profile) in aa_alloc_profile() 281 profile->label.hname = profile->base.hname; in aa_alloc_profile() 283 profile->label.vec[0] = profile; in aa_alloc_profile() 340 } while (profile && !aa_get_profile_not0(profile)); in aa_find_child() 378 if (!profile) in __lookup_parent() 440 } while (profile && !aa_get_profile_not0(profile)); in aa_lookupn_profile() 531 if (profile) in aa_new_null_profile() [all …]
|
| A D | capability.c | 33 struct aa_profile *profile; member 78 } else if (KILL_MODE(profile) || in audit_caps() 79 cap_raised(profile->caps.kill, 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() 92 if (COMPLAIN_MODE(profile)) in audit_caps() 96 aa_put_profile(ent->profile); in audit_caps() 97 ent->profile = aa_get_profile(profile); in audit_caps() 126 if (!COMPLAIN_MODE(profile)) in profile_capable() [all …]
|
| A D | policy_unpack.c | 556 if (!profile->xattrs) in unpack_xattrs() 708 if (!profile) in unpack_profile() 726 if (profile->xmatch) { in unpack_profile() 769 profile->path_flags |= profile->label.flags & in unpack_profile() 866 profile->file.dfa = aa_get_dfa(profile->policy.dfa); in unpack_profile() 867 profile->file.start = profile->policy.start[AA_CLASS_FILE]; in unpack_profile() 878 profile->data = kzalloc(sizeof(*profile->data), GFP_KERNEL); in unpack_profile() 879 if (!profile->data) in unpack_profile() 925 return profile; in unpack_profile() 928 if (profile) in unpack_profile() [all …]
|
| A D | mount.c | 294 AA_BUG(!profile); in path_flags() 297 return profile->path_flags | in path_flags() 325 AA_BUG(!profile); in match_mnt_path_str() 380 AA_BUG(!profile); in match_mnt() 401 struct aa_profile *profile; in aa_remount() local 425 struct aa_profile *profile; in aa_bind_mount() local 462 struct aa_profile *profile; in aa_mount_change_type() local 487 struct aa_profile *profile; in aa_move_mount() local 522 struct aa_profile *profile; in aa_new_mount() local 590 AA_BUG(!profile); in profile_umount() [all …]
|
| A D | net.c | 118 if (profile_unconfined(profile)) in aa_profile_af_perm() 129 aa_apply_modes_to_perms(profile, &perms); 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() 154 struct aa_profile *profile; in aa_label_sk_perm() local 219 if (profile->secmark_count == 0) in aa_secmark_perm() 223 if (!profile->secmark[i].secid) { in aa_secmark_perm() 231 if (profile->secmark[i].deny) in aa_secmark_perm() 236 if (profile->secmark[i].audit) in aa_secmark_perm() 241 aa_apply_modes_to_perms(profile, &perms); in aa_secmark_perm() [all …]
|
| A D | file.c | 161 struct aa_profile *profile; in path_name() local 274 if (profile_unconfined(profile)) in __aa_path_perm() 276 aa_str_perms(profile->file.dfa, profile->file.start, name, cond, perms); in __aa_path_perm() 292 if (profile_unconfined(profile)) in profile_path_perm() 320 struct aa_profile *profile; in aa_path_perm() local 370 error = path_name(OP_LINK, &profile->label, link, profile->path_flags, in profile_path_link() 376 error = path_name(OP_LINK, &profile->label, target, profile->path_flags, in profile_path_link() 383 state = aa_str_perms(profile->file.dfa, profile->file.start, lname, in profile_path_link() 413 aa_str_perms(profile->file.dfa, profile->file.start, tname, cond, in profile_path_link() 467 struct aa_profile *profile; in aa_path_link() local [all …]
|
| A D | ipc.c | 72 aa_apply_modes_to_perms(profile, &perms); 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() 194 if (profile_unconfined(profile) || in profile_signal_perm() 195 !PROFILE_MEDIATES(profile, AA_CLASS_SIGNAL)) in profile_signal_perm() 200 state = aa_dfa_next(profile->policy.dfa, in profile_signal_perm() 201 profile->policy.start[AA_CLASS_SIGNAL], in profile_signal_perm() 204 aa_apply_modes_to_perms(profile, &perms); in profile_signal_perm() 210 struct aa_profile *profile; in aa_may_signal() local [all …]
|
| A D | apparmorfs.c | 701 if (!profile->data) in query_data() 1090 if (profile->attach) in seq_profile_attach_show() 1108 if (profile->hash) { in seq_profile_hash_show() 1507 if (!profile) in __aafs_profile_rmdir() 1565 for (depth = 0; profile; profile = rcu_access_pointer(profile->parent)) in profile_depth() 1672 AA_BUG(!profile); in __aafs_profile_mkdir() 1697 mangle_name(profile->base.name, profile->dirname); in __aafs_profile_mkdir() 1698 sprintf(profile->dirname + len, ".%ld", profile->ns->uniq_id++); in __aafs_profile_mkdir() 2195 profile = next_profile(root, profile); in p_start() 2197 return profile; in p_start() [all …]
|
| A D | label.c | 317 struct aa_profile *profile; in aa_label_destroy() local 323 aa_put_profile(profile); in aa_label_destroy() 1274 if (profile->ns == tp->ns) in match_component() 1518 AA_BUG(!profile); in aa_profile_snxprint() 1526 *prev_ns = profile->ns; in aa_profile_snxprint() 1536 if ((flags & FLAG_SHOW_MODE) && profile != profile->ns->unconfined) { in aa_profile_snxprint() 1548 profile->base.hname); in aa_profile_snxprint() 1562 if (profile == profile->ns->unconfined) in label_modename() 1569 mode = profile->mode; in label_modename() 1595 profile != profile->ns->unconfined) in display_mode() [all …]
|
| A D | audit.c | 78 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() 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)) in aa_audit() 143 if (KILL_MODE(profile) && type == AUDIT_APPARMOR_DENIED) in aa_audit() [all …]
|
| A D | resource.c | 52 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 …]
|
| /linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
| A D | ppatomfwctrl.c | 290 if (!profile) in pp_atomfwctrl_get_avfs_information() 337 profile->enable_gb_vdroop_table_ckson; in pp_atomfwctrl_get_avfs_information() 339 profile->enable_gb_fuse_table_ckson; in pp_atomfwctrl_get_avfs_information() 344 le32_to_cpu(profile->dispclk2gfxclk_a); in pp_atomfwctrl_get_avfs_information() 356 le32_to_cpu(profile->pixclk2gfxclk_a); in pp_atomfwctrl_get_avfs_information() 358 le32_to_cpu(profile->pixclk2gfxclk_b); in pp_atomfwctrl_get_avfs_information() 360 le32_to_cpu(profile->pixclk2gfxclk_c); in pp_atomfwctrl_get_avfs_information() 362 le32_to_cpu(profile->phyclk2gfxclk_a); in pp_atomfwctrl_get_avfs_information() 364 le32_to_cpu(profile->phyclk2gfxclk_b); in pp_atomfwctrl_get_avfs_information() 366 le32_to_cpu(profile->phyclk2gfxclk_c); in pp_atomfwctrl_get_avfs_information() [all …]
|
| /linux/drivers/devfreq/ |
| A D | devfreq.c | 180 struct devfreq_dev_profile *profile = devfreq->profile; in set_freq_table() local 192 profile->max_state, in set_freq_table() 196 profile->max_state = 0; in set_freq_table() 817 devfreq->profile = profile; in devfreq_add_device() 830 if (!devfreq->profile->max_state || !devfreq->profile->freq_table) { in devfreq_add_device() 1536 if (!df->profile) in cur_freq_show() 1659 if (!df->profile) in available_frequencies_show() 1687 if (!df->profile) in trans_stat_show() 1739 if (!df->profile) in trans_stat_store() 1782 if (!df->profile) in polling_interval_show() [all …]
|
| A D | exynos-bus.c | 295 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() 305 profile->exit = exynos_bus_exit; 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() 393 struct devfreq_dev_profile *profile; in exynos_bus_probe() local 411 profile = devm_kzalloc(dev, sizeof(*profile), GFP_KERNEL); in exynos_bus_probe() 412 if (!profile) in exynos_bus_probe() [all …]
|
| A D | governor_passive.c | 48 if (!devfreq->profile || !devfreq->profile->freq_table in devfreq_passive_get_target_freq() 49 || devfreq->profile->max_state <= 0) in devfreq_passive_get_target_freq() 81 for (i = 0; i < parent_devfreq->profile->max_state; i++) in devfreq_passive_get_target_freq() 82 if (parent_devfreq->profile->freq_table[i] == *freq) in devfreq_passive_get_target_freq() 85 if (i == parent_devfreq->profile->max_state) in devfreq_passive_get_target_freq() 89 if (i < devfreq->profile->max_state) { in devfreq_passive_get_target_freq() 90 child_freq = devfreq->profile->freq_table[i]; in devfreq_passive_get_target_freq() 92 count = devfreq->profile->max_state; in devfreq_passive_get_target_freq() 93 child_freq = devfreq->profile->freq_table[count - 1]; in devfreq_passive_get_target_freq()
|
| /linux/include/linux/ |
| A D | blk-crypto-profile.h | 37 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/Documentation/ABI/obsolete/ |
| A D | sysfs-driver-hid-roccat-savu | 5 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. 30 button settings. A profile holds information like resolution, 35 Which profile to write is determined by the profile number 52 keystrokes for a specific button for a specific profile. 53 Button and profile numbers are included in written data. 56 which profile and key to read. [all …]
|
| A D | sysfs-driver-hid-roccat-koneplus | 8 When written, this file sets the number of the startup profile 9 and the mouse activates this profile immediately. 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 61 When written, this file lets one write the respective profile 64 Which profile to write is determined by the profile number 67 which profile to read. 76 When read, these files return the respective profile buttons. 92 Which profile to write is determined by the profile number [all …]
|
| A D | sysfs-driver-hid-roccat-kovaplus | 16 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. 83 When read, these files return the respective profile buttons. 96 When written, this file lets one write the respective profile 99 Which profile to write is determined by the profile number [all …]
|
| /linux/drivers/mmc/host/ |
| A D | cqhci-crypto.c | 26 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() 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() 211 profile->max_dun_bytes_supported = 4; in cqhci_crypto_init() [all …]
|
| /linux/security/apparmor/include/ |
| A D | policy.h | 174 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 …]
|