/openbmc/linux/block/ |
H A D | blk-crypto-profile.c | 42 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 D | blk-crypto-sysfs.c | 15 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 …]
|
H A D | blk-integrity.c | 126 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() 225 if (bi->profile && bi->profile->name) in format_show() 226 return sysfs_emit(page, "%s\n", bi->profile->name); in format_show() 370 bi->profile = template->profile ? template->profile : &nop_profile; in blk_integrity_register() 396 if (!bi->profile) in blk_integrity_unregister()
|
/openbmc/linux/drivers/infiniband/hw/mthca/ |
H A D | mthca_profile.c | 77 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 …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx4/ |
H A D | profile.c | 84 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 …]
|
/openbmc/linux/security/apparmor/ |
H A D | policy.c | 110 static void __add_profile(struct list_head *list, struct aa_profile *profile) in __add_profile() argument 115 AA_BUG(!profile); in __add_profile() 116 AA_BUG(!profile->ns); in __add_profile() 117 AA_BUG(!mutex_is_locked(&profile->ns->lock)); in __add_profile() 119 list_add_rcu(&profile->base.list, list); in __add_profile() 121 aa_get_profile(profile); in __add_profile() 122 l = aa_label_insert(&profile->ns->labels, &profile->label); in __add_profile() 123 AA_BUG(l != &profile->label); in __add_profile() 139 static void __list_remove_profile(struct aa_profile *profile) in __list_remove_profile() argument 141 AA_BUG(!profile); in __list_remove_profile() [all …]
|
H A D | domain.c | 87 static inline aa_state_t match_component(struct aa_profile *profile, in match_component() argument 91 struct aa_ruleset *rules = list_first_entry(&profile->rules, in match_component() 97 if (profile->ns == tp->ns) in match_component() 101 ns_name = aa_ns_name(profile->ns, tp->ns, true); in match_component() 124 static int label_compound_match(struct aa_profile *profile, in label_compound_match() argument 129 struct aa_ruleset *rules = list_first_entry(&profile->rules, in label_compound_match() 137 if (!aa_ns_visible(profile->ns, tp->ns, subns)) in label_compound_match() 139 state = match_component(profile, tp, stack, state); in label_compound_match() 151 if (!aa_ns_visible(profile->ns, tp->ns, subns)) in label_compound_match() 154 state = match_component(profile, tp, false, state); in label_compound_match() [all …]
|
H A D | capability.c | 33 struct aa_profile *profile; member 64 static int audit_caps(struct apparmor_audit_data *ad, struct aa_profile *profile, in audit_caps() argument 67 struct aa_ruleset *rules = list_first_entry(&profile->rules, in audit_caps() 76 if (likely((AUDIT_MODE(profile) != AUDIT_ALL) && in audit_caps() 80 } else if (KILL_MODE(profile) || in audit_caps() 84 AUDIT_MODE(profile) != AUDIT_NOQUIET && in audit_caps() 85 AUDIT_MODE(profile) != AUDIT_ALL) { in audit_caps() 92 if (profile == ent->profile && cap_raised(ent->caps, cap)) { in audit_caps() 94 if (COMPLAIN_MODE(profile)) in audit_caps() 98 aa_put_profile(ent->profile); in audit_caps() [all …]
|
H A D | mount.c | 133 struct aa_profile *profile, const char *op, in audit_mount() argument 145 if (unlikely(AUDIT_MODE(profile) == AUDIT_ALL)) in audit_mount() 163 AUDIT_MODE(profile) != AUDIT_NOQUIET && in audit_mount() 164 AUDIT_MODE(profile) != AUDIT_ALL) in audit_mount() 182 return aa_audit(audit_type, profile, &ad, audit_cb); in audit_mount() 279 static int path_flags(struct aa_profile *profile, const struct path *path) in path_flags() argument 281 AA_BUG(!profile); in path_flags() 284 return profile->path_flags | in path_flags() 304 struct aa_profile *profile, in match_mnt_path_str() argument 312 struct aa_ruleset *rules = list_first_entry(&profile->rules, in match_mnt_path_str() [all …]
|
H A D | file.c | 95 struct aa_profile *profile, struct aa_perms *perms, in aa_audit_file() argument 116 if (unlikely(AUDIT_MODE(profile) == AUDIT_ALL)) in aa_audit_file() 135 AUDIT_MODE(profile) != AUDIT_NOQUIET && in aa_audit_file() 136 AUDIT_MODE(profile) != AUDIT_ALL) in aa_audit_file() 144 return aa_audit(type, profile, &ad, file_audit_cb); in aa_audit_file() 165 struct aa_profile *profile; in path_name() local 172 fn_for_each_confined(label, profile, in path_name() 174 profile, &nullperms, op, request, *name, in path_name() 229 struct aa_profile *profile, const char *name, in __aa_path_perm() argument 233 struct aa_ruleset *rules = list_first_entry(&profile->rules, in __aa_path_perm() [all …]
|
H A D | net.c | 109 int aa_profile_af_perm(struct aa_profile *profile, in aa_profile_af_perm() argument 113 struct aa_ruleset *rules = list_first_entry(&profile->rules, in aa_profile_af_perm() 122 if (profile_unconfined(profile)) in aa_profile_af_perm() 133 aa_apply_modes_to_perms(profile, &perms); in aa_profile_af_perm() 135 return aa_check_perms(profile, &perms, request, ad, audit_net_cb); in aa_profile_af_perm() 141 struct aa_profile *profile; in aa_af_perm() local 144 return fn_for_each_confined(label, profile, in aa_af_perm() 145 aa_profile_af_perm(profile, &ad, request, family, in aa_af_perm() 161 struct aa_profile *profile; in aa_label_sk_perm() local 165 error = fn_for_each_confined(label, profile, in aa_label_sk_perm() [all …]
|
H A D | ipc.c | 79 struct aa_profile *profile, in profile_signal_perm() argument 83 struct aa_ruleset *rules = list_first_entry(&profile->rules, in profile_signal_perm() 88 if (profile_unconfined(profile) || in profile_signal_perm() 89 !ANY_RULE_MEDIATES(&profile->rules, AA_CLASS_SIGNAL)) in profile_signal_perm() 98 aa_label_match(profile, rules, peer, state, false, request, &perms); in profile_signal_perm() 99 aa_apply_modes_to_perms(profile, &perms); in profile_signal_perm() 100 return aa_check_perms(profile, &perms, request, ad, audit_signal_cb); in profile_signal_perm() 107 struct aa_profile *profile; in aa_may_signal() local 112 return xcheck_labels(sender, target, profile, in aa_may_signal() 113 profile_signal_perm(subj_cred, profile, target, in aa_may_signal() [all …]
|
H A D | apparmorfs.c | 612 static void profile_query_cb(struct aa_profile *profile, struct aa_perms *perms, in profile_query_cb() argument 615 struct aa_ruleset *rules = list_first_entry(&profile->rules, in profile_query_cb() 620 if (profile_unconfined(profile)) in profile_query_cb() 640 aa_apply_modes_to_perms(profile, &tmp); in profile_query_cb() 670 struct aa_profile *profile; in query_data() local 705 label_for_each_confined(i, label, profile) { in query_data() 706 if (!profile->data) in query_data() 709 data = rhashtable_lookup_fast(profile->data, &key, in query_data() 710 profile->data->p); in query_data() 759 struct aa_profile *profile; in query_label() local [all …]
|
H A D | policy_unpack.c | 66 struct aa_profile *profile = labels_profile(aa_current_raw_label()); in audit_iface() local 78 return aa_audit(AUDIT_APPARMOR_STATUS, profile, &ad, audit_cb); in audit_iface() 534 static bool unpack_xattrs(struct aa_ext *e, struct aa_profile *profile) in unpack_xattrs() argument 544 profile->attach.xattr_count = size; in unpack_xattrs() 545 profile->attach.xattrs = kcalloc(size, sizeof(char *), GFP_KERNEL); in unpack_xattrs() 546 if (!profile->attach.xattrs) in unpack_xattrs() 549 if (!aa_unpack_strdup(e, &profile->attach.xattrs[i], NULL)) in unpack_xattrs() 805 struct aa_profile *profile = NULL; in unpack_profile() local 841 profile = aa_alloc_profile(name, NULL, GFP_KERNEL); in unpack_profile() 842 if (!profile) { in unpack_profile() [all …]
|
H A D | audit.c | 120 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 D | resource.c | 57 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 = list_first_entry(&profile->rules, in profile_setrlimit() 99 return audit_resource(subj_cred, profile, resource, new_rlim->rlim_max, in profile_setrlimit() 119 struct aa_profile *profile; in aa_task_setrlimit() local 136 error = fn_for_each(label, profile, in aa_task_setrlimit() 137 audit_resource(subj_cred, profile, resource, in aa_task_setrlimit() 141 error = fn_for_each_confined(label, profile, in aa_task_setrlimit() 142 profile_setrlimit(subj_cred, profile, resource, in aa_task_setrlimit()
|
/openbmc/linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
H A D | ppatomfwctrl.c | 282 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 …]
|
/openbmc/linux/Documentation/ABI/obsolete/ |
H 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. 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 D | sysfs-driver-hid-roccat-koneplus | 6 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 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. 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 …]
|
/openbmc/qemu/target/riscv/tcg/ |
H A D | tcg-cpu.c | 664 RISCVCPUProfile *profile, in riscv_cpu_validate_profile_satp() argument 669 if (profile->satp_mode > satp_max) { in riscv_cpu_validate_profile_satp() 672 const char *req_satp = satp_mode_str(profile->satp_mode, is_32bit); in riscv_cpu_validate_profile_satp() 676 "but satp mode %s was set", profile->name, in riscv_cpu_validate_profile_satp() 688 RISCVCPUProfile *profile) in riscv_cpu_validate_profile() argument 692 bool send_warn = profile->user_set && profile->enabled; in riscv_cpu_validate_profile() 697 if (profile->satp_mode != RISCV_PROFILE_ATTR_UNUSED) { in riscv_cpu_validate_profile() 698 profile_impl = riscv_cpu_validate_profile_satp(cpu, profile, in riscv_cpu_validate_profile() 703 if (profile->priv_spec != RISCV_PROFILE_ATTR_UNUSED && in riscv_cpu_validate_profile() 704 profile->priv_spec != env->priv_ver) { in riscv_cpu_validate_profile() [all …]
|
/openbmc/linux/tools/testing/selftests/drivers/net/mlxsw/spectrum/ |
H A D | resource_scale.sh | 43 for profile in $KVD_PROFILES; do 45 devlink_sp_resource_kvd_profile_set $profile 47 log_test "'$current_test' [$profile] setting" 55 log_test_skip "'$current_test' [$profile] should_fail=$should_fail test" 65 log_test "'$current_test' [$profile] $target" 72 log_test "'$current_test' [$profile] $target traffic test" 76 log_test "'$current_test' [$profile] overflow $target"
|
/openbmc/linux/drivers/mmc/host/ |
H 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() 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 …]
|
/openbmc/openbmc/poky/meta/recipes-devtools/python/python3/ |
H A D | 0001-Makefile.pre-use-qemu-wrapper-when-gathering-profile.patch | 4 Subject: [PATCH] Makefile.pre: use qemu wrapper when gathering profile data 16 @@ -751,8 +751,7 @@ profile-run-stamp: 18 $(MAKE) profile-gen-stamp 19 # Next, run the profile task to generate the profile information. 24 # Remove profile generation binary since we are done with it. 25 $(MAKE) clean-retain-profile
|
/openbmc/linux/include/linux/ |
H A D | blk-crypto-profile.h | 37 int (*keyslot_program)(struct blk_crypto_profile *profile, 57 int (*keyslot_evict)(struct blk_crypto_profile *profile, 133 int blk_crypto_profile_init(struct blk_crypto_profile *profile, 137 struct blk_crypto_profile *profile, 142 void blk_crypto_reprogram_all_keys(struct blk_crypto_profile *profile); 144 void blk_crypto_profile_destroy(struct blk_crypto_profile *profile);
|