| /linux/block/ |
| A D | blk-crypto-profile.c | 81 memset(profile, 0, sizeof(*profile)); in blk_crypto_profile_init() 107 profile->slots[slot].profile = profile; in blk_crypto_profile_init() 166 profile); in devm_blk_crypto_profile_init() 181 struct blk_crypto_profile *profile = slot->profile; in blk_crypto_remove_slot_from_lru_list() local 327 struct blk_crypto_profile *profile = slot->profile; in blk_crypto_put_keyslot() local 349 if (!profile) in __blk_crypto_cfg_supported() 372 err = profile->ll_ops.keyslot_evict(profile, key, -1); in __blk_crypto_evict_key() 395 err = profile->ll_ops.keyslot_evict(profile, key, in __blk_crypto_evict_key() 443 if (!profile) in blk_crypto_profile_destroy() 448 sizeof(profile->slots[0]) * profile->num_slots); in blk_crypto_profile_destroy() [all …]
|
| 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 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() 104 struct blk_crypto_profile *profile = kobj_to_crypto_profile(kobj); in blk_crypto_attr_show() local 107 return a->show(profile, a, page); in blk_crypto_attr_show() [all …]
|
| /linux/drivers/infiniband/hw/mthca/ |
| A D | mthca_profile.c | 80 profile = kcalloc(MTHCA_RES_NUM, sizeof(*profile), GFP_KERNEL); in mthca_make_profile() 81 if (!profile) in mthca_make_profile() 114 profile[i].log_num = max(ffs(profile[i].num) - 1, 0); in mthca_make_profile() 115 profile[i].size *= profile[i].num; in mthca_make_profile() 117 profile[i].size = max(profile[i].size, (u64) PAGE_SIZE); in mthca_make_profile() 136 if (profile[j].size > profile[j - 1].size) in mthca_make_profile() 137 swap(profile[j], profile[j - 1]); in mthca_make_profile() 150 kfree(profile); in mthca_make_profile() 154 if (profile[i].size) in mthca_make_profile() 157 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 | policy.c | 159 l = aa_label_insert(&profile->ns->labels, &profile->label); in __add_profile() 286 if (!profile) in aa_free_profile() 339 if (!profile) in aa_alloc_profile() 364 profile->label.hname = profile->base.hname; in aa_alloc_profile() 366 profile->label.vec[0] = profile; in aa_alloc_profile() 423 } while (profile && !aa_get_profile_not0(profile)); in aa_find_child() 461 if (!profile) in __lookup_parent() 510 if (!profile) in __create_missing_ancestors() 572 } while (profile && !aa_get_profile_not0(profile)); in aa_lookupn_profile() 624 if (!profile) in aa_alloc_null() [all …]
|
| A D | domain.c | 97 if (profile->ns == tp->ns) in match_component() 402 &profile->label == ns_unconfined(profile->ns)) in find_attach() 442 aa_put_profile(profile); in find_attach() 471 candidate = profile; in find_attach() 481 candidate = profile; in find_attach() 646 AA_BUG(!profile); in profile_transition() 746 AA_BUG(!profile); in profile_onexec() 816 struct aa_profile *profile; in handle_onexec() local 878 struct aa_profile *profile; in apparmor_bprm_creds_for_exec() local 1182 struct aa_profile *profile; in aa_change_hat() local [all …]
|
| A D | capability.c | 33 struct aa_profile *profile; member 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() 99 ent->profile = aa_get_profile(profile); in audit_caps() 130 if (!COMPLAIN_MODE(profile)) in profile_capable() 138 return audit_caps(ad, profile, cap, error); in profile_capable() [all …]
|
| A D | mount.c | 283 AA_BUG(!profile); in path_flags() 286 return profile->path_flags | in path_flags() 318 AA_BUG(!profile); in match_mnt_path_str() 378 AA_BUG(!profile); in match_mnt() 400 struct aa_profile *profile; in aa_remount() local 426 struct aa_profile *profile; in aa_bind_mount() local 464 struct aa_profile *profile; in aa_mount_change_type() local 491 struct aa_profile *profile; in aa_move_mount() local 541 struct aa_profile *profile; in aa_new_mount() local 614 AA_BUG(!profile); in profile_umount() [all …]
|
| A D | file.c | 152 struct aa_profile *profile; in path_name() local 224 if (profile_unconfined(profile)) in __aa_path_perm() 237 struct aa_profile *profile, in profile_path_perm() argument 245 if (profile_unconfined(profile)) in profile_path_perm() 275 struct aa_profile *profile; in aa_path_perm() local 329 profile->path_flags, in profile_path_link() 336 profile->path_flags, in profile_path_link() 431 struct aa_profile *profile; in aa_path_link() local 476 struct aa_profile *profile; in __file_path_perm() local 514 profile, &file->f_path, in __file_path_perm() [all …]
|
| A D | net.c | 109 int aa_profile_af_perm(struct aa_profile *profile, in aa_profile_af_perm() argument 122 if (profile_unconfined(profile)) in aa_profile_af_perm() 133 aa_apply_modes_to_perms(profile, &perms); 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() 161 struct aa_profile *profile; in aa_label_sk_perm() local 165 error = fn_for_each_confined(label, profile, in aa_label_sk_perm() 251 aa_apply_modes_to_perms(profile, &perms); in aa_secmark_perm() 259 struct aa_profile *profile; in apparmor_secmark_check() local 262 return fn_for_each_confined(label, profile, in apparmor_secmark_check() [all …]
|
| 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 …]
|
| A D | apparmorfs.c | 706 if (!profile->data) in query_data() 1115 if (profile->hash) { in seq_profile_hash_show() 1523 if (!profile) in __aafs_profile_rmdir() 1586 for (depth = 0; profile; profile = rcu_access_pointer(profile->parent)) in profile_depth() 1688 AA_BUG(!profile); in __aafs_profile_mkdir() 1717 mangle_name(profile->base.name, profile->dirname); in __aafs_profile_mkdir() 1718 sprintf(profile->dirname + len, ".%ld", profile->ns->uniq_id++); in __aafs_profile_mkdir() 1744 if (profile->hash) { in __aafs_profile_mkdir() 2220 profile = next_profile(root, profile); in p_start() 2222 return profile; in p_start() [all …]
|
| A D | policy_unpack.c | 857 if (!profile) { in unpack_profile() 938 profile->path_flags |= profile->label.flags & in unpack_profile() 1045 profile->data = kzalloc(sizeof(*profile->data), GFP_KERNEL); in unpack_profile() 1046 if (!profile->data) { in unpack_profile() 1101 return profile; in unpack_profile() 1111 if (profile) in unpack_profile() 1116 aa_free_profile(profile); in unpack_profile() 1432 if (IS_ERR(profile)) { in aa_unpack() 1433 error = PTR_ERR(profile); in aa_unpack() 1453 ent->new = profile; in aa_unpack() [all …]
|
| 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 …]
|
| A D | task.c | 227 struct aa_profile *profile, in profile_ptrace_perm() argument 239 aa_apply_modes_to_perms(profile, &perms); in profile_ptrace_perm() 293 struct aa_profile *profile; in aa_may_ptrace() local 297 return xcheck_labels(tracer, tracee, profile, in aa_may_ptrace() 298 profile_tracer_perm(tracer_cred, profile, tracee, in aa_may_ptrace() 300 profile_tracee_perm(tracee_cred, profile, tracer, in aa_may_ptrace() 316 int aa_profile_ns_perm(struct aa_profile *profile, in aa_profile_ns_perm() argument 323 ad->subj_label = &profile->label; in aa_profile_ns_perm() 326 if (!profile_unconfined(profile)) { in aa_profile_ns_perm() 337 aa_apply_modes_to_perms(profile, &perms); in aa_profile_ns_perm() [all …]
|
| 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()
|
| /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/sound/soc/sof/ |
| A D | fw-file-profile.c | 15 struct sof_loadable_file_profile *profile, in sof_test_firmware_file() argument 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() 73 if (!profile->tplg_path || !profile->tplg_name) in sof_test_topology_file() 77 profile->tplg_name); in sof_test_topology_file() 271 if (ipc_type != profile->ipc_type) in sof_print_profile_info() 274 profile->ipc_type, ipc_type); in sof_print_profile_info() 281 profile->fw_path, profile->fw_name); in sof_print_profile_info() 283 if (profile->fw_lib_path) in sof_print_profile_info() [all …]
|
| /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/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, 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);
|
| /linux/tools/testing/selftests/drivers/net/mlxsw/spectrum/ |
| 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" 64 log_test "'$current_test' [$profile] $target" 71 log_test "'$current_test' [$profile] $target traffic test" 75 log_test "'$current_test' [$profile] overflow $target"
|
| /linux/Documentation/userspace-api/ |
| A D | sysfs-platform_profile.rst | 16 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 cannot be used. 41 2. Add the new profile name, along with a clear description of the
|